:root {
  --bg: #08101a;
  --bg-deep: #050912;
  --panel: rgba(12, 19, 30, 0.7);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --muted: rgba(238, 242, 247, 0.68);
  --cyan: #72d4ff;
  --blue: #6a87ff;
  --violet: #8a74ff;
  --lime: #d7ff66;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #09111d 0%, #07101b 45%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(114, 212, 255, 0.16), transparent 25%),
    radial-gradient(circle at 82% 14%, rgba(138, 116, 255, 0.14), transparent 26%),
    radial-gradient(circle at 50% 55%, rgba(215, 255, 102, 0.06), transparent 30%);
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
  pointer-events: none;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.24;
  pointer-events: none;
}

.glow-left {
  top: -6rem;
  left: -7rem;
  background: rgba(114, 212, 255, 0.34);
}

.glow-right {
  top: 6rem;
  right: -8rem;
  background: rgba(138, 116, 255, 0.28);
}

.site-header,
.hero,
.domain-ribbon,
.showcase,
.stack,
.final-cta {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 14px;
}

.brand,
.site-nav a,
.button,
.story-step a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #071019;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lime), #efffb5);
  box-shadow: 0 18px 36px rgba(215, 255, 102, 0.18);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100svh - 88px);
  padding: 28px 0 62px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.showcase-head h2,
.stack-head h2,
.final-cta h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 8vw, 7.8rem);
}

.hero h1 span {
  display: block;
  color: var(--lime);
}

.hero-body {
  max-width: 38rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.hero-body strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  color: #081018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), #f1ffb8);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.hero-stats div {
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.hero-stage {
  position: relative;
}

.hero-browser,
.stage-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%),
    rgba(6, 12, 20, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-browser {
  min-height: 660px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.browser-dots {
  display: inline-flex;
  gap: 8px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.browser-url {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.browser-url-wide {
  min-width: 240px;
}

.hero-switcher {
  display: inline-flex;
  gap: 10px;
  padding: 18px 18px 0;
  flex-wrap: wrap;
}

.switch-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
}

.switch-pill.is-active {
  color: var(--text);
  border-color: rgba(114, 212, 255, 0.28);
  background: rgba(114, 212, 255, 0.12);
}

.hero-screens {
  position: relative;
  min-height: 560px;
  padding: 24px 18px 18px;
}

.hero-screen,
.app-scene {
  position: absolute;
  inset: 24px 18px 18px;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.hero-screen.is-active,
.app-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.screen-shell,
.scene-grid,
.next-panel {
  height: 100%;
}

.screen-shell {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(8, 13, 21, 0.85);
}

.portfolio-screen {
  grid-template-columns: 172px 1fr;
}

.screen-sidebar {
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-title {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar-item {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.sidebar-item.active {
  color: var(--text);
  background: rgba(106, 135, 255, 0.16);
}

.screen-main {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.top-strip,
.feed-row,
.exam-grid,
.intel-layout,
.scene-grid {
  display: grid;
  gap: 16px;
}

.top-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.feed-card,
.proof-panel,
.story-step,
.stack-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card {
  padding: 16px;
}

.metric-card span,
.feed-card span,
.proof-panel span,
.scene-label,
.step-index,
.patient-pill,
.ai-pill,
.intel-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card span,
.proof-panel span,
.scene-label,
.patient-pill,
.intel-kicker {
  color: var(--cyan);
}

.metric-card strong,
.feed-card strong,
.proof-panel strong {
  font-size: 1.12rem;
}

.metric-card.soft {
  background: rgba(215, 255, 102, 0.08);
}

.chart-panel {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(114, 212, 255, 0.06), rgba(255, 255, 255, 0.02));
  background-size: 60px 60px, 60px 60px, auto;
}

.chart-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 150px;
  bottom: 24px;
  border-radius: 999px;
  clip-path: polygon(0% 72%, 10% 64%, 20% 67%, 30% 54%, 40% 58%, 50% 42%, 60% 46%, 70% 32%, 80% 34%, 90% 18%, 100% 10%, 100% 100%, 0% 100%);
}

.chart-green {
  background: linear-gradient(180deg, rgba(215, 255, 102, 0.42), rgba(215, 255, 102, 0));
}

.chart-blue {
  height: 132px;
  bottom: 40px;
  clip-path: polygon(0% 82%, 10% 74%, 20% 76%, 30% 63%, 40% 66%, 50% 56%, 60% 54%, 70% 44%, 80% 40%, 90% 30%, 100% 20%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(114, 212, 255, 0.35), rgba(114, 212, 255, 0));
}

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

.feed-card {
  padding: 16px;
}

.optometry-screen,
.aof-screen {
  padding: 18px;
}

.exam-topbar,
.intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patient-pill,
.ai-pill,
.intel-badge {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  margin: 0;
}

.ai-pill {
  color: #9e8bff;
}

.exam-grid {
  margin-top: 18px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr auto;
}

.exam-summary,
.exam-card,
.exam-lens-card,
.intel-article,
.intel-graph {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.exam-summary {
  padding: 22px;
}

.exam-summary span,
.exam-lens-card span {
  color: var(--cyan);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.exam-summary strong,
.exam-lens-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
}

.exam-summary p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.exam-card {
  padding: 18px;
}

.exam-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exam-row:last-child {
  border-bottom: 0;
}

.exam-row span {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
}

.exam-row strong {
  font-size: 1.06rem;
}

.exam-row em {
  font-style: normal;
  color: var(--lime);
}

.exam-lens-card {
  grid-column: 1 / -1;
  padding: 18px;
  background: linear-gradient(135deg, rgba(106, 135, 255, 0.12), rgba(114, 212, 255, 0.04));
}

.intel-badge {
  color: var(--lime);
  font-size: 0.76rem;
}

.intel-layout {
  margin-top: 18px;
  grid-template-columns: 1fr 0.95fr;
}

.intel-column {
  display: grid;
  gap: 14px;
}

.intel-article {
  padding: 18px;
}

.intel-article.hot {
  background: linear-gradient(135deg, rgba(138, 116, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.intel-article span {
  display: block;
  color: var(--cyan);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.intel-article strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}

.intel-graph {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.graph-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.orbit-a {
  width: 220px;
  height: 220px;
}

.orbit-b {
  width: 132px;
  height: 132px;
}

.graph-core {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #08101a;
  font-weight: 700;
}

.domain-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 72px;
}

.domain-ribbon span {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.showcase {
  padding: 10px 0 72px;
}

.showcase-head,
.stack-head {
  max-width: 64rem;
}

.showcase-head h2,
.stack-head h2,
.final-cta h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.story-column {
  display: grid;
  gap: 18px;
}

.story-step {
  min-height: 70svh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.story-step.is-active {
  transform: translateX(6px);
  border-color: rgba(114, 212, 255, 0.24);
  background: rgba(114, 212, 255, 0.07);
}

.step-index {
  color: var(--cyan);
}

.story-step h3,
.stack-grid h3 {
  margin: 0;
  font-size: 1.8rem;
}

.story-step p,
.stack-grid p,
.proof-panel p {
  color: var(--muted);
  line-height: 1.76;
}

.story-step a,
.step-muted {
  margin-top: 10px;
  color: var(--text);
}

.step-muted {
  color: var(--muted);
}

.visual-column {
  position: relative;
}

.sticky-stage {
  position: sticky;
  top: 20px;
}

.stage-browser {
  min-height: calc(100svh - 40px);
}

.scene-label {
  margin: 0 0 18px;
}

.app-scene {
  padding: 84px 20px 20px;
}

.scene-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, 1fr);
}

.proof-panel {
  border-radius: 22px;
  padding: 20px;
}

.proof-panel.large,
.proof-panel.tall {
  grid-row: span 2;
}

.portfolio-proof .tall,
.optometry-proof .large,
.aof-proof .large {
  background: linear-gradient(180deg, rgba(106, 135, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.chart-proof,
.radar-proof {
  position: relative;
  overflow: hidden;
}

.mini-line {
  position: absolute;
  left: 18px;
  right: 18px;
  border-radius: 999px;
}

.line-one {
  height: 108px;
  bottom: 22px;
  clip-path: polygon(0% 80%, 12% 72%, 24% 74%, 36% 58%, 48% 62%, 60% 46%, 72% 44%, 84% 32%, 100% 16%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(114, 212, 255, 0.35), rgba(114, 212, 255, 0));
}

.line-two {
  height: 96px;
  bottom: 28px;
  clip-path: polygon(0% 90%, 12% 78%, 24% 80%, 36% 74%, 48% 64%, 60% 62%, 72% 48%, 84% 38%, 100% 24%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(215, 255, 102, 0.35), rgba(215, 255, 102, 0));
}

.list-proof {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.list-row span {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.exam-proof {
  background: linear-gradient(180deg, rgba(114, 212, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.exam-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.exam-values div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 10, 16, 0.42);
}

.exam-values em {
  display: block;
  margin-bottom: 10px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.patient-proof,
.report-proof,
.source-proof {
  background: rgba(255, 255, 255, 0.03);
}

.intel-proof {
  background: linear-gradient(180deg, rgba(138, 116, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.radar-proof {
  display: grid;
  place-items: center;
}

.radar-ring,
.radar-dot {
  position: absolute;
  border-radius: 50%;
}

.radar-ring {
  border: 1px solid rgba(114, 212, 255, 0.18);
}

.ring-one {
  width: 160px;
  height: 160px;
}

.ring-two {
  width: 90px;
  height: 90px;
}

.radar-dot {
  width: 14px;
  height: 14px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(215, 255, 102, 0.48);
}

.next-proof {
  grid-template-columns: 1fr;
}

.next-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(215, 255, 102, 0.08), rgba(114, 212, 255, 0.05));
}

.stack {
  padding: 20px 0 72px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.stack-grid article {
  padding: 22px;
  border-radius: 22px;
}

.final-cta {
  padding: 72px 0 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1100px) {
  .hero,
  .showcase-layout,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-browser {
    min-height: 620px;
  }

  .stage-browser,
  .sticky-stage {
    position: relative;
    min-height: auto;
  }

  .stage-browser {
    min-height: 680px;
  }

  .story-step {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 14vw, 5.1rem);
  }

  .hero-stats,
  .top-strip,
  .feed-row,
  .exam-grid,
  .intel-layout,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .hero-browser {
    min-height: 760px;
  }

  .hero-screens {
    min-height: 640px;
  }

  .portfolio-screen {
    grid-template-columns: 1fr;
  }

  .screen-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .story-step,
  .stack-grid article,
  .proof-panel {
    padding: 20px;
  }

  .app-scene {
    padding: 84px 16px 16px;
  }

  .proof-panel.large,
  .proof-panel.tall {
    grid-row: span 1;
  }
}
