:root {
  color-scheme: dark;
  --bg: #030814;
  --bg2: #071326;
  --panel: rgba(7, 18, 34, 0.68);
  --panel-strong: rgba(8, 22, 42, 0.88);
  --line: rgba(135, 245, 255, 0.16);
  --line-strong: rgba(135, 245, 255, 0.38);
  --text: #eef8ff;
  --muted: rgba(238, 248, 255, 0.68);
  --soft: rgba(238, 248, 255, 0.46);
  --navy: #061d3c;
  --navy2: #0b315f;
  --cyan: #1da8e8;
  --cyan-bright: #66f2ff;
  --teal: #14c7be;
  --aqua: #8bf8ff;
  --gold: #e7d9a5;
  --warm: #e8a87c;
  --answer: #e8edf4;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --max: 1180px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html.home-page {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 15% 15%, rgba(20, 199, 190, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(102, 242, 255, 0.10), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(26, 68, 122, 0.38), transparent 45%),
    linear-gradient(135deg, var(--bg), var(--bg2) 58%, #02050b);
  overflow-x: hidden;
}

body[data-page="home"] {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

.site-shell {
  min-height: 100vh;
  position: relative;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.site-shell::before {
  background:
    radial-gradient(circle at 28% 24%, rgba(102,242,255,.08), transparent 18%),
    radial-gradient(circle at 68% 54%, rgba(20,199,190,.075), transparent 22%),
    linear-gradient(115deg, transparent 0 40%, rgba(102,242,255,.035) 49%, transparent 58%);
  mix-blend-mode: screen;
  opacity: .88;
}

.site-shell::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(102,242,255,.024) 89px, transparent 90px),
    repeating-linear-gradient(0deg, transparent 0 88px, rgba(20,199,190,.018) 89px, transparent 90px);
  mask-image: radial-gradient(circle at 48% 45%, black 0 44%, transparent 78%);
  opacity: .5;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.aurora {
  position: fixed;
  inset: -20vh -20vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 45%, rgba(20, 199, 190, .14), transparent 28%),
    radial-gradient(circle at 82% 56%, rgba(102, 242, 255, .11), transparent 26%),
    radial-gradient(circle at 50% 22%, rgba(25, 62, 112, .20), transparent 36%);
  filter: blur(28px);
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.03); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--text);
  background: linear-gradient(180deg, rgba(2, 8, 19, .78), rgba(2, 8, 19, .30), transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(139,248,255,.14), 0 10px 32px rgba(20,199,190,.14);
  transform: translateZ(0);
}

.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.brand-word {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.brand-word .pro {
  color: var(--cyan-bright);
}

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

.nav a,
.sound-toggle,
.mobile-menu-button {
  border: 1px solid rgba(238,248,255,.10);
  color: rgba(238,248,255,.78);
  background: rgba(255,255,255,.035);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .88rem;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}

.nav a:hover,
.sound-toggle:hover,
.mobile-menu-button:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(102,242,255,.38);
  background: rgba(102,242,255,.08);
}

.sound-toggle[data-active="true"] {
  color: #001b22;
  background: linear-gradient(135deg, var(--cyan-bright), var(--teal));
  border-color: transparent;
}

.mobile-menu-button { display: none; }

.hero-experience {
  position: fixed;
  inset: 0;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  overscroll-behavior: none;
}

.field-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 14;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(238, 248, 255, 0.42);
  background: rgba(3, 8, 20, 0.35);
  border: 1px solid rgba(238, 248, 255, 0.06);
  pointer-events: none;
  opacity: 0;
  animation: hintFade 4s ease 2s forwards;
}

@keyframes hintFade {
  to { opacity: 1; }
}

body.has-focused-shot .field-hint { opacity: 0 !important; }

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.shot-field {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

/* ── Field card: compact glass fragment ── */
.shot-card {
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(320px, 78vw);
  padding: 10px 14px 11px 16px;
  border-radius: 12px;
  background: rgba(6, 14, 28, 0.72);
  border: 1px solid rgba(168, 180, 196, 0.12);
  border-left: 2px solid var(--card-accent, var(--cyan));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px) saturate(120%);
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.shot-card::before,
.shot-card::after { display: none; }

.shot-card[data-tone="hero"] { --card-accent: var(--cyan); }
.shot-card[data-tone="challenge"] { --card-accent: var(--warm); }
.shot-card[data-tone="proof"] { --card-accent: var(--teal); }
.shot-card[data-tone="answer"] { --card-accent: var(--answer); }
.shot-card[data-tone="cta"] { --card-accent: var(--gold); }

.shot-card:hover:not(.is-focused) {
  background: rgba(8, 20, 38, 0.82);
  border-color: rgba(168, 180, 196, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.shot-tone {
  display: block;
  margin-bottom: 5px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--card-accent, var(--cyan));
  opacity: .82;
}

.shot-line {
  display: block;
  margin: 0;
  color: rgba(232, 237, 244, 0.88);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.18;
  font-size: clamp(.88rem, 1.1vw, 1.05rem);
  text-wrap: balance;
}

.shot-card[data-weight="4"] .shot-line { font-size: clamp(.92rem, 1.15vw, 1.1rem); }
.shot-card[data-weight="5"] .shot-line { font-size: clamp(.96rem, 1.2vw, 1.14rem); font-weight: 650; }

.shot-headline,
.shot-subtext,
.shot-action {
  display: none;
}

/* ── Focused card: premium panel ── */
.shot-card.is-focused {
  width: min(720px, 88vw);
  max-width: min(720px, 88vw);
  min-height: 180px;
  padding: 28px 32px 30px 28px;
  border-radius: 20px;
  border: 1px solid rgba(168, 180, 196, 0.18);
  border-left: 3px solid var(--card-accent, var(--cyan));
  background:
    linear-gradient(145deg, rgba(8, 20, 38, 0.92), rgba(4, 10, 22, 0.88));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px) saturate(130%);
  cursor: default;
}

.shot-card.is-focused .shot-tone {
  font-size: .68rem;
  margin-bottom: 14px;
  opacity: 1;
}

.shot-card.is-focused .shot-line { display: none; }

.shot-card.is-focused .shot-headline {
  display: block;
  margin: 0;
  color: #f4f8fc;
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.02;
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  text-wrap: balance;
}

.shot-card.is-focused .shot-subtext {
  display: block;
  max-width: 52ch;
  margin: 18px 0 0;
  color: rgba(232, 237, 244, 0.72);
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  font-weight: 400;
}

.shot-card.is-focused .shot-action {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: #00161f;
  background: linear-gradient(135deg, var(--cyan-bright), var(--teal));
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.shot-card.is-focused .shot-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 168, 232, 0.28);
}

.shot-card.is-focused[data-tone="cta"] .shot-action--platforms {
  margin-left: 10px;
  color: rgba(232, 237, 244, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 180, 196, 0.22);
}

.shot-card.is-focused[data-tone="cta"] .shot-action--platforms:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.shot-card.is-culled {
  pointer-events: none;
}

.landing-overlay,
.enter-panel,
.progress-rail,
.scroll-space { display: none !important; height: 0 !important; }

.experience-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102,242,255,.24);
  background: rgba(102,242,255,.07);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(102,242,255,.54); background: rgba(102,242,255,.12); }
.btn.primary { color: #00161f; background: linear-gradient(135deg, var(--cyan-bright), var(--teal)); border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.035); border-color: rgba(238,248,255,.10); color: rgba(238,248,255,.75); }

.seo-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fallback-panel {
  display: none;
  padding: 26px;
  border: 1px solid rgba(238,248,255,.10);
  border-radius: 28px;
  background: rgba(6, 18, 35, .72);
  backdrop-filter: blur(12px);
}

.fallback-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -.045em;
  line-height: .95;
}

.fallback-panel p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.page-main {
  position: relative;
  z-index: 10;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 80px;
}

.page-hero {
  min-height: 58vh;
  display: grid;
  align-items: end;
  padding-bottom: clamp(34px, 8vh, 90px);
}

.eyebrow {
  display: inline-flex;
  color: var(--cyan-bright);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  line-height: .9;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.page-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.36rem);
  line-height: 1.65;
  margin-top: 28px;
}

.page-section {
  border-top: 1px solid rgba(238,248,255,.11);
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) 1fr;
  gap: clamp(26px, 5vw, 80px);
}

.page-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  letter-spacing: -.04em;
}

.page-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.card-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(238,248,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.platform-card h3 {
  margin: 0 0 8px;
  font-size: 1.48rem;
  letter-spacing: -.035em;
}

.platform-card .label {
  color: var(--cyan-bright);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.platform-card p { font-size: .98rem; line-height: 1.65; }

.page-cta {
  margin-top: 34px;
  padding: 32px;
  border-radius: 28px;
  background: radial-gradient(circle at 12% 10%, rgba(102,242,255,.16), transparent 42%), rgba(255,255,255,.045);
  border: 1px solid rgba(102,242,255,.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-cta strong {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  letter-spacing: -.04em;
  line-height: 1.06;
}

.site-footer {
  position: relative;
  z-index: 10;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(238,248,255,.10);
  color: rgba(238,248,255,.52);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .9rem;
}

.focus-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.42) 72%);
  opacity: 0;
  transition: opacity .25s ease;
}

body.has-focused-shot .focus-backdrop {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

@media (max-width: 860px) {
  .site-header { padding: 14px 18px; }
  .brand-word { font-size: .98rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .mobile-menu-button { display: inline-flex; }
  .nav {
    position: fixed;
    top: 68px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(3,8,20,.92);
    border: 1px solid rgba(238,248,255,.11);
    backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a, .sound-toggle { width: 100%; justify-content: center; }
  .shot-card { max-width: min(280px, 74vw); padding: 9px 12px 10px 14px; }
  .shot-card.is-focused {
    width: min(520px, 90vw);
    max-width: min(520px, 90vw);
    min-height: 160px;
    padding: 22px 24px 24px;
    border-radius: 18px;
  }
  .shot-card.is-focused .shot-headline {
    font-size: clamp(1.55rem, 7vw, 2.4rem);
  }
  .page-section { grid-template-columns: 1fr; gap: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .page-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 540px) {
  .shot-line { font-size: clamp(.84rem, 4.2vw, 1rem) !important; }
  .shot-card.is-focused .shot-headline { font-size: clamp(1.45rem, 8.5vw, 2.1rem) !important; }
  .shot-card.is-focused .shot-subtext { font-size: .94rem; }
  .page-main { padding-top: 120px; }
  .page-hero h1 { font-size: clamp(3rem, 17vw, 5.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #scene-canvas, .shot-field, .enter-panel, .progress-rail { display: none !important; }
  .fallback-panel { display: block; }
  .seo-fallback { padding-top: 120px; }
  .scroll-space { height: auto; }
}

body.no-webgl #scene-canvas,
body.no-webgl .shot-field,
body.no-webgl .field-hint { display: none; }
body.no-webgl .fallback-panel { display: block; }
body.no-webgl .seo-fallback {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  height: auto;
  overflow: visible;
  clip: auto;
  margin: 120px auto 80px;
  padding-top: 120px;
  white-space: normal;
}
