/* fitvt.app — design tokens mirrored from the app (src/constants). Dark-first:
   navy backgrounds, one cyan accent, Inter. The logo gradient (amber→emerald→
   cyan) is reserved for hero accents only, like in the app. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0f1c;            /* background.primary */
  --bg-2: #1f293a;          /* background.secondary */
  --surface: #232d3f;       /* background.surface */
  --elevated: #2a3b4f;      /* background.elevated */
  --text: #f8fafc;          /* text.primary */
  --text-2: #b8b3c1;        /* text.secondary */
  --muted: #7a7485;         /* text.muted */
  --cyan: #00ceff;          /* brand.primary */
  --cyan-hover: #5cdbff;
  --teal: #0d9488;          /* training.accent */
  --amber: #f59e0b;         /* logo.amber */
  --emerald: #10b981;       /* logo.emerald */
  --success: #22c55e;
  --border: #2a3441;
  --hairline: rgba(248, 250, 252, 0.08);
  --radius-card: 14px;
  --radius-input: 10px;
  --radius-pill: 20px;
  --logo-gradient: linear-gradient(135deg, var(--amber), var(--emerald), var(--cyan));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

.accent {
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.section-sub { color: var(--text-2); margin: 12px auto 0; max-width: 640px; }
.empty { color: var(--muted); text-align: center; padding: 48px 0 96px; }
.notice {
  background: rgba(0, 206, 255, 0.08);
  border: 1px solid rgba(0, 206, 255, 0.25);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  color: var(--text-2);
  font-size: 14px;
  margin: 16px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-input);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--cyan); color: #04222c; }
.btn-primary:hover { background: var(--cyan-hover); color: #04222c; }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.2px;
  user-select: none;
  -webkit-user-select: none;
}
.nav-logo strong { font-weight: 700; }
.nav-appicon { border-radius: 8px; }
.nav-logo:hover { color: var(--text); }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
/* Compact CTA inside the 64px bar — the full-size .btn reads as a slab next
   to the slim text links and the small language chip. */
.nav-actions .btn { padding: 8px 16px; font-size: 14px; }
.nav-burger { display: none; }

.lang-menu { position: relative; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}
.lang-btn:hover { color: var(--text); border-color: var(--elevated); }
.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  min-width: 72px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.lang-menu.open .lang-list { display: block; }
.lang-list a {
  display: block;
  padding: 9px 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.lang-list a:hover { background: var(--surface); color: var(--text); }
.lang-list a.current { color: var(--cyan); }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-kicker {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub { color: var(--text-2); font-size: 18px; margin: 20px 0 28px; max-width: 480px; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(closest-side, rgba(0, 206, 255, 0.14), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Store badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-input);
  padding: 10px 20px;
  line-height: 1.15;
}
.store-badge:hover { background: #fff; color: var(--bg); }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.store-badge span { font-size: 17px; font-weight: 600; }
.store-badge-soon {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: default;
}
.store-badge-soon span { font-size: 15px; }
.soon-pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
}

/* Phone frame */
.phone {
  position: relative;
  z-index: 1;
  width: 306px;
  padding: 8px;
  background: #05080f;
  border: 1px solid var(--elevated);
  border-radius: 44px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.phone img { display: block; width: 100%; border-radius: 36px; background: var(--bg); }
.phone-sm { width: 266px; border-radius: 40px; }
.phone-sm img { border-radius: 32px; }

/* ---------------------------------------------------------------- Features */
.features { padding: 88px 0 40px; text-align: center; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  text-align: left;
}
.feature-row-reverse .feature-copy { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }
.feature-visual { display: flex; justify-content: center; }
.feature-copy h3 { font-size: 26px; margin: 16px 0 12px; }
.feature-copy p { color: var(--text-2); font-size: 16.5px; max-width: 420px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 80px;
  text-align: left;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.feature-card h3 { font-size: 17px; margin: 14px 0 8px; }
.feature-card p { color: var(--text-2); font-size: 14.5px; }

/* Icon chips (SVGs recolored via mask, like the app's currentColor icons) */
.fico {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
}
.fico::after {
  content: "";
  position: absolute;
  inset: 10px;
  -webkit-mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.fico-cyan { background: rgba(0, 206, 255, 0.12); }
.fico-cyan::after { background: var(--cyan); }
.fico-teal { background: rgba(13, 148, 136, 0.14); }
.fico-teal::after { background: #2dd4bf; }
.fico-amber { background: rgba(245, 158, 11, 0.14); }
.fico-amber::after { background: var(--amber); }

/* ---------------------------------------------------------------- Premium */
.premium { padding: 88px 0; }
.premium-inner { text-align: center; }
/* .compare-zone owns position + spacing; .compare-wrap is ONLY the scroll
   container. Anything with negative insets (the glow) must live in the zone,
   never in the wrap — otherwise the wrap grows permanent scrollbars. */
.compare-zone { position: relative; margin-top: 40px; }
.compare-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.compare-wrap::-webkit-scrollbar { height: 8px; }
.compare-wrap::-webkit-scrollbar-track { background: transparent; }
.compare-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.compare {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--bg-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.compare td:first-child, .compare th:first-child {
  text-align: left;
  color: var(--text-2);
  font-weight: 500;
}
.compare thead th { font-size: 14px; font-weight: 700; color: var(--muted); }
.compare thead th.col-premium { color: var(--cyan); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.col-premium { color: var(--text); font-weight: 600; background: rgba(0, 206, 255, 0.05); }
.premium-cta { margin-top: 26px; color: var(--text-2); font-weight: 600; }

/* ---------------------------------------------------------------- Blog */
.teasers { padding: 40px 0 88px; }
.teasers-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.link-more { font-size: 15px; font-weight: 600; }

.page-head { padding: 72px 0 16px; text-align: center; }
.page-body { padding: 40px 0 96px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
  transition: transform 150ms ease, border-color 150ms ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--border); color: var(--text); }
.post-card > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h3 { font-size: 18px; }
.post-card-body p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 6px;
}
.lang-badge {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* Article */
.article { padding: 64px 0 96px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: var(--text-2); }
.article h1 { font-size: clamp(30px, 5vw, 42px); }
.article-cover { border-radius: var(--radius-card); margin: 24px 0; }

.prose { margin-top: 24px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 24px; color: var(--text); margin: 36px 0 12px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 28px 0 10px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0 14px 24px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14.5px;
}
.prose pre {
  background: var(--surface);
  border-radius: var(--radius-input);
  padding: 16px;
  overflow-x: auto;
  margin: 18px 0;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-input); }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
  margin: 18px 0;
  color: var(--muted);
}

/* Video embeds (lite: thumbnail until click) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-card h3 { margin-top: 14px; font-size: 18px; }
.video-card h3 a { color: var(--text); }
.video-card p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 8px 0;
}
.video-embed iframe, .video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-embed .video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 15, 0.25);
  border: 0;
  cursor: pointer;
}
.video-embed .video-play::after {
  content: "";
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2304222c' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") no-repeat center / 32px;
  transition: transform 150ms ease;
}
.video-embed .video-play:hover::after { transform: scale(1.06); }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  text-align: center;
  padding: 88px 0;
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(0, 206, 255, 0.07), transparent 70%),
    var(--bg);
}
.cta-band .btn, .cta-band .soon-pill { margin-top: 26px; }

/* ---------------------------------------------------------------- Footer */
.footer {
  border-top: 1px solid var(--hairline);
  background: #070b14;
  padding: 56px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid a { display: block; color: var(--text-2); margin: 8px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .nav-logo { margin: 0 0 12px; }
.footer-tagline { color: var(--muted); margin-top: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
}
.footer-langs a { color: var(--muted); margin-left: 12px; font-weight: 600; }
.footer-langs a.current, .footer-langs a:hover { color: var(--text-2); }

.support-legal { margin-top: 32px; font-size: 14px; }
.support-legal a { margin: 0 2px; }

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 24px; }

  .feature-row,
  .feature-row-reverse { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; text-align: center; }
  .feature-row-reverse .feature-copy { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }
  .feature-copy p { margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 48px; }

  .post-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 16px; }
  .nav-cta { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--text-2);
    border-radius: 1px;
  }
}

/* ================================================================ v2 — motion, aurora, glass
   Modern layer: scroll reveals, animated aurora background, glass surfaces,
   gradient borders. Honors prefers-reduced-motion throughout. */

:root {
  --dur-1: 100ms;
  --dur-2: 150ms;
  --dur-3: 250ms;
  --dur-4: 400ms;
  --ease-out-quad: cubic-bezier(0.5, 1, 0.89, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-bg: rgba(35, 45, 63, 0.5);
  --glass-border: rgba(248, 250, 252, 0.1);
}

/* ---- Scroll reveal (JS adds .is-inview) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-4) var(--ease-out-cubic),
              transform var(--dur-4) var(--ease-out-cubic);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal { animation: reveal-failsafe 0.5s ease 1s forwards; }
.reveal.is-inview { animation: none; }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal-l { transform: translateX(-36px); }
.reveal-r { transform: translateX(36px); }
.reveal-l.is-inview, .reveal-r.is-inview { transform: none; }
.reveal-zoom { transform: scale(0.94); }
.reveal-zoom.is-inview { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Aurora background ---- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: aurora-drift 18s var(--ease-out-quad) infinite alternate;
}
.aurora span:nth-child(1) {
  width: 44vw; height: 44vw;
  top: -18%; left: -10%;
  background: radial-gradient(circle, rgba(0, 206, 255, 0.35), transparent 65%);
}
.aurora span:nth-child(2) {
  width: 36vw; height: 36vw;
  top: -8%; right: -12%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 65%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.aurora span:nth-child(3) {
  width: 40vw; height: 40vw;
  bottom: -25%; left: 30%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 65%);
  animation-delay: -11s;
  animation-duration: 26s;
}
@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vh) scale(1.15); }
}

/* ---- Glass surface ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

/* ---- Gradient border card ---- */
.grad-border {
  position: relative;
  border-radius: calc(var(--radius-card) + 2px);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(135deg, rgba(0,206,255,0.5), rgba(16,185,129,0.25), rgba(245,158,11,0.35)) border-box;
  border: 1px solid transparent;
}
.grad-border:hover {
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(135deg, rgba(0,206,255,0.85), rgba(16,185,129,0.45), rgba(245,158,11,0.6)) border-box;
}

/* ---- Hero v2 ---- */
.hero-v2 { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-v2 .container { position: relative; z-index: 1; }
.hero-title-xl {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-title-xl .accent {
  background-size: 200% 200%;
  animation: gradient-slide 6s ease infinite;
}
@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Phone float + tilt */
.phone-float { animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}
.hero-visual-v2 { perspective: 1200px; }
.hero-visual-v2 .phone {
  transition: transform var(--dur-4) var(--ease-out-cubic);
  transform-style: preserve-3d;
}

/* ---- Marquee ---- */

/* ---- Section headings v2 ---- */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-tag::before { content: "— "; color: var(--muted); }

/* ---- Feature rows v2: sticky-ish stagger ---- */
.feature-row-v2 { position: relative; }
.feature-row-v2 .feature-copy { position: relative; z-index: 1; }
.feature-number {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

/* ---- Bento grid ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.bento .feature-card { grid-column: span 2; }
.bento .feature-card:nth-child(4),
.bento .feature-card:nth-child(5) { grid-column: span 3; }
.feature-card {
  transition: transform var(--dur-3) var(--ease-out-cubic),
              border-color var(--dur-3) var(--ease-out-cubic),
              box-shadow var(--dur-3) var(--ease-out-cubic);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* ---- Compare table v2 ---- */
.compare { transition: box-shadow var(--dur-3) var(--ease-out-cubic); }
.compare .col-premium { position: relative; }
.premium-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(0, 206, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Video card v2 ---- */
.video-card .video-embed { transition: transform var(--dur-3) var(--ease-out-cubic), box-shadow var(--dur-3) var(--ease-out-cubic); }
.video-card:hover .video-embed { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.video-card .video-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,206,255,0.4), transparent 40%, rgba(245,158,11,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out-cubic);
  pointer-events: none;
  z-index: 2;
}
.video-card:hover .video-embed::before { opacity: 1; }

/* ---- Page head v2 ---- */
.page-head-v2 {
  position: relative;
  padding: 88px 0 32px;
  text-align: center;
  overflow: hidden;
}
.page-head-v2 .container { position: relative; z-index: 1; }
.page-head-v2 h1 { font-size: clamp(34px, 5.5vw, 54px); letter-spacing: -0.03em; }

/* ---- Post card v2 ---- */
.post-card { position: relative; }
.post-card > img { transition: transform var(--dur-4) var(--ease-out-cubic), opacity var(--dur-3); }
.post-card:hover > img { transform: scale(1.03); }
.post-card { overflow: hidden; }

/* ---- CTA band v2 ---- */
.cta-band-v2 {
  position: relative;
  text-align: center;
  padding: 104px 0;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.cta-band-v2 .container { position: relative; z-index: 1; }
.cta-band-v2 h2 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; }

/* ---- Buttons v2 ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease-out-quad);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn { transition: background var(--dur-2) var(--ease-out-quad), color var(--dur-2) var(--ease-out-quad), transform var(--dur-2) var(--ease-out-quad), box-shadow var(--dur-2) var(--ease-out-quad); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--elevated); color: var(--text); background: rgba(248,250,252,0.03); }

/* ---- Nav v2 ---- */
.nav { transition: background var(--dur-3), border-color var(--dur-3), box-shadow var(--dur-3); }
.nav.is-scrolled {
  background: rgba(10, 15, 28, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: var(--border);
}
.nav-links a { position: relative; transition: color var(--dur-2); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: right var(--dur-3) var(--ease-out-cubic);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

/* ---- Store badge v2 ---- */
.store-badge { transition: transform var(--dur-2) var(--ease-out-quad), box-shadow var(--dur-2) var(--ease-out-quad), background var(--dur-2); }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }

/* ---- Stats strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}
.stat-cell {
  text-align: center;
  padding: 28px 16px;
}
.stat-value {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 500; }

/* ---- Mobile v2 ---- */
@media (max-width: 880px) {
  .hero-v2 { padding: 56px 0 48px; }
  .bento { grid-template-columns: 1fr; }
  .bento .feature-card,
  .bento .feature-card:nth-child(4),
  .bento .feature-card:nth-child(5) { grid-column: auto; }
  .stats-strip { grid-template-columns: 1fr; gap: 8px; }
  .aurora span { filter: blur(60px); }
}
