@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: #06090f;
  color: #e8edf5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-dim: #1d4ed8;
  --violet: #7c3aed;
  --teal: #0891b2;
  --green: #22c55e;

  --bg: #06090f;
  --surface: #0e1420;
  --surface2: #131926;
  --surface3: #1a2235;

  --border: rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.10);
  --border-bright: rgba(255,255,255,0.14);

  --text: #e8edf5;
  --text2: #8b9ab5;
  --text3: #4f617a;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 64px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-blue: 0 0 40px rgba(37,99,235,0.2);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- GLOW BACKGROUND ---- */
.glow-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.glow-bg span {
  position: absolute; border-radius: 50%;
  filter: blur(130px); opacity: 0;
  animation: glow-drift 12s ease-in-out infinite alternate;
}
.glow-bg .g1 {
  width: 900px; height: 700px;
  background: #1d4ed8;
  top: -300px; left: -200px; opacity: 0.14;
}
.glow-bg .g2 {
  width: 700px; height: 500px;
  background: #0ea5e9;
  top: 20%; right: -200px; opacity: 0.08;
  animation-delay: -4s;
}
.glow-bg .g3 {
  width: 600px; height: 500px;
  background: #6366f1;
  bottom: 0; left: 30%; opacity: 0.07;
  animation-delay: -8s;
}
@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(20px, -20px); }
}

/* ---- LAYOUT ---- */
.wrap        { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.wrap-narrow { max-width:  860px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section     { padding: clamp(72px, 7vw, 110px) 0; }
.divider     { height: 1px; background: linear-gradient(90deg, transparent, var(--border-mid), transparent); }

/* ---- NAV ---- */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(6,9,15,0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center;
  gap: 6px; width: 100%;
}
.nav-brand {
  display: inline-grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 11px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em; color: #fff;
  flex-shrink: 0; margin-right: 16px;
  line-height: 1; white-space: nowrap;
  text-decoration: none;
}
.nav-brand img {
  width: 34px; height: 34px; border-radius: 9px;
  display: block; grid-column: 1; grid-row: 1;
}
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  padding: 7px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.05); }
.nav-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-signin {
  padding: 7px 15px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text2);
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,0.04);
  transition: all 0.15s;
}
.nav-signin:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--blue); border: none; cursor: pointer;
  box-shadow: 0 0 20px rgba(37,99,235,0.35);
  transition: all 0.15s;
}
.nav-dl:hover {
  background: var(--blue-dim);
  box-shadow: 0 0 28px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}
.nav-dl svg { width: 13px; height: 13px; }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  color: var(--text2); padding: 7px 13px; border-radius: 9px;
  font: 600 13px 'Outfit', sans-serif; cursor: pointer;
  margin-left: auto;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(6,9,15,0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 16px;
  }
  .site-nav.open .nav-links a { padding: 11px 14px; border-radius: 10px; font-size: 15px; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px;
  font: 700 15px 'Outfit', sans-serif; border: none; cursor: pointer;
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 28px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--blue-dim); transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(37,99,235,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--border-mid); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 9px; }

/* ---- TAGS / PILLS ---- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-blue   { background: rgba(37,99,235,0.12);  border: 1px solid rgba(37,99,235,0.25);  color: #60a5fa; }
.tag-violet { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25); color: #a78bfa; }
.tag-teal   { background: rgba(8,145,178,0.12);  border: 1px solid rgba(8,145,178,0.25);  color: #22d3ee; }
.tag-green  { background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.22);  color: #4ade80; }
.tag-amber  { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.22); color: #fbbf24; }

/* ---- TYPOGRAPHY HELPERS ---- */
.eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 14px;
}
.heading-xl {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; letter-spacing: -0.035em;
  color: #fff; line-height: 1.06;
}
.heading-lg {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900; letter-spacing: -0.03em;
  color: #fff; line-height: 1.08;
}
.body-lg { font-size: clamp(15px, 1.2vw, 17px); color: var(--text2); line-height: 1.7; }
.grad-text {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- CARDS ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand span { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.02em; }
.footer-desc { font-size: 14px; color: var(--text3); line-height: 1.65; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--text2); font-weight: 500; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 13px; color: var(--text3); font-weight: 500; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-bright);
  display: grid; place-items: center;
  transition: all 0.15s; color: #fff;
}
.footer-social a:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }
.footer-social svg { width: 15px; height: 15px; fill: #fff; display: block; }

/* ---- FADE ANIMATION ---- */
[data-fade] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-fade].visible { opacity: 1; transform: none; }
[data-fade-d="1"] { transition-delay: 0.07s; }
[data-fade-d="2"] { transition-delay: 0.14s; }
[data-fade-d="3"] { transition-delay: 0.21s; }
[data-fade-d="4"] { transition-delay: 0.28s; }
/* Fallback: if JS fails or observer never fires, show everything after 1s */
@keyframes fade-fallback {
  to { opacity: 1; transform: none; }
}
[data-fade] {
  animation: fade-fallback 0.01s 1.2s forwards;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: clamp(80px, 8vw, 120px) 0 clamp(40px, 4vw, 64px);
  text-align: center;
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --header-h: 56px;
  }

  /* Nav — hide auth slot entirely on mobile, keep just brand + menu + download */
  #authSlot { display: none !important; }
  .nav-dl { padding: 8px 14px; font-size: 13px; }
  .nav-brand { font-size: 15px; }
  .nav-brand img { width: 26px; height: 26px; }

  /* Sections */
  .section { padding: clamp(44px, 7vw, 64px) 0; }
  .page-hero { padding: 48px 0 28px; }

  /* Typography */
  .heading-xl { font-size: clamp(26px, 7vw, 36px); }
  .heading-lg  { font-size: clamp(22px, 6vw, 30px); }
  .body-lg     { font-size: 15px; }

  /* Buttons */
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hide preview on mobile — shows cut off */
  .preview-shell { display: none !important; }

  /* Trust strip */
  .hero-trust { gap: 10px; flex-wrap: wrap; }
  .trust-item { font-size: 12px; }

  /* Cards */
  .card { padding: 18px; }
  .step-card { padding: 20px 18px; }
  .app-card-top { padding: 18px 18px 0; }
  .app-desc { padding: 0 18px; }
  .app-card-foot { padding: 14px 18px 18px; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 20px 14px; }

  /* CTA */
  .cta-card { padding: 36px 20px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .site-footer { padding: 36px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Grids */
  .steps-row { grid-template-columns: 1fr; gap: 10px; }
  .apps-row { grid-template-columns: 1fr; }
  .reviews-row { grid-template-columns: 1fr; }

  /* Changelog */
  .cl-layout { grid-template-columns: 1fr; }
  .cl-sidebar { position: static; }
}

/* ---- TABLET ---- */
@media (max-width: 768px) and (min-width: 601px) {
  .apps-row { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .reviews-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .preview-shell { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}