:root {
  --bg: #020812;
  --bg-deep: #01050b;
  --panel: rgba(4, 16, 29, 0.82);
  --panel-strong: rgba(4, 13, 24, 0.95);
  --text: #f6f8fb;
  --muted: #b8c1ca;
  --gold-1: #fff3ad;
  --gold-2: #f7cb5c;
  --gold-3: #d98b13;
  --blue: #2aa9ff;
  --blue-soft: rgba(42, 169, 255, 0.35);
  --silver: #dbe3eb;
  --line: rgba(44, 170, 255, 0.55);
  --shell: 1120px;
  --radius: 18px;
  --shadow-blue: 0 0 28px rgba(29, 134, 218, 0.18);
  --shadow-gold: 0 0 26px rgba(235, 167, 40, 0.23);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg-deep);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% 8%, rgba(19, 65, 103, 0.18), transparent 26rem),
    linear-gradient(180deg, #03101e 0%, var(--bg) 38%, #01060d 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100% - 28px, var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(1, 6, 13, 0.06) 0%, rgba(1, 7, 14, 0.1) 52%, #03101c 100%),
    url("../assets/visuals/mobile-starfield.webp") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1.9 / 1;
  left: 50%;
  bottom: -5%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(246, 183, 70, 0.34) 0 1%, transparent 4%),
    radial-gradient(ellipse at 50% 24%, rgba(23, 126, 209, 0.34), rgba(7, 38, 68, 0.15) 31%, rgba(0, 0, 0, 0) 54%);
  filter: blur(1px);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 20% 80%, rgba(0, 0, 0, 0.34));
  z-index: -1;
  pointer-events: none;
}

.space-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-moon {
  position: absolute;
  top: -18px;
  right: -82px;
  width: clamp(160px, 45vw, 360px);
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: saturate(0.8) brightness(0.95);
  z-index: 0;
}

.hero-station {
  position: absolute;
  top: 170px;
  right: -102px;
  width: clamp(195px, 46vw, 420px);
  opacity: 0.58;
  filter: brightness(0.72) saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 36%, rgba(0, 0, 0, 0.82) 56%, transparent 88%);
  mask-image: radial-gradient(ellipse at center, #000 36%, rgba(0, 0, 0, 0.82) 56%, transparent 88%);
  z-index: 0;
  animation: station-drift 13s ease-in-out infinite alternate;
}

.hero-inner {
  text-align: center;
  padding-top: calc(30px + env(safe-area-inset-top));
  padding-bottom: 76px;
}

.hero-kicker-row {
  position: absolute;
  inset: 28px 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  color: rgba(233, 239, 247, 0.72);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.28em;
  text-align: left;
}

.hero-kicker-row span:last-child {
  text-align: right;
}

.hero-kicker-row span {
  padding-inline: 10px;
  border-left: 1px solid rgba(244, 189, 76, 0.85);
}

.hero-kicker-row span:last-child {
  border-left: 0;
  border-right: 1px solid rgba(244, 189, 76, 0.85);
}

.brand-logo-hero {
  width: min(72vw, 500px);
  margin: 8px auto 18px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.48));
}

.hero-copy {
  max-width: 820px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold-2);
  font-weight: 800;
  font-size: clamp(13px, 3.5vw, 22px);
  letter-spacing: 0.12em;
}

.hero-equation {
  color: #eef3f8;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(15px, 4.1vw, 28px);
  letter-spacing: 0.045em;
  text-shadow: 0 2px 0 #1d2630, 0 0 14px rgba(255, 255, 255, 0.08);
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  font-family: "Arial Black", "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  line-height: 0.96;
  font-size: clamp(40px, 11vw, 82px);
  letter-spacing: 0.01em;
}

.hero h1 span,
.final-cta h2 span {
  background: linear-gradient(180deg, #fff7bc 0%, #ffd76a 25%, #f0a928 53%, #be6911 76%, #fff1a7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(80, 43, 5, 0.6));
}

.hero-subtitle {
  margin: 13px auto 0;
  max-width: 680px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(16px, 4.6vw, 30px);
  letter-spacing: 0.035em;
  color: #f2f5f8;
}

.hero-support {
  margin: 9px auto 0;
  max-width: 620px;
  color: #d7dee5;
  font-size: clamp(14px, 3.8vw, 20px);
  line-height: 1.5;
}

.cta {
  width: min(100%, 470px);
  min-height: 58px;
  margin: 28px auto 0;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 34px 1fr 26px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 13px;
  font-weight: 900;
  font-size: clamp(14px, 3.8vw, 20px);
  letter-spacing: 0.015em;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.cta-primary {
  color: #111008;
  border: 1px solid #ffe48f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(180deg, #ffe28a 0%, #f3b63f 52%, #d88a14 100%);
  box-shadow:
    inset 0 0 0 1px rgba(126, 72, 8, 0.46),
    inset 0 -5px 10px rgba(111, 62, 0, 0.16),
    0 0 20px rgba(242, 177, 49, 0.4),
    0 10px 34px rgba(0, 0, 0, 0.34);
}

.cta img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%);
}

.cta-arrow {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(126, 72, 8, 0.46),
    0 0 29px rgba(242, 177, 49, 0.57),
    0 14px 36px rgba(0, 0, 0, 0.38);
}

.cta:active {
  transform: translateY(1px) scale(0.995);
}

.micro-tagline {
  margin: 16px 0 0;
  color: rgba(239, 243, 248, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.micro-tagline span {
  color: var(--gold-2);
}

.section-panel,
.results,
.philosophy,
.final-cta {
  position: relative;
}

.section-panel {
  margin-top: -44px;
  z-index: 4;
}

.section-panel .page-shell {
  padding: 28px 12px 24px;
  border: 1px solid rgba(41, 167, 255, 0.54);
  border-radius: 24px 24px 16px 16px;
  background:
    linear-gradient(180deg, rgba(5, 26, 44, 0.89), rgba(2, 11, 21, 0.95)),
    radial-gradient(circle at 50% 0%, rgba(34, 139, 222, 0.15), transparent 44%);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.section-heading {
  text-align: center;
  max-width: 850px;
  margin-inline: auto;
}

.section-heading h2 {
  margin: 4px 0 8px;
  color: #edf2f7;
  font-size: clamp(24px, 6vw, 46px);
  line-height: 1;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 0 #38434c, 0 5px 18px rgba(0, 0, 0, 0.5);
}

.section-heading > p:not(.eyebrow):not(.tracking-copy) {
  margin: 0 auto;
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.fundamental-flow {
  display: grid;
  grid-template-columns: 1fr 16px 1fr 16px 1fr;
  align-items: stretch;
  gap: 3px;
  margin-top: 24px;
}

.feature-card {
  min-width: 0;
  padding: 13px 6px 14px;
  border: 1px solid rgba(38, 170, 255, 0.65);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 151, 226, 0.13), transparent 55%),
    rgba(1, 11, 21, 0.79);
  text-align: center;
  box-shadow: inset 0 0 24px rgba(9, 67, 108, 0.12);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 192, 75, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24), inset 0 0 25px rgba(13, 86, 138, 0.16);
}

.feature-card img {
  width: clamp(42px, 13vw, 72px);
  aspect-ratio: 1;
  margin: 0 auto 4px;
}

.feature-card h3 {
  margin: 0;
  color: #f4f7fa;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(10px, 2.8vw, 17px);
  line-height: 1.1;
}

.feature-card p {
  margin: 5px 0 0;
  color: #c8d0d7;
  font-size: clamp(9px, 2.45vw, 13px);
  line-height: 1.27;
}

.flow-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--gold-2);
  font-size: 22px;
  filter: drop-shadow(0 0 7px rgba(241, 180, 55, 0.35));
}

.naked-chart-note {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.naked-chart-note span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 186, 64, 0.8));
}

.naked-chart-note span:last-child {
  background: linear-gradient(90deg, rgba(244, 186, 64, 0.8), transparent);
}

.naked-chart-note p {
  margin: 0;
  color: #d8dfe5;
  text-align: center;
  font-size: 10px;
  white-space: nowrap;
}

.results {
  padding: 30px 0 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 65, 103, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(1, 7, 14, 0.18), rgba(1, 9, 17, 0.64));
}

.section-heading.compact h2 {
  font-size: clamp(25px, 6.4vw, 50px);
  margin-bottom: 2px;
}

.tracking-copy {
  margin: 0;
  color: #c4cbd2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.chart-slider {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  grid-template-areas:
    "prev stage next"
    ". dots .";
  align-items: center;
  margin-top: 20px;
  outline: none;
}

.chart-slider:focus-visible {
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgba(63, 184, 255, 0.42);
}

.phone-stage {
  grid-area: stage;
  min-width: 0;
  display: grid;
  justify-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: min(76vw, 350px);
  aspect-ratio: 0.68;
  top: 2%;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(26, 143, 225, 0.36), rgba(16, 106, 175, 0.09) 50%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.phone-device {
  position: relative;
  width: min(72vw, 326px);
  aspect-ratio: 390 / 844;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.58));
}

.phone-frame-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 1.8% 3.8%;
  border-radius: 13.4% / 6.4%;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chart-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(7%);
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.7,.2,1);
}

.chart-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.chart-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.slide-caption {
  min-height: 48px;
  margin-top: 10px;
  text-align: center;
  display: grid;
  gap: 2px;
}

.slide-caption strong {
  color: #f6f8fa;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 18px;
}

.slide-caption span {
  color: #c8d0d8;
  font-size: 12px;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid rgba(136, 207, 255, 0.82);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 16, 27, 0.7);
  cursor: pointer;
  box-shadow: 0 0 18px rgba(45, 163, 238, 0.12);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.slider-arrow img {
  width: 100%;
  height: 100%;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: scale(1.06);
  border-color: var(--gold-2);
  background: rgba(12, 37, 56, 0.92);
}

.slider-arrow-prev {
  grid-area: prev;
  justify-self: start;
}

.slider-arrow-next {
  grid-area: next;
  justify-self: end;
}

.slider-dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5c6872;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.slider-dots button.is-active {
  transform: scale(1.16);
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(246, 190, 70, 0.62);
}

.philosophy {
  padding: 10px 0 22px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.philosophy-card {
  min-width: 0;
  padding: 13px 7px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(42, 170, 255, 0.58);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(5, 27, 44, 0.88), rgba(1, 10, 20, 0.94));
  box-shadow: inset 0 0 22px rgba(14, 93, 148, 0.1);
}

.philosophy-card img {
  width: 36px;
  height: 36px;
}

.philosophy-card p {
  margin: 0;
  color: #dbe2e8;
  font-size: clamp(8px, 2.35vw, 13px);
  line-height: 1.25;
}

.philosophy-card strong {
  color: #fff;
}

.final-cta {
  min-height: 360px;
  padding: 48px 0 calc(26px + env(safe-area-inset-bottom));
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(1, 8, 15, 0.04), rgba(1, 5, 10, 0.62) 57%, #010409 100%),
    radial-gradient(circle at 50% 75%, rgba(255, 183, 55, 0.13), transparent 38%);
}

.final-horizon {
  position: absolute;
  z-index: 0;
  width: max(100%, 860px);
  max-width: none;
  left: 50%;
  bottom: -22%;
  transform: translateX(-50%);
  opacity: 0.93;
  -webkit-mask-image: radial-gradient(ellipse at 50% 72%, #000 18%, rgba(0,0,0,.95) 48%, rgba(0,0,0,.58) 68%, transparent 94%);
  mask-image: radial-gradient(ellipse at 50% 72%, #000 18%, rgba(0,0,0,.95) 48%, rgba(0,0,0,.58) 68%, transparent 94%);
}

.final-inner {
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(26px, 7.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: #f3f6f9;
  text-shadow: 0 4px 16px rgba(0,0,0,.68);
}

.final-cta .cta {
  margin-top: 18px;
}

.final-cta footer {
  margin-top: 20px;
  color: rgba(213, 221, 228, 0.45);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes station-drift {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to { transform: translate3d(-10px, 10px, 0) rotate(1deg); }
}

@media (min-width: 430px) {
  .page-shell {
    width: min(100% - 38px, var(--shell));
  }

  .hero {
    min-height: 800px;
  }

  .hero-inner {
    padding-top: 34px;
  }

  .feature-card {
    padding-inline: 10px;
  }

  .naked-chart-note p {
    font-size: 12px;
  }

  .philosophy-card {
    padding: 16px 12px;
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .philosophy-card img {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 900px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .brand-logo-hero {
    margin-top: 2px;
  }

  .hero-kicker-row {
    font-size: 11px;
  }

  .section-panel {
    margin-top: -74px;
  }

  .section-panel .page-shell {
    padding: 38px 34px 34px;
  }

  .section-heading > p:not(.eyebrow):not(.tracking-copy) {
    font-size: 16px;
  }

  .fundamental-flow {
    gap: 16px;
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
  }

  .feature-card {
    padding: 22px 16px;
  }

  .feature-card p {
    line-height: 1.4;
  }

  .results {
    padding-top: 46px;
  }

  .chart-slider {
    max-width: 660px;
    margin-inline: auto;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
  }

  .phone-device {
    width: 330px;
  }

  .slider-arrow {
    width: 46px;
    height: 46px;
  }

  .philosophy-grid {
    gap: 14px;
    max-width: 900px;
  }

  .philosophy-card {
    grid-template-columns: 64px 1fr;
    padding: 18px 18px;
  }

  .philosophy-card img {
    width: 54px;
    height: 54px;
  }

  .philosophy-card p {
    font-size: 15px;
  }

  .final-cta {
    min-height: 470px;
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 880px;
  }

  .hero-moon {
    right: 3%;
  }

  .hero-station {
    right: 1%;
  }

  .hero-kicker-row {
    inset-inline: -35px;
  }

  .section-panel .page-shell {
    max-width: 980px;
  }

  .results .page-shell {
    max-width: 980px;
  }

  .phone-device {
    width: 350px;
  }
}

@media (max-width: 359px) {
  .page-shell {
    width: min(100% - 18px, var(--shell));
  }

  .fundamental-flow {
    grid-template-columns: 1fr 10px 1fr 10px 1fr;
  }

  .flow-arrow {
    font-size: 15px;
  }

  .feature-card {
    padding-inline: 3px;
  }

  .philosophy-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2px;
  }

  .philosophy-card img {
    width: 30px;
    height: 30px;
  }
}

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

/* Mobile vertical rhythm: keep key content close together and avoid dead scroll space. */
@media (max-width: 767px) {
  .results {
    padding-bottom: 8px;
  }

  .philosophy {
    padding: 6px 0 10px;
  }

  .final-cta {
    min-height: 0;
    padding: 24px 0 calc(18px + env(safe-area-inset-bottom));
    align-items: center;
  }

  .final-cta h2 {
    font-size: clamp(25px, 6.8vw, 32px);
    line-height: 1;
  }

  .final-cta .cta {
    margin-top: 14px;
  }

  .final-cta .micro-tagline {
    margin-top: 12px;
  }

  .final-cta footer {
    margin-top: 12px;
  }

  .final-horizon {
    bottom: -8%;
  }
}
