/* home.css — standalone stylesheet for home.html (docs + landing page).
   Deliberately NOT index.css: this page must stay a lightweight static
   document. Design tokens are copied from index.css :root — keep the two
   in sync if the palette ever changes. */

:root {
    --bg-deep:       #020810;
    --bg-glass:      rgba(6, 18, 40, 0.45);
    --bg-inset:      rgba(4, 10, 26, 0.70);

    --accent-cyan:         #00b9d2;
    --accent-cyan-bright:  #00d4f0;
    --accent-orange:       #e8810a;
    --accent-green:        #1ec86d;
    --accent-amber:        #f5a623;

    --text-primary:   #e8f0fa;
    --text-secondary: #6e8aad;
    --text-dim:       rgba(110, 138, 173, 0.55);
    --text-bright:    #ffffff;

    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-medium:  rgba(255, 255, 255, 0.12);
    --border-cyan:    rgba(0, 185, 210, 0.35);
    --border-orange:  rgba(232, 129, 10, 0.35);

    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-pill: 999px;

    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255,255,255,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    /* Faint cyan glow top-center — echoes the game's glass aesthetic
       without shipping an image. */
    background-image: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(0, 185, 210, 0.12), transparent 70%);
    background-repeat: no-repeat;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: var(--accent-cyan-bright); }

/* ── Shared components (ported look from index.css) ─────────────────── */

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    border-radius: var(--radius-pill);
}

.neon-btn {
    display: inline-block;
    background: rgba(0, 185, 210, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}
.neon-btn:hover {
    background: rgba(0, 185, 210, 0.25);
    border-color: var(--accent-cyan-bright);
    color: #fff;
}
.neon-btn.big { padding: 14px 28px; font-size: 14px; }

.kbd {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-inset);
    border: 1px solid var(--border-medium);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 7px;
    line-height: 1.5;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(2, 8, 16, 0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-bright);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.2px;
}
.topbar-brand img { width: 26px; height: 26px; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 72px 20px 48px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-bright);
    line-height: 1.15;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent-cyan);
}
.hero .hero-sub {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 17px;
}
.hero .hero-cta { margin-top: 28px; }

.hero-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 44px;
}
.hero-shots figure {
    overflow: hidden;
    padding: 6px;
}
.hero-shots img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.hero-shots figcaption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 4px 4px;
}

/* ── Docs layout: sidebar + content ──────────────────────────────────── */

.docs {
    display: grid;
    grid-template-columns: 200px minmax(0, 860px);
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.docs-nav {
    position: sticky;
    top: 66px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.docs-nav a {
    color: var(--text-secondary);
    padding: 8px 12px;
    border-left: 2px solid var(--border-subtle);
    transition: all 0.15s ease;
}
.docs-nav a:hover { color: var(--text-primary); }
.docs-nav a.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 185, 210, 0.06);
}

.docs-content section {
    /* Anchor targets land below the sticky top bar. */
    scroll-margin-top: 80px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.docs-content section:last-child { border-bottom: none; }

.docs-content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 18px;
}
.docs-content h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-bright);
    margin: 26px 0 10px;
}
.docs-content p { color: var(--text-secondary); margin: 10px 0; }
.docs-content p strong, .docs-content li strong { color: var(--text-primary); font-weight: 600; }
.docs-content ul, .docs-content ol {
    color: var(--text-secondary);
    margin: 10px 0;
    padding-left: 22px;
}
.docs-content li { margin: 6px 0; }

/* Tables (shortcuts, calendar) */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
}
.docs-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-medium);
}
.docs-table td {
    color: var(--text-secondary);
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.docs-table td:first-child { white-space: nowrap; }

/* Callout (dev note / warning) */
.callout {
    margin: 18px 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    border: 1px solid var(--border-orange);
    border-radius: var(--radius-md);
    background: rgba(232, 129, 10, 0.07);
}
.callout strong { color: var(--accent-amber); }
.callout.info {
    border-color: var(--border-cyan);
    background: rgba(0, 185, 210, 0.06);
}
.callout.info strong { color: var(--accent-cyan); }

/* Roadmap entries */
.roadmap-list { list-style: none; padding: 0; }
.roadmap-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.roadmap-list li:last-child { border-bottom: none; }
.rm-status {
    flex: 0 0 92px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 3px 0;
    border-radius: var(--radius-pill);
}
.rm-status.done    { color: var(--accent-green); border: 1px solid rgba(30, 200, 109, 0.4);  background: rgba(30, 200, 109, 0.08); }
.rm-status.wip     { color: var(--accent-amber); border: 1px solid rgba(245, 166, 35, 0.4);  background: rgba(245, 166, 35, 0.08); }
.rm-status.planned { color: var(--text-dim);     border: 1px solid var(--border-medium); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 20px 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .docs {
        grid-template-columns: 1fr;
        gap: 0;
    }
    /* Sidebar becomes a horizontal chip row pinned under the top bar. */
    .docs-nav {
        position: sticky;
        top: 47px;
        z-index: 90;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 0;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        background: rgba(2, 8, 16, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .docs-nav::-webkit-scrollbar { display: none; }
    .docs-nav a {
        white-space: nowrap;
        border-left: none;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-pill);
        padding: 6px 14px;
    }
    .docs-nav a.active {
        border-color: var(--border-cyan);
    }
    .docs-content section { scroll-margin-top: 108px; }
    .hero { padding-top: 48px; }
    .hero-shots { grid-template-columns: 1fr; }
}
