/* ============================================================
   OUTSTRIP — AI Growth Operating System
   Design system: tokens, base, nav, footer, buttons, utilities
   ============================================================ */

:root {
  /* — Brand violet — */
  --violet-50:  #F4F2FE;
  --violet-100: #EAE6FD;
  --violet-200: #D8CFFB;
  --violet-300: #BCACF6;
  --violet-400: #9C86F2;
  --violet-500: #7C6CF0;  /* primary */
  --violet-600: #6A55E8;
  --violet-700: #5840D6;
  --violet-800: #44329F;
  --violet-900: #271B5E;

  /* — Premium orange — */
  --orange-300: #FFB088;
  --orange-400: #FF8A4C;
  --orange-500: #FF6B35;  /* accent */
  --orange-600: #F1531B;

  /* — Signal greens / amber for product UI — */
  --green-500: #1F9D6B;
  --green-50:  #E7F6EF;
  --amber-500: #E0922A;
  --amber-50:  #FBF1DF;
  --rose-500:  #E5484D;
  --rose-50:   #FCECEC;

  /* — Neutrals (warm, faint violet) — */
  --ink-950: #0B0B10;
  --ink-900: #101017;
  --ink-850: #16161F;
  --ink-800: #1D1D28;
  --ink-700: #2A2A37;
  --ink-600: #454555;
  --ink-500: #5E5E70;
  --ink-400: #84849A;
  --ink-300: #A9A9BC;
  --ink-200: #D6D4E2;

  --paper:   #FBFAFE;
  --paper-2: #F4F2FA;
  --paper-3: #ECEAF6;
  --card:    #FFFFFF;
  --line:    #EAE7F3;
  --line-2:  #E0DCEE;

  /* dark surfaces */
  --d-bg:    #0B0B11;
  --d-bg-2:  #111119;
  --d-card:  #16161F;
  --d-card-2:#1C1C28;
  --d-line:  rgba(255,255,255,.08);
  --d-line-2:rgba(255,255,255,.13);
  --d-ink:   #ECEAF6;
  --d-ink-2: #A7A6BC;
  --d-ink-3: #6F6E86;

  /* — Type — */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* — Radius — */
  --r-xs: 8px;
  --r-sm: 11px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl:40px;

  /* — Shadow (violet-tinted, premium) — */
  --sh-xs: 0 1px 2px rgba(39,27,94,.05);
  --sh-sm: 0 1px 2px rgba(39,27,94,.05), 0 2px 6px rgba(39,27,94,.05);
  --sh-md: 0 6px 16px rgba(39,27,94,.07), 0 14px 36px rgba(39,27,94,.07);
  --sh-lg: 0 12px 28px rgba(39,27,94,.10), 0 30px 64px rgba(39,27,94,.12);
  --sh-xl: 0 24px 50px rgba(39,27,94,.14), 0 50px 100px rgba(39,27,94,.16);
  --sh-dark: 0 20px 60px rgba(0,0,0,.45);

  /* — Gradients (subtle, premium) — */
  --grad-brand: linear-gradient(135deg, var(--violet-500) 0%, var(--orange-500) 130%);
  --grad-brand-soft: linear-gradient(135deg, var(--violet-400) 0%, var(--orange-400) 140%);
  --grad-violet: linear-gradient(135deg, var(--violet-500), var(--violet-700));

  --maxw: 1200px;
  --nav-h: 70px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-900);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--violet-200); color: var(--violet-900); }

/* ---------- Typographic scale ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: var(--ink-950); }
.display {
  font-size: clamp(40px, 6.0vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h-serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-600);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.muted { color: var(--ink-400); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-500); line-height: 1.55; font-weight: 400; letter-spacing: -0.012em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1320px; }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section-tight { padding: clamp(54px, 6vw, 84px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }
.eyebrow-center { display: flex; justify-content: center; }

/* section heading block */
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; }
.sec-head h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.04em; }
.sec-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 0 19px; height: 46px; border-radius: 12px;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--ink-950); color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11,11,16,.26); }
.btn-violet { background: var(--violet-500); color: #fff; box-shadow: 0 4px 14px rgba(108,85,232,.32); }
.btn-violet:hover { transform: translateY(-1px); background: var(--violet-600); box-shadow: 0 10px 26px rgba(108,85,232,.40); }
.btn-ghost { background: transparent; color: var(--ink-700); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-200); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-light { background: #fff; color: var(--ink-900); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.on-dark .btn-ghost { color: var(--d-ink); border-color: var(--d-line-2); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--violet-700); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px 0 11px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink-600);
  box-shadow: var(--sh-xs); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px var(--green-50); }
.pill-live .dot { animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px;
}
.tag-violet { background: var(--violet-100); color: var(--violet-700); }
.tag-orange { background: #FFEAD8; color: var(--orange-600); }
.tag-green { background: var(--green-50); color: var(--green-500); }
.tag-amber { background: var(--amber-50); color: var(--amber-500); }
.tag-rose { background: var(--rose-50); color: var(--rose-500); }

/* ---------- Brand mark ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px; flex: none;
  display: block; object-fit: contain;
}
.logo-word { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-950); }
.on-dark .logo-word { color: #fff; }
.logo-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: var(--violet-700); background: var(--violet-100);
  padding: 3px 7px; border-radius: 6px; margin-left: 2px;
}

/* ---------- Channels strip (integrations: live / coming soon) ---------- */
.chan-strip { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chan {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 15px 0 11px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-xs);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.chan:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.chan .ch-tile { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: -0.02em; }
.chan .ch-name { font-size: 14px; font-weight: 700; color: var(--ink-800); letter-spacing: -0.02em; }
.chan .ch-status { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.chan.live .ch-status { background: var(--green-50); color: var(--green-500); }
.chan.soon { background: var(--paper); }
.chan.soon .ch-name { color: var(--ink-500); }
.chan.soon .ch-tile { opacity: .55; filter: grayscale(.4); }
.chan.soon .ch-status { background: var(--paper-3); color: var(--ink-400); }
.on-dark .chan { background: var(--d-card); border-color: var(--d-line); }
.on-dark .chan .ch-name { color: #fff; }
.on-dark .chan.soon { background: var(--d-bg-2); }
.on-dark .chan.soon .ch-name { color: var(--d-ink-2); }
.on-dark .chan.soon .ch-status { background: rgba(255,255,255,.07); color: var(--d-ink-3); }

/* arrow glyph used in mark */
:root { --mark-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 19 L19 5 M10 5 H19 V14' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251,250,254,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.nav-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 550; color: var(--ink-600);
  padding: 8px 13px; border-radius: 9px; transition: color .18s, background .18s;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav-link:hover { color: var(--ink-950); background: rgba(124,108,240,.07); }
.nav-link.active { color: var(--ink-950); }
.nav-link .chev { width: 13px; height: 13px; opacity: .5; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

/* dropdown mega */
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 540px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 14px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 50;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link { display: flex; gap: 12px; padding: 11px; border-radius: 12px; transition: background .16s; }
.mega-link:hover { background: var(--paper-2); }
.mega-ico { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--violet-50); color: var(--violet-600); }
.mega-ico svg { width: 18px; height: 18px; }
.mega-link h5 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.mega-link p { font-size: 12.5px; color: var(--ink-400); line-height: 1.4; margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--d-bg); color: var(--d-ink-2); padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--d-line); }
.footer-brand .logo-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 280px; color: var(--d-ink-3); }
.footer-col h6 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--d-ink-2); padding: 6px 0; transition: color .16s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 13px; color: var(--d-ink-3); gap: 20px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--d-card); border: 1px solid var(--d-line); transition: background .16s; }
.footer-social a:hover { background: var(--d-card-2); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Dark section base ---------- */
.on-dark { background: var(--d-bg); color: var(--d-ink); }
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4 { color: #fff; }
.on-dark .lede { color: var(--d-ink-2); }
.on-dark .eyebrow { color: var(--violet-300); }

/* ---------- Reveal-on-scroll (base = visible; only armed elements animate) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.armed { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
  .reveal.armed.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; }
  .reveal.d3 { transition-delay: .18s; } .reveal.d4 { transition-delay: .24s; }
  .reveal.d5 { transition-delay: .30s; }
}

/* ---------- Generic grid helpers ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn.hide-sm { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile nav, footer, global utilities
   ============================================================ */

/* ---- Mobile nav ---- */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--ink-700);
  cursor: pointer; flex: none;
  transition: background .16s, border-color .16s;
}
.nav-burger:hover { background: var(--paper-2); border-color: var(--ink-200); }
.nav-burger svg { width: 20px; height: 20px; display: block; }

@media (max-width: 980px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(251,250,254,.97);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px 28px;
    z-index: 99;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    display: none;
  }
  .nav-links.nav-open {
    display: flex;
    animation: navSlide .2s cubic-bezier(.2,.7,.3,1);
  }
  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
  }

  .nav-link { font-size: 17px; padding: 12px 14px; width: 100%; border-radius: 10px; }
  .nav-item .mega { display: none !important; }
  .nav-item .chev { display: none; }

  .nav-cta { gap: 8px; }
  .hide-sm { display: none !important; }
}

/* ---- Footer responsive ---- */
@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social a { width: 40px; height: 40px; }
}

/* ---- Global button/section tweaks on small screens ---- */
@media (max-width: 480px) {
  .btn-lg { height: 48px !important; padding: 0 20px !important; font-size: 15px !important; }
  .section { padding: clamp(54px, 8vw, 96px) 0; }
  .wrap { padding: 0 16px; }
}

/* Mobile-only nav CTAs (inside .nav-links dropdown) */
.nav-mobile-cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.nav-mobile-cta .btn { width: 100%; justify-content: center; height: 46px; }
@media (max-width: 980px) {
  .nav-mobile-cta { display: flex; }
}
