/* Thinkonaut marketing — dark, cosmic, restrained (brand colors from app theme) */

:root {
  --bg: #121218;
  --bg-elevated: #1c1c24;
  --text: #f4f4f8;
  --text-muted: #8a8a96;
  --turquoise: #1fc8c8;
  --turquoise-dim: #0f7c7c;
  --purple: #4a2a7a;
  --purple-soft: #6b4f9a;
  --purple-glow: rgba(124, 92, 189, 0.45);
  --purple-edge: rgba(124, 92, 189, 0.22);
  --flare: #ff9a3c;
  --glass: rgba(12, 10, 18, 0.58);
  --glass-border: rgba(255, 255, 255, 0.075);
  --glass-border-purple: rgba(124, 92, 189, 0.18);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max: 1120px;
  --narrow: 720px;
  --header-h: 64px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__glow {
    animation: none;
    opacity: 1;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

/* Nebula background */
.nebula {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.nebula__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.nebula__blob--a {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  background: radial-gradient(circle at 30% 30%, var(--turquoise) 0%, transparent 65%);
  top: -10%;
  right: -15%;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.nebula__blob--b {
  width: min(80vw, 420px);
  height: min(80vw, 420px);
  background: radial-gradient(circle at 50% 50%, var(--purple-soft) 0%, var(--purple) 45%, transparent 72%);
  bottom: 5%;
  left: -20%;
  animation: drift-b 28s ease-in-out infinite alternate;
}

.nebula__blob--c {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  background: radial-gradient(circle at 70% 40%, var(--flare) 0%, transparent 72%);
  opacity: 0.12;
  top: 40%;
  left: 35%;
  animation: drift-c 18s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, -3%) scale(1.06);
  }
}

@keyframes drift-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-2%, 2%);
  }
}

.nebula__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 0%, rgba(10, 10, 14, 0.5) 55%, rgba(10, 10, 14, 0.92) 100%);
  pointer-events: none;
}

.nebula__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 24, 0.76);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 12, 18, 0.88);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(124, 92, 189, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__img {
  width: 200px;
  height: 50px;
  object-fit: cover;
}

.brand__img--sm {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.site-header__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  :root {
    --header-h: 52px;
  }

  .site-header__inner {
    min-height: 0;
    gap: 0.45rem 0.75rem;
    row-gap: 0.35rem;
    padding-block: 0.3rem 0.05rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand__img {
    width: min(170px, 46vw);
    height: auto;
    max-height: 42px;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: left center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0.25rem;
  }

  .nav__list {
    gap: 0.2rem 0.7rem;
    justify-content: center;
  }

  .nav a {
    font-size: 0.8125rem;
  }

  .site-header__cta {
    margin-left: auto;
    gap: 0.35rem;
  }

  .site-header__cta .btn {
    padding: 0.48rem 0.92rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 48px;
  }

  .site-header__inner {
    gap: 0.35rem 0.5rem;
    row-gap: 0.28rem;
    padding-block: 0.2rem 0;
  }

  .brand__img {
    width: min(154px, 50vw);
    max-height: 38px;
  }

  .nav__list {
    gap: 0.15rem 0.55rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .site-header__cta .btn {
    padding: 0.42rem 0.82rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 640px) {
  .nav__item--optional {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header__cta .btn--ghost {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--turquoise) 0%, #17a8a8 100%);
  color: #0a1212;
  box-shadow: 0 4px 24px rgba(31, 200, 200, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(31, 200, 200, 0.45);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--glass-border);
}

.btn--secondary:hover {
  background: rgba(124, 92, 189, 0.12);
  border-color: var(--glass-border-purple);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
}

.section-head h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-top: var(--space-lg);
  padding-bottom: max(var(--space-xl), clamp(5rem, 14vw, 9rem));
}

.hero__glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -20% -10% auto;
  height: min(72vh, 560px);
  background: radial-gradient(ellipse 55% 60% at 35% 40%, rgba(31, 200, 200, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 42% 48% at 72% 28%, rgba(107, 79, 154, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 88% 70%, rgba(74, 42, 122, 0.12) 0%, transparent 50%);
  animation: hero-glow-drift 20s ease-in-out infinite alternate;
}

@keyframes hero-glow-drift {
  from {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate(2%, -1%) scale(1.03);
  }
}

.hero__bug {
  position: absolute;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  pointer-events: none;
  /* Above site header (50), hero copy/mockup (2), and typical overlays */
  z-index: 115;
}

.hero__bug img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(320px, 48vw, 520px);
  height: auto;
  opacity: 0.95;
  filter:
    drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 50px rgba(31, 200, 200, 0.28));
  animation: bugFloat 10s ease-in-out infinite alternate;
}

@keyframes bugFloat {
  from {
    transform: translateY(0) scale(1.02);
  }
  to {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bug img {
    animation: none;
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: min(72vh, 640px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__visual {
  position: relative;
  z-index: 2;
}

.hero__brand-mark {
  margin-bottom: var(--space-md);
}

.hero__onboarding-shot {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: auto;
  max-height: clamp(128px, 30vw, 240px);
  object-fit: contain;
  object-position: left top;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero__visual-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: unset;
  }

  .hero__visual {
    margin-bottom: 80px;
  }

  .hero__bug {
    bottom: -60px;
  }

  .hero__bug img {
    width: clamp(260px, 70vw, 420px);
  }

  .hero__onboarding-shot {
    margin-inline: auto;
    object-position: center top;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__note {
    text-align: center;
  }

  .hero {
    padding-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-sm);
  }
}

.hero__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero__title-accent {
  background: linear-gradient(120deg, var(--text) 0%, var(--turquoise) 45%, #9eeeee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(244, 244, 248, 0.88);
  max-width: 28rem;
}

.hero__lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hero__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Device mockup */
@keyframes recordBreath {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.045);
  }
}

.device-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(360px, 88vw);
  margin-inline: auto;
  padding: 14px;
  padding-bottom: 12px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(124, 92, 189, 0.06) 35%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 28px 96px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(124, 92, 189, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.device-frame__shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(124, 92, 189, 0.04) 100%);
  pointer-events: none;
}

.device-frame__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  background: linear-gradient(165deg, #1e1e26 0%, #14141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.device-frame__ui {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
}

.device-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.device-frame__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  max-height: min(72vh, 720px);
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
  background: #0a0a10;
  --record-glow: rgba(31, 200, 200, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px var(--record-glow);
  transition: box-shadow 2.8s ease;
  animation: recordBreath 10s ease-in-out infinite alternate;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .device-frame__media {
    animation: none;
  }
}

.device-frame__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: saturate(1) brightness(1);
  transition:
    opacity 4s ease,
    filter 3s ease;
}

.device-frame__img.is-visible {
  z-index: 2;
  opacity: 1;
  filter: saturate(1.02) brightness(1.01);
}

.image-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-weight: 500;
  position: relative;
}

.image-caption::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, rgba(31, 200, 200, 0.6), transparent);
  opacity: 0.6;
}

.image-caption--hero {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  justify-content: center;
}

/* Tablet */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 189, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass--strong {
  background: rgba(8, 6, 14, 0.62);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(124, 92, 189, 0.06);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) var(--space-md);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 200, 200, 0.24);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(124, 92, 189, 0.12);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  margin-inline: auto;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(31, 200, 200, 0.12), rgba(124, 92, 189, 0.1));
  color: var(--turquoise);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  width: 100%;
}

.card p {
  margin: 0;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* How it works — horizontal cards */
.section.section--how {
  padding-bottom: calc(var(--space-xl) - 0.75rem);
}

.section--how .section-head {
  margin-bottom: var(--space-lg);
}

.how-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  outline: none;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.how-scroll:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 4px;
}

.how-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.how-cards {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0.35rem max(1rem, calc((100vw - var(--max)) / 2)) var(--space-md);
  width: max-content;
  max-width: 100%;
}

.how-card {
  position: relative;
  flex: 0 0 min(300px, calc(100vw - 3.5rem));
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 4px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 11rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

@media (min-width: 1100px) {
  .how-card {
    flex-basis: clamp(220px, 19vw, 280px);
  }
}

.how-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 200, 200, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.how-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bg);
  background: linear-gradient(145deg, var(--turquoise), var(--turquoise-dim));
  box-shadow: 0 0 0 1px rgba(124, 92, 189, 0.25);
  margin-bottom: 0.15rem;
}

.how-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.how-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.how-card__text strong {
  color: var(--text);
  font-weight: 600;
}

/* Thought → structure → output (example, after personas) */
.section.section--flow {
  text-align: center;
  padding-top: calc(var(--space-lg) + 0.35rem);
  padding-bottom: var(--space-xl);
}

.section--flow .flow-step--capture .flow-step__title,
.section--flow .flow-step--capture .flow-step__text,
.section--flow .flow-multi__item,
.section--flow .flow-step--use .flow-step__title,
.section--flow .flow-step--use .flow-step__text {
  transition: opacity 0.35s ease;
}

.flow-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  padding: var(--space-md) var(--space-md);
  background: rgba(12, 10, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-step--capture {
  max-width: 292px;
}

.flow-step--capture .flow-step__title {
  font-size: clamp(1.0625rem, 2.5vw, 1.2rem);
  line-height: 1.35;
}

.flow-step--multi {
  flex: 1 1 280px;
  max-width: 352px;
  background: rgba(10, 8, 16, 0.62);
  border-color: rgba(124, 92, 189, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(124, 92, 189, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.35);
}

.flow-step--use {
  max-width: 264px;
  padding: calc(var(--space-md) + 0.15rem) var(--space-md);
}

.flow-multi {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.flow-multi__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  text-align: left;
  transition: border-color 0.2s ease;
}

.flow-multi__item h4 {
  font-size: 0.8125rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.flow-multi__item p {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.45;
  color: var(--text-muted);
}

.flow-step__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin: 0 0 0.55rem;
}

.flow-step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.flow-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.flow-arrow {
  align-self: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(138, 138, 150, 0.55);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .flow-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .flow-step {
    width: 100%;
    max-width: min(22rem, 100%);
  }

  .flow-step--multi {
    max-width: min(22.5rem, 100%);
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
    font-size: 0.95rem;
    opacity: 0.65;
  }
}

/* Galaxy section */
.section.section--galaxy {
  padding-top: calc(var(--space-xl) - 0.35rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(74, 42, 122, 0.1) 42%,
    rgba(124, 92, 189, 0.06) 52%,
    transparent 100%
  );
}

.galaxy-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .galaxy-layout {
    grid-template-columns: 1fr;
  }
}

.galaxy-layout__text h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.galaxy-layout__lead {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.galaxy-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.galaxy-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.galaxy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 10px rgba(31, 200, 200, 0.5);
}

.galaxy-points strong {
  color: var(--text);
  font-weight: 600;
}

.galaxy-layout__panel {
  padding: var(--space-md);
  text-align: center;
}

.galaxy-shot {
  margin: 0;
  width: 100%;
}

.galaxy-shot__screen {
  position: relative;
  width: 100%;
  max-width: min(360px, 88vw);
  margin-inline: auto;
  aspect-ratio: 1206 / 2622;
  max-height: min(72vh, 720px);
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  background: #0a0a10;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.galaxy-shot__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.pill:hover {
  border-color: rgba(31, 200, 200, 0.35);
  background: rgba(31, 200, 200, 0.08);
}

/* Personas */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  justify-content: center;
}

.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 200, 200, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.persona-card__title {
  margin: 0 0 0.4rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.persona-card__text {
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.persona-card--wide .persona-card__text {
  max-width: min(48ch, 100%);
}

@media (min-width: 900px) {
  .persona-card--wide {
    grid-column: 1 / -1;
    text-align: center;
    max-width: min(720px, 100%);
    margin-inline: auto;
  }
}

/* Deeper value */
.section--value {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 200, 200, 0.03) 45%, transparent 100%);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.value-tile {
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.value-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.value-tile__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.value-tile__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.value-pullquote {
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  max-width: 38rem;
  text-align: center;
  border: none;
  border-top: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.value-pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.5;
  color: rgba(244, 244, 248, 0.92);
}

/* CTA */
.section--cta {
  padding-bottom: var(--space-2xl);
}

.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-xl);
  max-width: 640px;
  margin-inline: auto;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(124, 92, 189, 0.12);
}

.cta-block h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.cta-block__sub {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.cta-block__fineprint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-block__fineprint a {
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-block__fineprint a:hover {
  color: #9eeeee;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0 calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__meta {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .site-footer__meta {
    width: auto;
    text-align: right;
  }
}
/* ============================= */
/* HERO VISUAL + CAPTION FIX */
/* ============================= */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.hero__visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 340px);
  margin-inline: auto;
}

/* Ensure device frame stays centered and constrained */
.device-frame {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

/* ============================= */
/* STYLIZED IMAGE CAPTION */
/* ============================= */

.image-caption {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-weight: 500;
  position: relative;

  /* CRITICAL: lock width to device frame */
  width: min(100%, 340px);
  max-width: 340px;

  line-height: 1.4;
}

/* Subtle cosmic accent line */
.image-caption::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 200, 200, 0.6),
    transparent
  );
  opacity: 0.6;
}

/* Slightly stronger for hero */
.image-caption--hero {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em;
}

/* ============================= */
/* MOBILE TUNING */
/* ============================= */

@media (max-width: 900px) {
  .hero__visual-stack {
    width: min(100%, 300px);
  }

  .device-frame {
    max-width: 300px;
  }

  .image-caption {
    max-width: 300px;
  }
}