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

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #1e2a4a;
    --border: #2a2a4a;
    --border-focus: #6c63ff;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b8a;
    --accent: #6c63ff;
    --accent-hover: #5a52e0;
    --accent-glow: #6c63ff30;
    --danger: #ff4444;
    --danger-bg: #ff444410;
    --warning: #ffaa00;
    --warning-bg: #ffaa0010;
    --success: #44cc44;
    --success-bg: #44cc4410;
    --radius: 10px;
    --radius-sm: 6px;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent-hover);
}

/* Auth pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.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 .hint {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox toggle */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s;
}

.toggle label::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + label {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle input:checked + label::before {
    transform: translateX(20px);
    background: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #cc3333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 8px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.sidebar-nav a .badge {
    margin-left: auto;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px 40px;
    max-width: 1200px;
}

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 500;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table tr:hover td {
    background: var(--bg-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-neutral {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Domain list */
.domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-name {
    font-weight: 500;
}

.domain-meta {
    color: var(--text-muted);
    font-size: 12px;
}

/* Evidence list */
.evidence-list {
    list-style: none;
}

.evidence-list li {
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border-left: 3px solid var(--border);
}

.evidence-list li.severity-high {
    border-left-color: var(--danger);
}

.evidence-list li.severity-medium {
    border-left-color: var(--warning);
}

.evidence-list li.severity-low {
    border-left-color: var(--accent);
}

.evidence-list .evidence-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* Verification page */
.verify-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.verify-header {
    text-align: center;
    margin-bottom: 30px;
}

.verify-header h1 {
    font-size: 28px;
    color: var(--accent);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .app-layout {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Public dashboard */
.public-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.public-header h1 {
    font-size: 32px;
    color: var(--accent);
}

.public-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
}

.search-bar input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
}

.modal h2 {
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== Landing Page ===== */

/* Shared */
.section-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, #6c63ff, #a78bfa, #6c63ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 42, 74, 0.4);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.btn) {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* Hero split */
.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-split-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 20% 50%, rgba(108, 99, 255, 0.08), transparent 70%),
        radial-gradient(ellipse 600px 400px at 80% 30%, rgba(167, 139, 250, 0.05), transparent 60%);
    pointer-events: none;
}

.hero-split-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
}

.hero-split-text h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-split-text > p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-split-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-metric {
    display: flex;
    flex-direction: column;
}

.hero-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.hero-metric-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Terminal */
.hero-split-visual {
    position: relative;
}

.terminal {
    background: #0a0a14;
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 99, 255, 0.05);
    position: relative;
    z-index: 1;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-title {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.terminal-line {
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-green { color: #44cc44; }
.term-purple { color: #a78bfa; }
.term-yellow { color: #facc15; }
.term-red { color: #ff4444; }
.term-dim { color: rgba(255, 255, 255, 0.3); }

.typing::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #a78bfa;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-accents {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.float-block {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.float-block-1 {
    top: -20px;
    right: -20px;
    background: #6c63ff;
    animation: float1 6s ease-in-out infinite;
}

.float-block-2 {
    bottom: -20px;
    left: -20px;
    background: #a78bfa;
    animation: float2 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ticker */
.ticker {
    overflow: hidden;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.ticker-track {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.ticker-item {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    white-space: nowrap;
    color: var(--text-muted);
}

.ticker-item.ticker-danger { color: var(--danger); }
.ticker-item.ticker-warning { color: var(--warning); }
.ticker-item.ticker-info { color: var(--accent); }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features alternating rows */
.features-alt {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-alt-inner {
    max-width: 900px;
    margin: 0 auto;
}

.features-alt-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 60px;
    letter-spacing: -0.3px;
}

.features-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row-visual {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.feature-row-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-row-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.feature-row-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-row-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
}

/* Timeline */
.how-alt {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.how-alt-inner {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    margin-top: 48px;
}

.timeline-item {
    display: flex;
    gap: 28px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
    padding-top: 6px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(108, 99, 255, 0.3), rgba(108, 99, 255, 0.05));
    min-height: 40px;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-card {
    flex: 1;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 28px;
    transition: border-color 0.2s;
}

.timeline-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-step {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-duration {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-left: auto;
}

.timeline-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* Pricing alt */
.pricing-alt {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-alt-inner {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.pricing-card-alt {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.pricing-card-alt:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

.pricing-card-alt-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.03), transparent 60%);
    pointer-events: none;
}

.pricing-card-alt-featured {
    border-color: rgba(108, 99, 255, 0.4);
    background: linear-gradient(135deg, var(--bg-card), rgba(108, 99, 255, 0.04));
}

.pricing-card-alt-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 10px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pricing-card-alt h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-card-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.pricing-card-currency {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card-value {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-card-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-card-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-card-features li svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
    margin-left: auto;
}

.footer-links a:first-of-type {
    margin-left: auto;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-split-text h1 {
        font-size: 36px;
    }

    .hero-split-text > p {
        max-width: none;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

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

    .hero-metric-divider {
        display: none;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .terminal {
        font-size: 10px;
    }

    .terminal-body {
        font-size: 10px;
        padding: 12px;
    }

    .timeline-item {
        gap: 16px;
    }

    .footer-row {
        flex-direction: column;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.toast {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease-out;
    pointer-events: auto;
    cursor: pointer;
    word-break: break-word;
}

.toast-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.toast-success {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
}

.toast-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.toast-info {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.toast-dismiss {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== Public Dashboard Redesign ===== */

.feed-hero {
    padding: 140px 24px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feed-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 400px at 50% 80%, rgba(108, 99, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 500px 300px at 30% 40%, rgba(167, 139, 250, 0.04), transparent 50%);
    pointer-events: none;
}

.feed-hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.feed-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.feed-hero-inner h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.feed-hero-inner > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Stats bar */
.feed-stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.feed-stats-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.feed-stat {
    text-align: center;
}

.feed-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.feed-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

.feed-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Controls bar */
.feed-controls {
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.feed-controls-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.feed-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.feed-search input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.feed-search input::placeholder {
    color: var(--text-muted);
}

.feed-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-count-label {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Feed body */
.feed-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.feed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 20px;
    color: var(--text-muted);
    text-align: center;
}

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 20px;
    text-align: center;
}

.feed-empty h3 {
    font-size: 18px;
    color: var(--text-secondary);
}

.feed-empty p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Threat cards */
.threat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    animation: threatCardIn 0.4s ease-out both;
}

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

.threat-card:nth-child(1) { animation-delay: 0s; }
.threat-card:nth-child(2) { animation-delay: 0.05s; }
.threat-card:nth-child(3) { animation-delay: 0.1s; }
.threat-card:nth-child(4) { animation-delay: 0.15s; }
.threat-card:nth-child(5) { animation-delay: 0.2s; }
.threat-card:nth-child(6) { animation-delay: 0.25s; }
.threat-card:nth-child(7) { animation-delay: 0.3s; }
.threat-card:nth-child(8) { animation-delay: 0.35s; }
.threat-card:nth-child(9) { animation-delay: 0.4s; }
.threat-card:nth-child(10) { animation-delay: 0.45s; }

.threat-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.threat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.threat-card-domain {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.threat-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}

.threat-card-badge-danger {
    background: rgba(255, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.threat-domain-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    word-break: break-all;
}

.threat-card-confidence {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.threat-conf-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--danger);
    line-height: 1;
}

.threat-conf-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.threat-conf-bar {
    width: 64px;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.threat-conf-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--danger));
    border-radius: 2px;
    transition: width 0.6s ease-out;
}

.threat-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.threat-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.threat-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.threat-card-reason {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid rgba(108, 99, 255, 0.3);
}

.threat-card-evidence {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.threat-evidence-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.threat-evidence-item.severity-high {
    border-left-color: var(--danger);
}

.threat-evidence-item.severity-medium {
    border-left-color: var(--warning);
}

.threat-evidence-item.severity-low {
    border-left-color: var(--accent);
}

/* Threat card buttons */
.btn-threat {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 600;
    gap: 8px;
}

.btn-threat-primary {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.btn-threat-primary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.threat-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Footer */
.feed-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 14px 24px;
}

.feed-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.feed-footer-links {
    display: flex;
    gap: 20px;
}

.feed-footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.feed-footer-links a:hover {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .feed-stats-inner {
        gap: 20px;
        padding: 16px;
    }

    .feed-stat-value {
        font-size: 22px;
    }

    .feed-controls-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-controls-right {
        justify-content: center;
    }

    .threat-card-top {
        flex-direction: column;
    }

    .threat-card-confidence {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .threat-conf-bar {
        width: 48px;
    }

    .threat-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feed-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
