@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.light {
    --bg: #fafafa;
    --bg2: #fff;
    --bg3: #f5f5f5;
    --text: #0a0a0a;
    --text2: #6b7280;
    --border: #e5e7eb;
    --card: #fff;
}

.dark {
    --bg: #0a0a0a;
    --bg2: #111;
    --bg3: #1a1a1a;
    --text: #fafafa;
    --text2: #a1a1aa;
    --border: #27272a;
    --card: #18181b;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s;
    min-height: 100vh;
}

.btn-primary {
    background: #635bff;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 91, 255, 0.3);
}

.btn-secondary {
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #635bff;
    color: #635bff;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.2s;
}

.card:hover {
    border-color: #635bff;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
}

.accent {
    color: #635bff;
}

.badge {
    background: #eef2ff;
    color: #635bff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-block;
}

.dark .badge {
    background: #1e1b4b;
}

.check-on {
    color: #22c55e;
}

.check-off {
    color: #d1d5db;
}

.dark .check-off {
    color: #3f3f46;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.theme-track {
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.dark .theme-track {
    background: #374151;
}

.theme-track::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark .theme-track::after {
    transform: translateX(20px);
}

.theme-label {
    font-size: 12px;
    color: var(--text2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tag {
    background: var(--bg3);
    color: var(--text2);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
}

.network-chip {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.network-chip.active {
    background: #635bff;
    color: #fff;
    border-color: #635bff;
}

.risk-low {
    color: #22c55e;
    font-weight: 700;
}

.risk-medium {
    color: #f59e0b;
    font-weight: 700;
}

.risk-high {
    color: #ef4444;
    font-weight: 700;
}

.risk-critical {
    color: #dc2626;
    font-weight: 800;
}

.signal-item {
    background: var(--bg3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    border-left: 3px solid #635bff;
}

.code-block {
    background: #0f0f1a;
    border: 1px solid #2d2d44;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    color: #e2e8f0;
}

.key-display {
    background: #0f0f1a;
    border: 1px solid #2d2d44;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #22c55e;
    word-break: break-all;
}

.tab-btn {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all 0.2s;
}

.tab-btn.active {
    background: #635bff;
    color: #fff;
    border-color: #635bff;
}

.plan-card {
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card.selected {
    border-color: #635bff;
    border-width: 2px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 12px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    width: 100%;
}

input:focus, select:focus {
    border-color: #635bff;
}

.tf-btn {
    padding: 6px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.tf-btn.active {
    background: #635bff;
    color: #fff;
    border-color: #635bff;
}

@media (max-width: 768px) {
    .product-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}