/* ================================================================
   Rivals Script  ·  style.css  ·  rivals.com.de  ·  v4
   ================================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p:     #7c3aed;
  --pl:    #a855f7;
  --pp:    #c084fc;
  --glow:  rgba(124,58,237,.26);
  --glow2: rgba(124,58,237,.12);
  --brd:   rgba(124,58,237,.22);
  --bg:    #07070f;
  --bg2:   #0d0d1a;
  --bg3:   #111122;
  --bg4:   #181830;
  --bg5:   #1e1e3a;
  --line:  rgba(255,255,255,.07);
  --txt:   #e4e4f0;
  --muted: #7878a0;
  --green: #4ade80;
  --yel:   #fbbf24;
  --r:     13px;
  --t:     .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pl); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--pp); }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--p); border-radius: 4px; }

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(7,7,15,.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.nav-inner {
  max-width: 1140px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.16rem; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(135deg, #fff 30%, var(--pl));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 2px; }
nav a {
  color: var(--muted); padding: 6px 12px;
  font-size: .85rem; font-weight: 500; border-radius: 8px;
  transition: color var(--t), background var(--t);
}
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav-dl {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px; padding: 8px 18px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  color: #fff !important; font-weight: 700; font-size: .84rem;
  border: none; border-radius: 9px; cursor: pointer;
  box-shadow: 0 3px 18px var(--glow);
  transition: transform var(--t), box-shadow var(--t);
  white-space: nowrap; -webkit-text-fill-color: #fff;
}
.nav-dl:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--glow); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 28px 80px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(124,58,237,.24) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168,85,247,.1) 0%, transparent 60%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('/img/hero-bg.jpg') center/cover no-repeat;
  opacity: .07; pointer-events: none;
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.38);
  color: var(--pl); font-size: .73rem; font-weight: 700;
  padding: 5px 18px; border-radius: 100px;
  margin-bottom: 24px; letter-spacing: .9px; text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.6px; margin-bottom: 20px;
  background: linear-gradient(155deg, #fff 35%, var(--pl) 70%, var(--pp));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
h1 .line2 {
  display: block; font-size: .52em; font-weight: 600; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--muted), var(--pl));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 8px;
}

.hero-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 580px; margin: 0 auto 34px; line-height: 1.65;
}
.hero-sub strong { color: var(--txt); }

.hero-btns {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.hero-pills {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-bottom: 26px;
}
.hero-pill {
  font-size: .74rem; font-weight: 600; color: var(--muted);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.hero-pill .dot { color: var(--green); margin-right: 4px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-dl {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 38px;
  background: linear-gradient(135deg, var(--p) 0%, var(--pl) 100%);
  color: #fff !important; font-weight: 700; font-size: 1.04rem;
  border-radius: var(--r); border: none; cursor: pointer;
  box-shadow: 0 5px 28px var(--glow);
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none !important; white-space: nowrap;
  -webkit-text-fill-color: #fff;
}
.btn-dl:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 44px rgba(124,58,237,.55); }
.btn-dl:active { transform: translateY(-1px) scale(1); }
.btn-dl.lg { font-size: 1.12rem; padding: 17px 54px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: rgba(255,255,255,.04); color: var(--txt) !important;
  font-weight: 600; font-size: .96rem;
  border-radius: var(--r); border: 1px solid var(--line);
  cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t);
  text-decoration: none !important; white-space: nowrap;
}
.btn-ghost:hover { background: rgba(124,58,237,.1); border-color: var(--brd); transform: translateY(-2px); }

/* ── SOCIAL SHARE ───────────────────────────────────────────── */
.social-share {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.soc {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 8px;
  font-size: .8rem; font-weight: 600;
  color: #fff !important; text-decoration: none !important;
  transition: transform var(--t), opacity var(--t);
  -webkit-text-fill-color: #fff;
}
.soc:hover { transform: translateY(-2px); opacity: .85; }
/* social brand colors */
.s-fb { background: #1877f2; }
.s-tw { background: #000; }
.s-li { background: #0a66c2; }
.s-pi { background: #e60023; }
.s-rd { background: #ff4500; }
/* SVG icons embedded inline via CSS mask — simple approach */
.soc svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ── STATS ──────────────────────────────────────────────────── */
.stats-bar { background: var(--bg3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: 1140px; margin: auto;
  display: flex; justify-content: center; flex-wrap: wrap; padding: 0 28px;
}
.stat {
  text-align: center; padding: 24px 32px;
  border-right: 1px solid var(--line); flex: 1; min-width: 120px; max-width: 200px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 1.85rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff 20%, var(--pl));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-num.green { background: none; -webkit-text-fill-color: var(--green); }
.stat-num.purple { background: none; -webkit-text-fill-color: var(--pl); }
.stat-lbl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 5px; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.bc-wrap { max-width: 1140px; margin: 0 auto; padding: 14px 28px 0; }
.bc {
  font-size: .79rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none; align-items: center;
}
.bc li + li::before { content: "/"; margin-right: 4px; opacity: .35; }
.bc a { color: var(--muted); }
.bc a:hover { color: var(--pl); }
.bc li:last-child span { color: var(--txt); }

/* ── MAIN / SECTIONS ────────────────────────────────────────── */
main { max-width: 1140px; margin: 0 auto; padding: 64px 28px 48px; }
section { margin-bottom: 60px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--pl); margin-bottom: 6px;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; color: #fff;
  letter-spacing: -.25px; line-height: 1.2; margin-bottom: 6px;
}
.sec-sub { color: var(--muted); font-size: .93rem; margin-bottom: 24px; max-width: 640px; line-height: 1.6; }
p { color: #aaaac8; line-height: 1.72; margin-bottom: 12px; }
p strong { color: var(--txt); }

/* ── FEATURES GRID ──────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.feat {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feat:hover { border-color: var(--p); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,.18); }
.feat-ico { font-size: 1.75rem; margin-bottom: 11px; line-height: 1; }
.feat-name { font-weight: 700; font-size: .97rem; color: #fff; margin-bottom: 5px; }
.feat-badge {
  display: inline-block; margin-bottom: 8px;
  font-size: .66rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; padding: 2px 9px; border-radius: 100px;
}
.fb-combat { background: rgba(239,68,68,.12); color: #f87171; }
.fb-vis    { background: rgba(59,130,246,.12); color: #60a5fa; }
.fb-auto   { background: rgba(74,222,128,.12); color: #4ade80; }
.fb-move   { background: rgba(251,191,36,.12); color: #fbbf24; }
.fb-cos    { background: rgba(168,85,247,.12); color: #c084fc; }
.fb-ui     { background: rgba(100,116,139,.12); color: #94a3b8; }
.feat-desc { font-size: .83rem; color: var(--muted); line-height: 1.52; }

/* ── SCREENSHOTS ────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 4px; }
.shot {
  aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg4); position: relative;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.shot:hover { border-color: var(--brd); transform: scale(1.02); box-shadow: 0 8px 32px rgba(124,58,237,.2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: .78rem; gap: 7px; text-align: center; padding: 12px;
}
.shot-ph em { font-size: 1.8rem; opacity: .3; font-style: normal; }
.shot-label {
  position: absolute; bottom: 9px; left: 9px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 6px;
}

/* ── STEPS ──────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px;
  transition: border-color var(--t), box-shadow var(--t);
}
.step:hover { border-color: var(--brd); box-shadow: 0 4px 24px var(--glow2); }
.step-n {
  min-width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: .88rem;
  color: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(124,58,237,.36);
}
.step-body strong { display: block; color: #fff; font-size: .96rem; margin-bottom: 3px; }
.step-body span   { font-size: .86rem; color: var(--muted); line-height: 1.52; }

/* ── EXECUTORS ──────────────────────────────────────────────── */
.exec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 12px;
}
.exec {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; text-align: center;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.exec:hover { border-color: var(--pl); transform: translateY(-4px); box-shadow: 0 10px 32px var(--glow2); }
.exec-name { font-weight: 800; font-size: 1.04rem; color: #fff; margin-bottom: 7px; }
.exec-tag {
  display: inline-block; margin-bottom: 9px;
  font-size: .69rem; font-weight: 700; padding: 3px 12px;
  border-radius: 100px; letter-spacing: .3px;
}
.et-top { background: rgba(251,191,36,.12); color: var(--yel); border: 1px solid rgba(251,191,36,.2); }
.et-reg { background: rgba(124,58,237,.12); color: var(--pl);  border: 1px solid rgba(124,58,237,.2); }
.et-beg { background: rgba(74,222,128,.1);  color: var(--green);border: 1px solid rgba(74,222,128,.2); }
.exec-desc { font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* ── CHANGELOG ──────────────────────────────────────────────── */
.changelog { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 26px; }
.changelog::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--p), transparent); border-radius: 2px;
}
.cl-item { position: relative; padding: 0 0 24px 18px; }
.cl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--p); border: 2px solid var(--bg3); box-shadow: 0 0 10px var(--glow);
}
.cl-date { font-size: .72rem; font-weight: 700; color: var(--pl); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 3px; }
.cl-title { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 6px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tag { font-size: .71rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.cl-fix { background: rgba(239,68,68,.12); color: #f87171; }
.cl-new { background: rgba(74,222,128,.12); color: #4ade80; }
.cl-upd { background: rgba(59,130,246,.12); color: #60a5fa; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.about-img {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg4); min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t);
}
.about-img:hover { border-color: var(--brd); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-ph { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px; line-height: 1.6; }
.about-img-ph em { font-size: 2.6rem; display: block; margin-bottom: 10px; opacity: .2; font-style: normal; }

/* ── COMPARE TABLE ──────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
thead tr { background: var(--bg4); }
th {
  padding: 13px 18px; text-align: left;
  font-size: .73rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
th:first-child { color: #fff; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--txt); vertical-align: middle; }
tbody tr { background: var(--bg3); transition: background var(--t); }
tbody tr:hover { background: var(--bg4); }
tbody tr:last-child td { border-bottom: none; }
.td-feat { font-weight: 600; color: #fff; }
.chk  { color: var(--green); font-size: 1.05rem; }
.cross { color: #f87171; font-size: .95rem; }
.td-hl { color: var(--pl); font-weight: 600; }

/* ── KEY FEATURES / KEYWORD CARDS ──────────────────────────── */
.kw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 12px;
}
.kw-card {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 20px; transition: border-color var(--t), box-shadow var(--t);
}
.kw-card:hover { border-color: var(--brd); box-shadow: 0 6px 28px var(--glow2); }
.kw-card h3 { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.kw-card p  { font-size: .84rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
details {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color var(--t);
}
details[open] { border-color: var(--brd); }
summary {
  font-weight: 600; font-size: .94rem; color: #fff;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; user-select: none; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
.si {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg4); display: flex; align-items: center; justify-content: center;
  font-size: .86rem; color: var(--pl);
  transition: background var(--t), transform var(--t); font-style: normal;
}
details[open] .si { background: var(--p); color: #fff; transform: rotate(45deg); }
.faq-ans { padding: 0 22px 18px; font-size: .89rem; color: var(--muted); line-height: 1.62; }
.faq-ans a { color: var(--pl); }

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--bg4) 0%, #1c0f40 100%);
  border: 1px solid rgba(124,58,237,.38); border-radius: 22px;
  padding: 56px 36px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(124,58,237,.1);
}
.cta::before {
  content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 100%;
  background: radial-gradient(ellipse, rgba(124,58,237,.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); margin-bottom: 10px; }
.cta p  { color: var(--muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cpill {
  background: rgba(74,222,128,.1); color: var(--green);
  border: 1px solid rgba(74,222,128,.2);
  padding: 5px 15px; border-radius: 100px; font-size: .78rem; font-weight: 600;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 36px 28px; }
.footer-inner {
  max-width: 1140px; margin: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, var(--pl));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-copy { font-size: .79rem; color: var(--muted); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 7px; text-align: right; }
.footer-links a { color: var(--muted); font-size: .82rem; transition: color var(--t); }
.footer-links a:hover { color: var(--pl); }
.footer-bottom {
  max-width: 1140px; margin: 20px auto 0;
  padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  font-size: .75rem; color: var(--muted); gap: 8px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { min-height: 190px; }
}
@media (max-width: 760px) {
  .nav-inner nav { display: none; }
  .shots { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  .hero { padding: 76px 20px 58px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-dl, .btn-ghost { justify-content: center; }
  main { padding: 48px 20px 32px; }
  .cta { padding: 40px 20px; }
}
