/* ============================================================================
   seo.bike — design system
   Modern SaaS theme layered over Bootstrap 5. Indigo/cyan accent, deep-slate
   ink, generous spacing, glassy nav, gradient hero, dark code blocks.
   ========================================================================== */

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

:root {
  --ink:        #0b1220;
  --ink-2:      #1e293b;
  --muted:      #5b6b85;
  --line:       #e6e9f2;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fc;
  --bg-softer:  #eef2fb;
  --brand:      #4f46e5;   /* indigo */
  --brand-2:    #06b6d4;   /* cyan   */
  --brand-ink:  #3730a3;
  --ok:         #16a34a;
  --warn:       #d97706;
  --danger:     #dc2626;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg:  0 20px 50px -12px rgba(31,38,135,.28);
  --grad:       linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.lead { color: var(--muted); }
.text-muted-2 { color: var(--muted) !important; }
section { scroll-margin-top: 90px; }

/* ---- container width ---- */
.container { max-width: 1160px; }

/* ---- nav ---- */
.navbar {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
}
.navbar-brand {
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em;
  color: var(--ink) !important; display: flex; align-items: center; gap: .5rem;
}
.navbar-brand .brand-dot {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  display: inline-block; box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.navbar .nav-link { color: var(--ink-2) !important; font-weight: 500; font-size: .95rem; padding: .4rem .85rem !important; border-radius: 8px; }
.navbar .nav-link:hover { background: var(--bg-soft); color: var(--brand) !important; }
.navbar .nav-link.active { color: var(--brand) !important; font-weight: 600; }

/* ---- buttons ---- */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.2rem; transition: transform .12s ease, box-shadow .12s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad); border: none; box-shadow: 0 8px 20px -6px rgba(79,70,229,.5); }
.btn-primary:hover { box-shadow: 0 12px 26px -6px rgba(79,70,229,.6); filter: brightness(1.04); }
.btn-outline-secondary, .btn-outline-primary {
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
}
.btn-outline-secondary:hover, .btn-outline-primary:hover { background: var(--bg-soft); color: var(--brand); border-color: #cfd6ea; }
.btn-ghost { background: transparent; color: var(--ink-2); }

/* ---- hero ---- */
.hero { position: relative; padding: 5.5rem 0 4rem; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(79,70,229,.14), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(6,182,212,.12), transparent 70%);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; }
.hero .lead { font-size: 1.22rem; max-width: 640px; margin: 1.2rem auto 1.8rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600;
  color: var(--brand-ink); background: var(--bg-softer); border: 1px solid #dfe3f5;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- sections ---- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }

/* ---- cards / tool grid ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.ucard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; height: 100%;
}
a.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6ddf3; }
.ucard .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--bg-softer); color: var(--brand);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .9rem;
}
.ucard h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.ucard p { color: var(--muted); font-size: .93rem; margin: 0; }
.ucard .arrow { margin-top: auto; padding-top: .8rem; color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ---- feature row ---- */
.feature { display: flex; gap: 1rem; }
.feature .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(79,70,229,.5); }
.feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---- steps (how it works) ---- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step .num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-softer); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; border: 1px solid #dfe3f5; }

/* ---- tool page scaffold ---- */
.tool-hero { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.tool-hero .eyebrow { margin-bottom: .8rem; }
.tool-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.tool-hero p { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.field-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: .35rem; display:block; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79,70,229,.15); }

/* ---- code blocks (API examples) ---- */
.code-tabs { display: flex; gap: .4rem; margin-bottom: -1px; }
.code-tab { font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--line); border-bottom: none; border-radius: 9px 9px 0 0; background: var(--bg-soft); color: var(--muted); cursor: pointer; }
.code-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
pre.code, .code-block {
  background: #0d1424; color: #e6edf7; border-radius: 12px; padding: 1.1rem 1.2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .86rem; line-height: 1.6;
  overflow-x: auto; border: 1px solid #1b2540; margin: 0;
}
.code-block .tok-cmd { color: #7ee787; } .code-block .tok-str { color: #a5d6ff; } .code-block .tok-key { color: #d2a8ff; }

/* ---- FAQ accordion ---- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.05rem 1.2rem; font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.faq-q:hover { background: var(--bg-soft); }
.faq-q .chev { transition: transform .2s ease; color: var(--muted); flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 1.2rem 1.15rem; color: var(--muted); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 980px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::after { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.price-card li { padding: .45rem 0; color: var(--ink-2); display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---- badges / pills ---- */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: var(--bg-softer); color: var(--brand-ink); border: 1px solid #dfe3f5; }
.pill-ok { background: #e9f9ef; color: #15803d; border-color: #bbf0cd; }
.pill-warn { background: #fef3e2; color: #b45309; border-color: #fcd9a8; }

/* ---- footer ---- */
footer.site { background: var(--ink); color: #aeb8cc; border: none; padding: 3rem 0 2rem; }
footer.site a { color: #cdd5e6; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; font-weight: 800; font-size: 1.15rem; }
footer.site .foot-col h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
footer.site .foot-col a { display: block; padding: .25rem 0; font-size: .92rem; }
footer.site .foot-bottom { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1.4rem; font-size: .86rem; color: #7c879c; }

/* ---- utilities ---- */
.divider { height: 1px; background: var(--line); margin: 0; }
.kbd { font-family: 'JetBrains Mono', monospace; background: var(--bg-softer); border: 1px solid #dfe3f5; border-radius: 6px; padding: .1rem .4rem; font-size: .82rem; }
@media (max-width: 768px) { .hero { padding: 3.5rem 0 2.5rem; } .section { padding: 3rem 0; } }
