/* =====================================================================
   IE-R // LINUX LANDING // style.css

   TABLE OF CONTENTS
     1. Design Tokens
     2. Reset & Base
     3. Site Container & Layout
     4. Header & Navigation
     5. Hero Banner
     6. Section Header
     7. Procedure Box
     8. Controls Table + Key Caps
     9. Tier Rows (architecture)
    10. Command Line + Sub-section Typography
    11. Stack List
    12. Mini Palette
    13. Sidebar Control Panel
    14. Footer
    15. Responsive
   ===================================================================== */


/* --- 1. DESIGN TOKENS ------------------------------------------------ */
:root {
    --bg: #0a0c10;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #00f3ff;
    --magenta: #ff00ff;
    --green: #00ff88;
    --border: rgba(255, 255, 255, 0.08);
    --industrial-gray: rgba(255, 255, 255, 0.03);

    /* Layout */
    --header-h: 4.2rem; /* 1.7rem h1 + 2 × 1.25rem padding */

    /* Typography scale */
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;
    --fs-h2: clamp(1.1rem, 3vw, 1.4rem);
    --fs-mono: 0.85rem;
}


/* --- 2. RESET & BASE ------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
}

p { margin-bottom: 1.5rem; color: var(--text-dim); }


/* --- 3. SITE CONTAINER & LAYOUT -------------------------------------- */
.site-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    min-height: 100vh;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.main-layout { display: grid; grid-template-columns: 1fr 320px; }

main  { padding: 3rem 2.5rem; border-right: 1px solid var(--border); }
aside { padding: 3rem 2rem; }


/* --- 4. HEADER & NAVIGATION ------------------------------------------ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    background: rgba(10, 11, 14, 0.6);
    backdrop-filter: blur(15px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo { display: flex; align-items: center; }
.logo h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1;
}

/* Procedural pixel logo.
   Lives inline inside <h1>, so every em below scales with the h1 font-size.

   Baseline trick: `.logo-icon` is `inline-block` with *only* absolutely
   positioned children. Abs-pos children are out-of-flow, so the container
   has no in-flow line box and its synthesized baseline is the bottom of
   its margin box — which is exactly what we want for the icon to visually
   sit on the h1 text baseline.

   (Previously this was `inline-grid`, which synthesizes its baseline from
   the first in-flow grid item's bottom edge — i.e. the middle of a 2-row
   grid — dropping half the icon below the descender line.) */
.logo-icon {
    display: inline-block;
    position: relative;
    width:  0.7em;
    height: 0.7em;
    margin-right: 0.35em;
}
.logo-icon .dot {
    position: absolute;
    /* Half the container minus half the inter-dot gap (0.1em) */
    width:  calc(50% - 0.05em);
    height: calc(50% - 0.05em);
    border-radius: 1px;
}
.logo-icon .dot.blue  { top: 0;    right: 0; border: 0.1em solid #00e5ff; background: transparent; }
.logo-icon .dot.red   { bottom: 0; left: 0;  border: 0.1em solid #ff3b3b; background: transparent; }
.logo-icon .dot.green { bottom: 0; right: 0; background: #39ff14; }

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-sm);
    margin-left: 1.5rem;
    transition: color 0.2s;
}
nav a:hover  { color: var(--accent); }
nav a.active { color: #fff; }


/* --- 5. HERO BANNER -------------------------------------------------- */
.hero-visual-banner {
    position: relative;
    z-index: 0; /* behind sticky header (z-index: 1000) */
    margin-top: calc(-1 * var(--header-h)); /* slide up under header */
    height: 280px;
    background: #000 url('bg.jpg') no-repeat center center;
    background-size: cover;
    filter: saturate(1.2) contrast(1.1);
}

.banner-overlay {
    height: 100%;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10, 12, 16, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem 2.5rem;
}

.tagline-overlay {
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 3px;
}


/* --- 6. VIDEO --------------------------------------------------------- */
.demo-video {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
    border-radius: 3px;
    margin: 1.5rem 0;
}


/* --- 6. SECTION HEADER ----------------------------------------------- */
.sec-header {
    background: linear-gradient(90deg, var(--industrial-gray), transparent);
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    border-left: 3px solid var(--accent);
    margin: 3rem 0 1.5rem;
}
.sec-header:first-of-type { margin-top: 0; }


/* --- 7. PROCEDURE BOX ------------------------------------------------ */
.procedure-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2rem;
    margin: 1.5rem 0;
}
.p-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: var(--fs-base);
    color: var(--text-dim);
}
.p-step:last-child { margin-bottom: 0; }
.p-step span {
    color: var(--accent);
    background: rgba(0, 243, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-family: monospace;
    font-size: var(--fs-xs);
    font-weight: 900;
}
.p-step strong {
    color: var(--accent) !important;
    font-weight: 700 !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* --- 8. CONTROLS TABLE + KEY CAPS ------------------------------------ */
.table-002 {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-sm);
    text-align: left;
}
.table-002 th {
    padding: 1rem 1rem 1rem 2rem;
    border-bottom: 2px solid var(--border);
    vertical-align: top;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.table-002 td:first-child { white-space: nowrap; }
.table-002 td {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-bottom: 1px dashed var(--border);
    vertical-align: middle;
    color: var(--text-dim);
}
.table-002 tr:last-child td { border-bottom: none; }
.table-002 tr:hover td {
    background: rgba(255, 204, 0, 0.02);
    color: #fff;
}

.key {
    display: inline-block;
    background: #000;
    border: 1px solid rgba(255, 204, 0, 0.5);
    border-radius: 3px;
    color: #ffcc00;
    padding: 0.25rem 0.5rem;
    margin: 0 0.3rem;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(255, 204, 0, 0.2);
}
.key:first-child { margin-left: 0; }


/* --- 9. TIER ROWS (architecture) ------------------------------------- */
.tier-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 0 1rem 2rem;
    margin-bottom: 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-dim);
    font-family: monospace;
    font-size: var(--fs-xs);
}

@media (min-width: 768px) {
    .tier-row {
        grid-template-columns: 15rem 15rem 6.25rem;
        width: fit-content;
        gap: 1rem;
        padding: 0.75rem 0 0.75rem 2rem;
    }
}
.tier-row:last-child { border-bottom: none; }
.tier-row .t-name { font-weight: 800; }
.tier-row .t-perf { color: #fff; }

.tier-row.t1 .t-name    { color: var(--green); }
.tier-row.t2 .t-name    { color: var(--accent); }
.tier-row.t3 .t-name    { color: var(--magenta); }


/* --- 10. COMMAND LINE + SUB-SECTION TYPOGRAPHY ----------------------- */
.cmd-wrap { position: relative; }

.copy-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
}
.copy-btn:hover  { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--green);  border-color: var(--green);  }

.cmd-line {
    background: #000;
    color: var(--green);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
}

/* Monospaced accent subheading used inside install/reference blocks */
.h-sub {
    font-family: monospace;
    color: var(--accent);
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}
.h-sub:first-child { margin-top: 0; }

/* Small dim hint paragraph, typically surrounding .cmd-line */
.note {
    font-size: var(--fs-sm);
    color: var(--text-dim);
    margin: 0.5rem 0;
    margin-left: 2rem;
}


/* --- 11. STACK LIST -------------------------------------------------- */
.stack-list {
    list-style: none;
    margin-left: 1.5rem;
    margin-bottom: 2.5rem;
}
.stack-list.cols-2 {
    columns: 1;
    column-gap: 3rem;
}
@media (min-width: 768px) {
    .stack-list.cols-2 {
        columns: 2;
    }
}
.stack-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.stack-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}



/* --- 13. SIDEBAR CONTROL PANEL --------------------------------------- */
.cp-header {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.cp-block { margin-bottom: 2rem; }
.cp-block h5 {
    font-family: monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.s-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-dim);
    font-family: monospace;
    font-size: var(--fs-xs);
}
.s-row span:last-child { color: var(--text); }

.s-group { padding-left: 1.75rem; }

.side-hint {
    display: block;
    margin-top: 0.75rem;
    padding-left: 1rem;
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-decoration: none;
    font-family: monospace;
    transition: color 0.2s;
}
.side-hint:hover { color: var(--accent); }

.side-link {
    display: flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.side-link:hover { opacity: 0.8; }

.link-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    fill: currentColor;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    color: var(--green);
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
}
.pulse {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.9); }
}


/* --- 14. FOOTER ------------------------------------------------------ */
footer {
    padding: 3rem 2.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dim);
    font-family: monospace;
    font-size: 0.65rem;
}
.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.git-link a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.git-link a:hover { border-bottom-color: var(--accent); }


/* --- 15. RESPONSIVE -------------------------------------------------- */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    main, aside  { border: none; padding: 2rem; }
}

@media (max-width: 640px) {
    html       { font-size: 14px; }
    header              { padding: 1rem; flex-direction: column; align-items: center; gap: 1rem; }
    .logo h1            { font-size: 1rem; }
    nav a               { margin-left: 1rem; font-size: 0.8rem; }
    nav a:first-child   { margin-left: 0; }
}
