/* ============================================================
   Keyword Toolkit — marketing landing page (public "/").
   Self-contained; shares the app's hot-pink / black brand.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --card: #161616;
  --card-border: #2b2b2b;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --primary: #ff2e7e;
  --primary-hover: #ff5c9d;
  --good: #3ddc97;
  --bad: #ff6b6b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---- Buttons ---- */
.btn-primary, .btn-ghost {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #0a0a0a; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.lg { font-size: 1.05rem; padding: 14px 28px; }
.full { display: block; text-align: center; width: 100%; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand.small { font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a:not(.btn-primary):not(.btn-ghost) { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav-links > a:not(.btn-primary):not(.btn-ghost):hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  background: radial-gradient(1100px 520px at 72% -8%, #2f0e1d 0%, var(--bg) 58%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 46, 126, 0.1);
  border: 1px solid rgba(255, 46, 126, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.lead {
  max-width: 640px; margin: 20px auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--muted);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 0.88rem; }

.hero-visual {
  max-width: 760px; margin: 52px auto 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.chip {
  background: #1e1e1e; border: 1px solid var(--card-border);
  border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; color: var(--text);
}
.chip b { margin-left: 6px; font-size: 0.8rem; }
.chip .up { color: var(--good); }
.chip .down { color: var(--bad); }
.spark { width: 100%; height: 140px; display: block; }
.spark .grid { stroke: #262626; stroke-width: 1; }
.spark .line-a { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .line-b { fill: none; stroke: #3987e5; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .dot-a { fill: var(--primary); stroke: var(--card); stroke-width: 2; }
.spark .dot-b { fill: #3987e5; stroke: var(--card); stroke-width: 2; }

/* ---- Trust strip ---- */
.strip { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); background: var(--bg-soft); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 22px; text-align: center; }
.strip-grid b { display: block; color: var(--primary); font-size: 1.3rem; }
.strip-grid span { color: var(--muted); font-size: 0.86rem; }

/* ---- Sections ---- */
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 560px; }
.features, .how, .pricing { padding: 78px 0; }
.how { background: var(--bg-soft); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: var(--primary); transform: translateY(-3px); }
.f-icon { font-size: 1.9rem; }
.feature h3 { margin: 12px 0 8px; font-size: 1.18rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step { text-align: center; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 46, 126, 0.12); border: 1px solid var(--primary);
  color: var(--primary); font-weight: 800; font-size: 1.15rem;
}
.step h3 { margin: 16px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; margin-top: 44px; }
.plan {
  position: relative;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 32px 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 50px rgba(255, 46, 126, 0.16); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #0a0a0a; font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.plan-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-desc { color: var(--muted); font-size: 0.92rem; margin: 4px 0 18px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; font-size: 0.94rem; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.plan .full { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.84rem; margin-top: 26px; }

/* ---- Final CTA ---- */
.cta { padding: 82px 0; text-align: center; background: radial-gradient(800px 400px at 50% 120%, #2f0e1d 0%, var(--bg) 60%); }
.cta-inner h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.cta-inner p { color: var(--muted); margin: 12px 0 26px; font-size: 1.1rem; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--card-border); background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 22px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 0.85rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { gap: 12px; }
  .nav-links a[href="#features"], .nav-links a[href="#pricing"] { display: none; }
  .hero { padding: 60px 0 56px; }
  .feature-grid, .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 380px; margin-left: auto; margin-right: auto; }
  .footer-inner { justify-content: center; text-align: center; }
}
