:root {
    color-scheme: dark;
    --bg: #07101d;
    --panel: #0e1b2b;
    --panel-soft: #13243a;
    --line: #263a52;
    --text: #f4f8fc;
    --muted: #a9b8ca;
    --cyan: #34d8ff;
    --blue: #4f8cff;
    --orange: #ff8a4c;
    --green: #48d597;
    --red: #ff6b73;
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 5%, rgba(52, 216, 255, .13), transparent 34rem),
        radial-gradient(circle at 88% 30%, rgba(79, 140, 255, .11), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: var(--cyan); }
a:hover { color: #8cecff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: white; color: black; padding: .7rem 1rem; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 16, 29, .9);
    border-bottom: 1px solid rgba(38, 58, 82, .8);
    backdrop-filter: blur(14px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.02em; font-size: 1.15rem; }
.brand span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #04101c;
    font-weight: 800;
    text-decoration: none;
}
.button:hover, button:hover { filter: brightness(1.08); color: #04101c; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button.small { min-height: 38px; padding: .45rem .8rem; }
.hero { padding: 7rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.7rem, 7vw, 5.3rem); letter-spacing: -.055em; max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.notice, .card, .form-card, .dashboard-card {
    background: linear-gradient(145deg, rgba(19, 36, 58, .94), rgba(10, 23, 38, .94));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.notice { padding: 1.4rem; }
.notice strong { color: var(--orange); }
.notice ul { padding-left: 1.2rem; margin-bottom: 0; color: var(--muted); }
.section { padding: 4.5rem 0; }
.section.alt { background: rgba(10, 23, 38, .5); border-block: 1px solid rgba(38, 58, 82, .55); }
.section-intro { max-width: 720px; margin-bottom: 2rem; }
.section-intro p, .muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { padding: 1.45rem; box-shadow: none; }
.card p { color: var(--muted); margin-bottom: 0; }
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 99px; background: rgba(72, 213, 151, .12); color: var(--green); font-size: .78rem; font-weight: 800; margin-bottom: .8rem; }
.tag.experimental { background: rgba(255, 138, 76, .12); color: var(--orange); }
.form-card { max-width: 760px; padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; color: var(--muted); font-weight: 700; font-size: .9rem; }
input, textarea, select {
    width: 100%;
    margin-top: .35rem;
    padding: .8rem .9rem;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #071320;
    color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
textarea { min-height: 125px; resize: vertical; }
.full { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; }
.flash { padding: .9rem 1rem; margin: 1rem 0; border-radius: 9px; border: 1px solid; }
.flash.success { color: #c5ffe4; background: rgba(72, 213, 151, .1); border-color: rgba(72, 213, 151, .45); }
.flash.error { color: #ffd1d4; background: rgba(255, 107, 115, .1); border-color: rgba(255, 107, 115, .45); }
.fine-print { font-size: .82rem; color: var(--muted); }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: min(480px, calc(100% - 2rem)); }
.auth-card .form-card { width: 100%; }
.dashboard-header { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dashboard-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-main { padding: 2.5rem 0 5rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.dashboard-card { padding: 1.4rem; box-shadow: none; }
.result { margin-top: 1rem; padding: 1rem; border-radius: 10px; background: #071320; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.result:empty { display: none; }
.status-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--green); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }
.inline-form select { margin: 0; width: auto; }
.inline-form button { min-height: 36px; padding: .35rem .65rem; }
code { color: #bdefff; }

@media (max-width: 800px) {
    .hero { padding-top: 4.5rem; }
    .hero-grid, .grid-3, .dashboard-grid { grid-template-columns: 1fr; }
    .nav-links a:not(.button) { display: none; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .full { grid-column: auto; }
    .actions .button { width: 100%; }
}
