/* DCO_AI Reforger — shared design system ("tactical modern") */

:root {
    --bg: #0b0c09;
    --surface: #121410;
    --surface-2: #171a14;
    --border: #22261c;
    --border-strong: #2f3427;
    --text: #d4dbc6;
    --text-mid: #9aa48a;
    --text-dim: #667058;
    --white: #f1f4ea;

    --yellow: #facc15;
    --yellow-hover: #eab308;
    --yellow-soft: rgba(250, 204, 21, 0.08);
    --yellow-line: rgba(250, 204, 21, 0.3);
    --green: #22c55e;
    --orange: #f97316;
    --red: #ef4444;
    --blue: #60a5fa;
    --teal: #2dd4bf;
    --pink: #f472b6;
    --purple: #a78bfa;
    --discord: #5865f2;

    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --container: 1120px;
    --nav-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== TYPE ===== */
.kicker {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.kicker.dim { color: var(--text-dim); }
h1, h2, h3 { color: var(--white); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.accent { color: var(--yellow); }
.lead { font-size: 17px; color: var(--text-mid); max-width: 680px; }
.muted { color: var(--text-mid); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--mono); }

/* ===== NAV ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(11, 12, 9, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: var(--yellow); padding: 3px; }
.brand-name { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--white); letter-spacing: 0.04em; }
.brand-name span { color: var(--yellow); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto; }
.nav-links a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-cta { flex-shrink: 0; }

.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--yellow); position: relative; transition: transform 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: flex; margin-left: 0; }
    .nav-cta { margin-left: auto; }
    .nav-links { display: none; }
    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        padding: 8px 20px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--border-strong);
    }
    .nav.open .nav-links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
    .nav.open .nav-links a[aria-current="page"] { box-shadow: none; color: var(--yellow); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: #0b0c09; }
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: #0b0c09; box-shadow: 0 0 20px rgba(250, 204, 21, 0.25); }
.btn-discord:hover { border-color: var(--discord); color: #a5b4fc; }
.btn-sm { padding: 8px 14px; font-size: 11px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .kicker { margin-bottom: 8px; }
.section-head p { color: var(--text-mid); max-width: 560px; margin-top: 8px; }
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--yellow-soft), transparent 70%); }
.page-head .kicker { margin-bottom: 12px; }
.page-head h1 { margin-bottom: 12px; }
.page-head + .section { border-top: 0; }

/* ===== CARDS / GRIDS ===== */
.card { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-mid); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.list li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-mid); }
.list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--yellow); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--surface); }
.stat { padding: 18px 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-val { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ===== CHIPS / BADGES ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border: 1px solid var(--border-strong);
    color: var(--text-mid);
    white-space: nowrap;
}
.chip-live { color: var(--green); border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.07); }
.chip-dev { color: var(--orange); border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.07); }
.chip-planned { color: var(--text-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Category colours (roadmap.json "color") */
.c-yellow { --c: var(--yellow); }
.c-green { --c: var(--green); }
.c-blue { --c: var(--blue); }
.c-orange { --c: var(--orange); }
.c-teal { --c: var(--teal); }
.c-red { --c: var(--red); }
.c-pink { --c: var(--pink); }
.c-purple { --c: var(--purple); }
.tag { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; color: var(--c, var(--text-mid)); border: 1px solid color-mix(in srgb, var(--c, #888) 35%, transparent); background: color-mix(in srgb, var(--c, #888) 8%, transparent); white-space: nowrap; }

/* ===== PROGRESS ===== */
.bar { height: 6px; background: var(--border); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--c, var(--yellow)); transition: width 0.8s ease; }
.bar.lg { height: 10px; }
.bar.glow > span { box-shadow: 0 0 12px rgba(250, 204, 21, 0.45); }

/* ===== LEGEND ===== */
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-mid); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== VIDEO (lite YouTube) ===== */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: 1px solid var(--border); cursor: pointer; overflow: hidden; }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7)); transition: opacity 0.2s; }
.yt:hover::after { opacity: 0.6; }
.yt-play {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    width: 68px; height: 68px; transform: translate(-50%, -50%);
    background: var(--yellow); display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s;
}
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-play::before { content: ''; border-left: 20px solid #0b0c09; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.yt-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-weight: 600; color: var(--white); font-size: 14px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* ===== CALLOUT ===== */
.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 32px;
    border: 1px solid var(--yellow-line);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), transparent 60%), var(--surface);
}
.callout h2 { margin-bottom: 6px; }
.callout p { color: var(--text-mid); max-width: 560px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: #090a07; padding: 48px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer p { color: var(--text-dim); font-size: 13px; max-width: 360px; margin-top: 12px; }
.footer h4 { font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--text-mid); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== UTIL ===== */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
