/* =====================================
   Luna Site Theme Version 0.1
   Dark only: it's her terminal theme,
   pink on plum, with a hologram tint.
   ===================================== */
:root {
    color-scheme: dark;

    --bg-page: #110b19;
    --bg-surface: #180f24;
    --bg-surface-alt: #211433;
    --bg-terminal: #0d0813;

    --text-heading: #f4ecf8;
    --text-body: #cdbfd8;
    --text-secondary: #ad9dbb;
    --text-muted: #86749a;

    --border-color: #352446;
    --border-glow: #5a3b7a;

    --accent: #ff87d7;
    --accent-hover: #ffa3e2;
    --violet: #b48cff;
    --cyan: #5fd7ff;
    --holo: #c37bff;
    --button-text: #1a0f24;

    --ok: #7ee787;
    --warn: #f5c451;
    --bad: #ff6b81;

    --font-body: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

    /* rgba tints, kept in sync with the colours above */
    --shadow-color: 0, 0, 0;
    --accent-glow: 255, 135, 215;
    --violet-glow: 180, 140, 255;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(var(--accent-glow), 0.10), transparent 60%),
        radial-gradient(900px 500px at 95% 5%, rgba(var(--violet-glow), 0.12), transparent 60%),
        var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* faint scanlines over everything, the hologram look without the eye strain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
    pointer-events: none;
    z-index: 1;
}

main {
    flex: 1;
    position: relative;
    z-index: 2;
}

header, footer {
    position: relative;
    z-index: 3;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code, kbd, pre {
    font-family: var(--font-mono);
}

code {
    font-size: 0.9em;
    padding: 0.1em 0.4em;
    border-radius: 5px;
    background: rgba(var(--violet-glow), 0.12);
    color: var(--violet);
}

kbd {
    font-size: 0.85em;
    padding: 0.1em 0.45em;
    border: 1px solid var(--border-glow);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--bg-surface-alt);
    color: var(--text-heading);
}

pre code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.wide {
    max-width: 1200px;
}

/* Type */
h1, h2, h3, h4 {
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.eyebrow .sep {
    color: var(--violet);
    margin: 0 0.3em;
}

.dot {
    color: var(--text-muted);
    margin: 0 0.25em;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 62ch;
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    background: rgba(17, 11, 25, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 998;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 0 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-heading);
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(var(--accent-glow), 0.25), 0 0 18px rgba(var(--accent-glow), 0.25);
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.3rem;
}

.nav-container {
    flex: 1;

    display: flex;
    align-items: center;

    margin-left: 2rem;
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 1.5rem;

    margin-left: auto;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-heading);
}

.nav-links a.active {
    color: var(--text-heading);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-glow), 0.8);
}

/* Repo button */
.nav-actions {
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.repo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    text-decoration: none;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.9rem;

    padding: 0.55rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 999px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-btn:hover {
    color: var(--text-heading);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(var(--accent-glow), 0.25);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--text-heading);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    border: 1px solid transparent;

    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: var(--button-text);
    box-shadow: 0 0 24px rgba(var(--accent-glow), 0.35);
}

.btn.primary:hover {
    background: var(--accent-hover);
    color: var(--button-text);
    transform: translateY(-1px);
}

.btn.ghost {
    color: var(--text-heading);
    border-color: var(--border-glow);
}

.btn.ghost:hover {
    color: var(--text-heading);
    border-color: var(--violet);
    box-shadow: 0 0 16px rgba(var(--violet-glow), 0.25);
}

.more {
    display: inline-block;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--accent);
}

.more::after {
    content: " \2192";
}

/* MAIN CONTENT */
.site-main {
    padding-bottom: 3rem;
}

.section {
    padding: 4.5rem 0;
}

.section.alt {
    background: linear-gradient(180deg, rgba(var(--violet-glow), 0.05), rgba(var(--violet-glow), 0.02));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head {
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-foot {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* HUD panel: a surface with corner brackets */
.hud {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(var(--violet-glow), 0.08),
        0 30px 60px rgba(var(--shadow-color), 0.45),
        inset 0 0 60px rgba(var(--violet-glow), 0.05);
}

.hud::before,
.hud::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    pointer-events: none;
}

.hud::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}

.hud::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}

/* HERO */
.hero {
    padding: 5rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 58ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);

    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(var(--violet-glow), 0.06);
}

.hero-frame {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.hero-visual .hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: 100% 45%;
    transform: scale(1.12);
    transform-origin: 100% 45%;
    border-radius: 12px 12px 0 0;
}

.hero-visual figcaption,
.split-visual figcaption,
.shot figcaption {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0.9rem 1.1rem;
}

/* TERMINAL */
.terminal {
    background: var(--bg-terminal);
    border: 1px solid var(--violet);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(var(--violet-glow), 0.15), 0 24px 50px rgba(var(--shadow-color), 0.5);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(var(--violet-glow), 0.05);
}

.terminal-title {
    color: var(--accent);
    font-weight: 700;
}

.terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.live {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.status-dot.warn {
    background: var(--warn);
    box-shadow: 0 0 8px var(--warn);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.terminal-body {
    padding: 1.2rem 1.3rem;
    min-height: 300px;
    line-height: 1.7;
}

.terminal-body.static {
    min-height: 0;
}

.line {
    margin: 0.25rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.line.you  { color: var(--cyan); }
.line.sys  { color: var(--text-muted); }
.line.luna { color: var(--text-heading); }
.line.cmd  { color: var(--violet); }
.line.game { color: var(--text-secondary); }

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: pulse 1s steps(2) infinite;
}

/* confidence shading, the same bands as the thought viewer */
.tok.c90 { color: inherit; }
.tok.c60 { opacity: 0.6; }
.tok.c30 { color: var(--warn); }
.tok.c0  { color: var(--bad); }

.terminal-legend {
    padding: 0.8rem 1.3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.terminal-legend .tok {
    margin-left: 0.6em;
    color: var(--text-heading);
}

.demo-section {
    padding-top: 1rem;
}

.zork-card .terminal-body {
    font-size: 0.86rem;
}

/* PILLARS */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
}

.pillar-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--violet);
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.pillar p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;

    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.4rem;

    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 36px rgba(var(--shadow-color), 0.4), 0 0 20px rgba(var(--violet-glow), 0.12);
}

.feature-card h3 {
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* SCREENSHOTS */
.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.shot {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.shot img {
    width: 100%;
    cursor: zoom-in;
    border-bottom: 1px solid var(--border-color);
}

.shot.wide {
    margin: 2.5rem 0;
}

/* SPLIT */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split.reverse .split-copy {
    order: 2;
}

.split-copy h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: 1.2rem;
}

.split-copy p {
    margin-bottom: 1.2rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.split-copy .btn {
    margin-top: 0.4rem;
}

.split-visual img {
    width: 100%;
    border-radius: 12px 12px 0 0;
}

/* STACK LIST */
.stack-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    max-width: 820px;
}

.stack-list li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: baseline;

    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    line-height: 1.6;
}

.stack-list strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* CODE */
.code {
    position: relative;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin: 1rem 0 1.4rem;

    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-heading);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;

    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-secondary);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;

    transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
    color: var(--text-heading);
    border-color: var(--violet);
}

.copy-btn.done {
    color: var(--ok);
    border-color: var(--ok);
}

/* REPO STATS */
.repo-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    min-height: 96px;
}

.repo-stats.hidden {
    display: none;
}

.stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* PAGE HEAD */
.page-head {
    padding: 3.5rem 0 2rem;
}

.page-head h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
}

/* INFO SECTION */
.info-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.info-nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);

    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;

    transition: color 0.2s ease, border-color 0.2s ease;
}

.info-nav a:hover {
    color: var(--text-heading);
    border-color: var(--violet);
}

.info-nav a.current {
    color: var(--button-text);
    background: var(--accent);
    border-color: var(--accent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;

    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;

    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    color: inherit;
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 36px rgba(var(--shadow-color), 0.4), 0 0 20px rgba(var(--violet-glow), 0.12);
}

.info-card-image {
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-terminal);
}

.info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem;
    flex: 1;
}

.info-card-body h2 {
    font-size: 1.25rem;
}

.info-card-body p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.info-prose {
    max-width: 78ch;
}

.info-prose section {
    margin-bottom: 2.6rem;
}

.info-prose h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
}

.info-prose h3 {
    font-size: 1.1rem;
    margin: 1.4rem 0 0.6rem;
}

.info-prose p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-prose p:last-child {
    margin-bottom: 0;
}

.info-prose em {
    color: var(--text-heading);
}

.info-prose .shot.wide img {
    cursor: zoom-in;
}

.info-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    text-decoration: none;
    color: var(--text-heading);
    font-weight: 600;

    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 48%;

    transition: border-color 0.2s ease;
}

.pager-link:hover {
    color: var(--text-heading);
    border-color: var(--violet);
}

.pager-link.next {
    text-align: right;
    margin-left: auto;
}

.pager-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* TABLES */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    font-size: 0.93rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.55;
}

.spec-table thead th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(var(--violet-glow), 0.06);
}

.spec-table tbody th {
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table td:first-child {
    color: var(--text-heading);
    white-space: nowrap;
}

.mood-grid td {
    white-space: nowrap;
}

/* LISTS */
.plain-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.plain-list li {
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}

.plain-list li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.plain-list.columns {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
}

.plain-list strong {
    color: var(--text-heading);
}

/* VIDEOS */
.video-grid {
    display: grid;
    gap: 2.5rem;
}

.video {
    max-width: 900px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-terminal);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(var(--shadow-color), 0.5);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video h2 {
    font-size: 1.35rem;
    margin: 1.2rem 0 0.4rem;
}

.video-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.video p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 70ch;
}

/* HARDWARE */
.rig-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rig {
    padding: 1.6rem;
}

.rig.next {
    border-style: dashed;
}

.rig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.rig-head h2 {
    font-size: 1.3rem;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;

    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--accent-glow), 0.15);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-glow), 0.35);
}

.rig h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--violet);
    margin: 1.4rem 0 0.6rem;
}

.spec-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.spec-list div:last-child {
    border-bottom: none;
}

.spec-list dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.2rem;
}

.spec-list dd {
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text-body);
}

.rig-note {
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SETUP */
.step h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: none;
    padding-left: 0;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;

    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;

    color: var(--button-text);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(var(--accent-glow), 0.4);
}

.step-list {
    padding-left: 1.3rem;
    display: grid;
    gap: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-list strong {
    color: var(--text-heading);
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    text-decoration: none;
    color: inherit;

    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;

    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    color: inherit;
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 36px rgba(var(--shadow-color), 0.4), 0 0 20px rgba(var(--violet-glow), 0.12);
}

.contact-card .eyebrow {
    margin-bottom: 0.2rem;
}

.contact-card h2 {
    font-size: 1.2rem;
}

.contact-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ERRORS */
.error-view {
    margin-top: 3rem;
    max-width: 760px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;

    background: rgba(8, 4, 12, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(var(--shadow-color), 0.7);
}

.lightbox-caption {
    max-width: 80ch;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* FOOTER */
footer {
    padding: 2rem 2rem 2.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.footer-brand .logo-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-tagline {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-heading);
}

/* MOTION */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .status-dot,
    .cursor {
        animation: none;
    }

    .feature-card,
    .info-card,
    .contact-card,
    .btn {
        transition: none;
    }
}

/* TABLET */
@media (max-width: 1100px) {

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repo-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual .hero-img {
        height: 380px;
        object-position: 100% 20%;
    }

    .pillars,
    .shots,
    .contact-grid,
    .rig-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split.reverse .split-copy {
        order: 0;
    }

    .plain-list.columns {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* MOBILE NAV */
@media (max-width: 780px) {

    /* Header */
    .menu-toggle {
        display: block;
        margin-left: auto;
        font-size: 1.8rem;
        z-index: 999;
    }

    .logo-sub {
        display: none;
    }

    /* Full-screen menu */
    .nav-container {
        display: none;

        position: fixed;

        top: 70px;
        left: 0;

        width: 100vw;
        min-height: calc(100vh - 70px);

        margin-left: 0;
        padding: 1rem 2rem;

        background: var(--bg-page);
        border-top: 1px solid var(--border-color);

        flex-direction: column;
        align-items: stretch;

        overflow-y: auto;

        z-index: 10000;
    }

    .nav-container.active {
        display: flex !important;
    }

    /* Links */
    .nav-links {
        width: 100%;

        flex-direction: column;
        align-items: flex-start;

        gap: 0;
        margin-left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-actions {
        margin: 1.5rem 0 0;
    }

    .repo-btn {
        width: 100%;
        justify-content: center;
    }

    /* Content */
    .container,
    .nav-inner {
        padding: 0 1.2rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .terminal-body {
        min-height: 260px;
        font-size: 0.85rem;
    }

    .feature-grid,
    .repo-stats {
        grid-template-columns: 1fr;
    }

    .stack-list li,
    .spec-list div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .info-pager {
        flex-direction: column;
    }

    .pager-link,
    .pager-link.next {
        max-width: none;
        text-align: left;
        margin-left: 0;
    }

    .spec-table {
        display: block;
        overflow-x: auto;
    }

    .spec-table td:first-child {
        white-space: normal;
    }
}

@media (max-width: 600px) {

    .hero-visual .hero-img {
        height: 300px;
    }

    .hero-actions .btn,
    .section-foot .btn {
        width: 100%;
        text-align: center;
    }
}
