/* =========================================================================
   Tejas — The nexus of fate and action
   Design system, layout, and motion for the marketing site.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Canvas — warm near-black (Autumn Orchard dark, tuned darker for web) */
  --bg-0: #0b090e;
  --bg-1: #141016;
  --bg-2: #1e1920;
  --bg-3: #27222b;
  --bg-elev: rgba(30, 25, 32, 0.72);

  /* Ink (text on dark canvas) */
  --ink-100: #f4efe6;
  --ink-80: #e2dacc;
  --ink-60: #b8aea0;
  --ink-40: #8a8078;
  --ink-20: #4a4239;

  /* Warm palette accents (plum / copper / sage) tuned for dark canvas */
  --plum: #c26aa8;
  --plum-deep: #8b4a77;
  --copper: #e59a6d;
  --copper-deep: #d48c5e;
  --sage: #a8c5a2;
  --sage-deep: #93ae8f;

  /* Glows / washes */
  --glow-plum: rgba(194, 106, 168, 0.35);
  --glow-copper: rgba(229, 154, 109, 0.32);
  --glow-sage: rgba(168, 197, 162, 0.22);

  /* Borders / dividers */
  --hairline: rgba(244, 239, 230, 0.08);
  --hairline-strong: rgba(244, 239, 230, 0.14);

  /* Motion */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing (4pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type ramp */
  --display-1: clamp(3.5rem, 10vw, 8.5rem);
  --display-2: clamp(2.5rem, 6vw, 5.25rem);
  --display-3: clamp(2rem, 4.5vw, 3.5rem);
  --title: clamp(1.5rem, 2.4vw, 2.25rem);
  --body-lg: clamp(1.0625rem, 1.3vw, 1.25rem);
  --body: 1rem;
  --body-sm: 0.9375rem;
  --caption: 0.8125rem;
  --micro: 0.6875rem;

  /* Page */
  --content-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
}

/* -------------------------------------------------------------------------
   2. Reset + base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink-100);
  font-family: "Geist", "Inter", system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--plum);
  color: var(--bg-0);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Grainy noise overlay — gives the dark canvas a warm editorial tactility */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
.serif {
  font-family: "Fraunces", "Instrument Serif", "Times New Roman", Georgia,
    serif;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.serif-italic {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.kicker {
  font-family: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular",
    Menlo, monospace;
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.kicker::before {
  content: "◆ ";
  color: var(--copper);
  margin-right: 0.35em;
}

.display-1 {
  font-size: var(--display-1);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 350;
}

.display-2 {
  font-size: var(--display-2);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 400;
}

.display-3 {
  font-size: var(--display-3);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.lede {
  font-size: var(--body-lg);
  color: var(--ink-80);
  line-height: 1.55;
  max-width: 56ch;
}

.text-warm {
  color: var(--copper);
}
.text-plum {
  color: var(--plum);
}
.text-sage {
  color: var(--sage);
}
.text-muted {
  color: var(--ink-60);
}

/* Gradient text used on hero one-liner */
.gradient-text {
  background: linear-gradient(
    100deg,
    var(--ink-100) 0%,
    var(--ink-100) 35%,
    var(--copper) 60%,
    var(--plum) 85%,
    var(--ink-100) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-drift 14s linear infinite;
}

@keyframes gradient-drift {
  to {
    background-position: 200% 50%;
  }
}

/* -------------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.section {
  padding-block: clamp(64px, 10vw, 140px);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   5. Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: backdrop-filter 280ms var(--ease-out-quint),
    background 280ms var(--ease-out-quint),
    border-color 280ms var(--ease-out-quint);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(11, 9, 14, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink-100);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.nav__links {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: var(--body-sm);
  color: var(--ink-80);
  transition: color 180ms var(--ease-out-quint);
  position: relative;
  padding: 4px 2px;
}

.nav__link:hover {
  color: var(--ink-100);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--plum));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out-quint);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-100);
  --btn-fg: var(--bg-0);
  --btn-ring: transparent;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--body-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 220ms var(--ease-spring),
    background 220ms var(--ease-out-quint),
    color 220ms var(--ease-out-quint),
    box-shadow 220ms var(--ease-out-quint);
  box-shadow: 0 0 0 1px var(--btn-ring), 0 6px 24px -10px rgba(0, 0, 0, 0.6);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--btn-ring), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-100);
  --btn-ring: var(--hairline-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(244, 239, 230, 0.04);
}

.btn--aurora {
  --btn-fg: var(--ink-100);
  background: linear-gradient(
    135deg,
    var(--plum-deep) 0%,
    var(--plum) 45%,
    var(--copper) 100%
  );
  background-size: 180% 180%;
  animation: aurora-sweep 8s ease-in-out infinite;
}

@keyframes aurora-sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform 260ms var(--ease-out-quint);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Store badges (App Store / Google Play) */
.store-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--ink-100);
  color: var(--bg-0);
  min-width: 188px;
  transition: transform 220ms var(--ease-spring),
    box-shadow 240ms var(--ease-out-quint);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.6);
  will-change: transform;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(194, 106, 168, 0.4);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-badge__copy small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 9, 14, 0.6);
}

.store-badge__copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(920px, 100vh);
  padding-top: calc(var(--nav-h) + clamp(48px, 10vw, 120px));
  padding-bottom: clamp(80px, 12vw, 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__particles,
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__particles {
  opacity: 0.55;
}

/* Aurora blobs — two drifting radial washes behind the hero copy */
.hero__aurora::before,
.hero__aurora::after {
  content: "";
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.hero__aurora::before {
  background: radial-gradient(
    circle at 30% 30%,
    var(--plum) 0%,
    transparent 60%
  );
  top: -30vmax;
  left: -20vmax;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero__aurora::after {
  background: radial-gradient(
    circle at 70% 60%,
    var(--copper) 0%,
    transparent 60%
  );
  bottom: -40vmax;
  right: -30vmax;
  animation: drift-b 28s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(10vmax, 8vmax, 0) scale(1.1);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-12vmax, -6vmax, 0) scale(1.15);
  }
}

.hero__content {
  position: relative;
  max-width: 920px;
  z-index: 2;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(244, 239, 230, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--s-5);
}

.hero__tagline .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 12px var(--copper);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 350;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-size: var(--display-1);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--copper);
}

.hero__sub {
  margin-top: var(--s-5);
  font-size: var(--body-lg);
  color: var(--ink-80);
  max-width: 58ch;
}

.hero__actions {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__meta {
  margin-top: var(--s-5);
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  color: var(--ink-60);
  font-size: var(--caption);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .tick {
  width: 12px;
  height: 12px;
  color: var(--sage);
}

/* -------------------------------------------------------------------------
   8. Marquee
   ------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--s-5);
  overflow: hidden;
  background: rgba(244, 239, 230, 0.015);
}

.marquee__track {
  display: flex;
  gap: var(--s-7);
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee__item {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-80);
  font-style: italic;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--s-7);
}

.marquee__item::after {
  content: "◆";
  color: var(--copper);
  font-style: normal;
  font-size: 0.55em;
  vertical-align: 0.2em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* -------------------------------------------------------------------------
   9. Section header
   ------------------------------------------------------------------------- */
.section-head {
  max-width: 720px;
  margin-bottom: var(--s-8);
}

.section-head .kicker {
  margin-bottom: var(--s-3);
  display: inline-block;
}

.section-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 350;
  font-size: var(--display-2);
  line-height: 1;
  letter-spacing: -0.028em;
}

.section-head h2 em {
  font-style: italic;
  color: var(--copper);
}

.section-head p {
  margin-top: var(--s-4);
  color: var(--ink-80);
  font-size: var(--body-lg);
  max-width: 56ch;
}

/* -------------------------------------------------------------------------
   10. How it works — stepped
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    rgba(244, 239, 230, 0.02),
    rgba(244, 239, 230, 0) 60%
  );
  overflow: hidden;
  transition: border-color 260ms var(--ease-out-quint),
    transform 260ms var(--ease-out-quint);
}

.step:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--copper);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--s-4);
}

.step__title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  line-height: 1.15;
}

.step__body {
  color: var(--ink-60);
  font-size: var(--body-sm);
  line-height: 1.55;
  margin: 0;
}

.step__glow {
  position: absolute;
  right: -40%;
  bottom: -40%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out-quint);
}

.step:hover .step__glow {
  opacity: 0.5;
}

.step--plum .step__glow {
  background: var(--plum);
}
.step--copper .step__glow {
  background: var(--copper);
}
.step--sage .step__glow {
  background: var(--sage);
}

/* -------------------------------------------------------------------------
   11. Bento feature grid
   ------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--s-4);
}

.bento__card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--bg-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-3);
  transition: transform 320ms var(--ease-out-quint),
    border-color 320ms var(--ease-out-quint);
  isolation: isolate;
}

.bento__card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
}

.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(194, 106, 168, 0.14),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease-out-quint);
  pointer-events: none;
  z-index: 0;
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card > * {
  position: relative;
  z-index: 1;
}

.bento__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(194, 106, 168, 0.12);
  color: var(--plum);
  margin-bottom: auto;
}

.bento__icon svg {
  width: 22px;
  height: 22px;
}

.bento__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bento__body {
  margin: 0;
  color: var(--ink-60);
  font-size: var(--body-sm);
  line-height: 1.55;
  max-width: 42ch;
}

/* Span cells */
.bento__card--wide {
  grid-column: span 4;
}
.bento__card--tall {
  grid-row: span 2;
  grid-column: span 2;
}
.bento__card--half {
  grid-column: span 3;
}
.bento__card--third {
  grid-column: span 2;
}

/* Showcase cell (larger with phone/illustration) */
.bento__card--showcase {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 460px;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(194, 106, 168, 0.18),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 90%,
      rgba(229, 154, 109, 0.16),
      transparent 55%
    ),
    var(--bg-1);
  justify-content: space-between;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__card--wide,
  .bento__card--showcase,
  .bento__card--half,
  .bento__card--third,
  .bento__card--tall {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__card--wide,
  .bento__card--showcase,
  .bento__card--half,
  .bento__card--third,
  .bento__card--tall {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------------------
   12. Phone mockup
   ------------------------------------------------------------------------- */
.phone {
  --phone-w: 300px;
  --phone-h: 620px;
  --phone-r: 42px;

  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: var(--phone-r);
  background: linear-gradient(180deg, #1a1520, #0d0a11);
  box-shadow: 0 0 0 2px rgba(244, 239, 230, 0.06),
    0 0 0 8px rgba(11, 9, 14, 0.9),
    0 40px 120px -30px rgba(194, 106, 168, 0.4),
    0 30px 60px -20px rgba(0, 0, 0, 0.5);
  padding: 14px;
  margin-inline: auto;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 400ms var(--ease-out-quint);
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  border-radius: 20px;
  background: #0a080c;
  z-index: 3;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-r) - 10px);
  background: linear-gradient(180deg, #141016 0%, #1e1920 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fake UI rendered inside the phone */
.phone-ui {
  padding: 54px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.phone-ui__greet {
  color: rgba(244, 239, 230, 0.6);
  font-size: 12px;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone-ui__headline {
  font-family: "Fraunces", serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}

.phone-ui__headline em {
  color: var(--copper);
  font-style: italic;
}

.phone-ui__card {
  margin-top: 4px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(194, 106, 168, 0.12),
    rgba(229, 154, 109, 0.05)
  );
  border: 1px solid rgba(244, 239, 230, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-ui__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(229, 154, 109, 0.14);
  color: var(--copper);
  width: max-content;
  font-family: "Geist Mono", monospace;
}

.phone-ui__body {
  font-family: "Fraunces", serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-80);
}

.phone-ui__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.phone-ui__metric {
  padding: 10px;
  border-radius: 12px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid rgba(244, 239, 230, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-ui__metric small {
  font-size: 9px;
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}

.phone-ui__metric strong {
  font-family: "Fraunces", serif;
  font-size: 18px;
  line-height: 1;
}

.phone-ui__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.phone-ui__bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 10px var(--sage);
}

.phone-ui__bar-label {
  font-size: 11px;
  color: var(--ink-60);
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Showcase layout */
.showcase {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-8);
  align-items: center;
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .showcase .phone {
    margin-top: var(--s-7);
  }
}

/* -------------------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-5) 0;
}

.faq__item:first-child {
  border-top: 1px solid var(--hairline);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink-100);
  text-align: left;
  line-height: 1.3;
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-strong);
  transition: transform 280ms var(--ease-out-quint),
    background 280ms var(--ease-out-quint);
  color: var(--ink-80);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--copper);
  color: var(--bg-0);
  border-color: var(--copper);
}

.faq__a {
  margin: var(--s-3) 0 0;
  color: var(--ink-60);
  font-size: var(--body);
  line-height: 1.6;
  max-width: 62ch;
  padding-right: 40px;
}

/* Disable default details marker */
.faq__item summary {
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}

/* -------------------------------------------------------------------------
   14. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
      ellipse at 20% 30%,
      rgba(194, 106, 168, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(229, 154, 109, 0.28),
      transparent 60%
    ),
    linear-gradient(180deg, #1a1620, #120f15);
  border: 1px solid var(--hairline-strong);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--plum),
    var(--copper),
    var(--sage),
    var(--plum)
  );
  opacity: 0.2;
  z-index: -1;
  filter: blur(30px);
  animation: conic-spin 18s linear infinite;
}

@keyframes conic-spin {
  to {
    transform: rotate(360deg);
  }
}

.cta-band h2 {
  margin: 0 auto var(--s-4);
  font-family: "Fraunces", serif;
  font-weight: 350;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.028em;
  max-width: 16ch;
}

.cta-band h2 em {
  font-style: italic;
  color: var(--copper);
}

.cta-band p {
  margin: 0 auto var(--s-6);
  max-width: 52ch;
  color: var(--ink-80);
  font-size: var(--body-lg);
}

.cta-band .store-row {
  justify-content: center;
}

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.footer {
  padding-block: var(--s-8) var(--s-6);
  color: var(--ink-60);
  font-size: var(--caption);
  border-top: 1px solid var(--hairline);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer__about h4,
.footer__col h4 {
  margin: 0 0 var(--s-4);
  color: var(--ink-100);
  font-family: "Geist Mono", monospace;
  font-size: var(--micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer__about p {
  margin: 0 0 var(--s-4);
  max-width: 38ch;
  color: var(--ink-60);
  line-height: 1.55;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  color: var(--ink-80);
  transition: color 180ms var(--ease-out-quint);
}

.footer__col a:hover {
  color: var(--copper);
}

.footer__bottom {
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  gap: var(--s-5);
}

.footer__legal a:hover {
  color: var(--ink-100);
}

/* -------------------------------------------------------------------------
   16. Scroll progress + cursor halo
   ------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--plum), var(--copper), var(--sage));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 106, 168, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 320ms var(--ease-out-quint);
  mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-halo.is-visible {
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------
   17. Scroll-triggered reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out-quint),
    transform 900ms var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal--fade {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__aurora::before,
  .hero__aurora::after,
  .cta-band::before,
  .marquee__track,
  .gradient-text,
  .btn--aurora {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* -------------------------------------------------------------------------
   18. Legal pages (privacy / terms)
   ------------------------------------------------------------------------- */
.legal {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: var(--s-9);
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.legal__header {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--hairline);
}

.legal__header h1 {
  margin: var(--s-3) 0 var(--s-2);
  font-family: "Fraunces", serif;
  font-size: var(--display-3);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1;
}

.legal__meta {
  color: var(--ink-60);
  font-family: "Geist Mono", monospace;
  font-size: var(--caption);
  letter-spacing: 0.08em;
}

.legal h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  font-family: "Fraunces", serif;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink-100);
}

.legal h3 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  font-family: "Geist", sans-serif;
  font-size: var(--body-lg);
  font-weight: 600;
  color: var(--ink-100);
}

.legal p,
.legal li {
  color: var(--ink-80);
  font-size: var(--body);
  line-height: 1.65;
}

.legal ul,
.legal ol {
  padding-left: 1.25em;
  margin-block: var(--s-3);
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--copper);
  border-bottom: 1px solid rgba(229, 154, 109, 0.3);
  transition: color 180ms, border-color 180ms;
}

.legal a:hover {
  color: var(--plum);
  border-bottom-color: var(--plum);
}

.legal__placeholder {
  background: rgba(229, 154, 109, 0.08);
  border: 1px solid rgba(229, 154, 109, 0.2);
  color: var(--copper);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 0.9em;
}

/* -------------------------------------------------------------------------
   19. Utilities
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-mt-0 {
  margin-top: 0;
}
.u-center {
  text-align: center;
}

/* tilt-on-hover helper (JS-driven via CSS vars) */
.tilt {
  will-change: transform;
  transform: perspective(1000px) rotateX(var(--ry, 0deg))
    rotateY(var(--rx, 0deg));
  transition: transform 300ms var(--ease-out-quint);
}
