:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-2: #0f1023;
  --surface: rgba(25, 25, 44, 0.78);
  --surface-strong: #18182d;
  --text: #f8fafc;
  --muted: #aab1c6;
  --primary: #7c3aed;
  --secondary: #0891b2;
  --accent: #f43f5e;
  --amber: #f59e0b;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.15), transparent 38%),
    linear-gradient(315deg, rgba(8, 145, 178, 0.12), transparent 42%),
    #07070d;
  content: "";
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 13, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-weight: 900;
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lang-select select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.lang-select option {
  background: #111827;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -3;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.72);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 13, 0.98), rgba(7, 7, 13, 0.58), rgba(7, 7, 13, 0.9)),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.52fr);
  gap: 28px;
  align-items: end;
  width: min(calc(100% - 40px), var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 130px 0 76px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.hero-lead,
.large-copy {
  color: #d9def0;
  font-size: clamp(18px, 2vw, 24px);
  max-width: 720px;
}

.hero-actions,
.form-row,
.resource-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.36);
  color: #fff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.resource-links {
  margin-top: 22px;
}

.resource-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.resource-links a:hover,
.footer-links a:hover,
.resource-links a:focus-visible,
.footer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.signal-panel,
.role-card,
.step-card,
.faq-list,
.newsletter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-panel {
  padding: 22px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #dbeafe;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.8);
}

.metric {
  padding: 24px 0;
}

.metric strong {
  display: block;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
}

.metric span,
.metric-grid span {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-grid strong {
  display: block;
  font-size: 28px;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 28px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-strip span {
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: #e0f2fe;
  font-weight: 800;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  min-height: 360px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.2), rgba(244, 63, 94, 0.12)),
    var(--surface-strong);
}

.role-card img {
  width: 100%;
  height: 188px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.48));
}

.role-card p,
.step-card p,
.story-copy p,
.faq-list p,
.newsletter p {
  color: var(--muted);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.step-number {
  color: var(--amber);
  font-weight: 900;
}

.step-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 16px 0;
  border-radius: 6px;
  object-fit: cover;
  background: #111827;
}

.story-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 48px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(244, 63, 94, 0.16)),
    var(--surface-strong);
}

.quest-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quest-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f172a;
  color: inherit;
  text-decoration: none;
}

.quest-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
  transition: transform 260ms ease, filter 260ms ease;
}

.quest-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(0.85);
}

.quest-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(7, 7, 13, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.faq-list {
  padding: 8px;
}

details {
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  min-height: 64px;
  padding: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

details p {
  max-width: 820px;
  margin: 0;
  padding: 0 20px 20px;
}

.newsletter {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 24px;
  width: min(calc(100% - 40px), var(--max));
  margin: 40px auto 80px;
  padding: 28px;
}

.newsletter h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.newsletter-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input {
  min-width: min(100%, 330px);
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 3px;
}

button {
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  flex-basis: 100%;
  order: 3;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.error-panel {
  width: min(100%, 760px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(244, 63, 94, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.error-panel h1 {
  font-size: clamp(44px, 10vw, 92px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .intro-layout,
  .story-band,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .brand-text {
    display: none;
  }

  .nav-cta {
    padding: 0 10px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-select select {
    width: 58px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .hero-grid {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .section,
  .story-band,
  .newsletter,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .role-grid,
  .quest-cards,
  .feature-strip,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 300px;
  }

  .form-row,
  .button,
  input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
