/* ============================================
   VIOLET VECTOR — violet-vector.com
   ============================================ */

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

:root {
    --violet: #bb44ff;
    --violet-bright: #dd77ff;
    --violet-dim: #7722cc;
    --violet-dark: #3a1166;
    --cyan: #00ffee;
    --pink: #ff2090;
    --white: #eeddff;
    --bg: #030008;
    --bg-panel: #08000f;
    --grid: #0a0515;
    --text: #c8b0e0;
    --text-dim: #6a5080;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--violet);
    color: var(--bg);
}

/* ---- Neon sign styles ---- */

/* ---- Scanlines & CRT ---- */

.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 3px
    );
}

.crt-flicker {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(3, 0, 8, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(187, 68, 255, 0.15);
}

.nav-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--violet);
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(187, 68, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 6px 10px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--violet-bright),
        0 0 14px var(--violet),
        0 0 30px var(--violet-dim);
    background: rgba(187, 68, 255, 0.06);
}

.nav-link:active {
    transform: scale(0.95);
    filter: brightness(1.8);
}

.nav-link--pink { color: rgba(255, 32, 144, 0.5) !important; }
.nav-link--pink:hover {
    color: #fff !important;
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--pink),
        0 0 14px var(--pink),
        0 0 30px rgba(255, 32, 144, 0.4) !important;
    background: rgba(255, 32, 144, 0.06) !important;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(187, 68, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 68, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

/* Title — idle neon glow with breathing, full neon on hover, broken neon on click */
.hero-title {
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 800;
    letter-spacing: 6px;
    position: relative;
    cursor: pointer;

    /* Idle: visible neon glow with breathing */
    color: var(--violet-bright);
    text-shadow:
        0 0 2px rgba(221, 119, 255, 0.4),
        0 0 8px rgba(187, 68, 255, 0.3),
        0 0 20px rgba(187, 68, 255, 0.15),
        0 0 40px rgba(119, 34, 204, 0.08);

    animation: neon-breathe 4s ease-in-out infinite;
    transition: filter 0.05s;
}

@keyframes neon-breathe {
    0%, 100% {
        text-shadow:
            0 0 2px rgba(221, 119, 255, 0.4),
            0 0 8px rgba(187, 68, 255, 0.3),
            0 0 20px rgba(187, 68, 255, 0.15),
            0 0 40px rgba(119, 34, 204, 0.08);
    }
    50% {
        text-shadow:
            0 0 4px rgba(221, 119, 255, 0.6),
            0 0 12px rgba(187, 68, 255, 0.4),
            0 0 30px rgba(187, 68, 255, 0.2),
            0 0 60px rgba(119, 34, 204, 0.12);
    }
}

/* Hover — full neon blast */
.hero-title:hover {
    color: #fff;
    animation: none;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px var(--violet-bright),
        0 0 14px var(--violet-bright),
        0 0 24px var(--violet),
        0 0 45px var(--violet),
        0 0 70px var(--violet-dim),
        0 0 120px var(--violet-dim);
}

/* Glitch layers — always present but only animate on hover */
.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
}

.hero-title:hover::before {
    color: var(--cyan);
    animation: glitch-cyan 3s infinite;
    clip-path: inset(0 0 50% 0);
}

.hero-title:hover::after {
    color: var(--pink);
    animation: glitch-pink 3s infinite;
    clip-path: inset(50% 0 0 0);
}

@keyframes glitch-cyan {
    0%, 85%, 100% { opacity: 0; transform: translate(0); }
    86% { opacity: 0.8; transform: translate(5px, -2px); }
    87% { opacity: 0; transform: translate(-2px, 1px); }
    89% { opacity: 0.5; transform: translate(-4px, 0); }
    90% { opacity: 0; }
    94% { opacity: 0.6; transform: translate(3px, -1px); }
    95% { opacity: 0; }
}

@keyframes glitch-pink {
    0%, 80%, 100% { opacity: 0; transform: translate(0); }
    81% { opacity: 0.7; transform: translate(-5px, 2px); }
    82% { opacity: 0; }
    84% { opacity: 0.4; transform: translate(4px, -1px); }
    85% { opacity: 0; }
    92% { opacity: 0.6; transform: translate(-3px, 1px); }
    93% { opacity: 0.3; transform: translate(2px, 0); }
    94% { opacity: 0; }
}

/* Click — broken neon bulb flicker */
.hero-title.broken {
    animation: broken-neon 0.8s ease-out !important;
}

@keyframes broken-neon {
    0%   { color: #fff; filter: brightness(3); transform: scale(1.03); }
    8%   { color: var(--bg); filter: brightness(0); }
    12%  { color: #fff; filter: brightness(2); }
    18%  { color: var(--pink); filter: brightness(0.3); transform: translate(-3px, 1px); }
    22%  { color: var(--bg); filter: brightness(0); }
    28%  { color: var(--cyan); filter: brightness(2.5); transform: translate(4px, -2px); }
    32%  { color: var(--bg); filter: brightness(0); }
    38%  { color: #fff; filter: brightness(1.5); transform: translate(-2px, 0); }
    45%  { color: var(--violet); filter: brightness(0.4); }
    52%  { color: #fff; filter: brightness(2); transform: scale(1.01); }
    60%  { color: var(--violet-bright); filter: brightness(0.8); }
    70%  { color: var(--violet-bright); filter: brightness(1.2); transform: scale(1); }
    85%  { filter: brightness(0.9); }
    100% { color: var(--violet-bright); filter: brightness(1); transform: scale(1); }
}

/* ---- NULL//DRIFT embedded title screen ---- */

.card-nulldrift {
    padding: 0;
    overflow: hidden;
    border-color: rgba(0, 255, 136, 0.12);
}

.card-nulldrift:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow:
        0 0 10px rgba(0, 255, 136, 0.08),
        0 0 25px rgba(0, 255, 136, 0.04);
}

.card-nulldrift .card-desc,
.card-nulldrift .card-tags,
.card-nulldrift .card-badge {
    padding-left: 20px;
    padding-right: 20px;
}

.card-nulldrift .card-desc { margin-top: 16px; }
.card-nulldrift .card-tags { padding-bottom: 20px; }
.card-nulldrift .card-badge { z-index: 5; }

.card-badge--green {
    color: #00ff88 !important;
    border-color: rgba(0, 255, 136, 0.25) !important;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.nulldrift-embed {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #000;
}

#nulldrift-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.nulldrift-scanlines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px);
}

.nulldrift-rain {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(180deg, rgba(68,255,136,0.08) 0%, transparent 60%),
        linear-gradient(195deg, transparent 49%, rgba(68,255,136,0.04) 49.5%, transparent 50%);
    background-size: 100% 100%, 8px 20px;
    animation: rain-fall 0.8s linear infinite;
    pointer-events: none;
}

@keyframes rain-fall {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, -4px 20px; }
}

.hero-sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 5px;
    margin-top: 20px;
    text-transform: lowercase;
}

/* ---- Neon Links (hero center + section headers) ---- */

.hero-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 5px;
}

.neon-link {
    text-decoration: none;
    position: relative;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
}

/* Violet variant */
.neon-link[data-color="violet"] {
    color: var(--violet-dim);
    text-shadow: 0 0 4px rgba(187, 68, 255, 0.1);
}

.neon-link[data-color="violet"]:hover {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px var(--violet-bright),
        0 0 16px var(--violet),
        0 0 30px var(--violet),
        0 0 50px var(--violet-dim);
    background: rgba(187, 68, 255, 0.06);
    transform: scale(1.08);
}

.neon-link[data-color="violet"]:active {
    transform: scale(0.97);
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--violet-bright),
        0 0 12px var(--violet),
        0 0 25px var(--violet),
        0 0 50px var(--violet-dim),
        0 0 80px var(--violet-dim);
}

/* Cyan variant */
.neon-link[data-color="cyan"] {
    color: rgba(0, 255, 238, 0.4);
    text-shadow: 0 0 4px rgba(0, 255, 238, 0.1);
}

.neon-link[data-color="cyan"]:hover {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px var(--cyan),
        0 0 16px var(--cyan),
        0 0 30px rgba(0, 255, 238, 0.6),
        0 0 50px rgba(0, 255, 238, 0.3);
    background: rgba(0, 255, 238, 0.04);
    transform: scale(1.08);
}

.neon-link[data-color="cyan"]:active {
    transform: scale(0.97);
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--cyan),
        0 0 12px var(--cyan),
        0 0 25px var(--cyan),
        0 0 50px rgba(0, 255, 238, 0.5),
        0 0 80px rgba(0, 255, 238, 0.3);
}

/* Pink variant */
.neon-link[data-color="pink"] {
    color: rgba(255, 32, 144, 0.4);
    text-shadow: 0 0 4px rgba(255, 32, 144, 0.1);
}

.neon-link[data-color="pink"]:hover {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px var(--pink),
        0 0 16px var(--pink),
        0 0 30px rgba(255, 32, 144, 0.6),
        0 0 50px rgba(255, 32, 144, 0.3);
    background: rgba(255, 32, 144, 0.04);
    transform: scale(1.08);
}

.neon-link[data-color="pink"]:active {
    transform: scale(0.97);
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--pink),
        0 0 12px var(--pink),
        0 0 25px var(--pink),
        0 0 50px rgba(255, 32, 144, 0.5),
        0 0 80px rgba(255, 32, 144, 0.3);
}

/* Click flash effect — applied via JS */
.neon-link.flash {
    animation: neon-flash 0.3s ease-out;
}

@keyframes neon-flash {
    0% { filter: brightness(2.5); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

.sep {
    color: var(--violet-dim);
    margin: 0 4px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 8px 20px;
    border: 1px solid rgba(187, 68, 255, 0.15);
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-dim);
    opacity: 0.4;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--violet-dim), transparent);
    animation: scroll-bob 2s infinite;
}

@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---- Sections ---- */

.section {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--violet);
    letter-spacing: 6px;
    white-space: nowrap;
    text-shadow:
        0 0 4px rgba(187, 68, 255, 0.2),
        0 0 15px rgba(187, 68, 255, 0.1);
    transition: all 0.2s;
    cursor: default;
}

.section-header h2:hover {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 8px var(--violet-bright),
        0 0 16px var(--violet),
        0 0 30px var(--violet),
        0 0 50px var(--violet-dim);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--violet-dim), transparent);
}

.section-header .section-line:first-child {
    background: linear-gradient(90deg, transparent, var(--violet-dim));
}

.prefix {
    color: var(--cyan);
    margin-right: 4px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ---- Cards ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-panel);
    border: 1px solid rgba(187, 68, 255, 0.1);
    border-radius: 6px;
    padding: 24px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(187, 68, 255, 0.4);
    box-shadow:
        0 0 8px rgba(187, 68, 255, 0.1),
        0 0 20px rgba(187, 68, 255, 0.06),
        0 0 40px rgba(187, 68, 255, 0.03),
        inset 0 0 20px rgba(187, 68, 255, 0.02);
    transform: translateY(-2px);
}

.card:hover .card-header h3 {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 6px var(--violet-bright),
        0 0 12px var(--violet),
        0 0 25px var(--violet-dim);
    transition: all 0.2s;
}

.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--violet-dim);
    border: 1px solid rgba(187, 68, 255, 0.15);
    padding: 3px 8px;
    border-radius: 3px;
}

.card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.card-version {
    font-size: 11px;
    color: var(--text-dim);
}

/* ---- Plugin Demo Canvases ---- */

.demo-container {
    position: relative;
    height: 260px;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #020005;
    border: 1px solid rgba(187, 68, 255, 0.12);
    box-shadow:
        0 0 4px rgba(187, 68, 255, 0.08),
        inset 0 0 30px rgba(187, 68, 255, 0.015);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.card:hover .demo-container {
    box-shadow:
        0 0 10px rgba(187, 68, 255, 0.15),
        0 0 25px rgba(187, 68, 255, 0.06),
        inset 0 0 40px rgba(187, 68, 255, 0.025);
    border-color: rgba(187, 68, 255, 0.25);
}

.demo-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- Plugin Previews (mini GUI recreation) ---- */

.plugin-preview {
    position: relative;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #020005;
    border: 1px solid rgba(187, 68, 255, 0.12);
    font-size: 8px;
    line-height: 1.4;
    /* Grid bg like the real plugins */
    background-image:
        linear-gradient(rgba(187, 68, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 68, 255, 0.02) 1px, transparent 1px);
    background-size: 12px 12px;
}

.pp-scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 3px);
}

.pp-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(187, 68, 255, 0.3);
    box-shadow: 0 1px 8px rgba(187, 68, 255, 0.06);
}

/* Neon border glow on the whole preview */
.plugin-preview {
    box-shadow:
        0 0 4px rgba(187, 68, 255, 0.08),
        inset 0 0 30px rgba(187, 68, 255, 0.015);
    transition: box-shadow 0.3s;
}

.card:hover .plugin-preview {
    box-shadow:
        0 0 8px rgba(187, 68, 255, 0.15),
        0 0 20px rgba(187, 68, 255, 0.06),
        inset 0 0 40px rgba(187, 68, 255, 0.025);
    border-color: rgba(187, 68, 255, 0.25);
}

.pp-sys { color: var(--violet-dim); font-size: 7px; letter-spacing: 1px; opacity: 0.5; }
.pp-name {
    color: var(--violet);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(187, 68, 255, 0.3);
    animation: pp-title-glow 3s ease-in-out infinite;
}

@keyframes pp-title-glow {
    0%, 100% { text-shadow: 0 0 6px rgba(187, 68, 255, 0.3); }
    50% { text-shadow: 0 0 4px #fff, 0 0 8px var(--violet-bright), 0 0 16px var(--violet), 0 0 30px rgba(187, 68, 255, 0.15); color: var(--violet-bright); }
}
.pp-ver { color: var(--violet-dim); font-size: 7px; opacity: 0.5; }

.pp-body { padding: 8px; }

/* Selectors row */
.pp-selectors {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pp-label { font-weight: 700; font-size: 8px; letter-spacing: 1px; }
.pp-pink { color: var(--pink); }
.pp-cyan { color: var(--cyan); }

.pp-dropdown {
    color: var(--violet);
    font-size: 8px;
    padding: 2px 8px;
    border: 1px solid rgba(187, 68, 255, 0.2);
    border-radius: 2px;
    background: rgba(187, 68, 255, 0.04);
}

/* Waveform scope */
.pp-scope {
    position: relative;
    height: 36px;
    background: #010002;
    border: 1px solid rgba(187, 68, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
    /* Inner grid */
    background-image:
        linear-gradient(rgba(187, 68, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 68, 255, 0.03) 1px, transparent 1px);
    background-size: 8px 8px;
}

.pp-scope-line {
    position: absolute;
    top: 50%; left: 4%; right: 4%;
    height: 2px;
    background: var(--violet-bright);
    box-shadow:
        0 0 2px #fff,
        0 0 6px var(--violet-bright),
        0 0 12px var(--violet),
        0 0 24px rgba(187, 68, 255, 0.3);
    animation: pp-wave 3s infinite ease-in-out;
}

@keyframes pp-wave {
    0%, 100% { clip-path: polygon(0% 50%, 8% 20%, 16% 70%, 24% 15%, 32% 80%, 40% 35%, 48% 65%, 56% 20%, 64% 75%, 72% 30%, 80% 60%, 88% 25%, 100% 50%); }
    50% { clip-path: polygon(0% 50%, 8% 65%, 16% 25%, 24% 75%, 32% 30%, 40% 60%, 48% 20%, 56% 70%, 64% 35%, 72% 65%, 80% 25%, 88% 70%, 100% 50%); }
}

.pp-scope-label {
    position: absolute;
    top: 2px; left: 4px;
    color: var(--cyan);
    font-size: 6px;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Knobs */
.pp-knobs {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    margin: 6px 0;
}

.pp-knob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pp-knob span {
    color: var(--cyan);
    font-size: 6px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Knob — SVG-style arc using conic-gradient */
.pp-knob-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    border: none;
    /* Dark bg with neon arc */
    background:
        conic-gradient(
            from 220deg,
            rgba(187, 68, 255, 0.08) 0deg,
            rgba(187, 68, 255, 0.08) 280deg,
            transparent 280deg
        ),
        #030008;
    box-shadow:
        0 0 4px rgba(187, 68, 255, 0.1),
        inset 0 0 6px rgba(0, 0, 0, 0.8);
    animation: pp-knob-glow 4s ease-in-out infinite;
    animation-delay: calc(var(--val) * -2s);
}

/* Bright arc overlay — the actual value indicator */
.pp-knob-ring::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 220deg,
            var(--violet-bright) 0deg,
            var(--violet) calc(var(--val) * 280deg),
            transparent calc(var(--val) * 280deg),
            transparent 360deg
        );
    mask: radial-gradient(transparent 8px, black 8.5px, black 11px, transparent 11.5px);
    -webkit-mask: radial-gradient(transparent 8px, black 8.5px, black 11px, transparent 11.5px);
    /* Glow */
    filter: drop-shadow(0 0 2px rgba(187, 68, 255, 0.5));
}

/* Inner dark circle */
.pp-knob-ring::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #0a0012 60%, #050008 100%);
    /* Pointer dot */
    box-shadow: inset 0 -3px 0 -1px var(--violet);
}

@keyframes pp-knob-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(187, 68, 255, 0.1), inset 0 0 6px rgba(0,0,0,0.8); }
    50% { box-shadow: 0 0 8px rgba(187, 68, 255, 0.25), 0 0 16px rgba(187, 68, 255, 0.08), inset 0 0 6px rgba(0,0,0,0.8); }
}

/* Large knobs for detail view */
.pp-knob-lg {
    width: 40px;
    height: 40px;
}

.pp-knob-lg::before {
    mask: radial-gradient(transparent 14px, black 14.5px, black 19px, transparent 19.5px);
    -webkit-mask: radial-gradient(transparent 14px, black 14.5px, black 19px, transparent 19.5px);
}

.pp-knob-lg::after {
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    box-shadow: inset 0 -5px 0 -2px var(--violet);
}

/* Animated knob — one knob slowly turns */
.pp-knob-animated .pp-knob-ring {
    animation: pp-knob-turn 6s ease-in-out infinite, pp-knob-glow 4s ease-in-out infinite;
}

@keyframes pp-knob-turn {
    0%, 100% { --val: 0.3; }
    50% { --val: 0.9; }
}

/* Register --val as animatable */
@property --val {
    syntax: '<number>';
    inherits: false;
    initial-value: 0.5;
}

/* Glitch grid */
.pp-glitch-section {
    margin-top: 4px;
}

.pp-glitch-btn {
    display: inline-block;
    color: var(--pink);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 32, 144, 0.3);
    border-radius: 2px;
    background: rgba(255, 32, 144, 0.08);
    margin-bottom: 4px;
    animation: pp-btn-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(255, 32, 144, 0.4);
}

@keyframes pp-btn-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 32, 144, 0.1); }
    50% { box-shadow: 0 0 8px rgba(255, 32, 144, 0.25), 0 0 16px rgba(255, 32, 144, 0.08); }
}

.pp-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
}

/* Animated playhead sweeping across the grid */
.pp-grid::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--violet);
    box-shadow: 0 0 4px var(--violet), 0 0 8px rgba(187, 68, 255, 0.4);
    animation: pp-playhead 2s linear infinite;
    z-index: 2;
}

@keyframes pp-playhead {
    0% { left: 0; }
    100% { left: 100%; }
}

.pp-grid-row {
    display: flex;
    gap: 1px;
}

.pp-cell {
    flex: 1;
    height: 8px;
    border-radius: 1px;
    background: rgba(255,255,255,0.02);
    border: 0.5px solid rgba(255,255,255,0.04);
    transition: box-shadow 0.2s;
}

.pp-row-orange .pp-cell.on { background: rgba(255, 107, 0, 0.7); border-color: rgba(255, 107, 0, 0.4); box-shadow: 0 0 3px rgba(255, 107, 0, 0.3); }
.pp-row-blue .pp-cell.on   { background: rgba(0, 204, 255, 0.7); border-color: rgba(0, 204, 255, 0.4); box-shadow: 0 0 3px rgba(0, 204, 255, 0.3); }
.pp-row-pink .pp-cell.on   { background: rgba(255, 32, 144, 0.7); border-color: rgba(255, 32, 144, 0.4); box-shadow: 0 0 3px rgba(255, 32, 144, 0.3); }
.pp-row-green .pp-cell.on  { background: rgba(0, 255, 136, 0.7); border-color: rgba(0, 255, 136, 0.4); box-shadow: 0 0 3px rgba(0, 255, 136, 0.3); }
.pp-row-yellow .pp-cell.on { background: rgba(255, 255, 0, 0.7); border-color: rgba(255, 255, 0, 0.4); box-shadow: 0 0 3px rgba(255, 255, 0, 0.3); }

/* Cells that blink on/off — simulates clicking */
.pp-cell.blink {
    animation: pp-cell-blink 3s ease infinite;
}

.pp-row-orange .pp-cell.blink { animation: pp-blink-orange 3s ease infinite; }
.pp-row-blue .pp-cell.blink   { animation: pp-blink-blue 3s ease infinite; }
.pp-row-pink .pp-cell.blink   { animation: pp-blink-pink 3s ease infinite; }

@keyframes pp-blink-orange {
    0%, 40%, 100% { background: rgba(255,255,255,0.02); box-shadow: none; }
    45%, 90% { background: rgba(255, 107, 0, 0.7); box-shadow: 0 0 4px rgba(255, 107, 0, 0.4); }
}
@keyframes pp-blink-blue {
    0%, 30%, 100% { background: rgba(255,255,255,0.02); box-shadow: none; }
    35%, 80% { background: rgba(0, 204, 255, 0.7); box-shadow: 0 0 4px rgba(0, 204, 255, 0.4); }
}
@keyframes pp-blink-pink {
    0%, 50%, 100% { background: rgba(255,255,255,0.02); box-shadow: none; }
    55%, 95% { background: rgba(255, 32, 144, 0.7); box-shadow: 0 0 4px rgba(255, 32, 144, 0.4); }
}

/* ---- Scanner Preview ---- */

.pp-radio-display {
    background: #010002;
    border: 1px solid rgba(187, 68, 255, 0.1);
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 6px;
}

.pp-freq-band {
    position: relative;
    height: 28px;
    border-bottom: 1px solid rgba(187, 68, 255, 0.08);
    margin-bottom: 6px;
}

.pp-freq-markers {
    display: flex;
    justify-content: space-between;
    color: var(--violet-dim);
    font-size: 7px;
    opacity: 0.5;
    margin-bottom: 4px;
}

.pp-needle {
    position: absolute;
    left: 40%;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 2px #fff, 0 0 6px var(--cyan), 0 0 12px rgba(0, 255, 238, 0.4), 0 0 20px rgba(0, 255, 238, 0.15);
    animation: pp-scan 6s infinite ease-in-out;
}

@keyframes pp-scan {
    0%, 100% { left: 15%; }
    30% { left: 40%; }
    60% { left: 75%; }
    80% { left: 58%; }
}

.pp-stations {
    position: absolute;
    bottom: 2px;
    left: 0; right: 0;
    height: 6px;
}

.pp-station {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--violet-dim);
    opacity: 0.4;
    transform: translateX(-50%);
}

.pp-station-active {
    background: #44ff88;
    opacity: 1;
    box-shadow: 0 0 4px #44ff88;
}

.pp-radio-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-freq-num {
    font-size: 16px;
    font-weight: 800;
    color: #44ff88;
    text-shadow: 0 0 2px #fff, 0 0 6px #44ff88, 0 0 14px rgba(68, 255, 136, 0.4), 0 0 25px rgba(68, 255, 136, 0.15);
    letter-spacing: 1px;
    animation: pp-freq-glow 3s ease-in-out infinite;
}

@keyframes pp-freq-glow {
    0%, 100% { text-shadow: 0 0 2px #fff, 0 0 6px #44ff88, 0 0 14px rgba(68,255,136,0.4); }
    50% { text-shadow: 0 0 4px #fff, 0 0 10px #44ff88, 0 0 20px rgba(68,255,136,0.5), 0 0 35px rgba(68,255,136,0.2); }
}

.pp-station-name {
    color: var(--violet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pp-signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    margin-left: auto;
}

.pp-bar {
    width: 3px;
    border-radius: 1px;
    background: rgba(187, 68, 255, 0.08);
}

.pp-bar:nth-child(1) { height: 4px; }
.pp-bar:nth-child(2) { height: 6px; }
.pp-bar:nth-child(3) { height: 8px; }
.pp-bar:nth-child(4) { height: 10px; }
.pp-bar:nth-child(5) { height: 12px; }
.pp-bar:nth-child(6) { height: 14px; }
.pp-bar:nth-child(7) { height: 16px; }
.pp-bar:nth-child(8) { height: 18px; }

.pp-bar.on:nth-child(-n+4) { background: var(--violet); }
.pp-bar.on:nth-child(5) { background: #44ff88; }
.pp-bar.on:nth-child(n+6) { background: var(--pink); }

.pp-scanner-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-scan-btn {
    display: inline-block;
    color: #44ff88;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border: 1px solid rgba(68, 255, 136, 0.25);
    border-radius: 2px;
    background: rgba(68, 255, 136, 0.06);
    width: fit-content;
    animation: pp-scan-pulse 2.5s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(68, 255, 136, 0.4);
}

@keyframes pp-scan-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(68, 255, 136, 0.1); }
    50% { box-shadow: 0 0 8px rgba(68, 255, 136, 0.2), 0 0 16px rgba(68, 255, 136, 0.08); }
}

/* ---- Game card visuals (WIP placeholders) ---- */

.card-visual {
    height: 80px;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid rgba(187, 68, 255, 0.06);
}

.viz-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(187, 68, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 68, 255, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
}

.game-visual {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(187, 68, 255, 0.02) 100%);
}

.viz-pixel {
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(187, 68, 255, 0.2) 1px, transparent 1px);
    background-size: 8px 8px;
    animation: pixel-shift 6s infinite;
    opacity: 0.4;
}

@keyframes pixel-shift {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 4px 4px; }
}

.card-desc {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--violet-dim);
    border: 1px solid rgba(187, 68, 255, 0.12);
    padding: 3px 10px;
    border-radius: 3px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: rgba(187, 68, 255, 0.1);
    color: var(--violet);
    border: 1px solid rgba(187, 68, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(187, 68, 255, 0.15);
    color: #fff;
    text-shadow: 0 0 4px #fff, 0 0 8px var(--violet);
    box-shadow:
        0 0 8px rgba(187, 68, 255, 0.2),
        0 0 20px rgba(187, 68, 255, 0.1),
        0 0 40px rgba(187, 68, 255, 0.05);
    border-color: var(--violet);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.97);
    filter: brightness(1.5);
}

.btn-icon {
    font-size: 14px;
}

.btn-size {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 4px;
}

.btn-support {
    background: rgba(255, 32, 144, 0.08);
    color: var(--pink);
    border: 1px solid rgba(255, 32, 144, 0.25);
    padding: 14px 32px;
    font-size: 14px;
}

.btn-support:hover {
    background: rgba(255, 32, 144, 0.15);
    box-shadow: 0 0 25px rgba(255, 32, 144, 0.15);
}

.btn-small {
    padding: 8px 16px;
    font-size: 11px;
    background: rgba(187, 68, 255, 0.1);
    color: var(--violet);
    border: 1px solid rgba(187, 68, 255, 0.2);
}

.btn-small:hover {
    background: rgba(187, 68, 255, 0.2);
}

/* ---- Install Note ---- */

.install-note {
    font-size: 11px;
    color: var(--text-dim);
    padding: 16px;
    border: 1px solid rgba(187, 68, 255, 0.08);
    border-radius: 4px;
    background: rgba(187, 68, 255, 0.02);
}

.install-note code {
    color: var(--cyan);
    background: rgba(0, 255, 238, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* ---- Interactive Terminal ---- */

.terminal {
    max-width: 680px;
    height: 320px;
    background: #010002;
    border: 1px solid rgba(187, 68, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: text;
    /* CRT glow */
    box-shadow:
        inset 0 0 80px rgba(187, 68, 255, 0.015),
        0 0 12px rgba(187, 68, 255, 0.03);
    /* Scanlines baked in */
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(187, 68, 255, 0.008) 2px, rgba(187, 68, 255, 0.008) 3px);
}

.terminal-screen {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: none;
}

.terminal-screen::-webkit-scrollbar { display: none; }

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 8px 16px 12px;
    gap: 8px;
    border-top: 1px solid rgba(187, 68, 255, 0.04);
}

.term-prompt {
    color: var(--violet-dim);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.term-line {
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.term-line .term-prompt {
    margin-right: 8px;
}

.term-output {
    color: var(--text);
    padding-left: 2px;
}

.term-error {
    color: var(--pink);
}

.term-highlight {
    color: var(--cyan);
    text-shadow: 0 0 6px rgba(0, 255, 238, 0.2);
}

.term-violet {
    color: var(--violet);
}

.term-dim {
    color: var(--text-dim);
}

.term-blank {
    height: 6px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--violet);
    caret-color: var(--violet);
    padding: 0;
}

/* ---- Support ---- */

.section-support {
    text-align: center;
}

.support-actions {
    margin: 30px 0;
}

.newsletter {
    margin-top: 40px;
}

.newsletter-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.newsletter-form {
    display: inline-flex;
    gap: 8px;
}

.newsletter-input {
    font-family: var(--mono);
    font-size: 12px;
    padding: 10px 16px;
    background: var(--bg-panel);
    border: 1px solid rgba(187, 68, 255, 0.15);
    border-radius: 4px;
    color: var(--text);
    outline: none;
    width: 260px;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 15px rgba(187, 68, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-dim);
}

/* ---- Footer ---- */

.footer {
    padding: 30px 32px 0;
    position: relative;
    overflow: hidden;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-dim), transparent);
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--violet-dim);
    letter-spacing: 4px;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-dim);
}

.footer-scroll {
    overflow: hidden;
    padding: 12px 0;
    border-top: 1px solid rgba(187, 68, 255, 0.06);
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--violet-dim);
    opacity: 0.3;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Detail Overlay ---- */

.detail-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5000;
    background: rgba(3, 0, 8, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    animation: detail-fade-in 0.3s ease;
}

.detail-overlay.open {
    display: block;
}

@keyframes detail-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-panel {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 32px 60px;
    position: relative;
}

.detail-close {
    position: fixed;
    top: 20px; right: 28px;
    background: none;
    border: 1px solid rgba(187, 68, 255, 0.2);
    color: var(--violet);
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 5001;
    font-family: var(--mono);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close:hover {
    color: #fff;
    border-color: var(--violet);
    text-shadow: 0 0 6px var(--violet);
    box-shadow: 0 0 12px rgba(187, 68, 255, 0.15);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-preview {
    position: sticky;
    top: 80px;
}

.detail-size {
    font-size: 11px;
}

.detail-size .pp-title-bar { padding: 10px 16px; }
.detail-size .pp-name { font-size: 14px; letter-spacing: 3px; }
.detail-size .pp-sys, .detail-size .pp-ver { font-size: 9px; }
.detail-size .pp-body { padding: 14px; }
.detail-size .pp-selectors { margin-bottom: 10px; }
.detail-size .pp-label { font-size: 10px; }
.detail-size .pp-dropdown { font-size: 10px; padding: 3px 10px; }

.pp-scope-tall { height: 60px; }
.pp-knobs-big { margin: 10px 0; }
.pp-knob-lg { width: 36px; height: 36px; }
.pp-knob-lg::after { top: 5px; left: 5px; right: 5px; bottom: 5px; }

.detail-size .pp-knob span { font-size: 8px; }
.detail-size .pp-glitch-btn, .detail-size .pp-scan-btn { font-size: 9px; padding: 3px 10px; }

.pp-grid-big { gap: 2px; }
.pp-grid-big .pp-cell { height: 14px; border-radius: 2px; }
.pp-grid-big .pp-grid-row { gap: 2px; }

.pp-radio-big { padding: 12px; }
.pp-freq-tall { height: 40px; margin-bottom: 10px; }
.pp-freq-xl { font-size: 24px; }

/* Detail info panel */

.detail-info {
    padding-top: 10px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--violet-bright);
    letter-spacing: 4px;
    text-shadow: 0 0 8px rgba(187, 68, 255, 0.2);
    margin-bottom: 6px;
}

.detail-version {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 28px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(0, 255, 238, 0.15);
}

.detail-section p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.8;
}

.detail-highlight {
    color: var(--violet);
    font-weight: 700;
}

.detail-chain {
    font-size: 11px !important;
    color: var(--violet) !important;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px;
    background: rgba(187, 68, 255, 0.04);
    border: 1px solid rgba(187, 68, 255, 0.1);
    border-radius: 4px;
}

.detail-download {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(187, 68, 255, 0.08);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 14px;
}

/* Clickable card cursor */
.card-clickable {
    cursor: pointer;
}

.card-clickable::after {
    content: 'CLICK FOR DETAILS';
    position: absolute;
    bottom: 8px; right: 12px;
    font-size: 8px;
    color: var(--violet-dim);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-clickable:hover::after {
    opacity: 0.5;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .detail-content { grid-template-columns: 1fr; }
    .detail-preview { position: static; }
}

@media (max-width: 768px) {
    .nav { padding: 12px 16px; }
    .nav-links { gap: 12px; }
    .nav-link { font-size: 9px; letter-spacing: 2px; padding: 4px 6px; }
    .section { padding: 60px 16px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: 2px; font-size: clamp(24px, 7vw, 50px); }
    .hero-links { gap: 8px; font-size: 12px; letter-spacing: 3px; flex-wrap: wrap; justify-content: center; }
    .neon-link { padding: 4px 8px; }
    .newsletter-form { flex-direction: column; align-items: center; }
    .newsletter-input { width: 100%; max-width: 300px; }
    .hero-status { font-size: 9px; letter-spacing: 2px; padding: 6px 14px; }
    .sep { margin: 0 2px; }
}

@media (max-width: 480px) {
    .nav-brand { font-size: 14px; }
    .nav-links { gap: 8px; }
    .nav-link { font-size: 8px; letter-spacing: 1px; padding: 3px 5px; }
    .section-header h2 { font-size: 16px; letter-spacing: 3px; }
    .hero-title { letter-spacing: 1px; }
    .hero-links { font-size: 11px; letter-spacing: 2px; }
    .detail-content { grid-template-columns: 1fr; }
    .detail-preview { position: static; }
    .demo-container { height: 200px; }
}
