/* ARMATUS marketing — tokens mirrored from mobile/constants/theme.ts */

:root {
  /* Colors */
  --background: #000000;
  --surface: #1c1c1e;
  --surface-elevated: #2c2c2e;
  --border: #38383a;
  --primary: #ff6b35;
  --primary-deep: #e04a12;
  --primary-soft: #ffb48a;
  --text: #ffffff;
  --text-secondary: #8e8e93;
  --text-tertiary: #48484a;
  --orange-border: rgba(255, 107, 53, 0.35);
  --orange-fill: rgba(255, 107, 53, 0.1);

  /* Spacing (theme Spacing × used as rem rhythm) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --section-y: clamp(4.25rem, 11vw, 8rem);
  --pad: clamp(1.15rem, 4.5vw, 3rem);
  --max: 1120px;
  --gutter: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --pad-left: max(var(--pad), var(--safe-left));
  --pad-right: max(var(--pad), var(--safe-right));
  --phone-rail: 196px;
  --phone-radius: 26px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion — Motion.fast/base/slow */
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 360ms;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1); /* approx Easing.out(cubic) */

  /* System UI — matches app (SF / Roboto / system) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
  scroll-padding-top: calc(64px + var(--safe-top));
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(255, 107, 53, 0.12);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--primary);
  color: #000;
  font-weight: 600;
  font-size: 15px;
}

.skip:focus {
  left: var(--pad-left);
  top: calc(12px + var(--safe-top));
}

/* Ambient page energy — AuthLogoHero-adjacent, orange only */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.34;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.85) 0%, rgba(224, 74, 18, 0.2) 45%, transparent 72%);
  animation: orb-drift 9s ease-in-out infinite;
}

.ambient-orb--a {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: -10%;
  right: -8%;
  animation-duration: 10s;
}

.ambient-orb--b {
  width: min(50vw, 440px);
  height: min(50vw, 440px);
  bottom: 12%;
  left: -12%;
  opacity: 0.28;
  animation-duration: 13s;
  animation-delay: -3s;
}

.ambient-orb--c {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 42%;
  right: 14%;
  opacity: 0.22;
  animation-duration: 11s;
  animation-delay: -6s;
}

.ambient-orb--d {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 18%;
  left: 28%;
  opacity: 0.18;
  animation-duration: 8s;
  animation-delay: -1.5s;
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.22;
  }
  40% {
    transform: translate3d(4%, -5%, 0) scale(1.18);
    opacity: 0.48;
  }
  70% {
    transform: translate3d(-2%, 3%, 0) scale(1.08);
    opacity: 0.32;
  }
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) var(--pad-right) 12px var(--pad-left);
  border-bottom: 1px solid transparent;
  transition:
    background var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}

.topbar.is-solid {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(56, 56, 58, 0.8);
  backdrop-filter: blur(16px);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lang-btn {
  color: var(--text-tertiary);
  padding: 2px 0;
  transition: color var(--motion-fast) var(--ease-out);
}

.lang-btn.is-active {
  color: var(--text);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--primary-soft);
}

.lang-sep {
  color: var(--text-tertiary);
}

.topbar-link {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  transition: opacity var(--motion-fast) var(--ease-out);
}

.topbar-link:hover,
.topbar-link:focus-visible {
  opacity: 0.85;
}

/* Wordmark — app brand caps */
.wordmark {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark--hero {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem); /* ~ title1–largeTitle brand weight */
  letter-spacing: 0.22em;
  line-height: 1.05;
}

.brand-underline {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft), var(--primary-deep));
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.45);
  animation: underline-pulse 2.8s ease-in-out infinite;
}

.brand-underline--center {
  margin-inline: auto;
}

@keyframes underline-pulse {
  0%,
  100% {
    width: 48px;
    background-position: 0% 50%;
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.35);
  }
  50% {
    width: 112px;
    background-position: 100% 50%;
    opacity: 1;
    box-shadow: 0 0 28px rgba(255, 107, 53, 0.75);
  }
}

.wordmark--cta {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.24em;
}

.wordmark--footer {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-secondary);
}

/* LogoHalo port */
.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark img {
  position: relative;
  z-index: 2;
  border-radius: 28%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark--nav {
  width: 28px;
  height: 28px;
}

.logo-mark--nav .logo-ring {
  inset: -6px;
}

.logo-mark--hero {
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-lg);
  animation: logo-pulse 2.2s ease-in-out infinite;
}

.logo-mark--cta {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  animation: logo-pulse 2.2s ease-in-out infinite;
}

.logo-mark--hero .logo-ring {
  inset: -22px;
}

.logo-mark--hero .logo-ring--inner {
  inset: -12px;
}

.logo-mark--cta .logo-ring {
  inset: -16px;
}

.logo-mark--cta .logo-ring--inner {
  inset: -8px;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 107, 53, 0.55);
  pointer-events: none;
  animation: logo-spin 22s linear infinite;
}

.logo-ring--inner {
  border-color: rgba(255, 180, 138, 0.45);
  border-width: 1px;
  animation: logo-spin-rev 14s linear infinite;
}

.logo-core-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.45) 0%, transparent 68%);
  z-index: 1;
  animation: core-glow 2s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes core-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding:
    calc(72px + var(--safe-top) + var(--space-xl))
    var(--pad-right)
    var(--space-xxl)
    var(--pad-left);
  overflow: hidden;
}

.hero-energy,
.cta-energy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-flash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      118deg,
      transparent 18%,
      rgba(255, 107, 53, 0.18) 42%,
      rgba(255, 180, 138, 0.22) 52%,
      rgba(255, 107, 53, 0.12) 62%,
      transparent 82%
    ),
    radial-gradient(
      ellipse 55% 60% at 48% 48%,
      rgba(255, 107, 53, 0.32) 0%,
      rgba(255, 107, 53, 0.08) 40%,
      transparent 72%
    );
  opacity: 0;
  animation: hero-flash 4.2s ease-in-out infinite;
}

@keyframes hero-flash {
  0%,
  28%,
  48%,
  100% {
    opacity: 0;
  }
  32% {
    opacity: 1;
  }
  35% {
    opacity: 0.25;
  }
  38% {
    opacity: 0.85;
  }
  42% {
    opacity: 0.15;
  }
}

.ripple {
  position: absolute;
  left: 22%;
  top: 42%;
  width: min(56vw, 460px);
  height: min(56vw, 460px);
  margin: calc(min(56vw, 460px) / -2) 0 0 calc(min(56vw, 460px) / -2);
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.55);
  box-shadow:
    0 0 30px rgba(255, 107, 53, 0.28),
    inset 0 0 24px rgba(255, 107, 53, 0.08);
  opacity: 0;
  animation: ripple-out 1.55s cubic-bezier(0.16, 0.84, 0.32, 1) infinite;
}

.ripple--2 {
  animation-delay: 0.45s;
}

.ripple--3 {
  left: 72%;
  top: 58%;
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  margin: calc(min(40vw, 300px) / -2) 0 0 calc(min(40vw, 300px) / -2);
  animation-delay: 0.9s;
}

.ripple--4 {
  left: 55%;
  top: 28%;
  width: min(34vw, 240px);
  height: min(34vw, 240px);
  margin: calc(min(34vw, 240px) / -2) 0 0 calc(min(34vw, 240px) / -2);
  border-color: rgba(255, 180, 138, 0.5);
  animation-delay: 1.25s;
}

.cta-energy .ripple {
  left: 50%;
  top: 42%;
}

.cta-energy .ripple--3 {
  left: 62%;
  top: 55%;
}

@keyframes ripple-out {
  0% {
    transform: scale(0.28);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

/* CTA corner bolts */
.bolt {
  position: absolute;
  left: auto;
  right: 12%;
  top: 14%;
  width: clamp(48px, 8vw, 72px);
  height: auto;
  color: var(--primary);
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255, 107, 53, 0.85));
  animation: bolt-flash 3.6s ease-in-out infinite;
}

.bolt--cta {
  animation-delay: 0.2s;
}

.bolt--cta-b {
  right: auto;
  left: 12%;
  top: 22%;
  width: clamp(36px, 6vw, 54px);
  animation: bolt-flash-flip 3.6s ease-in-out 1.4s infinite;
}

.bolt-path {
  fill: rgba(255, 107, 53, 0.22);
  stroke: var(--primary);
}

@keyframes bolt-flash {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: scale(0.88) translateY(6px);
  }
  82% {
    opacity: 0.25;
  }
  86%,
  90% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  93% {
    opacity: 0.3;
  }
}

@keyframes bolt-flash-flip {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: scaleX(-1) scale(0.88) translateY(6px);
  }
  82% {
    opacity: 0.25;
    transform: scaleX(-1) scale(0.95) translateY(2px);
  }
  86%,
  90% {
    opacity: 1;
    transform: scaleX(-1) scale(1.05) translateY(0);
  }
  93% {
    opacity: 0.3;
    transform: scaleX(-1) scale(0.98) translateY(0);
  }
}

/* ========== FULL-BLEED DIAGONAL THUNDER ========== */
.hero-thunder {
  position: absolute;
  inset: -2% -4%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.thunder-strike-flash {
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    118deg,
    transparent 20%,
    rgba(255, 180, 138, 0.2) 40%,
    rgba(255, 107, 53, 0.45) 50%,
    rgba(255, 180, 138, 0.18) 60%,
    transparent 78%
  );
  filter: blur(18px);
  opacity: 0;
  animation: strike-band 4.2s ease-in-out infinite;
}

@keyframes strike-band {
  0%,
  22%,
  52%,
  100% {
    opacity: 0;
  }
  28% {
    opacity: 0.55;
  }
  34% {
    opacity: 0.95;
  }
  38% {
    opacity: 0.2;
  }
  42% {
    opacity: 0.7;
  }
}

.thunder-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.thunder-main,
.thunder-bloom,
.thunder-core,
.thunder-ghost,
.thunder-branch {
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}

.thunder-bloom {
  opacity: 0.55;
  animation: thunder-draw 4.2s cubic-bezier(0.12, 0.82, 0.28, 1) infinite;
}

.thunder-main {
  opacity: 1;
  animation:
    thunder-draw 4.2s cubic-bezier(0.12, 0.82, 0.28, 1) infinite,
    thunder-flicker 4.2s ease-in-out infinite;
}

.thunder-core {
  opacity: 0;
  animation: thunder-core 4.2s ease-in-out infinite;
}

.thunder-ghost {
  opacity: 0;
  animation: thunder-ghost 4.2s ease-in-out infinite;
  animation-delay: 0.12s;
}

.thunder-branch {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0;
  animation: thunder-branch 4.2s ease-in-out infinite;
}

.thunder-branch--1 {
  animation-delay: 0.1s;
}
.thunder-branch--2 {
  animation-delay: 0.18s;
}
.thunder-branch--3 {
  animation-delay: 0.26s;
}
.thunder-branch--4 {
  animation-delay: 0.34s;
}
.thunder-branch--5 {
  animation-delay: 0.42s;
}
.thunder-branch--6 {
  animation-delay: 0.5s;
}

@keyframes thunder-draw {
  0%,
  8% {
    stroke-dashoffset: 2400;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  30% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  44% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  54% {
    stroke-dashoffset: 0;
    opacity: 0.12;
  }
  58%,
  100% {
    stroke-dashoffset: 2400;
    opacity: 0;
  }
}

@keyframes thunder-core {
  0%,
  14% {
    stroke-dashoffset: 2400;
    opacity: 0;
  }
  32% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  48% {
    opacity: 0.25;
  }
  56%,
  100% {
    opacity: 0;
  }
}

@keyframes thunder-ghost {
  0%,
  18% {
    stroke-dashoffset: 2000;
    opacity: 0;
  }
  34% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
  46% {
    opacity: 0.35;
  }
  56%,
  100% {
    opacity: 0;
  }
}

@keyframes thunder-flicker {
  0%,
  30%,
  36%,
  46%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.75));
  }
  33%,
  40% {
    filter: drop-shadow(0 0 36px rgba(255, 180, 138, 1));
  }
}

@keyframes thunder-branch {
  0%,
  20% {
    stroke-dashoffset: 220;
    opacity: 0;
  }
  28% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  44% {
    opacity: 0.95;
  }
  54%,
  100% {
    opacity: 0;
  }
}

.thunder-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe0c8;
  box-shadow:
    0 0 14px #ff6b35,
    0 0 36px rgba(255, 107, 53, 1);
  opacity: 0;
  animation: thunder-spark 4.2s ease-in-out infinite;
}

.thunder-spark--1 {
  left: 8%;
  top: 10%;
  animation-delay: 0.4s;
}
.thunder-spark--2 {
  left: 22%;
  top: 22%;
  animation-delay: 0.65s;
}
.thunder-spark--3 {
  left: 38%;
  top: 36%;
  animation-delay: 0.9s;
}
.thunder-spark--4 {
  left: 52%;
  top: 48%;
  width: 11px;
  height: 11px;
  animation-delay: 1.1s;
}
.thunder-spark--5 {
  left: 68%;
  top: 62%;
  animation-delay: 1.35s;
}
.thunder-spark--6 {
  left: 82%;
  top: 76%;
  animation-delay: 1.55s;
}
.thunder-spark--7 {
  left: 94%;
  top: 88%;
  animation-delay: 1.75s;
}

@keyframes thunder-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.25);
  }
  6% {
    opacity: 1;
    transform: scale(1.8);
  }
  16% {
    opacity: 0.4;
    transform: scale(0.7);
  }
  24% {
    opacity: 1;
    transform: scale(1.35);
  }
  36% {
    opacity: 0;
    transform: scale(0.3);
  }
}

.ember {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow:
    0 0 12px rgba(255, 107, 53, 1),
    0 0 28px rgba(255, 107, 53, 0.55);
  opacity: 0;
  animation: ember-rise 2.4s ease-in-out infinite;
}

.ember--1 {
  left: 14%;
  bottom: 22%;
  animation-delay: 0s;
}
.ember--2 {
  left: 24%;
  bottom: 18%;
  animation-delay: 0.35s;
  width: 3px;
  height: 3px;
}
.ember--3 {
  left: 36%;
  bottom: 26%;
  animation-delay: 0.7s;
}
.ember--4 {
  left: 48%;
  bottom: 16%;
  animation-delay: 1.05s;
  width: 3px;
  height: 3px;
}
.ember--5 {
  left: 62%;
  bottom: 28%;
  animation-delay: 1.4s;
}
.ember--6 {
  left: 74%;
  bottom: 20%;
  animation-delay: 1.75s;
}
.ember--7 {
  left: 86%;
  bottom: 30%;
  animation-delay: 2.05s;
  width: 3px;
  height: 3px;
}
.ember--8 {
  left: 8%;
  bottom: 34%;
  animation-delay: 2.3s;
}

.cta-energy .ember--1 {
  left: 38%;
  bottom: 28%;
}
.cta-energy .ember--3 {
  left: 48%;
  bottom: 24%;
}
.cta-energy .ember--5 {
  left: 58%;
  bottom: 30%;
}
.cta-energy .ember--7 {
  left: 68%;
  bottom: 26%;
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-140px) scale(0.3);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: var(--space-xxl);
  align-items: center;
}

.hero-copy {
  max-width: 32rem;
}

.hero-statement {
  margin: var(--space-lg) 0 0;
  min-height: 4.8em;
  opacity: 0;
  transform: translateY(12px);
  animation: rise var(--motion-slow) var(--ease-out) 220ms forwards;
}

.hero-type {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  position: relative;
}

.hero-line {
  display: block;
  min-height: 1.15em;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.hero-line--b {
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--primary-soft);
  text-shadow: 0 0 28px rgba(255, 107, 53, 0.25);
  transition:
    color 400ms var(--ease-out),
    text-shadow 400ms var(--ease-out),
    transform 400ms var(--ease-out);
}

.hero-line--b.is-lit {
  color: var(--primary);
  text-shadow:
    0 0 18px rgba(255, 107, 53, 0.55),
    0 0 42px rgba(255, 107, 53, 0.35);
  transform: translateX(2px);
}

.hero-statement.is-arming .hero-line--b {
  animation: arm-pulse 1.1s var(--ease-out) 1;
}

@keyframes arm-pulse {
  0% {
    transform: scale(0.98);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.03);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.hero-line--a::after,
.hero-line--b::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  background: transparent;
  vertical-align: -0.08em;
  box-shadow: none;
}

.hero-statement:not(.is-arming):not(.is-typed) .hero-line--a::after,
.hero-statement.is-arming:not(.is-typed) .hero-line--b::after {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.85);
  animation: cursor-blink 0.85s steps(1) infinite;
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-xl);
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-aura {
  position: absolute;
  inset: 8% 12%;
  pointer-events: none;
  z-index: 0;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 40%;
  border: 1.5px solid rgba(255, 107, 53, 0.38);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.12);
  animation: scan-spin 6.5s linear infinite;
}

.scan-ring--b {
  inset: 8%;
  border-color: rgba(255, 180, 138, 0.32);
  animation-duration: 9s;
  animation-direction: reverse;
}

.scan-ring--c {
  inset: -8%;
  border-style: dashed;
  border-color: rgba(255, 107, 53, 0.42);
  animation-duration: 5s;
}

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

.hero-stage .device {
  position: relative;
  z-index: 1;
}

.device--float {
  animation:
    phone-float 4.8s ease-in-out infinite,
    phone-glow 4.2s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-22px) rotate(0.5deg);
  }
}

@keyframes phone-glow {
  0%,
  26%,
  50%,
  100% {
    filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.55));
  }
  32%,
  40% {
    filter:
      drop-shadow(0 0 40px rgba(255, 107, 53, 0.65))
      drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
  }
}

.hero-copy .logo-mark--hero,
.hero-copy .wordmark--hero,
.hero-copy .brand-underline,
.hero-copy .hero-cta {
  opacity: 0;
  transform: translateY(12px);
  animation: rise var(--motion-slow) var(--ease-out) forwards;
}

.hero-copy .logo-mark--hero {
  animation-delay: 40ms;
}
.hero-copy .wordmark--hero {
  animation-delay: 120ms;
}
.hero-copy .brand-underline {
  animation:
    rise var(--motion-slow) var(--ease-out) 160ms forwards,
    underline-pulse 2.8s ease-in-out 520ms infinite;
}
.hero-copy .hero-cta {
  animation-delay: 780ms;
}

.hero-stage .device {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 800ms var(--ease-out) 180ms forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Buttons — GlowButton restraint */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition:
    transform var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.985);
  opacity: 0.9;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8a5a 0%, var(--primary-deep) 100%);
  color: #000;
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.35);
  animation: cta-glow 2s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.92;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 107, 53, 0.15),
      0 8px 24px rgba(224, 74, 18, 0.25);
  }
  50% {
    box-shadow:
      0 0 36px 4px rgba(255, 107, 53, 0.55),
      0 8px 28px rgba(224, 74, 18, 0.4);
  }
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--orange-border);
  color: var(--primary-soft);
}

/* Device frame — quiet, consistent */
.device {
  margin: 0;
  width: min(100%, 260px);
}

.device img {
  width: 100%;
  border-radius: var(--phone-radius);
  border: 1px solid rgba(56, 56, 58, 0.95);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.45);
  /* Screenshots stay native — no color filter */
}

.device figcaption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

.device--solo {
  width: min(100%, 280px);
  margin-inline: auto;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid rgba(56, 56, 58, 0.55);
}

.section--tone {
  background: rgba(28, 28, 30, 0.35);
}

.section--cta {
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad-left) var(--pad-right);
}

.section-head {
  max-width: 36rem;
  margin-bottom: var(--space-xxl);
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reveal.is-in .eyebrow {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(255, 107, 53, 0.25);
  transition: color var(--motion-slow) var(--ease-out), text-shadow var(--motion-slow) var(--ease-out);
}

.section-title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
}

.section-title--impact {
  max-width: 18ch;
  font-size: clamp(28px, 5vw, 40px);
}

.reveal.is-in .section-title,
.reveal.is-in .origin-title,
.reveal.is-in .origin-why-title {
  animation: title-in 700ms var(--ease-out) both;
}

@keyframes title-in {
  from {
    opacity: 0.35;
    letter-spacing: -0.01em;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.025em;
    transform: none;
  }
}

/* Origin / meaning — primary manifesto after hero */
.section--origin {
  position: relative;
  padding-block: calc(var(--section-y) + var(--space-lg));
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 107, 53, 0.12) 0%, transparent 55%),
    rgba(28, 28, 30, 0.45);
  overflow: hidden;
}

.origin {
  display: grid;
  gap: var(--space-xxl);
  max-width: 48rem;
}

.origin-hero {
  max-width: 40rem;
}

.origin-latin {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--primary);
  text-shadow: 0 0 24px rgba(255, 107, 53, 0.4);
}

.origin-title {
  margin: var(--space-md) 0 0;
  max-width: 14ch;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.origin-body {
  margin: var(--space-md) 0 0;
  max-width: 38rem;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
}

.origin-body--lead {
  margin-top: var(--space-lg);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.origin-why {
  max-width: 38rem;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 107, 53, 0.28);
}

.origin-why-title {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

@media (min-width: 900px) {
  .origin {
    max-width: none;
    grid-template-columns: 1.15fr 0.85fr;
    gap: calc(var(--space-xxl) + var(--space-xl));
    align-items: end;
  }

  .origin-why {
    padding-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 107, 53, 0.28);
    padding-left: calc(var(--space-xxl) + var(--space-md));
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}

.section-lead {
  margin: var(--space-md) 0 0;
  max-width: 34rem;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Product loop strip */
.section--loop {
  background:
    linear-gradient(180deg, rgba(255, 107, 53, 0.06) 0%, transparent 70%),
    var(--background);
}

.loop-steps {
  list-style: none;
  margin: var(--space-xxl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.loop-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 107, 53, 0.28);
}

.loop-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.loop-label {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.reveal.is-in .loop-step {
  animation: rise 600ms var(--ease-out) both;
}

.reveal.is-in .loop-step:nth-child(1) { animation-delay: 40ms; }
.reveal.is-in .loop-step:nth-child(2) { animation-delay: 90ms; }
.reveal.is-in .loop-step:nth-child(3) { animation-delay: 140ms; }
.reveal.is-in .loop-step:nth-child(4) { animation-delay: 190ms; }
.reveal.is-in .loop-step:nth-child(5) { animation-delay: 240ms; }

/* Feature bands inside sections */
.feature-phones {
  margin-top: var(--space-xxl);
}

.feature-band {
  display: grid;
  gap: var(--space-xxl);
  margin-top: calc(var(--space-xxl) + var(--space-lg));
  padding-top: calc(var(--space-xxl) + var(--space-md));
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  align-items: center;
}

.feature-band-copy {
  max-width: 34rem;
}

.feature-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.boceto-strip {
  margin-top: calc(var(--space-xxl) + var(--space-md));
}

.plan-arsenal {
  margin-top: calc(var(--space-xxl) + var(--space-lg));
  padding-top: calc(var(--space-xxl) + var(--space-md));
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  display: grid;
  gap: var(--space-xxl);
  align-items: end;
}

.plan-arsenal-list {
  margin-top: var(--space-lg);
}

.plan-arsenal-device {
  margin-inline: 0;
}

@media (min-width: 900px) {
  .plan-arsenal {
    grid-template-columns: 1.25fr 0.75fr;
    gap: calc(var(--space-xxl) + var(--space-md));
  }

  .plan-arsenal-device {
    justify-self: end;
  }
}

.boceto-label {
  margin: 0 0 var(--space-md);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Real-life capabilities — no cards, ruled list */
.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(56, 56, 58, 0.7);
}

.capability-list--compact {
  border-top-color: rgba(255, 107, 53, 0.22);
}

.capability-list li {
  display: grid;
  gap: 6px;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(56, 56, 58, 0.55);
  transition: border-color var(--motion-base) var(--ease-out);
}

.capability-list li:hover {
  border-bottom-color: rgba(255, 107, 53, 0.4);
}

.capability-list strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.capability-list span {
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.reveal.is-in .capability-list li {
  animation: rise 560ms var(--ease-out) both;
}

.reveal.is-in .capability-list li:nth-child(1) { animation-delay: 40ms; }
.reveal.is-in .capability-list li:nth-child(2) { animation-delay: 80ms; }
.reveal.is-in .capability-list li:nth-child(3) { animation-delay: 120ms; }
.reveal.is-in .capability-list li:nth-child(4) { animation-delay: 160ms; }
.reveal.is-in .capability-list li:nth-child(5) { animation-delay: 200ms; }
.reveal.is-in .capability-list li:nth-child(6) { animation-delay: 240ms; }

@media (min-width: 900px) {
  .loop-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .capability-list {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--space-xxl) + var(--space-md));
  }

  .capability-list--compact {
    grid-template-columns: 1fr;
  }

  .feature-band {
    grid-template-columns: 1.05fr 0.95fr;
    gap: calc(var(--space-xxl) + var(--space-md));
  }

  .feature-band--reverse .feature-band-copy {
    order: 2;
  }

  .feature-band--reverse .phones,
  .feature-band--reverse .device--solo {
    order: 1;
  }

  .feature-phones .device {
    width: min(32%, 230px);
  }
}


/* Compare */
.section--compare {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(255, 107, 53, 0.1) 0%, transparent 55%),
    var(--background);
}

.compare {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
  align-items: stretch;
}

.compare-col {
  padding: var(--space-lg) var(--space-md) var(--space-lg) var(--space-lg);
  border-left: 2px solid var(--border);
  transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out);
}

.reveal:not(.is-in) .compare-col {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-in .compare-col {
  opacity: 1;
  transform: none;
}

.reveal.is-in .compare-col:nth-child(1) {
  transition-delay: 80ms;
}

.reveal.is-in .compare-col--accent,
.reveal.is-in .compare-vs {
  transition-delay: 180ms;
}

.reveal:not(.is-in) .compare-vs {
  opacity: 0;
  transform: scale(0.85);
}

.reveal.is-in .compare-vs {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.compare-vs {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(255, 107, 53, 0.45);
}

.compare-vs span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  animation: vs-pulse 2.4s ease-in-out infinite;
}

@keyframes vs-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 22px 2px rgba(255, 107, 53, 0.35);
    transform: scale(1.06);
  }
}

.compare-col--accent {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(28, 28, 30, 0.65) 45%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: inset 12px 0 28px -18px rgba(255, 107, 53, 0.35);
  animation: accent-breathe 3.2s ease-in-out infinite;
}

@keyframes accent-breathe {
  0%,
  100% {
    box-shadow: inset 14px 0 32px -16px rgba(255, 107, 53, 0.28);
    border-left-color: var(--primary-deep);
  }
  50% {
    box-shadow: inset 20px 0 44px -10px rgba(255, 107, 53, 0.65);
    border-left-color: var(--primary-soft);
  }
}

.compare-label {
  margin: 0 0 var(--space-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.compare-col--accent .compare-label {
  color: var(--primary);
}

.compare-body {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

/* Split layouts */
.split {
  display: grid;
  gap: var(--space-xxl);
  align-items: center;
}

.split-copy .section-title {
  max-width: 16ch;
}

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

.phones .device {
  width: min(42%, 240px);
}

.phones--three .device {
  width: min(30%, 200px);
}

/* Tracker */
.tracker-layout {
  display: grid;
  gap: var(--space-xxl);
  align-items: start;
}

.boceto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.boceto {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background);
  transition:
    border-color var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

.boceto:hover,
.boceto:focus-within {
  border-color: rgba(255, 107, 53, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.12);
}

.boceto img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* Desaturate toward app neutrals — not warm hype */
  filter: saturate(0.55) contrast(1.05) brightness(0.92);
  transition: filter var(--motion-base) var(--ease-out), transform 600ms var(--ease-out);
}

.boceto:hover img,
.boceto:focus-within img {
  filter: saturate(0.75) contrast(1.08) brightness(0.98);
  transform: scale(1.03);
}

/* Calibration rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 210px);
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-deep) transparent;
}

.rail .device {
  width: 200px;
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar,
.phones--three::-webkit-scrollbar,
.feature-phones::-webkit-scrollbar,
.feature-band .phones::-webkit-scrollbar,
.loop-steps::-webkit-scrollbar {
  height: 2px;
}

.rail::-webkit-scrollbar-thumb,
.phones--three::-webkit-scrollbar-thumb,
.feature-phones::-webkit-scrollbar-thumb,
.feature-band .phones::-webkit-scrollbar-thumb,
.loop-steps::-webkit-scrollbar-thumb {
  background: var(--primary-deep);
  border-radius: 2px;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--space-xl);
}

.cta-lead {
  margin-inline: auto;
  max-width: 28rem;
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.cta .hero-cta {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(56, 56, 58, 0.55);
  padding:
    var(--space-xl)
    var(--pad-right)
    calc(var(--space-xxl) + var(--safe-bottom))
    var(--pad-left);
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--primary-soft);
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Reveal — FadeInView: ~350ms, Y+16 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
}

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

/* Desktop */
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    align-items: center;
  }

  .hero-stage {
    justify-content: flex-end;
  }

  .hero-stage .device {
    width: min(100%, 320px);
  }

  .compare {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
  }

  .compare-vs {
    display: flex;
  }

  .split {
    grid-template-columns: 0.95fr 1.15fr;
    gap: calc(var(--space-xxl) + var(--space-md));
  }

  .split--reverse {
    grid-template-columns: 1.15fr 0.95fr;
  }

  .split--reverse .split-copy {
    order: 2;
  }

  .split--reverse .split-media {
    order: 1;
  }

  .phones .device {
    width: min(46%, 250px);
  }

  .phones--three .device {
    width: min(32%, 210px);
  }

  .tracker-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-xxl);
    align-items: center;
  }

  .boceto-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

/* ========== Tablet / phone shared ========== */
@media (max-width: 899px) {
  :root {
    --section-y: clamp(3.75rem, 10vw, 5.5rem);
    --phone-rail: min(58vw, 212px);
    --phone-radius: 30px;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    gap: 8px;
  }

  .topbar-actions {
    gap: 12px;
    flex-shrink: 0;
  }

  .topbar-brand {
    min-width: 0;
  }

  .topbar-brand .wordmark {
    letter-spacing: 0.2em;
  }

  .topbar-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 10px 0;
    white-space: nowrap;
  }

  .lang {
    gap: 4px;
  }

  .lang-btn {
    min-width: 28px;
    min-height: 44px;
    padding: 10px 2px;
  }

  .hero {
    min-height: auto;
    padding:
      calc(64px + var(--safe-top) + var(--space-lg))
      var(--pad-right)
      var(--space-xxl)
      var(--pad-left);
  }

  .hero-inner {
    gap: var(--space-xl);
  }

  .hero-copy {
    max-width: none;
  }

  .logo-mark--hero {
    width: 76px;
    height: 76px;
    margin-bottom: var(--space-md);
  }

  .logo-mark--hero .logo-ring {
    inset: -16px;
  }

  .logo-mark--hero .logo-ring--inner {
    inset: -9px;
  }

  .wordmark--hero {
    font-size: clamp(1.9rem, 9.2vw, 2.45rem);
    letter-spacing: 0.16em;
    padding-right: 0.08em; /* optical balance for tracking */
  }

  .brand-underline {
    margin-top: 12px;
  }

  .hero-statement {
    min-height: 4.1em;
    margin-top: var(--space-md);
  }

  .hero-line {
    font-size: clamp(1.3rem, 5.8vw, 1.58rem);
  }

  .hero-line--b {
    font-size: clamp(1.95rem, 8.6vw, 2.4rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: var(--space-lg);
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 54px;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .btn-ghost {
    border-color: rgba(142, 142, 147, 0.55);
    background: rgba(28, 28, 30, 0.35);
  }

  .btn-primary {
    box-shadow:
      0 0 28px rgba(255, 107, 53, 0.35),
      0 10px 28px rgba(224, 74, 18, 0.28);
  }

  .hero-stage {
    margin-top: var(--space-md);
    width: 100%;
  }

  .hero-stage .device {
    width: min(72vw, 292px);
    margin-inline: auto;
  }

  .hero-stage .device img {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.7),
      0 28px 56px rgba(0, 0, 0, 0.55),
      0 0 48px rgba(255, 107, 53, 0.12);
  }

  .device img {
    border-radius: var(--phone-radius);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.65),
      0 22px 44px rgba(0, 0, 0, 0.5),
      0 0 32px rgba(255, 107, 53, 0.08);
  }

  .device-aura {
    inset: 2% 6%;
  }

  .hero-thunder {
    inset: -8% -22%;
    opacity: 0.68;
  }

  .thunder-main {
    stroke-width: 6.5;
  }

  .thunder-bloom {
    stroke-width: 28;
  }

  .thunder-spark--6,
  .thunder-spark--7 {
    display: none;
  }

  .ambient-orb--a,
  .ambient-orb--b,
  .ambient-orb--c,
  .ambient-orb--d {
    filter: blur(48px);
    opacity: 0.2;
  }

  .ambient-orb--c,
  .ambient-orb--d {
    opacity: 0.12;
  }

  .section-title,
  .section-title--impact {
    max-width: 13ch;
    font-size: clamp(1.6rem, 7.4vw, 2.05rem);
    letter-spacing: -0.03em;
  }

  .section-lead,
  .origin-body,
  .origin-body--lead {
    font-size: 16px;
    line-height: 1.55;
    max-width: none;
  }

  .origin-latin {
    font-size: 12px;
  }

  .origin-title {
    max-width: 11ch;
    font-size: clamp(1.9rem, 9.4vw, 2.6rem);
  }

  .origin-why {
    padding-top: var(--space-lg);
  }

  .origin-why-title {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
  }

  .feature-title {
    max-width: 15ch;
    font-size: clamp(1.3rem, 5.8vw, 1.6rem);
  }

  .eyebrow {
    font-size: 11px;
  }

  /* Edge-bleed carousels — snap, peek next phone */
  .loop-steps,
  .phones,
  .phones--three,
  .feature-phones,
  .feature-band .phones,
  .rail {
    margin-right: calc(-1 * var(--pad-right));
    padding-right: var(--pad-right);
    scroll-padding-inline: 0 var(--pad-right);
    scrollbar-width: none;
  }

  .loop-steps::-webkit-scrollbar,
  .phones::-webkit-scrollbar,
  .phones--three::-webkit-scrollbar,
  .feature-phones::-webkit-scrollbar,
  .feature-band .phones::-webkit-scrollbar,
  .rail::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .loop-steps {
    display: flex;
    grid-template-columns: none;
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
  }

  .loop-step {
    flex: 0 0 auto;
    width: 7.5rem;
    min-width: 7.5rem;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    scroll-snap-align: start;
    border-top-width: 2px;
  }

  .loop-label {
    font-size: 17px;
  }

  .loop-num {
    font-size: 10px;
  }

  .compare {
    gap: var(--space-md);
  }

  .compare-col {
    padding: var(--space-md) var(--space-sm) var(--space-md) var(--space-md);
  }

  .compare-col--accent {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .compare-body {
    font-size: 15px;
  }

  .phones,
  .phones--three,
  .feature-phones,
  .feature-band .phones {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 14px;
    padding-bottom: 4px;
  }

  .phones .device,
  .phones--three .device,
  .feature-phones .device,
  .feature-band .phones .device {
    width: var(--phone-rail);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .device--solo {
    width: min(70vw, 288px);
  }

  .feature-band {
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
    padding-top: var(--space-xxl);
  }

  .feature-band .device--solo,
  .feature-band .phones {
    width: 100%;
  }

  .feature-band .device--solo {
    margin-inline: auto;
  }

  .rail {
    grid-auto-columns: var(--phone-rail);
    gap: 14px;
  }

  .rail .device {
    width: var(--phone-rail);
  }

  .plan-arsenal {
    gap: var(--space-xl);
  }

  .plan-arsenal-device {
    margin-inline: auto;
    width: min(70vw, 288px);
  }

  .tracker-layout {
    gap: var(--space-xl);
  }

  .boceto-grid {
    gap: 10px;
  }

  .boceto {
    border-radius: 10px;
  }

  .cta {
    padding-block: var(--space-lg);
  }

  .wordmark--cta {
    letter-spacing: 0.16em;
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .cta-lead {
    font-size: 16px;
    max-width: 28ch;
  }

  .cta .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .cta .hero-cta .btn {
    width: 100%;
    min-height: 54px;
  }

  .footer-nav {
    gap: var(--space-sm) var(--space-md);
    font-size: 14px;
  }

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .boceto:hover,
  .boceto:focus-within {
    transform: none;
    box-shadow: none;
  }

  .boceto:hover img,
  .boceto:focus-within img {
    transform: none;
  }

  .capability-list li:hover {
    border-bottom-color: rgba(56, 56, 58, 0.55);
  }
}

/* ========== Small phones ========== */
@media (max-width: 480px) {
  :root {
    --pad: 1.1rem;
    --phone-rail: min(64vw, 204px);
    --section-y: 3.35rem;
    --phone-radius: 28px;
  }

  .topbar-brand {
    gap: 8px;
  }

  .topbar-brand .wordmark {
    letter-spacing: 0.14em;
    font-size: 10px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-link {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .logo-mark--nav {
    width: 26px;
    height: 26px;
  }

  .hero {
    padding-top: calc(58px + var(--safe-top) + var(--space-md));
    padding-bottom: var(--space-xl);
  }

  .logo-mark--hero {
    width: 70px;
    height: 70px;
  }

  .wordmark--hero {
    letter-spacing: 0.12em;
    font-size: clamp(1.75rem, 10vw, 2.15rem);
  }

  .hero-line--b {
    letter-spacing: -0.045em;
  }

  .hero-stage .device {
    width: min(78vw, 270px);
  }

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

  .section-title,
  .section-title--impact {
    max-width: 12ch;
  }

  .loop-step {
    width: 6.85rem;
    min-width: 6.85rem;
  }

  .capability-list li {
    padding: var(--space-md) 0;
  }

  .capability-list strong {
    font-size: 15px;
  }

  .capability-list span {
    font-size: 14px;
    line-height: 1.45;
  }

  .device figcaption {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .scan-ring--c {
    display: none;
  }

  .ember--5,
  .ember--6,
  .ember--7,
  .ember--8,
  .ripple--3,
  .ripple--4 {
    display: none;
  }

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

/* Prefer less motion intensity on coarse pointers / phones */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .device--float {
    animation-duration: 6.5s, 5s;
  }

  .hero-flash,
  .thunder-strike-flash,
  .thunder-main,
  .thunder-bloom,
  .thunder-core,
  .thunder-ghost,
  .thunder-branch,
  .thunder-spark {
    animation-duration: 5.2s;
  }

  .ambient-orb {
    animation-duration: 14s;
  }

  .btn-primary {
    animation-duration: 2.8s;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .logo-ring,
  .logo-ring--inner,
  .logo-mark--hero,
  .logo-mark--cta,
  .logo-core-glow,
  .brand-underline,
  .ambient-orb,
  .ripple,
  .bolt,
  .ember,
  .scan-ring,
  .btn-primary,
  .device--float,
  .compare-col--accent,
  .thunder-main,
  .thunder-bloom,
  .thunder-core,
  .thunder-ghost,
  .thunder-branch,
  .thunder-spark,
  .thunder-strike-flash,
  .hero-flash,
  .hero-copy .logo-mark--hero,
  .hero-copy .wordmark--hero,
  .hero-copy .hero-cta,
  .hero-statement,
  .hero-stage .device,
  .hero-line--b,
  .compare-vs span,
  .reveal.is-in .section-title,
  .reveal.is-in .origin-title,
  .reveal.is-in .origin-why-title {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-line--a::after,
  .hero-line--b::after {
    display: none !important;
  }

  .bolt,
  .ember,
  .ripple,
  .thunder-spark,
  .thunder-bloom,
  .thunder-core,
  .thunder-ghost,
  .thunder-branch,
  .thunder-strike-flash,
  .hero-flash {
    opacity: 0 !important;
  }

  .thunder-main {
    stroke-dashoffset: 0;
    opacity: 0.45;
  }

  .ambient-orb {
    opacity: 0.12;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active {
    transform: none;
  }

  .reveal.is-in .loop-step,
  .reveal.is-in .capability-list li {
    animation: none !important;
  }
}
