/* ============================================================
   Bit Kapteyn — theme.css
   Color theme override: #111827 (shield dark) + green keyhole
   Replace the purple/pink palette across the entire site.

   HOW TO USE:
   Add this line AFTER main.css in _layouts/default.html:
   <link rel="stylesheet" href="{{ '/assets/css/theme.css' | relative_url }}" />

   Also update tailwind.config in _layouts/default.html:
   Replace the `brand` colors block with the one shown
   at the bottom of this file.
   ============================================================ */

/* ── CSS custom properties (global tokens) ─────────────────
   These cascade into every component that uses var(--bk-*)   */
:root {
  --bk-dark: #111827; /* primary shield / bg dark    */
  --bk-dark2: #1f2937; /* surface / card bg           */
  --bk-dark3: #374151; /* elevated surface            */
  --bk-border: #374151; /* default border              */
  --bk-border-soft: #4b5563; /* softer border               */
  --bk-muted: #6b7280; /* muted strokes               */
  --bk-subtle: #9ca3af; /* subtle strokes / labels     */

  --bk-green: #22c55e; /* keyhole / primary accent    */
  --bk-green-lt: #4ade80; /* lighter green               */
  --bk-green-dim: #86efac; /* dimmed green (dark bg)      */
  --bk-green-bg: rgba(34, 197, 94, 0.12);
  --bk-green-border: rgba(34, 197, 94, 0.3);

  --bk-text: #f9fafb; /* primary text                */
  --bk-text-muted: rgba(249, 250, 251, 0.55);
  --bk-text-dim: rgba(249, 250, 251, 0.28);
}

/* ── Body & page background ─────────────────────────────── */
body {
  background-color: var(--bk-dark);
  color: var(--bk-text);
}

/* ── Background grid tint ───────────────────────────────── */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9) 1px, transparent 1px);
}

/* ── NAV ────────────────────────────────────────────────── */
#site-nav {
  background: rgba(17, 24, 39, 0.75) !important;
  border-bottom-color: rgba(55, 65, 81, 0.5) !important;
}

/* Nav links */
#site-nav a:not(.nav-cta) {
  color: var(--bk-text);
}
#site-nav a:not(.nav-cta):hover {
  color: var(--bk-text);
}

/* Nav CTA button */
#site-nav .nav-cta,
a.nav-cta {
  background: linear-gradient(90deg, #111827, #1f2937) !important;
  border: 1px solid var(--bk-green) !important;
  color: var(--bk-green) !important;
}
#site-nav .nav-cta:hover,
a.nav-cta:hover {
  background: var(--bk-green) !important;
  color: #111827 !important;
}

/* ── Hero blobs — rethemed to dark slate + green ────────── */
.hero-blob-1 {
  background: rgba(17, 24, 39, 0.6) !important;
}
.hero-blob-2 {
  background: rgba(34, 197, 94, 0.12) !important;
}
.hero-blob-3 {
  background: rgba(74, 222, 128, 0.08) !important;
}

/* Hero badge */
.hero-badge,
div[class*="hero"] span[class*="badge"],
.reveal > div[class*="inline-flex"] {
  color: var(--bk-green) !important;
  background: var(--bk-green-bg) !important;
  border-color: var(--bk-green-border) !important;
}

/* Badge blink dot */
.badge-dot,
span[class*="blink"] {
  background: var(--bk-green) !important;
}

/* Gradient headline span */
h1 span,
.hero-section h1 span {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Primary buttons ────────────────────────────────────── */
.btn-primary,
a.btn-primary,
.price-btn-solid,
a.price-btn-solid {
  background: var(--bk-green) !important;
  color: #111827 !important;
}
.btn-primary:hover,
a.btn-primary:hover,
.price-btn-solid:hover,
a.price-btn-solid:hover {
  background: var(--bk-green-lt) !important;
  filter: none !important;
}

/* Secondary / outline buttons */
.btn-secondary,
a.btn-secondary,
.price-btn-outline,
a.price-btn-outline {
  border-color: rgba(55, 65, 81, 0.6) !important;
  color: var(--bk-text-muted) !important;
}
.btn-secondary:hover,
a.btn-secondary:hover,
.price-btn-outline:hover,
a.price-btn-outline:hover {
  border-color: var(--bk-green) !important;
  color: var(--bk-green) !important;
}

/* ── Section tags / badges ──────────────────────────────── */
.section-tag,
span[class*="section-tag"],
span[class*="inline-block"][class*="text-"] {
  color: var(--bk-green-lt) !important;
  background: var(--bk-green-bg) !important;
  border-color: rgba(74, 222, 128, 0.2) !important;
}

/* ── Section gradient text ──────────────────────────────── */
h2 span,
h1 span.line2 {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Section backgrounds ────────────────────────────────── */
section.features,
section[id="features"] {
  background: var(--bk-dark2) !important;
}

section.how,
section[id="how"] {
  background: var(--bk-dark) !important;
}

section.security,
section[id="security"] {
  background: var(--bk-dark2) !important;
}

section.pricing,
section[id="pricing"] {
  background: var(--bk-dark3) !important;
}

section.testimonials,
section[id="testimonials"] {
  background: var(--bk-dark) !important;
}

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  border-color: rgba(55, 65, 81, 0.5) !important;
}
.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
  background: rgba(34, 197, 94, 0.04) !important;
}
.feature-card::before {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.06),
    transparent
  ) !important;
}

/* Feature icon bg */
.feature-icon {
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.8),
    rgba(31, 41, 55, 0.5)
  ) !important;
  border-color: rgba(55, 65, 81, 0.6) !important;
}

/* ── How it works — step numbers ────────────────────────── */
.step-num {
  color: var(--bk-green-lt) !important;
  background: var(--bk-green-bg) !important;
  border-color: rgba(74, 222, 128, 0.2) !important;
}

/* Strength fill bars — green accent */
.sm-fill {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
}

/* Generator "Copied" tag */
.gen-opt[style*="color:#00D4AA"],
.gen-opt:last-child {
  color: var(--bk-green) !important;
  background: var(--bk-green-bg) !important;
  border-color: var(--bk-green-border) !important;
}

/* Generated password text */
.gen-pass {
  color: var(--bk-green-lt) !important;
}

/* ── Security badges ────────────────────────────────────── */
.sec-badge {
  border-color: rgba(55, 65, 81, 0.5) !important;
}
.sec-badge:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

/* Security bullet dots */
.sec-bullet,
div[style*="#00D4AA"],
div[style*="#A97EFF"],
div[style*="#E84393"] {
  background: var(--bk-green) !important;
}

/* ── Pricing cards ──────────────────────────────────────── */
.price-card {
  border-color: rgba(55, 65, 81, 0.5) !important;
}

/* Featured card */
.price-card.featured {
  background: rgba(34, 197, 94, 0.06) !important;
  border-color: var(--bk-green) !important;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.15),
    0 40px 80px rgba(34, 197, 94, 0.08) !important;
}

/* Popular badge */
.price-badge {
  background: linear-gradient(90deg, #111827, #1f2937) !important;
  color: var(--bk-green) !important;
  border: 1px solid var(--bk-green) !important;
}

/* Checkmarks */
.price-features li::before {
  color: var(--bk-green) !important;
}

/* ── Testimonial cards ──────────────────────────────────── */
.testi-card {
  border-color: rgba(55, 65, 81, 0.5) !important;
}
.testi-card:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

/* ── Ticker band ────────────────────────────────────────── */
.ticker-band {
  background: rgba(17, 24, 39, 0.8) !important;
  border-color: rgba(55, 65, 81, 0.5) !important;
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.9),
    rgba(34, 197, 94, 0.06)
  ) !important;
  border-color: rgba(34, 197, 94, 0.2) !important;
}

.cta-band h2 span {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bk-dark2) !important;
  border-top-color: rgba(55, 65, 81, 0.4) !important;
}

.footer-col a:hover,
.footer-brand a:hover {
  color: var(--bk-green) !important;
}

.social-btn:hover {
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: var(--bk-green) !important;
}

/* Footer wordmark gradient */
.nav-logo-text span,
.footer-brand span {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Vault mockup ───────────────────────────────────────── */
.vault-card {
  background: rgba(17, 24, 39, 0.98) !important;
  border-color: rgba(55, 65, 81, 0.5) !important;
}
.vault-titlebar {
  background: rgba(31, 41, 55, 0.6) !important;
  border-bottom-color: rgba(55, 65, 81, 0.4) !important;
}
.vault-search {
  background: rgba(31, 41, 55, 0.3) !important;
  border-bottom-color: rgba(55, 65, 81, 0.3) !important;
}

/* Entry fill action badge */
.entry-action {
  color: var(--bk-green-lt) !important;
  background: var(--bk-green-bg) !important;
}

/* Strength bars — green */
.strength-bar.s {
  background: var(--bk-green) !important;
}

/* ── Custom cursor ──────────────────────────────────────── */
#cursor {
  background: var(--bk-green) !important;
}
#cursor-ring {
  border-color: rgba(34, 197, 94, 0.4) !important;
}

/* ── Scroll reveal (unchanged, kept here for completeness) ─ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Gradient text utility ──────────────────────────────── */
.text-gradient-brand {
  background: linear-gradient(
    90deg,
    var(--bk-green),
    var(--bk-green-lt)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ============================================================
   TAILWIND CONFIG UPDATE
   In _layouts/default.html, replace the brand colors block:

   colors: {
     brand: {
       purple:      '#111827',
       'purple-lt': '#4ADE80',
       pink:        '#22C55E',
       teal:        '#86EFAC',
       dark:        '#111827',
       dark2:       '#1F2937',
       dark3:       '#374151',
     },
   },

   And update backgroundImage:
   'gradient-brand': 'linear-gradient(90deg, #111827, #1F2937)',
   'gradient-text':  'linear-gradient(90deg, #22C55E, #4ADE80)',
   ============================================================ */
