*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:        #0b0c0e;
    --surface:   #111317;
    --border:    rgba(255,255,255,0.08);
    --border-hi: rgba(255,255,255,0.15);
    --ink:       #e8e9ec;
    --ink-dim:   #4a4d57;
    --ink-muted: #8a8d99;
    --cyan:      #00d4b4;
    --cyan-dim:  rgba(0, 212, 180, 0.12);
    --cyan-glow: rgba(0, 212, 180, 0.25);

    --font-display: 'Syne', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;
    --font-body:    'IBM Plex Sans', sans-serif;
}

html { font-size: 16px; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ── Background grid ——————————————————————— */

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Corner brackets ─────────────────────────── */

.corner {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 10;
    pointer-events: none;
}

.corner--tl { top: 20px; left: 20px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.corner--tr { top: 20px; right: 20px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.corner--bl { bottom: 20px; left: 20px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.corner--br { bottom: 20px; right: 20px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

/* ── Utility ─────────────────────────────────── */

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.dim { color: var(--ink-dim); }

/* ── Page layout ─────────────────────────────── */

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 0 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────── */

.site-header {
    padding: 2.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
}

.logo-bracket {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-weight: 300;
}

.logo-name {
    color: var(--ink);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-dim);
}

/* —— pulsing dot ———————————————————— */
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--cyan-glow); }
    50%       { opacity: 0.6; box-shadow: 0 0 0 5px transparent; }
}

/* ── Main ────────────────────────────────────── */

.main-content {
    flex: 1;
    padding: 4.5rem 0 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.tag {
    color: var(--cyan);
    opacity: 0.75;
}

h1 {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
}

.h1-top,
.h1-bottom {
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    color: var(--ink);
}

.h1-accent {
    font-size: clamp(3rem, 10vw, 6.25rem);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cyan);
    letter-spacing: -0.02em;
}

.lead {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.8;
    max-width: 500px;
}

/* ── Status panel ────────────────────────────── */

.status-panel {
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.panel-header .mono:first-child {
    color: var(--cyan);
}

.panel-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-row {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    gap: 1rem;
}

.status-key {
    color: var(--ink-dim);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.status-bar-wrap {
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 0;
    overflow: hidden;
}

.status-bar {
    display: block;
    height: 100%;
    width: var(--w);
    background: var(--cyan);
    opacity: 0.7;
    animation: barLoad 1.4s cubic-bezier(.4,0,.2,1) both;
}

.status-bar.full {
    opacity: 1;
}

@keyframes barLoad {
    from { width: 0; }
    to   { width: var(--w); }
}

.status-pct {
    color: var(--ink-muted);
    text-align: right;
    font-size: 0.7rem;
}

.status-pct.ok {
    color: var(--cyan);
}

/* ── Notify ──────────────────────────────────── */

.notify-section {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.notify-label {
    color: var(--ink-dim);
}

.notify-form {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.notify-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: none;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.notify-form input[type="email"]::placeholder {
    color: var(--ink-dim);
}

.notify-form input[type="email"]:focus {
    border-color: var(--cyan);
}

.notify-form button {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--bg);
    background: var(--cyan);
    border: 1px solid var(--cyan);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.notify-form button:hover {
    background: #00f5d0;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.notify-confirm {
    color: var(--cyan);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.6;
}

.notify-confirm.visible {
    opacity: 1;
}

/* ── Contact ─────────────────────────────────── */

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-sep {
    color: var(--border-hi);
}

.contact-link {
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ── Footer ─────────────────────────────────── */

.site-footer {
    padding: 1.75rem 0 2.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-sep { color: var(--border-hi); }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 540px) {
    .page { padding: 0 1.5rem; }

    .header-status { display: none; }

    .status-row {
        grid-template-columns: 80px 1fr 70px;
        gap: 0.6rem;
    }

    .notify-form { flex-direction: column; }

    .notify-form input[type="email"] {
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    .notify-form input[type="email"]:focus {
        border-color: var(--cyan);
    }

    .notify-form button { width: 100%; }

    .site-footer { flex-wrap: wrap; gap: 0.5rem; }
}