/* ── Design System: High-Tech Editorial ────────────────── */

:root {
    --background:        #001524;
    --surface:           #001524;
    --surface-dim:       #001524;
    --surface-container-lowest: #00101c;
    --surface-container-low:    #001e30;
    --surface-container:        #022235;
    --surface-container-high:   #0f2c40;
    --surface-container-highest:#1c374b;
    --surface-bright:    #203c50;

    --primary:           #ffe8b7;
    --primary-container: #ffc600;
    --on-primary:        #3e2e00;

    --secondary:         #a3c9ff;
    --secondary-container: #3b93f1;

    --tertiary:          #f4eac9;
    --error:             #ffb4ab;

    --on-surface:        #cbe6ff;
    --on-surface-muted:  #7a98ae;
    --outline-variant:   #4f4632;

    --font-headline: 'Space Grotesk', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
    --font-mono:     'Consolas', 'SF Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}
::selection {
    background: var(--primary-container);
    color: var(--on-primary);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Header ────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(0, 21, 36, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    /* Atmospheric shift — gradient fade at bottom */
    mask-image: linear-gradient(180deg, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 60%, transparent 100%);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--font-headline);
    letter-spacing: -0.02em;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-container);
    letter-spacing: -0.04em;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 48px;
}

/* Background image */
.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), transparent, transparent);
    z-index: 10;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: luminosity;
}

/* Inner layout */
.hero-inner {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 32px;
}
.hero-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
@media (min-width: 1024px) {
    .hero-row {
        flex-direction: row;
        gap: 64px;
    }
}

/* Text side */
.hero-text {
    width: 100%;
    text-align: left;
}
@media (min-width: 1024px) {
    .hero-text { width: 50%; }
}
.hero-text h1 {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-container);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* Player side */
.hero-player {
    width: 100%;
}
@media (min-width: 1024px) {
    .hero-player { width: 50%; }
}

/* Player wrapper — holds ornaments */
.player-wrap {
    position: relative;
}

/* Frame ornaments */
.ornament {
    position: absolute;
    width: 48px;
    height: 48px;
    z-index: 30;
}
.ornament-tl {
    top: -16px;
    left: -16px;
    border-top: 2px solid rgba(255, 198, 0, 0.4);
    border-left: 2px solid rgba(255, 198, 0, 0.4);
}
.ornament-br {
    bottom: -16px;
    right: -16px;
    border-bottom: 2px solid rgba(59, 147, 241, 0.4);
    border-right: 2px solid rgba(59, 147, 241, 0.4);
}

/* Status dots */
.status-dots {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    z-index: 30;
    display: flex;
    gap: 4px;
}
.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 180, 171, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
.dot-idle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 232, 183, 0.2);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Main player frame */
.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Scanline overlay */
.scanline-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0.3;
    pointer-events: none;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

/* Player video */
.player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
    transition: filter 0.7s;
}
.player-wrap:hover .player-video {
    filter: grayscale(0) brightness(0.75);
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 198, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 198, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.play-btn .material-symbols-outlined {
    color: var(--primary-container);
    font-size: 2.25rem;
    margin-left: 4px;
}
.player-wrap:hover .play-btn {
    transform: scale(1.1);
}

/* HUD stats */
.hud {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 232, 183, 0.6);
    letter-spacing: 0.08em;
}
.hud-live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.hud-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Video Modal Mode ──────────────────────────────── */
.video-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 15, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.video-backdrop.active {
    display: block;
}
.player-frame.modal-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94%;
    max-width: 1400px;
    z-index: 100;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
}
.player-frame.modal-mode .scanline-overlay { display: none; }
.player-frame.modal-mode .hud { display: none; }
.player-frame.modal-mode .player-video {
    filter: none;
}

/* ── Footer ────────────────────────────────────────── */
footer {
    width: 100%;
    padding: 48px 0;
    border-top: 1px solid rgba(79, 70, 50, 0.15);
    background: linear-gradient(180deg, var(--surface-container) 0%, var(--surface-dim) 100%);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
    }
}
.footer-left {
    margin-bottom: 32px;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-left {
        margin-bottom: 0;
        text-align: left;
    }
}
.footer-brand {
    font-family: var(--font-headline);
    color: var(--primary-container);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.04em;
    text-transform: none;
    margin-bottom: 8px;
}
.footer-copy {
    color: rgba(163, 201, 255, 0.6);
}
