/* ==========================================================================
   RETRO RUNBOOK - MAIN STYLESHEET
   Unified 1600px boxed layout · Cohesive design system
   ========================================================================== */

/* COLORS & DESIGN TOKENS */
:root {
    /* Base palette */
    --bg-base: #0A0A0E;
    --bg-panel: #111116;
    --bg-card: #16141E;
    --bg-card-hover: #1E1A28;
    
    /* Accent colors - warm amber */
    --accent: #F7A94D;
    --accent-strong: #FFD080;
    --accent-soft: #FCDFA7;
    --accent-glow: rgba(247, 169, 77, 0.12);
    
    /* Text */
    --text-main: #F2F1EC;
    --text-muted: #9B9AAE;
    --text-dim: #6E6D82;
    
    /* Status colors */
    --status-stable: #5BD49A;
    --status-wip: #FFB54D;
    --status-notes: #FF7087;
    
    /* Borders & effects */
    --border-soft: rgba(255, 210, 122, 0.12);
    --border-hover: rgba(247, 169, 77, 0.35);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Spacing rhythm */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Transitions */
    --transition-fast: 0.12s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* HARD RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML */
html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

/* BODY - THE BOX */
body {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    font-family: "Space Grotesk", -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-family: "Press Start 2P", monospace;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

h2 {
    font-family: "Press Start 2P", monospace;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

h3 {
    font-family: "Press Start 2P", monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

p {
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-soft);
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

ul, ol {
    padding-left: 24px;
}

li {
    font-size: 16px;
    margin-bottom: 8px;
}

li:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
}

/* ==========================================================================
   HEADER - FIXED 1600px
   ========================================================================== */

.site-header {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.98) 0%, rgba(10, 10, 14, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-panel);
    border: 1px solid rgba(247, 169, 77, 0.4);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-wrap:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(247, 169, 77, 0.15);
}

.logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #1A1205;
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.logo-text {
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: transparent;
    color: var(--text-main);
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-toggle-bars {
    width: 16px;
    height: 10px;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 4px; }
.nav-toggle-bars::after { bottom: 0; }

.primary-nav {
    display: flex;
    justify-content: center;
}

.primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-nav li {
    margin: 0;
}

.primary-nav a {
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a.is-active {
    color: var(--accent);
}

/* DROPDOWN */
.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    padding: 16px;
    padding-top: 20px;
    margin-top: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

/* Invisible bridge to prevent gap issues */
.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Keep dropdown open with delay when leaving */
.has-dropdown .dropdown {
    transition: opacity 0.3s ease 0.15s, visibility 0.3s ease 0.15s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 9px;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.dropdown a:hover {
    background: rgba(247, 169, 77, 0.12);
}

/* ==========================================================================
   FLOATING SIDE NAVIGATION (Single-page mode)
   ========================================================================== */

.floating-nav {
    position: fixed;
    left: 24px;
    top: 20%;
    transform: translateY(0);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.floating-nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.floating-nav-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.toggle-icon {
    width: 18px;
    height: 14px;
    position: relative;
    display: block;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transition: transform var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
}

.toggle-icon::before {
    top: 0;
}

.toggle-icon::after {
    bottom: 0;
}

/* Arrow indicator when open */
.floating-nav.is-open .toggle-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
}

.floating-nav.is-open .toggle-icon::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    width: 10px;
}

.floating-nav-content {
    position: absolute;
    left: 52px;
    top: 0;
    min-width: 160px;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

.floating-nav.is-open .floating-nav-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-nav-label {
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 4px;
}

.floating-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-nav li {
    margin: 0;
}

.floating-nav a {
    display: block;
    padding: 10px 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.floating-nav a:hover,
.floating-nav a.is-active {
    color: var(--accent);
    background: var(--accent-glow);
}

/* Submenu styles */
.has-submenu {
    position: relative;
}

.submenu-trigger {
    display: block;
}

.floating-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), opacity var(--transition-normal);
    opacity: 0;
}

.has-submenu.is-expanded .floating-submenu {
    max-height: 400px;
    opacity: 1;
}

.floating-submenu li {
    margin: 0;
}

.floating-submenu a {
    padding: 7px 12px 7px 20px;
    font-size: 8px;
    color: var(--text-dim);
    border-left: 2px solid var(--border-soft);
    border-radius: 0;
    margin-left: 8px;
}

.floating-submenu a:hover,
.floating-submenu a.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: transparent;
}

/* Hide floating nav on mobile, show hamburger header instead */
@media (max-width: 1200px) {
    .floating-nav {
        display: none;
    }
}

/* ==========================================================================
   SINGLE PAGE LAYOUT
   ========================================================================== */

/* Invisible section boundaries for scroll detection */
.section-boundary {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.page-single .page-content {
    scroll-behavior: smooth;
}

.page-section {
    padding-top: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 80px;
}

.page-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}

.section-label {
    display: inline-block;
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 12px;
}

.section-meta {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   PAGE CONTENT - FIXED 1400px with inner padding
   ========================================================================== */

.page-content {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 80px 60px 80px;
    flex: 1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    margin-bottom: 40px;
    background: linear-gradient(145deg, rgba(40, 30, 20, 0.85) 0%, rgba(22, 18, 28, 0.9) 60%, rgba(18, 22, 32, 0.85) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero .label {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    font-size: 28px;
    line-height: 1.45;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lede {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.hero-card {
    padding: 28px;
    background: rgba(20, 16, 14, 0.85);
    border: 1px solid rgba(247, 169, 77, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
}

.hero-card > p:first-child {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.meta-grid {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 14px;
}

.meta-grid li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin: 0;
    transition: background var(--transition-fast);
}

.meta-grid li:hover {
    background: rgba(0, 0, 0, 0.45);
}

.meta-label {
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.meta-value {
    font-size: 14px;
    color: var(--text-main);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 24px;
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #E59530 100%);
    color: #1A1205;
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(247, 169, 77, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    color: #1A1205;
    box-shadow: 0 4px 20px rgba(247, 169, 77, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-soft);
    border-color: rgba(247, 169, 77, 0.35);
}

.btn-secondary:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */

.content-stack {
    display: grid;
    gap: 28px;
}

.content-block {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-normal);
    scroll-margin-top: 100px;
}

.content-block:hover {
    border-color: var(--border-hover);
}

.content-block h2 {
    margin-bottom: 22px;
    color: var(--accent-soft);
    position: relative;
    padding-bottom: 14px;
}

.content-block h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    border-radius: 1px;
}

.content-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block ul,
.content-block ol {
    margin-top: 18px;
}

.content-block li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}

/* ==========================================================================
   SUBSECTIONS (nested within content blocks)
   ========================================================================== */

.subsection {
    margin-top: 20px;
    padding: 18px 24px 18px 28px;
    margin-left: 48px; /* Strong indent from parent content */
    background: rgba(0, 0, 0, 0.18);
    border-left: 3px solid rgba(247, 169, 77, 0.3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    scroll-margin-top: 120px;
}

.subsection:first-of-type {
    margin-top: 20px;
}

.subsection h4 {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 12px;
}

.subsection p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.subsection ol,
.subsection ul {
    margin-top: 10px;
    padding-left: 24px;
}

.subsection li {
    font-size: 14px;
    margin-bottom: 6px;
}

/* ==========================================================================
   OVERLAY MODULE
   ========================================================================== */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.overlay-panel {
    position: relative;
    width: 75%;
    max-width: 900px;
    height: 100%;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-soft);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.overlay.is-open .overlay-panel {
    transform: translateX(0);
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    z-index: 10;
}

.overlay-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.overlay-content {
    padding: 60px 48px 48px;
    flex: 1;
}

.overlay-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}

.overlay-label {
    display: inline-block;
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.overlay-header h2 {
    font-size: 24px;
    color: var(--text-main);
}

.overlay-body {
    display: grid;
    gap: 20px;
}

.overlay-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

.overlay-card:hover {
    border-color: var(--border-hover);
}

.overlay-card h3 {
    margin-bottom: 12px;
    color: var(--accent-soft);
}

.overlay-card p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Overlay trigger button */
.overlay-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.overlay-trigger:hover {
    background: var(--accent);
    color: var(--bg-base);
}

.overlay-trigger-icon {
    font-size: 10px;
}

@media (max-width: 768px) {
    .overlay-panel {
        width: 100%;
        max-width: none;
    }
    
    .overlay-content {
        padding: 60px 24px 32px;
    }
    
    .subsection {
        margin-left: 16px;
        padding: 14px 16px 14px 18px;
    }
}

/* ==========================================================================
   UPDATE LIST
   ========================================================================== */

.update-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.update-list li {
    display: flex;
    gap: 24px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    margin: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.update-list li:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(247, 169, 77, 0.1);
}

.update-date {
    font-family: "Consolas", monospace;
    font-size: 13px;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0.9;
}

.update-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(247, 169, 77, 0.08);
}

.card h3 {
    color: var(--accent-soft);
    transition: color var(--transition-fast);
}

.card:hover h3 {
    color: var(--accent);
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

.card-tag {
    display: inline-block;
    padding: 6px 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-top: auto;
    width: fit-content;
}

.card-tag.stable {
    background: rgba(91, 212, 154, 0.12);
    color: var(--status-stable);
    border: 1px solid rgba(91, 212, 154, 0.2);
}

.card-tag.wip {
    background: rgba(255, 181, 77, 0.12);
    color: var(--status-wip);
    border: 1px solid rgba(255, 181, 77, 0.2);
}

.card-tag.notes {
    background: rgba(255, 112, 135, 0.12);
    color: var(--status-notes);
    border: 1px solid rgba(255, 112, 135, 0.2);
}

/* ==========================================================================
   STATUS TABLES
   ========================================================================== */

.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.status-table th,
.status-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.status-table th {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
}

.status-table td {
    font-size: 14px;
    color: var(--text-muted);
}

.status-table tbody tr {
    transition: background var(--transition-fast);
}

.status-table tbody tr:hover {
    background: rgba(247, 169, 77, 0.04);
}

.status-table a {
    color: var(--accent-soft);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.status-badge.stable {
    background: rgba(91, 212, 154, 0.12);
    color: var(--status-stable);
    border: 1px solid rgba(91, 212, 154, 0.2);
}

.status-badge.wip {
    background: rgba(255, 181, 77, 0.12);
    color: var(--status-wip);
    border: 1px solid rgba(255, 181, 77, 0.2);
}

.status-badge.notes {
    background: rgba(255, 112, 135, 0.12);
    color: var(--status-notes);
    border: 1px solid rgba(255, 112, 135, 0.2);
}

.status-legend {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.status-legend > div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.status-legend dt {
    flex-shrink: 0;
}

.status-legend dd {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER - FIXED 1400px
   ========================================================================== */

.site-footer {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    margin-top: auto;
    padding: 36px 80px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.footer-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--accent);
}

.legal {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    opacity: 0.8;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 32px 40px 48px 40px;
    }
    
    .site-footer {
        padding: 24px 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .primary-nav {
        display: none;
        width: 100%;
    }
    
    body.nav-open .primary-nav {
        display: flex;
    }
    
    .primary-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .primary-nav li {
        border-bottom: 1px solid var(--border-soft);
    }
    
    .primary-nav a {
        display: block;
        padding: 16px;
    }
    
    .has-dropdown .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        min-width: 100%;
        border: none;
        border-radius: 0;
        padding: 0 0 0 24px;
    }
    
    .page-content {
        padding: 24px 20px 40px 20px;
    }
    
    .hero {
        padding: 24px;
    }
    
    .content-block {
        padding: 24px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    .site-footer {
        padding: 20px;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .update-list li {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Single page sections mobile */
    .page-section {
        padding-top: 24px;
        padding-bottom: 40px;
    }
    
    .section-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
}

/* ==========================================================================
   HOME PAGE ENHANCEMENTS
   ========================================================================== */

.page-home .hero-home {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(247, 169, 77, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(91, 212, 154, 0.05) 0%, transparent 50%),
        linear-gradient(145deg, rgba(40, 30, 20, 0.9) 0%, rgba(22, 18, 28, 0.95) 50%, rgba(18, 22, 32, 0.9) 100%);
}

/* Subtle entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.5s ease-out;
}

.content-block {
    animation: fadeInUp 0.5s ease-out backwards;
}

.content-stack .content-block:nth-child(1) { animation-delay: 0.1s; }
.content-stack .content-block:nth-child(2) { animation-delay: 0.2s; }
.content-stack .content-block:nth-child(3) { animation-delay: 0.3s; }

/* Info note styling */
.info-note {
    font-size: 14px;
    color: var(--text-muted);
    padding: 14px 18px;
    background: rgba(247, 169, 77, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0;
}

/* Code blocks */
code {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Selection styling */
::selection {
    background: rgba(247, 169, 77, 0.3);
    color: var(--text-main);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(247, 169, 77, 0.25);
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(247, 169, 77, 0.4);
}
