*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0C0C0E;
    --bg-card: #18181B;
    --bg-card-hover: #222225;
    --bg-code: #131316;
    --border: #27272A;
    --border-light: #3F3F46;
    --text: #EDEDEC;
    --text-muted: #8B8B8A;
    --text-dim: #5A5A58;
    --accent: #A78BFA;
    --accent-dim: #A78BFA33;
    --accent-glow: #A78BFA22;
    --accent-hover: #C4B5FD;
    --danger: #EF4444;
    --success: #4ADE80;
    --white: #FAFAF9;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code { background: var(--bg-code); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(12, 12, 14, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); text-decoration: none; }

/* Hero */
.hero { padding: 160px 0 100px; text-align: center; }
.hero-badge { display: inline-block; background: var(--accent-dim); color: var(--accent); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px; border: 1px solid var(--accent-dim); }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; color: var(--white); }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0C0C0E; font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 24px var(--accent-dim); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* Sections */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--white); }
.section-header p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* Problem section */
.problem { border-top: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.problem-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.problem-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; }
.problem-code { background: var(--bg-code); border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; overflow-x: auto; }
.problem-code .comment { color: var(--text-dim); }
.problem-code .danger { color: var(--danger); }
.problem-code .safe { color: var(--accent); }
.problem-code .key { color: #c9d1d9; }

/* Capabilities — 4 cards */
.capabilities { border-top: 1px solid var(--border); }
.capabilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.capability { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color 0.2s; }
.capability:hover { border-color: var(--accent-dim); }
.capability-icon { font-size: 28px; margin-bottom: 16px; }
.capability h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.capability p { color: var(--text-muted); font-size: 14px; }

/* How it works */
.how-it-works { border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; transition: border-color 0.2s; }
.step:hover { border-color: var(--accent-dim); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.step p { color: var(--text-muted); font-size: 14px; }

/* Evidence */
.evidence-section { border-top: 1px solid var(--border); }
.evidence-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -1px; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.stat-source { font-size: 11px; color: var(--text-dim); }
.evidence-articles { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.evidence-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--bg-card); text-decoration: none; transition: background 0.2s; }
.evidence-link:hover { background: var(--bg-card-hover); }
.evidence-title { color: var(--text); font-size: 14px; font-weight: 500; }
.evidence-source { color: var(--text-dim); font-size: 12px; white-space: nowrap; margin-left: 20px; }

/* Features */
.features { border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color 0.2s; }
.feature:hover { border-color: var(--accent-dim); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.feature p { color: var(--text-muted); font-size: 14px; }

/* Code example */
.code-section { border-top: 1px solid var(--border); }
.code-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 1px solid var(--border-light); }
.code-tab { padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-sans); }
.code-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.code-block { background: var(--bg-code); border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 12px 12px; padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; overflow-x: auto; }
.code-example-container { max-width: 700px; margin: 0 auto; }
.code-block .comment { color: var(--text-dim); }
.code-block .string { color: var(--accent-hover); }
.code-block .key { color: #c9d1d9; }

/* Pricing */
.pricing { border-top: 1px solid var(--border); }

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.billing-toggle span { font-size: 14px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.billing-toggle span.active { color: var(--white); font-weight: 600; }
.save-badge { background: var(--accent-dim); color: var(--accent); font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-left: 6px; }

.toggle-switch {
    width: 48px; height: 26px; border-radius: 13px; border: none;
    background: var(--border-light); cursor: pointer; position: relative;
    transition: background 0.2s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-knob {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--white); transition: transform 0.2s;
}
.toggle-switch.on .toggle-knob { transform: translateX(22px); }

.trial-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; text-align: center; transition: all 0.2s; position: relative;
}
.pricing-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(to bottom, var(--accent-glow), var(--bg-card) 100px); }
.pricing-card.featured::before {
    content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--bg); padding: 4px 16px; border-radius: 12px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

.pricing-tier { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.pricing-price { font-size: 44px; font-weight: 800; color: var(--white); margin-bottom: 4px; letter-spacing: -2px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing-billed { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.pricing-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 6px 0; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before {
    content: ''; display: inline-block; width: 16px; height: 16px; min-width: 16px; border-radius: 50%;
    background: var(--accent-dim);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* CTA */
.cta { border-top: 1px solid var(--border); text-align: center; padding: 100px 0; }
.cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.cta p { color: var(--text-muted); font-size: 17px; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 14px; }
footer a { color: var(--text-muted); }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 40px; max-width: 440px; width: 100%; margin: 0 20px; }
.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.modal p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.modal input[type="email"] { width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-code); color: var(--white); font-size: 15px; font-family: var(--font-sans); margin-bottom: 16px; outline: none; transition: border-color 0.2s; }
.modal input[type="email"]:focus { border-color: var(--accent); }
.modal .btn { width: 100%; justify-content: center; }
.modal-result { margin-top: 16px; padding: 16px; border-radius: 8px; font-size: 14px; display: none; }
.modal-result.success { display: block; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-dim); }
.modal-result.error { display: block; background: #EF444422; color: var(--danger); border: 1px solid #EF444433; }
.license-display { margin-top: 12px; background: var(--bg-code); border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-family: var(--font-mono); font-size: 11px; word-break: break-all; color: var(--accent); max-height: 120px; overflow-y: auto; }

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .pricing-grid, .features-grid, .evidence-stats, .capabilities-grid, .steps-grid { grid-template-columns: 1fr; }
    .problem-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
    .evidence-link { flex-direction: column; align-items: flex-start; gap: 4px; }
    .evidence-source { margin-left: 0; }
}
