@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
}

:root {
    --green-bright: #A8C64A;
    --green-mid:    #7FA33A;
    --green-dim:    #5F7C2A;
    --bg-base:      #121212;
    --bg-surface:   #1A1A1A;
    --metal-light:  #B5B1A6;
    --metal-warm:   #6B6257;
    --metal-deep:   #3A332B;

    --bezel: 1px solid rgba(181, 177, 166, 0.08);
    --display-bezel: 1px solid rgba(168, 198, 74, 0.12);

    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-base);
    color: var(--green-mid);
    font-family: var(--mono);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(95, 124, 42, 0.06) 0%, transparent 60%),
        var(--bg-base);
    background-attachment: fixed;
}

/* subtle scanlines over everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.012) 0,
        rgba(255, 255, 255, 0.012) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 1000;
    mix-blend-mode: overlay;
}

/* ====== layout ====== */

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

section {
    margin-bottom: 32px;
}

/* ====== module: a stacked rack-unit ====== */

.module {
    background: var(--bg-surface);
    border: var(--bezel);
    border-radius: 4px;
    padding: 28px 32px;
    position: relative;
}

.module + .module { margin-top: 16px; }

/* ====== display: the green VFD surface inside a module ====== */

.display {
    background:
        radial-gradient(ellipse at center, rgba(95, 124, 42, 0.18) 0%, rgba(0, 0, 0, 0.4) 80%),
        #0a0c08;
    border: var(--display-bezel);
    border-radius: 3px;
    padding: 28px 28px;
    position: relative;
    overflow: hidden;
    color: var(--green-bright);
    text-shadow: 0 0 6px rgba(168, 198, 74, 0.45);
}

.display::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(168, 198, 74, 0.03) 0,
        rgba(168, 198, 74, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* ====== hero ====== */

.hero {
    margin-top: 8px;
    margin-bottom: 32px;
}

.hero-display {
    min-height: 360px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: center;
    padding: 40px 40px;
}

/* spectrum analyzer bars — clustered VFD-block style, sits above the wordmark */
.hero-signal {
    align-self: flex-start;
    height: 28px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
    margin-bottom: 6px;
    /* phosphor bloom — applied to the whole cluster so glows blend together */
    filter:
        drop-shadow(0 0 3px rgba(168, 198, 74, 0.7))
        drop-shadow(0 0 9px rgba(168, 198, 74, 0.45))
        drop-shadow(0 0 18px rgba(168, 198, 74, 0.18));
}

.hero-signal span {
    width: 7px;
    flex: 0 0 7px;
    background:
        repeating-linear-gradient(
            to top,
            var(--green-bright) 0,
            var(--green-bright) 4px,
            transparent 4px,
            transparent 6px
        );
    background-position: bottom;
    /* tiny blur softens the segment edges, like real phosphor bleed */
    filter: blur(0.45px);
    height: 30%;
    animation: signal-bar 2.2s ease-in-out infinite;
}

@keyframes signal-bar {
    0%, 100% { height: 16%; }
    50%      { height: 100%; }
}

/* faint baseline */
.hero-signal::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(168, 198, 74, 0.10);
}

.hero-signal span:nth-child(1)  { animation-duration: 2.00s; animation-delay: -0.20s; }
.hero-signal span:nth-child(2)  { animation-duration: 1.60s; animation-delay: -0.85s; }
.hero-signal span:nth-child(3)  { animation-duration: 2.50s; animation-delay: -0.40s; }
.hero-signal span:nth-child(4)  { animation-duration: 1.80s; animation-delay: -1.10s; }
.hero-signal span:nth-child(5)  { animation-duration: 2.20s; animation-delay: -0.10s; }
.hero-signal span:nth-child(6)  { animation-duration: 2.70s; animation-delay: -0.55s; }
.hero-signal span:nth-child(7)  { animation-duration: 1.40s; animation-delay: -0.95s; }
.hero-signal span:nth-child(8)  { animation-duration: 2.30s; animation-delay: -0.25s; }
.hero-signal span:nth-child(9)  { animation-duration: 2.00s; animation-delay: -0.65s; }
.hero-signal span:nth-child(10) { animation-duration: 1.70s; animation-delay: -0.45s; }
.hero-signal span:nth-child(11) { animation-duration: 2.60s; animation-delay: -1.05s; }
.hero-signal span:nth-child(12) { animation-duration: 1.90s; animation-delay: -0.15s; }
.hero-signal span:nth-child(13) { animation-duration: 2.20s; animation-delay: -0.75s; }
.hero-signal span:nth-child(14) { animation-duration: 1.50s; animation-delay: -0.35s; }

.hero-icon {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(168, 198, 74, 0.18));
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wordmark {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 38px;
    letter-spacing: 0.02em;
    color: var(--green-bright);
    margin: 0;
    line-height: 1;
}

.tagline {
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin: 0;
}

.lede {
    font-size: 14px;
    color: var(--green-mid);
    max-width: 44ch;
    line-height: 1.6;
    margin: 6px 0 0;
    text-shadow: 0 0 4px rgba(127, 163, 58, 0.25);
}

.lede-link, .spec-link {
    color: var(--green-bright);
    text-decoration: none;
    border-bottom: 1px dotted rgba(168, 198, 74, 0.4);
    transition: border-color 120ms linear;
}

.lede-link:hover, .spec-link:hover {
    border-bottom-color: var(--green-bright);
}

/* hero status strip */
.status-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed rgba(168, 198, 74, 0.18);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-dim);
}

.status-live {
    color: var(--green-mid);
    grid-column: 2;
    justify-self: center;
}

.status-strip .requires {
    grid-column: 3;
    justify-self: end;
}

/* ====== animated equalizer bars ====== */

.eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
}

.eq span {
    display: block;
    width: 4px;
    background: var(--green-bright);
    box-shadow: 0 0 4px rgba(168, 198, 74, 0.6);
    transform-origin: bottom;
    animation: eq 1.2s ease-in-out infinite;
}

.eq span:nth-child(1) { animation-duration: 0.9s;  animation-delay: -0.10s; }
.eq span:nth-child(2) { animation-duration: 1.3s;  animation-delay: -0.30s; }
.eq span:nth-child(3) { animation-duration: 1.0s;  animation-delay: -0.55s; }
.eq span:nth-child(4) { animation-duration: 1.5s;  animation-delay: -0.20s; }
.eq span:nth-child(5) { animation-duration: 0.8s;  animation-delay: -0.45s; }
.eq span:nth-child(6) { animation-duration: 1.1s;  animation-delay: -0.05s; }
.eq span:nth-child(7) { animation-duration: 1.4s;  animation-delay: -0.35s; }
.eq span:nth-child(8) { animation-duration: 0.95s; animation-delay: -0.60s; }

@keyframes eq {
    0%, 100% { height: 20%; }
    50%      { height: 100%; }
}

.eq.tall { height: 56px; }

/* ====== now-playing demo display ====== */

.now-playing {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 140px;
}

.np-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.np-line {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-dim);
}

.np-track {
    font-size: 22px;
    font-weight: 500;
    color: var(--green-bright);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    font-size: 14px;
    color: var(--green-mid);
}

.np-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--green-dim);
    margin-top: 8px;
}

.np-bar {
    flex: 1;
    height: 2px;
    background: rgba(168, 198, 74, 0.15);
    position: relative;
    overflow: hidden;
}

.np-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--green-bright);
    box-shadow: 0 0 6px rgba(168, 198, 74, 0.6);
    transform-origin: left;
    animation: progress 9s linear infinite;
}

@keyframes progress {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* ====== feature grid ====== */

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature {
    background: var(--bg-surface);
    border: var(--bezel);
    border-radius: 4px;
    padding: 22px 24px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-name {
    font-size: 14px;
    color: var(--green-bright);
    text-shadow: 0 0 4px rgba(168, 198, 74, 0.3);
    margin: 0 0 6px;
    font-weight: 500;
}

.feature-desc {
    font-size: 13px;
    color: var(--metal-light);
    line-height: 1.5;
    margin: 0;
}

/* ====== specs row ====== */

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding: 18px 24px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--metal-light);
    border-top: var(--bezel);
    border-bottom: var(--bezel);
}

.spec strong {
    display: block;
    color: var(--green-mid);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.18em;
}

/* ====== prose (privacy / docs) ====== */

.prose {
    color: var(--metal-light);
    line-height: 1.7;
    font-size: 14px;
    max-width: 64ch;
}

.prose h1 {
    font-size: 26px;
    font-weight: 500;
    color: var(--green-bright);
    text-shadow: 0 0 6px rgba(168, 198, 74, 0.35);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}

.prose .updated {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--metal-warm);
    margin: 0 0 32px;
}

.prose h2 {
    font-size: 12px;
    font-weight: 500;
    color: var(--green-mid);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 32px 0 10px;
}

.prose p {
    margin: 0 0 14px;
}

.prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.prose li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.prose li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--green-dim);
}

.prose a {
    color: var(--green-bright);
    text-decoration: none;
    border-bottom: 1px dotted rgba(168, 198, 74, 0.4);
}

.prose a:hover {
    border-bottom-color: var(--green-bright);
}

/* ====== footer ====== */

footer {
    margin-top: 56px;
    padding: 24px 0;
    border-top: var(--bezel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--metal-warm);
}

footer a {
    color: var(--metal-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--metal-warm);
}

footer a:hover {
    color: var(--green-mid);
    border-color: var(--green-dim);
}

footer .links {
    display: flex;
    gap: 24px;
}

/* ====== responsive ====== */

@media (max-width: 640px) {
    main { padding: 32px 16px 64px; }
    .hero-display {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 24px;
    }
    .hero-icon { width: 160px; margin: 0 auto; }
    .wordmark { font-size: 30px; }
    .features { grid-template-columns: 1fr; }
    .now-playing { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 12px; text-align: center; }
}
