/* FaceoffEdge marketing site — shared design tokens & primitives */

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

:root {
  /* core palette — dark (subtly blue-tinted, matching the app) */
  --bg: #05080F;
  --bg-2: #0a1020;
  --surface: #0F1726;
  --surface-2: #152038;
  --surface-3: #1d2940;
  --line: rgba(120,150,220,0.10);
  --line-strong: rgba(120,150,220,0.18);
  --text: #F2F4F8;
  --text-muted: #8E97AC;
  --text-dim: #5C657A;

  /* light section palette — warm cream */
  --light-bg: #F4F2EE;
  --light-bg-2: #ECE9E2;
  --light-text: #0a1020;
  --light-text-muted: #5C657A;
  --light-line: rgba(0,0,0,0.08);

  /* accent */
  --primary: #3B6EF2;
  --primary-deep: #1B3A8A;
  --primary-soft: rgba(59,110,242,0.14);
  --warn: #E86B5A;
  --good: #4FB38A;

  /* layout */
  --container: 1200px;
  --nav-h: 64px;
  --radius: 22px;

  /* type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
  /* very subtle blue cast across the page on dark sections */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59,110,242,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(59,110,242,0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.tnum { font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────────
   Layout primitives
   ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.tall { padding: 140px 0; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section.tall { padding: 88px 0; }
  .container { padding: 0 20px; }
}

/* light variant */
.section.light { background: var(--light-bg); color: var(--light-text); }
.section.light .muted { color: var(--light-text-muted); }
.section.light .hairline { background: var(--light-line); }
.section.light .eyebrow { color: var(--light-text-muted); }
.section.light .faq-q { color: var(--light-text); }
.section.light .faq-q::after,
.section.light .faq-icon::before,
.section.light .faq-icon::after { background: var(--light-text-muted); }
.section.light .faq-a p { color: var(--light-text-muted); }
.section.light .faq-item { border-color: var(--light-line); }
.section.light .faq-item:last-child { border-color: var(--light-line); }

/* alt light variant — pure white instead of cream, for visual rhythm between adjacent light sections */
.section.light.alt { background: #ffffff; }
.section.light.alt .product-placeholder { background-color: var(--light-bg); }

/* ───────────────────────────────────────────────
   Type system
   ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: currentColor; opacity: 0.4;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; }
.h-display {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.h-1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h-2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.h-3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.section.light .lead { color: var(--light-text-muted); }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ───────────────────────────────────────────────
   Buttons
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 650; font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 20px;
  border-radius: 999px;
  transition: transform 0.1s ease, opacity 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e8e8e8; }

.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.section.light .btn-primary { background: var(--primary); color: #fff; }
.section.light .btn-primary:hover { background: var(--primary-deep); }
.section.light .btn-secondary {
  background: rgba(0,0,0,0.05); color: var(--light-text);
  border: 1px solid rgba(0,0,0,0.08);
}
.section.light .btn-secondary:hover { background: rgba(0,0,0,0.08); }

.btn-ghost {
  background: transparent; color: inherit; padding: 8px 4px;
  border-radius: 6px;
}
.btn-ghost:hover { opacity: 0.7; }

.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ───────────────────────────────────────────────
   Nav
   ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  background: rgba(7,10,22,0.65);
  border-bottom: 1px solid rgba(120,150,220,0.08);
}
.nav.light {
  background: rgba(244,242,238,0.78);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--light-text);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.015em;
}
.nav-links {
  display: flex; gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav.light .nav-links a { color: rgba(0,0,0,0.55); }
.nav.light .nav-links a:hover { color: var(--light-text); background: rgba(0,0,0,0.04); }
.nav.light .nav-links a.active { color: var(--light-text); background: rgba(0,0,0,0.06); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
}

/* ───────────────────────────────────────────────
   Mobile drawer nav (≤820px only)
   ─────────────────────────────────────────────── */
.nav-burger { display: none; }
.nav-backdrop, .nav-drawer { display: none; }

@media (max-width: 820px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    margin-left: -8px; margin-right: 2px;
    background: none; border: none; cursor: pointer; flex-shrink: 0;
  }
  .nav-burger span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav.light .nav-burger span { background: var(--light-text); }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  .nav-drawer {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
    width: 140px; max-width: 60vw;
    padding: 84px 10px 24px;
    background: #000;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.16,1,.3,1);
  }
  .nav-drawer.open { transform: translateX(0); }
  .nav-drawer a {
    padding: 13px 16px; border-radius: 10px;
    font-size: 16px; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }
  .nav-drawer a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
  .nav-drawer a.active { color: var(--text); background: rgba(255,255,255,0.07); }
}

/* ───────────────────────────────────────────────
   Logo mark
   ─────────────────────────────────────────────── */
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; }

/* ───────────────────────────────────────────────
   Cards & surfaces
   ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card.light {
  background: #fff;
  border: 1px solid var(--light-line);
  color: var(--light-text);
}
.card-glow {
  background: linear-gradient(160deg, #1a2238 0%, #0b1222 60%, #0a1020 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.card-glow::before {
  content: ''; position: absolute;
  top: -80px; right: -100px; width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,110,242,0.4), transparent 60%);
  pointer-events: none;
}

.hairline {
  height: 1px; background: var(--line);
  width: 100%;
}
.divider-label {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-dim); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.divider-label::before, .divider-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line);
}

/* ───────────────────────────────────────────────
   Pills / tags
   ─────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  text-transform: uppercase;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.section.light .pill {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--light-text-muted);
}

/* ───────────────────────────────────────────────
   Phone mockup
   ─────────────────────────────────────────────── */
.phone {
  width: 320px; height: 660px;
  background: #0a1020;
  border-radius: 46px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 80px -20px rgba(59,110,242,0.25);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 5;
}
.phone-status {
  position: absolute; top: 0; left: 0; right: 0;
  height: 44px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600;
  color: #fff; z-index: 4;
}

/* ───────────────────────────────────────────────
   Product render placeholder
   ─────────────────────────────────────────────── */
.product-placeholder {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 12px,
      rgba(255,255,255,0.05) 12px,
      rgba(255,255,255,0.05) 24px
    ),
    linear-gradient(160deg, #152038 0%, #0a1020 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.product-placeholder.light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,0.025) 0,
      rgba(0,0,0,0.025) 12px,
      rgba(0,0,0,0.05) 12px,
      rgba(0,0,0,0.05) 24px
    ),
    var(--light-bg-2);
  border: 1px solid var(--light-line);
  color: var(--light-text-muted);
}
.product-placeholder .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 24px;
}
.product-placeholder.light .label { color: var(--light-text-muted); }

/* ───────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────── */
.footer {
  background: #070A14;
  border-top: 1px solid rgba(120,150,220,0.08);
  padding: 64px 0 32px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); font-weight: 600; margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim);
  flex-wrap: wrap; gap: 12px;
}

/* ───────────────────────────────────────────────
   Animations & utilities
   ─────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Reveal: content always visible; observer adds a subtle animation when entering view */
.reveal.in { animation: fade-up 0.7s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

.glow-blue {
  position: absolute; pointer-events: none;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,110,242,0.26) 0%, rgba(59,110,242,0) 60%);
  filter: blur(20px);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(120,150,220,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,220,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

/* timing display */
.timing {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* metric stat */
.stat {
  display: flex; flex-direction: column; gap: 6px;
}
.stat .num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .label {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.section.light .stat .label { color: var(--light-text-muted); }

/* link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 15px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }

/* utility */
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.col { flex-direction: column; }
.center { text-align: center; align-items: center; justify-content: center; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 48px; }
