/* ==========================================================
   EUPHORIA – Roleplay · Strandheim
   ========================================================== */

:root {
  --bg: #050b16;
  --bg-2: #081120;
  --surface: #0b1628;
  --surface-2: #10203a;
  --line: rgba(150, 180, 230, 0.12);
  --line-strong: rgba(150, 180, 230, 0.24);
  --text: #e8eef8;
  --muted: #9fb0c9;
  --dim: #8496b2;

  --blue: #2f8cff;
  --blue-hi: #6fb2ff;
  --blue-deep: #1a6fe0;
  --ok: #38d39f;
  --red: #ff6b6b;

  --max: 1200px;
  --radius: 6px;

  --font-display: "Michroma", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: dark; scrollbar-color: #1d3150 var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d3150; border: 3px solid var(--bg); border-radius: 8px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.15; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: .01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9d5e8; max-width: 60ch; }

/* ---------- Status bar ---------- */

.statusbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.statusbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 0;
  text-align: center;
}
.statusbar strong { color: var(--text); font-weight: 600; }
.statusbar a { color: var(--blue-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 22, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .28em;
}
.brand img { width: 46px; height: auto; }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-mobile { display: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: #155fc4; }
.btn-secondary { background: rgba(5, 11, 22, .5); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: rgba(190, 210, 245, .5); background: rgba(255,255,255,.05); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(90svh, 920px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 1000px); z-index: -1; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.04);
  animation: settle 2.4s var(--ease) forwards;
}
@keyframes settle { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5,11,22,.6) 18%, rgba(5,11,22,0) 42%),
    linear-gradient(180deg, rgba(5,11,22,0) 70%, var(--bg) 100%);
}

.hero-content { max-width: 520px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: .01em; }
.hero .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: start; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: #c3cfe2; max-width: 62ch; }

.spec { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 22px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.spec dd { margin: 0; font-weight: 600; }

/* Paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.path-col header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.path-col header h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .06em; }
.path-col header span { font-size: 14px; color: var(--dim); }
.path-col ul { list-style: none; margin: 0; padding: 0; }
.path-col li { padding: 22px 28px; }
.path-col li + li { border-top: 1px solid var(--line); }
.path-col li strong { display: block; font-size: 17px; margin-bottom: 4px; }
.path-col li p { color: var(--muted); font-size: 16px; }

/* Entry process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blue-hi);
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--blue-deep); color: #fff; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; max-width: 30ch; }

.entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.entry-card.primary { border-color: rgba(47, 140, 255, .45); background: linear-gradient(180deg, rgba(47,140,255,.10), rgba(47,140,255,.02)), var(--surface); }
.entry-card p { color: var(--muted); }
.entry-card .btn { align-self: flex-start; margin-top: 8px; }

/* Rules */
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s, padding .3s var(--ease);
}
.rule-list a:hover { background: rgba(255,255,255,.025); padding-left: 14px; }
.rule-list strong { display: block; font-size: 19px; }
.rule-list span { color: var(--muted); font-size: 16px; }
.rule-list svg { width: 20px; height: 20px; color: var(--blue-hi); transition: transform .3s var(--ease); }
.rule-list a:hover svg { transform: translateX(4px); }

/* Closing */
.closing {
  padding: 110px 0 120px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 70% at 50% 30%, rgba(23, 103, 214, .16), transparent 70%), var(--bg);
}
.closing img { width: min(420px, 80%); margin: 0 auto 36px; }
.closing p { color: var(--muted); max-width: 52ch; margin: 18px auto 34px; font-size: 18px; }
.closing .hero-actions { justify-content: center; margin-top: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer-grid h4 { margin: 4px 0 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c3cfe2; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Regelwerk
   ========================================================== */

.page-head {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23,103,214,.10), transparent 80%);
}
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.page-head .lead { margin-top: 18px; color: var(--muted); }
.draft {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 196, 87, .4);
  border-radius: var(--radius);
  background: rgba(255, 196, 87, .08);
  color: #ffd98a;
  font-size: 15px;
  font-weight: 600;
}

.rules-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.search { position: relative; flex: 1 1 320px; max-width: 480px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,140,255,.2); }
.meta-note { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }

.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; padding: 56px 0 40px; }
.rules-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.rules-nav a {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.rules-nav a .n { color: var(--dim); font-variant-numeric: tabular-nums; min-width: 26px; }
.rules-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.rules-nav a.active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rules-nav a.active .n { color: var(--blue-hi); }

.rule-section { margin-bottom: 64px; }
.rule-section > h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.rule-section > p { color: var(--muted); margin-bottom: 22px; }

.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 17px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover .acc-title { color: #fff; }
.acc summary .id { min-width: 44px; color: var(--blue-hi); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.acc summary .plus { margin-left: auto; width: 18px; height: 18px; color: var(--dim); transition: transform .3s var(--ease); flex: none; }
.acc[open] summary .plus { transform: rotate(45deg); color: var(--blue-hi); }
.acc-body { padding: 0 4px 24px 66px; color: #c3cfe2; max-width: 75ch; }
.acc-body p + p, .acc-body p + ul { margin-top: 10px; }
.acc-body ul { margin: 0; padding-left: 20px; }
.acc-body li { margin: 4px 0; }
.acc-body .note {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(47,140,255,.3);
  border-radius: var(--radius);
  background: rgba(47,140,255,.07);
  font-size: 15px;
}
.acc.hidden { display: none; }
mark { background: rgba(47,140,255,.35); color: #fff; border-radius: 2px; padding: 0 2px; }

.empty { display: none; padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty.show { display: block; }

/* ==========================================================
   Early Access
   ========================================================== */

.ea-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; padding: 56px 0 96px; }

.ea-progress { position: sticky; top: 96px; }
.ea-progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ea-progress li { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); color: var(--muted); }
.ea-progress li.current { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.ea-progress li strong { display: block; font-size: 16px; }
.ea-progress li span:not(.ea-marker) { display: block; font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.ea-marker {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.ea-marker svg { width: 15px; height: 15px; }
.ea-progress li.current .ea-marker { border-color: var(--blue); color: var(--blue-hi); }
.ea-progress li.done .ea-marker { border-color: var(--blue-deep); background: var(--blue-deep); color: #fff; }

.ea-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ea-account img { width: 32px; height: 32px; border-radius: 50%; }
.ea-account strong { color: var(--text); }
.ea-link { padding: 0; border: 0; background: none; color: var(--blue-hi); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.ea-main { display: grid; gap: 24px; min-width: 0; }
.ea-panel { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ea-panel h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.ea-panel > p { color: #c3cfe2; max-width: 62ch; margin-bottom: 24px; }
.ea-hint { color: var(--dim); font-size: 15px; }
.ea-panel .ea-hint { margin: 18px 0 0; }
.ea-hint a, .ea-inline { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }

.ea-flash { margin: 0; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); font-weight: 600; }
.ea-flash.success { border-color: rgba(56, 211, 159, .4); background: rgba(56, 211, 159, .08); color: #a6f0d3; }
.ea-flash.error { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); color: #ffc2c2; }

.ea-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.ea-status-head h2 { margin: 0 8px 0 0; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-strong); color: var(--text); }
.badge.submitted { border-color: rgba(111, 178, 255, .45); color: var(--blue-hi); }
.badge.in_review { border-color: rgba(255, 196, 87, .45); color: #ffd98a; }
.badge.accepted { border-color: rgba(56, 211, 159, .5); background: rgba(56, 211, 159, .1); color: #a6f0d3; }
.badge.rejected { border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .08); color: #ffc2c2; }
.badge.prio { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.ea-timeline { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0 0 24px; padding: 0; }
.ea-timeline li { position: relative; padding-top: 18px; font-size: 14px; font-weight: 600; color: var(--dim); }
.ea-timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 4px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.ea-timeline li.done::before, .ea-timeline li.current::before { background: var(--blue); }
.ea-timeline li.current { color: var(--text); }
[data-status="rejected"] .ea-timeline li.current::before { background: var(--red); }
[data-status="accepted"] .ea-timeline li.current::before { background: var(--ok); }

.ea-status > p, .ea-result { color: #c3cfe2; margin: 0 0 20px; }
.ea-result.ok { color: #a6f0d3; font-weight: 600; }
.ea-result.no { color: #ffc2c2; font-weight: 600; }
.ea-note { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); }
.ea-note strong { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }

.ea-answers { margin: 0; border-top: 1px solid var(--line); }
.ea-answers div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ea-answers dt { color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.ea-answers dd { margin: 0; color: #c3cfe2; overflow-wrap: anywhere; }

.ea-form { display: grid; gap: 26px; max-width: 720px; }
.field label { display: block; font-weight: 700; font-size: 17px; }
.field .help { display: block; margin: 2px 0 10px; color: var(--muted); font-size: 15px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  caret-color: var(--blue-hi);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,140,255,.2); }
.field.invalid input, .field.invalid textarea { border-color: rgba(255, 107, 107, .7); }
.field-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; font-size: 14px; }
.field .error { color: #ffb0b0; }
.field .count { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.ea-form .btn { justify-self: start; }

footer.slim { padding: 28px 0; }
footer.slim .footer-bottom { margin: 0; padding: 0; border: 0; }
footer.slim a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 64px; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 1 / .78; max-height: 72svh; }
  .hero-media::after { background: linear-gradient(180deg, rgba(5,11,22,0) 55%, var(--bg) 100%); }
  .hero-content { max-width: 640px; margin-top: -40px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps li:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .burger { display: grid; }
  .nav.open .nav-links {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 10px 20px 18px;
    background: rgba(5, 11, 22, .97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 14px 4px; font-size: 17px; }
  .nav.open .nav-links .nav-mobile { display: block; border-top: 1px solid var(--line); margin-top: 6px; }
}

@media (max-width: 860px) {
  .paths, .entry-actions { grid-template-columns: 1fr; }
  .ea-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .ea-progress { position: static; }

  .rules-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .rules-nav {
    top: 72px;
    z-index: 10;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin: 0 -20px;
    padding: 10px 20px;
    background: rgba(5, 11, 22, .95);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .rules-nav::-webkit-scrollbar { display: none; }
  .rules-nav a { flex: none; white-space: nowrap; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .hero { padding: 0 0 48px; }
  .hero-media img { object-position: 50% 32%; }
  .hero-actions .btn { width: 100%; }
  .brand { letter-spacing: .2em; font-size: 13px; }
  .brand img { width: 40px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li::after { top: 44px; bottom: -44px; left: 22px; right: auto; width: 1px; height: auto; }
  .steps li:nth-child(2)::after { display: block; }
  .path-col header, .path-col li { padding-inline: 22px; }
  .entry-card { padding: 26px 22px; }
  .entry-card .btn { align-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .acc-body { padding-left: 4px; }
  .ea-panel { padding: 26px 20px; }
  .ea-answers div { grid-template-columns: 1fr; gap: 4px; }
  .ea-form .btn { justify-self: stretch; }
  .nav-cta .btn-primary span { display: none; }
  .nav-cta .btn-primary { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}
