/* ============================================================================
   ProxiedGuardians — Landing Page CSS
   Aesthetic: Dark cybersecurity — deep navy, teal/violet accents, sharp edges
   ============================================================================ */

:root {
    --bg:          #06080d;
    --bg-alt:      #0b0e17;
    --bg-card:     #0f1320;
    --bg-card-h:   #141928;
    --text:        #e2e8f0;
    --text-muted:  #64748b;
    --text-sub:    #94a3b8;
    --accent:      #2dd4bf;
    --accent-h:    #5eead4;
    --accent2:     #8b5cf6;
    --accent-glow: rgba(45, 212, 191, 0.08);
    --danger:      #f43f5e;
    --warning:     #f59e0b;
    --border:      rgba(255,255,255,0.06);
    --border-s:    rgba(255,255,255,0.1);
    --radius:      10px;
    --radius-lg:   16px;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-h); }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.mt-4 { margin-top: 16px; }
.hidden { display: none !important; }

/* ── NAV ──────────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(18px); background: rgba(6,8,13,0.82);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.3px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links {
    display: flex; list-style: none; gap: 28px; align-items: center;
}
.nav-links a { color: var(--text-muted); font-size: 0.87rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent); color: var(--bg) !important; padding: 7px 18px;
    border-radius: 8px; font-weight: 600; font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--accent-h); color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text-muted); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg-alt); padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-pricing {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px;
    border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: none; transition: all 0.25s; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #1db99a);
    color: var(--bg); box-shadow: 0 0 28px rgba(45,212,191,0.2);
}
.btn-primary:hover {
    box-shadow: 0 0 44px rgba(45,212,191,0.35); transform: translateY(-2px);
    color: var(--bg);
}
.btn-secondary {
    background: transparent; color: var(--text-sub); border: 1px solid var(--border-s);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-pricing {
    width: 100%; justify-content: center; background: rgba(255,255,255,0.04);
    color: var(--text); border: 1px solid var(--border-s);
}
.btn-pricing:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
    padding: 140px 0 80px; position: relative;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(45,212,191,0.06) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 80% 10%, rgba(139,92,246,0.04) 0%, transparent 55%);
}
.hero .container { max-width: 780px; text-align: center; }
.hero-badge {
    display: inline-block; padding: 6px 18px; border-radius: 999px; font-size: 0.78rem;
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
    color: var(--accent2); font-weight: 600; letter-spacing: 0.3px; margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 20px;
}
.gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.08rem; color: var(--text-sub); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* Terminal */
.hero-terminal {
    background: #0c101a; border: 1px solid var(--border-s); border-radius: var(--radius-lg);
    text-align: left; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(45,212,191,0.04);
}
.hero-terminal-bar {
    display: flex; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.hero-terminal-dot {
    width: 11px; height: 11px; border-radius: 50%;
}
.hero-terminal-dot:nth-child(1) { background: #ff5f57; }
.hero-terminal-dot:nth-child(2) { background: #febc2e; }
.hero-terminal-dot:nth-child(3) { background: #28c840; }
.hero-terminal pre {
    padding: 18px 20px; font-family: var(--font-mono); font-size: 0.8rem;
    line-height: 1.9; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.hero-terminal .cmd { color: var(--accent); }
.hero-terminal .out { color: var(--text-muted); }
.hero-terminal .ok { color: var(--accent); }

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.section-header { margin-bottom: 48px; }
.section-label {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
    background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(45,212,191,0.15);
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800;
    letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 12px;
}
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 560px; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ── FEATURES ─────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; transition: all 0.3s ease; opacity: 0; transform: translateY(20px);
}
.feature-card.animate-in { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.feature-card:hover { border-color: rgba(45,212,191,0.25); background: var(--bg-card-h); transform: translateY(-3px); }
.feature-icon {
    width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(45,212,191,0.08); margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.feature-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* ── STEPS ────────────────────────────────────────────────────────────── */
.steps { max-width: 640px; margin: 0 auto; }
.step {
    display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(16px);
}
.step.animate-in { opacity: 1; transform: translateY(0); transition: all 0.4s ease; }
.step:last-child { border-bottom: none; }
.step-number {
    min-width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg); font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.step-content h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 700; }
.step-content p { font-size: 0.87rem; color: var(--text-muted); }
.step-content code {
    display: block; margin-top: 10px; padding: 10px 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-mono);
    font-size: 0.76rem; color: var(--accent); word-break: break-all;
}

/* ── PRICING ──────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center; transition: all 0.3s; position: relative;
    opacity: 0; transform: translateY(16px);
}
.pricing-card.animate-in { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.pricing-card:hover { border-color: var(--border-s); transform: translateY(-3px); }
.pricing-card.featured {
    border-color: var(--accent); box-shadow: 0 0 40px rgba(45,212,191,0.08);
}
.pricing-card.featured::before {
    content: 'MOST POPULAR'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg); font-size: 0.65rem; font-weight: 800; padding: 4px 14px;
    border-radius: 999px; letter-spacing: 1px;
}
.pricing-name { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -1px; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features {
    list-style: none; margin-bottom: 24px; text-align: left;
}
.pricing-features li {
    padding: 7px 0; font-size: 0.84rem; color: var(--text-sub);
    border-bottom: 1px solid var(--border);
}
.pricing-features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ── CTA SECTION ──────────────────────────────────────────────────────── */
.cta-section {
    text-align: center; padding: 80px 0;
    background: linear-gradient(180deg, var(--bg), var(--bg-alt));
}
.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.6px; }
.cta-section p { color: var(--text-muted); font-size: 0.95rem; max-width: 500px; margin: 0 auto 24px; }
.email-capture {
    display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
}
.email-capture input {
    flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border-s);
    border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 0.9rem;
}
.email-capture input:focus { outline: none; border-color: var(--accent); }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.82rem; margin-top: 8px; max-width: 240px; }
.footer-links h4 {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-muted); margin-bottom: 10px; font-weight: 700;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-sub); font-size: 0.84rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); }

/* ── ANIMATIONS ───────────────────────────────────────────────────────── */
.animate-in {
    animation: fadeUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── LANDING PAGE COMPONENTS (extracted from inline styles) ──────────── */

/* Trust bar */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar-label { margin-bottom: 12px; }
.trust-logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; align-items: center; opacity: 0.5; }
.trust-badge { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }

/* Problem section */
.section-padded { padding: 72px 0; }
.container-narrow { max-width: 800px; }
.body-text { font-size: 1rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; }
.body-text-mb { margin-bottom: 28px; }
.text-primary { color: var(--text); }
.text-accent-strong { color: var(--accent); }

/* Compare cards */
.compare-grid { display: flex; gap: 28px; flex-wrap: wrap; }
.compare-card { flex: 1; min-width: 220px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.compare-card-accent { border-color: rgba(45,212,191,0.2); }
.compare-icon { font-size: 1.5rem; margin-bottom: 8px; }
.compare-title { font-size: 0.9rem; margin-bottom: 6px; }
.compare-title-danger { color: var(--danger); }
.compare-title-accent { color: var(--accent); }
.compare-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* CSP Evaluator tool */
.tool-container { max-width: 600px; margin: 0 auto; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.tool-title { margin-bottom: 12px; font-size: 1rem; }
.tool-textarea { width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border-s); border-radius: 8px; color: var(--text); font-family: var(--font-mono); font-size: 0.82rem; resize: vertical; margin-bottom: 12px; }
.btn-full { width: 100%; }
.csp-result { margin-top: 16px; }
.csp-grade-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.csp-grade { font-size: 2rem; font-weight: 800; }
.csp-finding { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 0.82rem; border-left: 3px solid transparent; background: rgba(255,255,255,0.02); }
.csp-error { color: var(--danger); }

/* Footer brand */
.footer-brand-logo { font-size: 1rem; }

/* Utility */
.mt-4 { margin-top: 16px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 120px 0 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .email-capture { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
}
