@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/inter-latin.var.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/jetbrains-mono-latin.var.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

/* ─── Design Tokens (Theme B — manage/success/cancel) ─── */
:root {
    --green: #00ff41;
    --green-soft: #87ffaf;
    --green-dim: rgba(0, 255, 65, 0.09);
    --green-mid: rgba(0, 255, 65, 0.26);
    --green-glow: 0 0 20px rgba(0, 255, 65, 0.19), 0 0 40px rgba(0, 255, 65, 0.07);
    --yellow: #ffbd2e;
    --bg: #050805;
    --bg-top: #081008;
    --surface: rgba(10, 16, 11, 0.94);
    --surface-strong: rgba(13, 20, 14, 0.98);
    --text: #c5d7c8;
    --muted: #738376;
    --white: #eff9ef;
    --danger: #ff5b5b;
    --danger-dim: rgba(255, 91, 91, 0.1);
    --amber: #ffd166;
    --amber-dim: rgba(255, 209, 102, 0.12);
    --border: rgba(135, 255, 175, 0.12);
    --border-strong: rgba(135, 255, 175, 0.24);
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ─── Reset ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ─── Body base ─── */
body {
    font-family: var(--sans);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Scanline overlay ─── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

/* ─── Nav ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 8, 5, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.logo .cursor {
    animation: blink 1s step-end infinite;
}

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

.beta-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: #041004;
    background: var(--green);
    border: 1px solid var(--green-mid);
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
}

/* ─── Container / Page ─── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease;
}

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

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--green);
    color: #041004;
    box-shadow: 0 10px 28px rgba(0, 255, 65, 0.12);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(0, 255, 65, 0.22), var(--green-glow);
}

.btn-outline {
    background: rgba(8, 12, 9, 0.85);
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--green-mid);
    color: var(--green-soft);
}

/* ─── Forms ─── */
.text-input {
    width: 100%;
    padding: 13px 14px;
    background: rgba(6, 10, 7, 0.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--green-soft);
    font-family: var(--mono);
    font-size: 14px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input::placeholder {
    color: rgba(115, 131, 118, 0.52);
}

.text-input:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 4px rgba(0, 255, 65, 0.08);
}

.field-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── Messages ─── */
.error,
.flash-note {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 12px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    display: none;
}

.error {
    color: #ffd2d2;
    background: rgba(45, 8, 8, 0.8);
    border: 1px solid rgba(255, 91, 91, 0.22);
}

.flash-note {
    color: #d7ffe0;
    background: rgba(10, 28, 12, 0.88);
    border: 1px solid rgba(0, 255, 65, 0.18);
}

.success-msg {
    color: var(--green-soft);
    font-family: var(--mono);
    font-size: 13px;
    padding: 18px;
    background: rgba(8, 20, 10, 0.88);
    border: 1px solid var(--green-mid);
    border-radius: 12px;
    text-align: center;
    line-height: 1.7;
}

/* ─── Utilities ─── */
.full-width {
    width: 100%;
}

.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

.hidden {
    display: none;
}
