/* ==========================================================================
   Thiago Centurion Apps — design system
   Apple liquid-glass aesthetic · dark aurora theme · zero build step
   ========================================================================== */

:root {
  --bg: #07070b;
  --bg-elev: #0d0d14;
  --text: #f5f4f7;
  --text-dim: rgba(235, 233, 245, 0.62);
  --text-faint: rgba(235, 233, 245, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --brand-1: #a78bfa;
  --brand-2: #fb7185;
  --brand-3: #38bdf8;
  --glass: rgba(22, 22, 32, 0.55);
  --glass-strong: rgba(24, 24, 36, 0.78);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  /* per-app accents get injected as --a1/--a2 on sections */
  --a1: var(--brand-1);
  --a2: var(--brand-2);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

::selection { background: rgba(167, 139, 250, 0.35); }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

/* ---------- background canvas (aurora + grid + noise) ---------- */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(1000px 700px at -10% 25%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(900px 900px at 60% 110%, rgba(251, 113, 133, 0.10), transparent 60%),
    var(--bg);
}

.bg-canvas::after {
  /* faint dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
}

/* Orbs are "pre-blurred" via soft radial-gradient falloff — no filter: blur,
   which is prohibitively expensive to composite at this size on mobile GPUs. */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
  animation: orb-drift 26s var(--ease-out) infinite alternate;
}

.orb-1 { width: 640px; height: 640px; top: -16%; left: 4%;  background: radial-gradient(circle, rgba(124, 92, 255, 0.55) 0%, rgba(124, 92, 255, 0.18) 38%, transparent 68%); }
.orb-2 { width: 580px; height: 580px; top: 20%; right: -10%; background: radial-gradient(circle, rgba(251, 113, 133, 0.45) 0%, rgba(251, 113, 133, 0.15) 38%, transparent 68%); animation-delay: -8s; animation-duration: 32s; }
.orb-3 { width: 680px; height: 680px; bottom: -20%; left: 28%; background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, rgba(56, 189, 248, 0.14) 38%, transparent 68%); animation-delay: -16s; animation-duration: 38s; }

@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(0.95); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  z-index: 120;
  pointer-events: none;
}

/* ---------- liquid glass primitives ---------- */

/* Lightweight glass: translucent layers + inner highlight, NO backdrop-filter.
   Real blur is expensive to composite while scrolling (jank on phones), so it
   is reserved for the few floating chrome surfaces below. */
.glass {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 20px 50px -20px rgba(0, 0, 0, 0.55);
}

/* True liquid glass — floating chrome only (few instances on screen at once) */
.nav.glass,
.support-panel.glass {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.glass-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* cursor spotlight (set via --mx/--my from JS) */
.spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* ---------- navigation ---------- */

.nav-wrap {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 0.65rem 0.55rem 1.05rem;
  border-radius: 999px;
  width: min(880px, 100%);
  justify-content: space-between;
  transition: box-shadow 0.5s ease, background 0.5s ease, transform 0.5s var(--ease-out);
}

.nav.scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 44px -14px rgba(0, 0, 0, 0.7);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: conic-gradient(from 210deg, var(--brand-2), var(--brand-1), var(--brand-3), var(--brand-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 12px -2px rgba(167,139,250,0.5);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  color: #0b0b10;
  background: linear-gradient(120deg, #fff, #d8d5e6);
  box-shadow: 0 6px 18px -6px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 26px -8px rgba(255,255,255,0.45); }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, calc(-50% - 4px));
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}

.nav-burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.6rem 1.4rem;
  border-radius: 16px;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.5s var(--ease-out);
}

.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu a:active { background: rgba(255, 255, 255, 0.08); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + 7.5rem);
  padding-bottom: 3rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline: auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  margin: 1.4rem auto 0;
  max-width: 17ch;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #c4b5fd 0%, #fda4af 45%, #7dd3fc 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 7s ease-in-out infinite alternate;
}

@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* staggered word reveal */
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(2deg);
  animation: word-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}

@keyframes word-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* gradient span animates as one unit: entrance + gradient pan together */
.hero h1 .grad.w {
  animation:
    word-in 0.9s var(--ease-out) forwards,
    grad-pan 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 70ms + 150ms), 0s;
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-dim);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.3rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 0;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.3s ease;
  will-change: transform;
}

.btn-primary {
  color: #0b0b10;
  background: linear-gradient(120deg, #ffffff, #e6e2f5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px -10px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 16px 40px -12px rgba(255,255,255,0.5);
}

.btn-glass {
  color: var(--text);
  border-radius: 999px;
}

.btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }

.btn-accent {
  color: #0b0b10;
  background: linear-gradient(120deg, var(--a1), var(--a2));
  box-shadow: 0 12px 34px -12px color-mix(in srgb, var(--a1) 65%, transparent);
}

.btn-accent:hover { transform: translateY(-2px) scale(1.02); }

.btn:active { transform: scale(0.97); }

/* ---------- app icon rail (marquee) ---------- */

.rail {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  overflow: hidden;
}

.rail-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: rail-scroll 36s linear infinite;
}

.rail:hover .rail-track { animation-play-state: paused; }

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

.rail-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem 0.65rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease;
}

.rail-chip:hover { transform: translateY(-3px) scale(1.04); background: rgba(255,255,255,0.07); }

.rail-chip .app-glyph { width: 40px; height: 40px; border-radius: 12px; }

.rail-chip b { font-size: 0.95rem; font-weight: 700; }
.rail-chip span { font-size: 0.78rem; color: var(--text-faint); display: block; margin-top: -2px; }

/* ---------- app glyph (CSS icon) ---------- */

.app-glyph {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 22.5%;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(145deg, var(--a1), color-mix(in srgb, var(--a2) 80%, #000 20%));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -6px 14px rgba(0, 0, 0, 0.25),
    0 10px 24px -8px color-mix(in srgb, var(--a1) 55%, transparent);
  color: rgba(255, 255, 255, 0.96);
}

.app-glyph svg { width: 55%; height: 55%; }

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: 1.6rem 1rem;
  text-align: center;
  background: var(--bg-elev);
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #b9b2d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat > span { font-size: 0.85rem; color: var(--text-faint); }
.stat b span { font-size: inherit; }

/* ---------- section headers ---------- */

.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(3rem, 7vw, 5rem); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--a1) 80%, #fff 20%);
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent);
}

.section-head h2 {
  margin: 1.1rem 0 0.8rem;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

/* ---------- app showcase sections ---------- */

.showcase {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.showcase::before {
  /* per-app ambient tint */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 480px at var(--tint-x, 82%) 30%,
      color-mix(in srgb, var(--a1) 11%, transparent), transparent 70%);
  pointer-events: none;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.showcase.flip .showcase-inner > .showcase-copy { order: 2; }
.showcase.flip .showcase-inner > .showcase-visual { order: 1; }

.showcase-copy .app-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.showcase-copy .app-glyph { width: 58px; height: 58px; }

.app-head .app-title b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-head .app-title span { font-size: 0.85rem; color: var(--text-faint); }

.badge-soon, .badge-live {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-soon {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-live {
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.showcase-hook {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.showcase-hook em {
  font-style: normal;
  background: linear-gradient(110deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-sub {
  color: var(--text-dim);
  font-size: 1.06rem;
  margin: 0 0 1.8rem;
  max-width: 46ch;
  text-wrap: pretty;
}

.feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.055);
  border-color: color-mix(in srgb, var(--a1) 30%, var(--line));
}

.feature-item .f-ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a1) 16%, transparent);
  color: color-mix(in srgb, var(--a1) 85%, #fff 15%);
}

.feature-item .f-ico svg { width: 17px; height: 17px; }

.feature-item b { display: block; font-size: 0.98rem; letter-spacing: -0.01em; }
.feature-item p { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--text-dim); }

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.platform-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.showcase-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- phone mockup ---------- */

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.visual-orb {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--a1) 34%, transparent) 0%,
    color-mix(in srgb, var(--a1) 12%, transparent) 40%,
    transparent 68%);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: phone-float 7.5s ease-in-out infinite;
}

/* Real App Store marketing frame — already a designed card with its own phone
   mockup inside, so it gets a clean rounded card instead of the CSS phone. */
.store-card {
  position: relative;
  width: min(320px, 80vw);
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 24px 60px -20px color-mix(in srgb, var(--a1) 30%, transparent);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: phone-float 7.5s ease-in-out infinite;
}

.store-card img { width: 100%; display: block; }

@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.phone-frame {
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(160deg, #3a3a44, #17171d 40%, #101016);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(0, 0, 0, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 24px 60px -20px color-mix(in srgb, var(--a1) 30%, transparent);
}

.phone-screen {
  position: relative;
  border-radius: 38px;
  aspect-ratio: 9 / 19.2;
  overflow: hidden;
  background:
    radial-gradient(130% 100% at 85% -5%, color-mix(in srgb, var(--a1) 26%, transparent), transparent 55%),
    radial-gradient(120% 120% at 0% 110%, color-mix(in srgb, var(--a2) 18%, transparent), transparent 55%),
    #0b0b11;
  display: flex;
  flex-direction: column;
  padding: 52px 16px 18px;
  isolation: isolate;
}

.phone-island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 26px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.phone-status {
  position: absolute;
  top: 16px;
  left: 26px; right: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  z-index: 4;
}

/* generic mock building blocks */
.m-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.m-sub   { font-size: 0.7rem; color: var(--text-faint); margin-bottom: 12px; }

.m-card {
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 9px;
  font-size: 0.74rem;
  line-height: 1.4;
}

.m-card b { font-size: 0.78rem; }
.m-card .dim { color: var(--text-faint); }

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--a1) 20%, transparent);
  color: color-mix(in srgb, var(--a1) 70%, #fff 30%);
}

.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ring (Sustain) */
.m-ring-wrap { display: grid; place-items: center; margin: 6px 0 2px; position: relative; }
.m-ring-label { position: absolute; text-align: center; }
.m-ring-label b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.m-ring-label span { font-size: 0.62rem; color: var(--text-faint); }

.m-ring-fg {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: ring-fill 1.8s var(--ease-out) 0.4s forwards;
}

@keyframes ring-fill { to { stroke-dashoffset: 54; } }

/* orb (Anchor) */
.m-orb {
  width: 104px; height: 104px;
  margin: 14px auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.75), transparent 42%),
    radial-gradient(circle at 50% 55%, var(--a1) 0%, color-mix(in srgb, var(--a1) 40%, #2a2440) 62%, transparent 74%);
  box-shadow: 0 0 44px 6px color-mix(in srgb, var(--a1) 45%, transparent);
  animation: orb-pulse 3.2s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px 4px color-mix(in srgb, var(--a1) 40%, transparent); }
  50%      { transform: scale(1.06); box-shadow: 0 0 60px 12px color-mix(in srgb, var(--a1) 55%, transparent); }
}

/* urgency meter (PawVet) */
.m-meter { display: flex; gap: 4px; margin: 8px 0 4px; }
.m-meter i {
  flex: 1; height: 7px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
}
.m-meter i.on-green { background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
.m-meter i.on-amber { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.m-meter i.on-red   { background: #f87171; }

.m-check { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 0.72rem; }
.m-check .tick {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--a1) 30%, transparent);
  color: #fff; font-size: 0.6rem; font-weight: 800;
}

/* curve (GlucoLens) */
.m-curve { margin: 4px 0 2px; }
.m-curve path.line {
  fill: none;
  stroke: url(#curveGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.2s var(--ease-out) 0.4s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.m-pin {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem;
  background: rgba(20, 20, 30, 0.9);
  border: 1.5px solid color-mix(in srgb, var(--a1) 60%, transparent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* wave (PouchDrop) */
.m-wave-window { position: relative; height: 74px; overflow: hidden; border-radius: 14px; margin-top: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.m-wave-track { position: absolute; inset: 0; width: 200%; display: flex; animation: wave-slide 5s linear infinite; }
.m-wave-track svg { width: 50%; height: 100%; flex: none; }

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

.m-timer { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* scoreboard (RallyLog) */
.m-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}

.m-score .vs { font-size: 0.85rem; color: var(--text-faint); font-weight: 600; }

.m-spark { margin-top: 4px; }
.m-spark path {
  fill: none;
  stroke: url(#sparkGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 2s var(--ease-out) 0.5s forwards;
}

/* ---------- promise / values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-card {
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease-out), border-color 0.35s ease;
}

.value-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }

.value-card .v-ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(140deg, rgba(167, 139, 250, 0.22), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: #d8ccff;
}

.value-card .v-ico svg { width: 21px; height: 21px; }

.value-card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; letter-spacing: -0.015em; }
.value-card p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* ---------- support ---------- */

.support-panel {
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.support-panel::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 340deg, rgba(167, 139, 250, 0.25) 355deg, transparent 360deg);
  animation: spin 9s linear infinite;
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(1turn); } }

.support-panel h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.support-panel p { color: var(--text-dim); max-width: 42ch; margin: 0 auto 1.9rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 max(2.5rem, env(safe-area-inset-bottom));
  font-size: 0.9rem;
  color: var(--text-faint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.6rem;
}

.footer h4 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { transition: color 0.25s ease; }
.footer a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease-out) calc(var(--d, 0) * 90ms),
    transform 0.9s var(--ease-out) calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition:
    opacity 1s var(--ease-out) calc(var(--d, 0) * 90ms),
    transform 1s var(--ease-out) calc(var(--d, 0) * 90ms);
}

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

/* ---------- legal pages ---------- */

.legal-main { padding: calc(env(safe-area-inset-top, 0px) + 8rem) 0 5rem; }
.legal-card { border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 3.5rem); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 3rem; }
  .showcase.flip .showcase-inner > .showcase-copy { order: 1; }
  .showcase.flip .showcase-inner > .showcase-visual { order: 2; }
  .showcase::before { --tint-x: 50%; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav { padding-right: 0.55rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 88svh; }
}

@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .btn { width: 100%; }
  .showcase-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; padding-inline: 0.5rem; }
  .orb { opacity: 0.4; }
}

/* hover-only effects stay off touch devices */
@media (hover: none) {
  .spotlight::before { display: none; }
}

/* ---------- reduced motion ---------- */

@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;
  }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .hero h1 .w { opacity: 1; transform: none; }
  .m-ring-fg { stroke-dashoffset: 54; }
  .m-curve path.line, .m-spark path { stroke-dashoffset: 0; }
}
