/* Demo site theme — same tokens and type as the main panel landing page. */
:root {
    --bg-base:     #07090f;
    --bg-surface:  #0d1117;
    --bg-elevated: #161b22;
    --bg-overlay:  #1c2333;
    --border:      #21262d;
    --cyan:        #00d4ff;
    --cyan-dim:    rgba(0, 212, 255, .12);
    --green:       #39ff14;
    --green-dim:   rgba(57, 255, 20, .10);
    --red:         #ff2d55;
    --red-dim:     rgba(255, 45, 85, .12);
    --purple:      #bf5af2;
    --purple-dim:  rgba(191, 90, 242, .12);
    --text-primary:   #e6edf3;
    --text-secondary: #8b949e;
    --text-muted:     #484f58;
    --mono: 'JetBrains Mono', monospace;
    --ui:   'Inter', system-ui, sans-serif;
    --radius: 8px;
}

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

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--ui);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(58% 44% at 18% 0%, rgba(0, 212, 255, .08), transparent 70%),
        radial-gradient(52% 40% at 88% 8%, rgba(191, 90, 242, .07), transparent 72%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #4de8ff; }

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

/* ── nav ───────────────────────────────────────────────────── */
.w-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7, 9, 15, .85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.w-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.w-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--text-primary);
}
.w-brand .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green);
}
.w-nav-right { display: flex; align-items: center; gap: 22px; }
.w-nav-right a {
    font-family: var(--mono); font-size: 11.5px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary);
}
.w-nav-right a:hover, .w-nav-right a.active { color: var(--cyan); }
@media (max-width: 620px) {
    .w-nav-right { gap: 14px; }
    .w-nav-right a { font-size: 10.5px; }
}

/* ── layout ────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 34px 24px 70px; }
.wrap-narrow { max-width: 440px; margin: 0 auto; padding: 56px 24px 70px; }

.hero { padding: 46px 0 30px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border: 1px solid rgba(0, 212, 255, .25);
    border-radius: 20px; background: var(--cyan-dim);
    font-family: var(--mono); font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

h1 {
    font-family: var(--mono); font-weight: 800; letter-spacing: -.02em;
    font-size: clamp(28px, 4.5vw, 44px); line-height: 1.12;
    margin: 16px 0 10px;
}
h1 .accent { color: var(--cyan); }
.subtitle { color: var(--text-secondary); font-size: 15px; max-width: 62ch; }

h2 {
    font-family: var(--mono); font-size: 14px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-primary); margin-bottom: 16px;
    display: flex; align-items: center; gap: 9px;
}
h2::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px;
    background: var(--fc, var(--cyan)); box-shadow: 0 0 10px var(--fc, var(--cyan));
}

/* ── cards ─────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.card {
    --fc: var(--cyan); --fc-dim: var(--cyan-dim);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 22px;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--fc); opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--fc); transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 0, 0, .35); }
.card:hover::before { opacity: 1; }
.card.cyan   { --fc: var(--cyan);   --fc-dim: var(--cyan-dim); }
.card.green  { --fc: var(--green);  --fc-dim: var(--green-dim); }
.card.purple { --fc: var(--purple); --fc-dim: var(--purple-dim); }
.card.red    { --fc: var(--red);    --fc-dim: var(--red-dim); }

.card > h2 { color: var(--text-primary); }
.card > h2::before { background: var(--fc); box-shadow: 0 0 10px var(--fc); }

/* ── forms ─────────────────────────────────────────────────── */
label {
    display: block; margin: 13px 0 5px;
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary);
}
input[type=text], input[type=email], input[type=password], textarea {
    width: 100%; padding: 10px 12px;
    background: var(--bg-base);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font: inherit; font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
    outline: none; border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}
textarea { min-height: 96px; resize: vertical; }
::placeholder { color: var(--text-muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; padding: 11px 20px;
    background: var(--cyan); color: #07090f;
    border: 0; border-radius: var(--radius);
    font-family: var(--mono); font-size: 12px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
    transition: all .2s;
}
.btn:hover { background: #4de8ff; box-shadow: 0 0 28px rgba(0, 212, 255, .4); transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { color: var(--text-primary); background: var(--bg-elevated); box-shadow: none; }

.notice {
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .3);
    color: var(--cyan); padding: 10px 14px;
    border-radius: var(--radius); margin-bottom: 18px;
    font-family: var(--mono); font-size: 12.5px;
}
.error {
    background: var(--red-dim); border: 1px solid rgba(255, 45, 85, .35);
    color: #ff6b86; padding: 10px 14px; border-radius: var(--radius);
    margin-bottom: 16px; font-family: var(--mono); font-size: 12.5px;
}
.muted { color: var(--text-secondary); font-size: 13px; }

/* ── comments / messages ───────────────────────────────────── */
.comment { border-top: 1px solid var(--border); padding: 13px 0; }
.comment:first-child { border-top: 0; }
.comment .who { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); font-weight: 700; }
.comment .when { color: var(--text-muted); font-family: var(--mono); font-size: 11px; margin-left: 8px; }
.comment .body { margin-top: 4px; color: var(--text-primary); word-break: break-word; }

.msg {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.msg .head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-family: var(--mono); font-size: 11.5px; color: var(--text-secondary);
    margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.msg .head .meta { min-width: 0; overflow-wrap: anywhere; }
.msg .head b { color: var(--purple); }
.msg .body { word-break: break-word; }
.del-form { flex: 0 0 auto; margin: 0; }
.msg-del {
    font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--red); background: transparent;
    border: 1px solid rgba(255, 45, 85, .45); border-radius: 6px;
    padding: 5px 11px; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.msg-del:hover { background: var(--red-dim); border-color: var(--red); }
.msg-del:active { transform: translateY(1px); }
.empty {
    background: var(--bg-surface); border: 1px dashed var(--border);
    border-radius: 12px; padding: 26px; color: var(--text-muted);
    font-family: var(--mono); font-size: 12.5px; text-align: center;
}
