:root {
    --bg: #0d1420;
    --surface: #141d2b;
    --surface-raised: #1a2534;
    --border: #253244;
    --text-primary: #e7edf3;
    --text-secondary: #8fa1b3;
    --text-muted: #5a6b7d;
    --accent: #2dd4bf;
    --accent-on: #04211d;
    --sev-critical: #e5484d;
    --sev-high: #f2994a;
    --sev-medium: #f2c94c;
    --sev-low: #6fcf97;
    --tag-tech: #5aa9e6;
    --tag-capital: #f2c94c;
    --tag-people: #b892e8;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border);
}

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

a { color: inherit; text-decoration: none; }

.fw-mono { font-family: var(--font-mono); }

/* Nav */
.site-nav {
    border-bottom: 0.5px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.45;
    filter: grayscale(60%);
    transition: opacity 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.lang-switch a:hover { opacity: 0.8; filter: grayscale(20%); background: var(--surface); }
.lang-switch a.active { opacity: 1; filter: grayscale(0%); background: var(--surface); }

.btn-accent {
    font-family: var(--font-sans);
    font-weight: 500;
    background: var(--accent);
    color: var(--accent-on);
    border: none;
}
.btn-accent:hover { background: var(--accent); color: var(--accent-on); opacity: 0.88; }

.btn-outline-accent {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    border: 0.5px solid var(--border);
}
.btn-outline-accent:hover { border-color: var(--accent); color: var(--text-primary); background: transparent; }

/* Hero */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

h1 {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(28px, 4.4vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.lead-custom {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: 32px;
}

/* Form controls, dark themed */
.form-control {
    background: var(--surface);
    border: 0.5px solid var(--border);
    color: var(--text-primary);
    height: 46px;
    font-family: var(--font-sans);
    font-size: 15px;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.2);
}

.form-select {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238fa1b3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    border: 0.5px solid var(--border);
    color: var(--text-primary);
    height: 46px;
    font-family: var(--font-sans);
    font-size: 15px;
}
.form-select:focus {
    background-color: var(--surface);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.2);
}
.form-select option { background: var(--surface-raised); color: var(--text-primary); }

.trust-line { font-size: 13px; color: var(--text-muted); }

.alert-vigila {
    font-size: 13px;
    border-radius: 6px;
    padding: 10px 14px;
}
.alert-vigila.success { background: rgba(111, 207, 151, 0.1); color: var(--sev-low); border: 0.5px solid rgba(111, 207, 151, 0.3); }
.alert-vigila.error { background: rgba(229, 72, 77, 0.1); color: var(--sev-critical); border: 0.5px solid rgba(229, 72, 77, 0.3); }

/* Feed terminal card */
.feed-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 0.5px solid var(--border);
}

.feed-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

.live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sev-low);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.feed-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    padding: 13px 18px;
    border-bottom: 0.5px solid var(--border);
    opacity: 0;
    animation: fade-in 0.4s ease forwards;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:nth-child(2) { animation-delay: 0.08s; }
.feed-row:nth-child(3) { animation-delay: 0.16s; }
.feed-row:nth-child(4) { animation-delay: 0.24s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

.cve-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }

.badge.sev-critical { background: rgba(229, 72, 77, 0.15); color: var(--sev-critical); font-family: var(--font-mono); font-weight: 600; }
.badge.sev-high { background: rgba(242, 153, 74, 0.15); color: var(--sev-high); font-family: var(--font-mono); font-weight: 600; }
.badge.sev-medium { background: rgba(242, 201, 76, 0.15); color: var(--sev-medium); font-family: var(--font-mono); font-weight: 600; }

.feed-desc {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1 1 160px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

.feed-footer {
    padding: 10px 18px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface-raised);
}

/* Section headings */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* Features */
.feature h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-secondary); }

/* Steps */
.step { display: flex; gap: 24px; padding: 22px 0; border-bottom: 0.5px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); min-width: 28px; }
.step-body h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--text-secondary); max-width: 56ch; }

/* Video tutorial cards */
.video-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: border-color 0.15s ease;
}
.video-card:hover { border-color: var(--accent); }
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-raised);
    overflow: hidden;
}
.video-el {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--surface-raised);
    object-fit: cover;
}
.video-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding-left: 3px;
}
.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(90, 169, 230, 0.15);
    color: var(--tag-tech);
    white-space: nowrap;
}
.video-card-body { padding: 20px 20px 22px; }
.video-card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.video-card-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.video-duration { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

/* Auth pages */
.auth-shell { min-height: calc(100vh - 240px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
}
.auth-card h1 { font-family: var(--font-mono); font-weight: 600; font-size: 21px; margin-bottom: 6px; letter-spacing: -0.01em; }
.auth-card .auth-subtitle { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-card .form-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.auth-card .btn-accent { width: 100%; height: 46px; }
.auth-footer-link { font-size: 13.5px; color: var(--text-secondary); text-align: center; margin-top: 20px; }
.auth-footer-link a { color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

.footer-cta h2 { font-family: var(--font-mono); font-weight: 600; font-size: clamp(22px, 3.6vw, 26px); margin-bottom: 12px; letter-spacing: -0.01em; }
.footer-cta p { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }

.site-footer { font-size: 12.5px; color: var(--text-muted); }

/* Honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Roadmap step status tags */
.step-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}
.step-tag.active { background: rgba(45, 212, 191, 0.15); color: var(--accent); }
.step-tag.next { background: rgba(90, 169, 230, 0.13); color: var(--tag-tech); }
.step-tag.future { background: rgba(138, 148, 161, 0.13); color: var(--text-muted); }

/* Founder card */
.founder-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 26px;
}
.founder-mark {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 9px;
    background: var(--surface-raised);
    border: 0.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    color: var(--accent);
}
.founder-name { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.founder-role { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.founder-credential { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; max-width: 52ch; }

/* Alliance cards */
.alliance-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 20px 20px 22px;
    height: 100%;
}
.alliance-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 5px;
    margin-bottom: 14px;
}
.alliance-card.tech .alliance-tag { background: rgba(90, 169, 230, 0.15); color: var(--tag-tech); }
.alliance-card.capital .alliance-tag { background: rgba(242, 201, 76, 0.15); color: var(--tag-capital); }
.alliance-card.people .alliance-tag { background: rgba(184, 146, 232, 0.15); color: var(--tag-people); }
.alliance-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.alliance-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* Support / donations panel */
.support-panel {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 26px;
}
.support-costs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}
.support-costs span { white-space: nowrap; }
.support-costs b { color: var(--text-secondary); font-weight: 500; }
