/* ============================================================
   DraftEdge — fantasy.draftedge.com landing (home-v2)
   Dark + green premium. Vanilla CSS, no framework.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg:            #0b0b0b;
  --bg-card:       #141414;
  --bg-hover:      #1d1d1d;
  --bg-inset:      #0f0f0f;

  /* text */
  --text:          #f5f5f5;
  --text-muted:    #a3a3a3;
  --text-subtle:   #737373;

  /* accent */
  --green:         #1aff66;
  --green-dim:     #14cc52;
  --green-ink:     #052b13;       /* text on green */
  --indigo:        #405189;
  --indigo-hi:     #4d61a4;

  /* position badge tints (echo the app) */
  --pos-rb:        #1aff66;
  --pos-wr:        #f0a030;

  /* lines & effects */
  --line:          rgba(255,255,255,0.08);
  --line-soft:     rgba(255,255,255,0.05);
  --glow-green:    0 0 0 1px rgba(26,255,102,0.30), 0 14px 40px -12px rgba(26,255,102,0.45);
  --shadow-card:   0 24px 60px -24px rgba(0,0,0,0.85);

  /* type */
  --font-body:   'Poppins', system-ui, -apple-system, sans-serif;
  --font-display:'Space Grotesk', 'Poppins', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* shape */
  --radius:      8px;
  --radius-lg:   14px;
  --radius-pill: 999px;
  --t:           150ms ease;

  --maxw:        1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--green);
}
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; margin-top: 14px;
}
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 17px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green); color: var(--green-ink);
  box-shadow: 0 10px 30px -12px rgba(26,255,102,0.55);
}
.btn-primary:hover { background: #34ff79; box-shadow: var(--glow-green); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.18); }
.btn-indigo {
  background: var(--indigo); color: #fff;
}
.btn-indigo:hover { background: var(--indigo-hi); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,11,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: -0.03em;
  color: var(--text); display: inline-flex; align-items: center;
}
.wordmark .edge { color: var(--green); }
.nav-menu { display: contents; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-link-signin { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-link-signin:hover { color: var(--text); }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); width: 42px; height: 38px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 0%, rgba(26,255,102,0.10), transparent 70%),
    radial-gradient(40% 40% at 5% 10%, rgba(64,81,137,0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg-card);
  font-size: 13px; color: var(--text-muted); margin-bottom: 26px;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700; max-width: 14ch; letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  color: var(--text-muted); font-size: clamp(17px, 2vw, 20px);
  max-width: 52ch; margin-top: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note {
  margin-top: 18px; font-size: 13px; color: var(--text-subtle);
  display: flex; align-items: center; gap: 8px;
}
.hero-note svg { width: 15px; height: 15px; stroke: var(--green); }

/* hero visual — framed screenshot */
.hero-visual { margin-top: 64px; position: relative; }
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.browser::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-inset);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2a; }
.browser-url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 12px;
  color: var(--text-subtle); background: #0a0a0a;
  padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
}
.browser img { width: 100%; display: block; }
.hero-glow {
  position: absolute; inset: -10% 10% auto 10%; height: 60%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(26,255,102,0.16), transparent 75%);
  filter: blur(20px); z-index: -1; pointer-events: none;
}

/* trust strip */
.trust {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 14px 48px;
  align-items: center; justify-content: center;
  color: var(--text-subtle); font-size: 14px;
}
.trust .stat { display: inline-flex; align-items: baseline; gap: 9px; }
.trust .stat b {
  font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features { border-top: 1px solid var(--line); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: background var(--t), transform var(--t);
}
.card:hover { background: var(--bg-hover); transform: translateY(-3px); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,255,102,0.10);
  margin-bottom: 18px;
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* full-width capstone feature card (icon left, copy right) */
.card-wide {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 20px;
}
.card-wide .icon { margin-bottom: 0; flex: none; }
.card-wide .card-wide-body { display: flex; flex-direction: column; gap: 8px; }
.pill-premium {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--green); background: rgba(26,255,102,0.10);
  border: 1px solid rgba(26,255,102,0.22);
  padding: 3px 10px; border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* ============================================================
   SHOWCASE — large framed product shots + copy
   ============================================================ */
.showcase { border-top: 1px solid var(--line); }
.showcase-row {
  display: grid; grid-template-columns: 0.9fr 1.25fr;
  gap: 56px; align-items: center;
}
.showcase-row + .showcase-row { margin-top: 88px; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .showcase-media { order: 1; }
.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h3 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.showcase-copy p { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
.showcase-media { position: relative; }
.showcase-media .browser {
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}

/* ============================================================
   WHY IT WINS
   ============================================================ */
.why { border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.why-item .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--green);
  letter-spacing: 1px; margin-bottom: 16px; display: block;
}
.why-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.why-item p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { border-top: 1px solid var(--line); }
.price-grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.is-hero {
  background: linear-gradient(180deg, rgba(26,255,102,0.07), rgba(20,20,20,0) 55%), var(--bg-card);
  box-shadow: var(--glow-green);
}
.price-tag {
  position: absolute; top: -11px; left: 28px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--green-ink); background: var(--green);
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 17px; font-weight: 600; color: var(--text); }
.price-kind { font-size: 13px; color: var(--text-subtle); margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px; }
.price-amount .amt {
  font-family: var(--font-display); font-weight: 700; font-size: 46px; letter-spacing: -0.03em;
}
.price-amount .per { color: var(--text-subtle); font-size: 15px; }
.price-save { font-size: 13px; color: var(--green); font-weight: 600; min-height: 20px; }
.price-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-list li {
  position: relative; padding-left: 26px;
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}
.price-list li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(26,255,102,0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%231aff66' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-list li strong { color: var(--text); font-weight: 600; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-subtle); }
.price-foot a { color: var(--green); font-weight: 600; }
.price-foot a:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: transparent; border: none; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.faq-q .chev {
  flex: none; width: 20px; height: 20px; stroke: var(--text-subtle);
  transition: transform var(--t), stroke var(--t);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); stroke: var(--green); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t), padding var(--t);
  color: var(--text-muted); font-size: 15px;
}
.faq-a p { padding: 0 4px 24px; }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 50% 0%, rgba(26,255,102,0.10), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; text-align: center; max-width: 680px; margin: 0 auto; }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.035em; }
.final h2 .accent { color: var(--green); }
.final p { color: var(--text-muted); margin-top: 18px; font-size: 18px; }
.final .hero-actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-inset); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 24px;
}
.footer-brand .wordmark { font-size: 22px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-subtle); font-size: 14px; max-width: 30ch; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t);
}
.footer-socials a:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.18); }
.footer-socials svg { width: 17px; height: 17px; fill: var(--text-muted); }
.footer-socials a:hover svg { fill: var(--text); }
.footer-col h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-subtle);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-subtle); font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row + .showcase-row { margin-top: 56px; }
  .showcase-row.reverse .showcase-copy { order: 1; }
  .showcase-row.reverse .showcase-media { order: 2; }
  .why-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.is-hero { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-card); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav.open .nav-menu { display: flex; }
  .nav-menu .nav-links {
    display: flex; flex-direction: column; gap: 0; margin-left: 0;
  }
  .nav-menu .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-menu .nav-cta {
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 10px;
    margin-top: 14px;
  }
  .nav-menu .nav-cta .btn,
  .nav-menu .nav-cta .nav-link-signin { width: 100%; text-align: center; }
  .nav-menu .nav-cta .nav-link-signin { padding: 8px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; gap: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .trust { gap: 12px 28px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 38px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= MID-PAGE CTA BAND (CRO) ================= */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-inset);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  padding: 26px 24px; text-align: center;
}
.cta-band-copy { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.cta-band-copy b { color: var(--text); font-weight: 700; }

/* ================= MOBILE STICKY PURCHASE BAR (CRO) ================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(105%); transition: transform 0.25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-price { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-price b { color: var(--text); font-family: var(--font-mono); font-size: 0.95rem; }
.sticky-cta .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
}

/* ---- Mobile overflow fix (pre-existing): the nowrap .browser-url pills set
   a wide min-content that grid/flex items (min-width:auto) refused to shrink
   below, inflating the layout viewport to ~410px on a 390px phone — the whole
   page rendered zoomed-out and the sticky CTA hung below the fold. ---- */
.showcase-row > * { min-width: 0; }
.browser-url {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1 1 auto; min-width: 0; max-width: max-content;
}
