:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #aab7c8;
  --blue: #4ba3ff;
  --blue-strong: #1677d2;
  --night: #050a12;
  --line: rgba(151, 177, 207, .2);
  --header: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); }
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; border-radius: 999px; background: #fff; color: #06101d; }
.skip-link:focus { transform: none; }

.stage-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 78px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.stage-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.stage-brand img { border-radius: 10px; }
.stage-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.stage-header nav a { color: #d5dfeb; font-size: .92rem; text-decoration: none; }
#languageToggle { border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: 8px 11px; background: rgba(6,14,26,.5); color: white; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.stage-header nav a:hover, #languageToggle:hover { color: #fff; border-color: rgba(255,255,255,.58); }

.stage-hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: calc(var(--header) + 42px) clamp(22px, 6vw, 94px) 64px; }
.stage-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stage-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,13,.98) 0%, rgba(2,7,13,.91) 31%, rgba(2,7,13,.24) 66%, rgba(2,7,13,.04) 100%); }
.stage-hero-copy { position: relative; max-width: 690px; }
.stage-kicker { margin: 0 0 19px; color: #7bbdff; font-size: .76rem; font-weight: 850; letter-spacing: .18em; }
.stage-hero h1 { max-width: 660px; margin: 0; font-size: clamp(3rem, 6.2vw, 6.8rem); line-height: .94; letter-spacing: -.065em; }
.stage-hero-copy > p:not(.stage-kicker) { max-width: 610px; margin: 26px 0 0; color: #c8d3df; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; }
.stage-access-line { margin-top: 28px; color: #dcecff; font-size: .9rem; font-weight: 720; }
.stage-access-line span { display: inline-flex; align-items: center; gap: 9px; }
.stage-access-line span::before { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); content: ""; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stage-primary, .stage-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 780; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.stage-primary { background: #f7fbff; color: #06101d; }
.stage-secondary { border: 1px solid rgba(255,255,255,.3); color: #edf6ff; }
.stage-primary:hover, .stage-secondary:hover { transform: translateY(-2px); }

.stage-workflow, .stage-modes, .stage-example, .stage-membership { padding: clamp(76px, 11vw, 154px) clamp(22px, 7vw, 112px); }
.stage-section-heading, .stage-modes-intro { max-width: 900px; }
.stage-section-heading h2, .stage-modes h2, .stage-example h2, .stage-membership h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.stage-steps { max-width: 1180px; margin: 72px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stage-steps li { display: grid; grid-template-columns: minmax(70px, .28fr) 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.stage-steps li > span { color: #6e8199; font: 750 .82rem/1 ui-monospace, monospace; }
.stage-steps h3 { margin: 0 0 9px; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.stage-steps p, .stage-mode-lines span, .stage-example > p, .stage-membership p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

.stage-modes { background: #f1f5f9; color: #08111d; }
.stage-modes .stage-kicker { color: #1264b0; }
.stage-mode-lines { margin-top: 66px; border-top: 1px solid #b9c6d4; }
.stage-mode-lines article { display: grid; grid-template-columns: .28fr .72fr; gap: 26px; padding: 36px 0; border-bottom: 1px solid #b9c6d4; }
.stage-mode-lines article > p { margin: 5px 0 0; color: #1264b0; font-size: .75rem; font-weight: 850; letter-spacing: .16em; }
.stage-mode-lines h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 3.1rem); letter-spacing: -.04em; }
.stage-mode-lines span { display: block; color: #485869; }

.stage-example { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr); gap: clamp(44px, 9vw, 140px); align-items: end; background: #091321; }
.stage-example > p { padding-left: 30px; border-left: 2px solid var(--blue); }
.stage-membership { display: flex; justify-content: space-between; gap: 44px; align-items: end; background: #0e71c9; }
.stage-membership > div { max-width: 900px; }
.stage-membership .stage-kicker, .stage-membership p { color: #e5f3ff; }
.stage-membership p { margin-top: 24px; }
.stage-membership .stage-primary { flex: 0 0 auto; }

.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px clamp(22px, 6vw, 94px); border-top: 1px solid var(--line); color: #aab7c8; }
.stage-footer p { margin: 0; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  :root { --header: 68px; }
  .stage-header { padding-inline: 18px; }
  .stage-brand span { font-size: .92rem; }
  .stage-header nav a:first-child { display: none; }
  .stage-hero { align-items: end; min-height: 100svh; padding: calc(var(--header) + 26px) 22px 28px; }
  .stage-hero-image { object-position: 68% center; }
  .stage-hero-shade { background: linear-gradient(0deg, #030810 2%, rgba(3,8,16,.92) 42%, rgba(3,8,16,.18) 82%); }
  .stage-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); line-height: .93; }
  .stage-hero-copy > p:not(.stage-kicker) { margin-top: 17px; font-size: .98rem; line-height: 1.48; }
  .stage-kicker { margin-bottom: 13px; }
  .stage-access-line { margin-top: 18px; font-size: .82rem; }
  .stage-actions { margin-top: 20px; }
  .stage-primary, .stage-secondary { min-height: 44px; padding-inline: 16px; font-size: .88rem; }
  .stage-steps li, .stage-mode-lines article, .stage-example { grid-template-columns: 1fr; }
  .stage-steps li { gap: 14px; }
  .stage-example > p { padding: 24px 0 0; border-top: 2px solid var(--blue); border-left: 0; }
  .stage-membership, .stage-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
