/* =========================================================
   delirio.nl — landing page
   Signal-boot aesthetic: same phosphor-green/cyan circuit
   language as /contact, staged as a transmission you tune into.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #050508;
    --bg-soft: #0a0a0f;
    --green: #00ff41;
    --cyan: #00ccff;
    --ink: #e0e0e0;
    --ink-dim: rgba(255, 255, 255, 0.45);
    --ink-faint: rgba(255, 255, 255, 0.22);
    --hair: rgba(255, 255, 255, 0.08);
    --disp: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--disp);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* skip link */
.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    z-index: 100;
    background: var(--bg-soft);
    color: var(--green);
    padding: 10px 16px;
    border: 1px solid var(--green);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 13px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 3vw, 28px) clamp(18px, 4vw, 40px);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.5px;
    mix-blend-mode: normal;
}

.nav-mark {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}
.nav-mark .dot { color: var(--green); text-shadow: 0 0 10px rgba(0,255,65,0.6); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 999px;
    background: rgba(0, 255, 65, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: rgba(0, 255, 65, 0.14); border-color: rgba(0, 255, 65, 0.7); transform: translateY(-1px); }
.nav-cta:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
.nav-cta .arrow { transition: transform 0.25s ease; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hero-media video,
.hero-media .hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media .hero-poster {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-media.show-poster .hero-poster { opacity: 1; }
.hero-media.show-poster video { opacity: 0; }

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(120% 90% at 50% 30%, rgba(5,5,8,0.15) 0%, rgba(5,5,8,0.55) 55%, rgba(5,5,8,0.92) 100%),
        linear-gradient(180deg, rgba(5,5,8,0.55) 0%, rgba(5,5,8,0.25) 30%, rgba(5,5,8,0.35) 70%, var(--bg) 100%);
}

.hero-scanlines {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.5;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 20px;
    will-change: transform, opacity;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: clamp(10px, 2vw, 12px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(0, 255, 65, 0.75);
    margin-bottom: clamp(14px, 3vw, 22px);
}

.hero-eyebrow .pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(0,255,65,0.9);
    animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

.hero-title {
    font-size: clamp(38px, 9vw, 96px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #00ff41 78%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .line { display: block; }

.hero-sub {
    margin: clamp(14px, 2.6vw, 22px) auto 0;
    max-width: 44ch;
    font-family: var(--mono);
    font-size: clamp(13px, 2.2vw, 16px);
    font-weight: 400;
    color: var(--ink-dim);
    letter-spacing: 0.2px;
    line-height: 1.6;
}

.hero-actions {
    margin-top: clamp(26px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: var(--green);
    color: #06120a;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0,255,65,0.4), 0 18px 40px -12px rgba(0,255,65,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,255,65,0.6), 0 22px 48px -12px rgba(0,255,65,0.5); }
.btn-primary svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: rotate(90deg); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-dim);
    text-decoration: none;
    padding: 15px 6px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { color: var(--cyan); border-color: rgba(0,204,255,0.4); }

.scroll-cue {
    position: absolute;
    bottom: clamp(20px, 4vh, 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-faint);
    opacity: 0.8;
}
.scroll-cue .stem {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, rgba(0,255,65,0.6), transparent);
    animation: stemPulse 2s ease-in-out infinite;
}
@keyframes stemPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Sections shared ---------- */
.section {
    position: relative;
    z-index: 5;
    background: var(--bg);
}

.section-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(72px, 12vw, 140px) clamp(20px, 5vw, 40px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(0, 204, 255, 0.75);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 16px; height: 1px;
    background: rgba(0, 204, 255, 0.6);
}

/* ---------- Signal section (parallax panel) ---------- */
.signal {
    position: relative;
    overflow: hidden;
}

.signal-media {
    position: absolute;
    inset: -10% 0;
    z-index: 0;
    opacity: 0.28;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.signal-media video, .signal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) contrast(1.05);
}
.signal-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,8,0.4) 20%, rgba(5,5,8,0.4) 80%, var(--bg) 100%);
}

.signal .section-inner { position: relative; z-index: 2; }

.signal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
    align-items: start;
}

@media (min-width: 760px) {
    .signal-grid { grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); }
}

.signal-heading {
    font-size: clamp(26px, 4.4vw, 42px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.4px;
    color: var(--ink);
}
.signal-heading em {
    font-style: normal;
    background: linear-gradient(120deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signal-copy {
    font-family: var(--mono);
    font-size: clamp(13px, 1.9vw, 15px);
    line-height: 1.75;
    color: var(--ink-dim);
}
.signal-copy p + p { margin-top: 14px; }

.signal-stats {
    margin-top: clamp(28px, 4vw, 40px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border-top: 1px solid var(--hair);
    padding-top: 20px;
}
.stat-num {
    font-family: var(--mono);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: var(--green);
}
.stat-label {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------- Channel list (echoes the dial's contact set) ---------- */
.channels {
    display: grid;
    gap: 1px;
    background: var(--hair);
    border: 1px solid var(--hair);
    border-radius: 18px;
    overflow: hidden;
    margin-top: clamp(28px, 5vw, 44px);
}

.channel-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: clamp(16px, 3vw, 22px) clamp(16px, 3vw, 24px);
    background: rgba(255,255,255,0.015);
    transition: background 0.25s ease;
}
.channel-row:hover { background: rgba(0, 255, 65, 0.05); }

.channel-icon {
    font-size: 20px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.channel-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.channel-meta {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---------- Final CTA ---------- */
.cta {
    position: relative;
    text-align: center;
    padding-bottom: clamp(60px, 10vw, 100px);
}

.cta-pointer {
    width: 34px;
    margin: 0 auto 18px;
    color: var(--green);
    filter: drop-shadow(0 0 10px rgba(0,255,65,0.3));
    animation: floatDown 2.4s ease-in-out infinite;
}
@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.cta-title {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.cta-sub {
    font-family: var(--mono);
    font-size: clamp(12px, 2vw, 14px);
    color: var(--ink-dim);
    max-width: 40ch;
    margin: 0 auto clamp(28px, 5vw, 40px);
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.landing-footer {
    border-top: 1px solid var(--hair);
    padding: 22px clamp(20px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 10px;
}
.landing-footer a { text-decoration: none; color: var(--ink-faint); transition: color 0.2s ease; }
.landing-footer a:hover { color: var(--green); }

/* ---------- Reveal-on-scroll ----------
   Default state is VISIBLE. The hidden/animate-in state only exists once
   js/landing.js has confirmed it's running (html gets the "js" class) —
   so a blocked or missing script degrades to "content just shows up",
   never to "content never shows up". */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced motion & low-power ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-media, .signal-media { transform: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot, .stem, .cta-pointer { animation: none; }
}

body.no-motion .hero-media,
body.no-motion .signal-media {
    transform: none !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .hero { min-height: 620px; }
    .hero-title { letter-spacing: -0.6px; }
    .signal-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .channel-meta { display: none; }
    .landing-footer { justify-content: center; text-align: center; }
}
