/* ============================================
   CaseBridge — Investigation & Tactical Ops
   Premium dark theme, blue→indigo palette.
   ============================================ */

:root {
    --primary: #3b82f6;          /* blue */
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.45);
    --secondary: #6366f1;        /* indigo */
    --secondary-glow: rgba(99, 102, 241, 0.4);
    --accent-violet: #8b5cf6;
    --accent-emerald: #10b981;

    --bg-dark: #0a1224;
    --bg-darker: #060a18;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-strong: rgba(15, 23, 42, 0.85);

    --text-main: #f1f5f9;
    --text-mid: #cbd5e1;
    --text-muted: #94a3b8;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius: 1rem;
    --radius-lg: 1.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5.5rem; }
body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: inherit; transition: color .2s, transform .2s, border-color .2s, background .2s; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; display: block; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text-2 {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .95rem 1.6rem; border-radius: .85rem;
    font-weight: 600; font-size: .95rem; line-height: 1;
    transition: all .2s ease; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    color: #fff; box-shadow: 0 8px 24px -8px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px var(--primary-glow); }
.btn-outline {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover { background: rgba(255,255,255,.04); border-color: var(--glass-border-hover); }

/* NAVBAR */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 18, 36, .7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 2rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.05rem; color: var(--text-main); }
.logo svg { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text-mid); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text-main); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 7rem 0 5rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.glow-1 { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -120px; }
.glow-2 { width: 420px; height: 420px; background: var(--secondary); bottom: -120px; right: -120px; opacity: .25; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem;
    background: rgba(99, 102, 241, .12);
    border: 1px solid rgba(99, 102, 241, .25);
    border-radius: 999px; font-size: .82rem; color: var(--text-mid);
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 12px var(--primary-glow); }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: 1.5rem 0 1.2rem; }
.hero-sub { font-size: 1.12rem; color: var(--text-mid); max-width: 780px; margin: 0 auto 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: center; color: var(--text-muted); font-size: .9rem; }
.hero-trust .check { color: var(--accent-emerald); font-weight: 700; }

/* SECTION SHARED */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-darker); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-tag {
    display: inline-block; padding: .35rem .85rem;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .28);
    color: #93c5fd;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 1rem 0 1rem; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; }

/* FEATURES GRID */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); }
.feature-icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: .75rem;
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.18));
    border: 1px solid rgba(99,102,241,.3);
    color: #93c5fd;
    margin-bottom: 1rem;
}
.feature-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; letter-spacing: -.01em; }
.feature-card p { color: var(--text-mid); font-size: .95rem; line-height: 1.65; }

/* BRIDGE GRID (the why) */
.bridge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.bridge-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: border-color .2s;
}
.bridge-card:hover { border-color: var(--glass-border-hover); }
.bridge-num { font-family: var(--font-mono); font-size: .78rem; color: var(--primary); letter-spacing: .06em; margin-bottom: .8rem; }
.bridge-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; letter-spacing: -.01em; }
.bridge-card p { color: var(--text-mid); font-size: .95rem; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; }
.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: border-color .2s, transform .2s;
    display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.pricing-card--featured {
    border-color: rgba(59,130,246,.45);
    box-shadow: 0 16px 48px -16px var(--primary-glow);
}
.pricing-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pricing-eyebrow {
    font-family: var(--font-mono); font-size: .72rem;
    color: var(--primary); letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .25rem;
}
.pricing-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .85rem; }
.pricing-price {
    display: flex; align-items: baseline; gap: .25rem;
    margin-bottom: .75rem;
}
.pricing-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pricing-period { color: var(--text-muted); font-size: .9rem; }
.pricing-tagline { color: var(--text-mid); font-size: .9rem; line-height: 1.55; margin-bottom: 1.25rem; }
.pricing-features {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    display: flex; flex-direction: column; gap: .45rem;
    color: var(--text-mid); font-size: .9rem; line-height: 1.5;
    flex: 1;
}
.btn-block { display: inline-flex; width: 100%; justify-content: center; }
.pricing-footnote {
    color: var(--text-muted); font-size: .85rem;
    text-align: center; max-width: 640px; margin: 2rem auto 0;
}

/* CTA */
.cta-section { padding: 5rem 0 6rem; text-align: center; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta-inner p { color: var(--text-mid); margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { border-top: 1px solid var(--glass-border); padding: 3rem 0 2rem; background: var(--bg-darker); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; padding-bottom: 2rem; }
.footer-brand .logo { margin-bottom: .8rem; }
.footer-tag { color: var(--text-muted); font-size: .9rem; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.footer-col h5 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .8rem; }
.footer-col a { display: block; color: var(--text-mid); font-size: .92rem; padding: .25rem 0; }
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
    padding-top: 1.5rem; border-top: 1px solid var(--glass-border);
    color: var(--text-muted); font-size: .85rem;
}
.footer-bottom .muted { color: var(--text-muted); }

@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links a:not(.btn) { display: none; }
}
