/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #07070d;
    --bg-surface: #0d0d15;
    --bg-card: #12121e;
    --bg-card-hover: #181828;
    --border: #1e1e32;
    --border-light: #2a2a44;
    --text: #e2e2ec;
    --text-muted: #8888a4;
    --text-dim: #5c5c78;
    --accent: #3b82f6;
    --accent-hover: #5b9aff;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-subtle: rgba(59, 130, 246, 0.08);
    --success: #22c55e;
    --error: #ef4444;
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1120px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

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

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; }

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    border-color: var(--text-muted);
    color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(7, 7, 13, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(7, 7, 13, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 32px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 32px; }
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s;
    padding: 4px 0;
}
.nav-link:hover, .nav-link.active { color: #fff; }

.nav-cta { margin-left: 8px; flex-shrink: 0; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all .2s;
}

/* ===== SECTIONS ===== */
section { padding: 96px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header .section-subtitle { margin: 16px auto 0; }

/* ===== HERO ===== */
.hero {
    padding: 160px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-content { max-width: 560px; }

.hero h1 { margin-bottom: 20px; }

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.hero-supporting {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual — attack path diagram */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attack-diagram {
    width: 100%;
    max-width: 480px;
}

.attack-diagram svg { width: 100%; height: auto; }

/* ===== PROBLEM SECTION ===== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color .2s;
}

.problem-card:hover { border-color: var(--border-light); }

.problem-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.problem-card h4 { margin-bottom: 8px; }
.problem-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== WHAT WE DO ===== */
.what-we-do { background: var(--bg-surface); }

.service-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-point-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-top: 2px;
}

.service-point h4 { margin-bottom: 4px; }
.service-point p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== HOW IT WORKS — STEPS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== ATTACK PATH EXAMPLE ===== */
.attack-path-section { background: var(--bg-surface); }

.attack-path-intro {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    line-height: 1.7;
}

.path-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.path-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.path-node-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.path-node-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    max-width: 100px;
}

.path-arrow {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-light);
    flex-shrink: 0;
    margin-bottom: 24px;
}

/* ===== COMPARISON TABLE ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.comparison-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.comparison-col.highlight {
    border-color: var(--accent);
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.06), var(--bg-card));
    box-shadow: 0 0 40px var(--accent-glow);
}

.comparison-col h3 { margin-bottom: 20px; }

.comparison-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-col li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.comparison-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}

.comparison-col.highlight li::before { background: var(--accent); }

/* ===== DELIVERABLES ===== */
.deliverables-section { background: var(--bg-surface); }

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.deliverable-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.deliverable-card h3 { margin-bottom: 10px; }
.deliverable-card p { font-size: 0.9rem; color: var(--text-muted); }

.deliverables-closing {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

/* Mock report panel */
.mock-report {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mock-report-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-report-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mock-report-body { padding: 20px 24px; }

.mock-finding {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mock-finding:last-child { border-bottom: none; }

.severity-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    white-space: nowrap;
}

.severity-critical { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.severity-high { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.severity-medium { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.mock-finding-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mock-finding-text strong { color: var(--text); font-weight: 500; }

/* ===== TRUST ===== */
.trust-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    max-width: 520px;
}

.trust-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.trust-bullet-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.trust-subtext {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== FINAL CTA ===== */
.final-cta {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg));
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.final-cta .container { position: relative; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.final-cta .helper-text { font-size: 0.85rem; color: var(--text-dim); margin-top: 16px; }

/* ===== FORM ===== */
.form-page { padding-top: calc(var(--header-h) + 48px); }

.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.form-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--error);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.field-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 6px;
    min-height: 1.2em;
}

.form-helper {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-success {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-success h3 { color: var(--success); margin-bottom: 16px; }
.form-success p { color: var(--text-muted); }

.form-error {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hidden { display: none !important; }

/* ===== HOW-IT-WORKS PAGE ===== */
.page-hero {
    padding: 140px 0 64px;
    text-align: center;
}

.page-hero .section-subtitle { margin: 16px auto 0; }

.scope-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.scope-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.scope-item-icon { color: var(--accent); flex-shrink: 0; }

.deliverables-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.deliverable-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.deliverable-item-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.faq-item h4 { margin-bottom: 8px; color: #fff; }
.faq-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo { height: 24px; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-dim); }

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-nav a:hover { color: #fff; }

.footer-contact a {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual { order: -1; }
    .hero-content { max-width: 100%; }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    section { padding: 64px 0; }
    .hero { padding: 120px 0 64px; }

    .nav-cta { display: none; }

    .mobile-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 48px 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .main-nav.open { opacity: 1; visibility: visible; }
    .nav-list {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .nav-link { font-size: 1.125rem; }

    .path-diagram { flex-direction: column; gap: 0; }
    .path-arrow { transform: rotate(90deg); width: auto; height: 40px; margin-bottom: 0; }

    .attack-diagram { max-width: 320px; }

    .page-hero { padding: 110px 0 48px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .btn-lg { padding: 14px 28px; }
    .steps-grid { grid-template-columns: 1fr; }
    .problem-grid { grid-template-columns: 1fr; }
}
