/* LLMOp — retro CRT terminal: phosphor green on charcoal, mono-everything,
   scanline overlay, ASCII pre-formatted hero. Persona 2: AI/ML platform engineers. */
/* Design review: Hana "Nyx" Petrović. Brief: louder scanlines, vignette, glow on the primary
   CTA, blinking caret on the brand, real heroic ASCII at full size. */

:root[data-site="llmop"] {
    --lo-bg: #050807;
    --lo-fg: #c8f7c5;
    --lo-muted: #6f9a6c;
    --lo-accent: #22ee99;
    --lo-accent-glow: rgba(34, 238, 153, .55);
    --lo-warn: #f7e25b;
    --lo-rule: #1c2a1a;
    --lo-rule-bright: #2c5a3a;
    --lo-mono: ui-monospace, "Berkeley Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
}

html[data-site="llmop"], body { background: var(--lo-bg); color: var(--lo-fg); }
body {
    font-family: var(--lo-mono);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    /* Phosphor afterglow — a touch stronger than before. */
    text-shadow: 0 0 1px rgba(34,238,153,.18);
}

/* Scanlines — Nyx: louder. 28 % multiply, plus a subtle CRT vignette baked into the body. */
.lo-scanlines {
    position: fixed; inset: 0; pointer-events: none; z-index: 1;
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
            rgba(0,0,0,.28) 2px, rgba(0,0,0,.28) 3px
        ),
        radial-gradient(ellipse at center,
            transparent 55%,
            rgba(0,0,0,.55) 100%);
    mix-blend-mode: multiply;
}

.lo-container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 2; }

.lo-header { border-bottom: 1px dashed var(--lo-rule); padding: 1rem 0; }
.lo-header .lo-container { display: flex; justify-content: space-between; align-items: center; }
.lo-brand {
    color: var(--lo-accent); text-decoration: none; letter-spacing: .08em;
    font-weight: 600;
    /* Phosphor glow on the brand. */
    text-shadow: 0 0 6px var(--lo-accent-glow);
}
/* Nyx: the heartbeat. Blinking caret in the brand. */
.lo-brand::after {
    content: "_"; margin-left: .25em;
    animation: lo-blink 1.06s steps(2, jump-none) infinite;
}
@keyframes lo-blink { 50% { opacity: 0; } }

.lo-nav a {
    color: var(--lo-muted); text-decoration: none; margin-left: 1.25rem;
    transition: color .12s ease, text-shadow .12s ease;
}
.lo-nav a:hover {
    color: var(--lo-fg);
    /* Persistence-of-vision smear on hover — phosphor doesn't snap. */
    text-shadow: 0 0 8px var(--lo-accent-glow);
}
.lo-nav a:focus-visible { outline: 1px dashed var(--lo-accent); outline-offset: 4px; }
.lo-cta { color: var(--lo-warn) !important; }

.lo-main { padding: 2.5rem 0 4rem; }

/* ASCII hero — Nyx: full size, glow, no apology. */
.lo-ascii {
    color: var(--lo-accent); font-size: 1rem; line-height: 1.05; margin: 0 0 1.5rem;
    white-space: pre; overflow-x: auto;
    text-shadow: 0 0 8px var(--lo-accent-glow);
}

h1 {
    color: var(--lo-fg); font-weight: 500;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.18; letter-spacing: .02em;
    margin: 0 0 1rem;
}
h2 { font-size: .95rem; margin: 0 0 .25rem; color: var(--lo-accent); font-weight: 500; }

.lo-accent {
    color: var(--lo-accent);
    text-shadow: 0 0 10px var(--lo-accent-glow);
}
.lo-lede { color: var(--lo-muted); max-width: 64ch; line-height: 1.6; }

.lo-actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.lo-btn {
    display: inline-block; padding: .6rem 1.1rem; text-decoration: none;
    border: 1px solid var(--lo-rule-bright); border-radius: 0;
    font-family: var(--lo-mono);
    transition: all .12s ease;
}
.lo-btn-primary {
    background: var(--lo-accent); color: #021b0e; border-color: var(--lo-accent);
    /* Glow halo around the primary action. */
    box-shadow: 0 0 16px var(--lo-accent-glow), inset 0 0 0 1px rgba(0,0,0,.25);
    text-shadow: none;
}
.lo-btn-primary:hover {
    background: var(--lo-fg); border-color: var(--lo-fg); color: #021b0e;
    box-shadow: 0 0 24px var(--lo-accent-glow);
}
.lo-btn-ghost { color: var(--lo-fg); }
.lo-btn-ghost:hover {
    color: var(--lo-accent); border-color: var(--lo-accent);
    text-shadow: 0 0 8px var(--lo-accent-glow);
}
.lo-btn:focus-visible { outline: 1px dashed var(--lo-accent); outline-offset: 3px; }

.lo-features {
    display: grid; gap: 1rem; margin-top: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.lo-features article {
    padding: 1rem;
    border: 1px dashed var(--lo-rule-bright);
    position: relative;
    background: linear-gradient(180deg, rgba(34,238,153,.02), transparent);
}
/* Nyx: the first card gets a glow halo so the hierarchy is unambiguous. */
.lo-features article:first-child {
    border-color: var(--lo-accent);
    border-style: solid;
    box-shadow: inset 0 0 24px rgba(34,238,153,.08), 0 0 16px rgba(34,238,153,.12);
}
.lo-features h2 { color: var(--lo-accent); text-shadow: 0 0 6px var(--lo-accent-glow); }
.lo-features p { margin: 0; color: var(--lo-muted); }

::selection { background: var(--lo-accent); color: #021b0e; text-shadow: none; }

.lo-footer { border-top: 1px dashed var(--lo-rule-bright); padding: 2rem 0; margin-top: 4rem; color: var(--lo-muted); }
.lo-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.lo-footer a, .lo-footer .parent-wordmark { color: var(--lo-muted); }
.lo-footer a:hover, .lo-footer .parent-wordmark:hover {
    color: var(--lo-accent);
    text-shadow: 0 0 6px var(--lo-accent-glow);
}

.skip-to-content {
    position: absolute; left: -9999px;
    background: var(--lo-accent); color: #021b0e;
    padding: .5rem .8rem; font-weight: 700; z-index: 1000;
}
.skip-to-content:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .lo-brand::after { animation: none; opacity: 1; }
}
