/* ═══════════════════════════════════════════════════════════
   lowball.dev — Neon Console Design System
   Colors: #1a1a1e #2a2a2e #0a0a0a #FF2D7B #00F5D4 #B8FF00
           #c8c8d0 #e0e0e0 #3d2b1f #2a1a10 #323236
   Fonts: Bebas Neue, Inter, IBM Plex Mono, Space Grotesk
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #c8c8d0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Section Base ── */
.section {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1: THE FACEPLATE
   ═══════════════════════════════════════════════════════════ */
.section--faceplate {
    background: linear-gradient(135deg, #1a1a1e 0%, #2a2a2e 50%, #1a1a1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brushed-metal-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(255,255,255,0.015) 1px,
            rgba(255,255,255,0.015) 2px
        );
    pointer-events: none;
    z-index: 1;
}

.faceplate-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
}

/* ── Top Strip: Toggles & LEDs ── */
.faceplate-top-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-group {
    display: flex;
    gap: 24px;
}

.toggle-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-track {
    width: 44px;
    height: 22px;
    background: #323236;
    border-radius: 11px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.toggle-switch.active .toggle-track {
    background: rgba(0, 245, 212, 0.2);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.3), inset 0 0 4px rgba(0, 245, 212, 0.1);
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c8c8d0;
    position: absolute;
    top: 1px;
    left: 2px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.toggle-switch.active .toggle-thumb {
    transform: translateX(22px);
    background: #00F5D4;
    box-shadow: 0 0 10px #00F5D4, 0 0 20px rgba(0, 245, 212, 0.4);
}

.toggle-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #c8c8d0;
    text-transform: uppercase;
}

.led-cluster {
    display: flex;
    gap: 12px;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #323236;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.led.active.led--magenta {
    background: #FF2D7B;
    box-shadow: 0 0 6px #FF2D7B, 0 0 15px rgba(255, 45, 123, 0.5);
}

.led.active.led--cyan {
    background: #00F5D4;
    box-shadow: 0 0 6px #00F5D4, 0 0 15px rgba(0, 245, 212, 0.5);
}

.led.active.led--lime {
    background: #B8FF00;
    box-shadow: 0 0 6px #B8FF00, 0 0 15px rgba(184, 255, 0, 0.5);
}

.led.pulse {
    animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Hero Logotype ── */
.hero-logotype-container {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logotype {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(100px, 18vw, 180px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #FF2D7B;
    text-shadow:
        0 0 10px rgba(255, 45, 123, 0.8),
        0 0 30px rgba(255, 45, 123, 0.5),
        0 0 60px rgba(255, 45, 123, 0.3),
        0 0 100px rgba(255, 45, 123, 0.15);
    animation: neonBreathe 4s ease-in-out infinite;
    line-height: 0.9;
}

@keyframes neonBreathe {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 45, 123, 0.8),
            0 0 30px rgba(255, 45, 123, 0.5),
            0 0 60px rgba(255, 45, 123, 0.3),
            0 0 100px rgba(255, 45, 123, 0.15);
        opacity: 1;
    }
    50% {
        text-shadow:
            0 0 5px rgba(255, 45, 123, 0.5),
            0 0 20px rgba(255, 45, 123, 0.3),
            0 0 40px rgba(255, 45, 123, 0.15),
            0 0 60px rgba(255, 45, 123, 0.08);
        opacity: 0.85;
    }
}

.hero-subtitle-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.hero-rule {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00F5D4, transparent);
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    letter-spacing: 0.3em;
    color: #00F5D4;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

/* ── Gauges ── */
.faceplate-gauges {
    display: flex;
    gap: 60px;
    align-items: center;
}

.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gauge-ring {
    position: relative;
    width: 90px;
    height: 90px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: #323236;
    stroke-width: 4;
}

.gauge-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 263.89;
    stroke-dashoffset: 263.89;
    transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-fill--magenta { stroke: #FF2D7B; filter: drop-shadow(0 0 4px rgba(255, 45, 123, 0.6)); }
.gauge-fill--cyan { stroke: #00F5D4; filter: drop-shadow(0 0 4px rgba(0, 245, 212, 0.6)); }
.gauge-fill--lime { stroke: #B8FF00; filter: drop-shadow(0 0 4px rgba(184, 255, 0, 0.6)); }

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #e0e0e0;
    letter-spacing: 0.05em;
}

.gauge-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(200, 200, 208, 0.6);
    text-transform: uppercase;
}

/* ── VU Meter ── */
.faceplate-bottom-strip {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.vu-meter {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 40px;
}

.vu-bar {
    width: 8px;
    background: linear-gradient(to top, #00F5D4, #B8FF00);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
    box-shadow: 0 0 4px rgba(0, 245, 212, 0.3);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBob 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: rgba(0, 245, 212, 0.5);
}

.scroll-arrow {
    animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2: THE GREENHOUSE
   ═══════════════════════════════════════════════════════════ */
.section--greenhouse {
    background: linear-gradient(180deg, #1a1a1e 0%, #0a0a0a 30%, #2a1a10 70%, #3d2b1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.greenhouse-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.botanical-vine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    opacity: 0.4;
}

.vine--left { left: 0; }
.vine--right { right: 0; }

.vine-svg {
    width: 100%;
    height: 100%;
}

.vine-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 3s ease-out;
}

.vine-path.animate {
    stroke-dashoffset: 0;
}

.vine-leaf {
    transform-origin: center;
    animation: leafFloat 6s ease-in-out infinite;
}

.vine-leaf:nth-child(odd) { animation-delay: -2s; }
.vine-leaf:nth-child(even) { animation-delay: -4s; }

@keyframes leafFloat {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(3px, -2px); }
    66% { transform: scale(0.95) translate(-2px, 3px); }
}

.greenhouse-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.greenhouse-heading {
    color: #B8FF00;
    text-shadow:
        0 0 8px rgba(184, 255, 0, 0.6),
        0 0 25px rgba(184, 255, 0, 0.3),
        0 0 50px rgba(184, 255, 0, 0.15);
}

/* ── Leather Panels ── */
.leather-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leather-panel {
    position: relative;
    background:
        linear-gradient(145deg, #3d2b1f 0%, #2a1a10 100%);
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.leather-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.08) 3px,
            rgba(0,0,0,0.08) 4px
        );
    pointer-events: none;
    border-radius: 12px;
}

.leather-panel:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(0,0,0,0.4),
        0 0 20px rgba(255, 45, 123, 0.08);
}

.panel-stitching {
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

.panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-icon {
    width: 48px;
    height: 48px;
}

.panel-icon svg {
    width: 100%;
    height: 100%;
}

.panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.08em;
    color: #e0e0e0;
}

.panel-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(200, 200, 208, 0.7);
    font-weight: 300;
}

.panel-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot--active {
    background: #00F5D4;
    box-shadow: 0 0 6px #00F5D4;
    animation: ledPulse 2s ease-in-out infinite;
}

.status-dot--warning {
    background: #B8FF00;
    box-shadow: 0 0 6px #B8FF00;
    animation: ledPulse 1.5s ease-in-out infinite;
}

.status-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(200, 200, 208, 0.5);
}

/* ── Console ── */
.greenhouse-console {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1a1a1e;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.console-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(200, 200, 208, 0.5);
    letter-spacing: 0.05em;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot--red { background: #FF2D7B; }
.dot--yellow { background: #B8FF00; }
.dot--green { background: #00F5D4; }

.console-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.console-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #c8c8d0;
}

.console-prompt {
    color: #00F5D4;
    margin-right: 8px;
}

.console-cmd {
    color: #e0e0e0;
}

.console-output {
    color: rgba(200, 200, 208, 0.5);
    padding-left: 20px;
}

.console-success {
    color: #B8FF00;
}

.console-cursor {
    color: #00F5D4;
    animation: cursorBlink 1s step-end infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   SECTION 3: THE VAULT
   ═══════════════════════════════════════════════════════════ */
.section--vault {
    background: linear-gradient(180deg, #3d2b1f 0%, #1a1a1e 30%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.vault-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 45, 123, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 245, 212, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.vault-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.vault-heading {
    color: #00F5D4;
    text-shadow:
        0 0 8px rgba(0, 245, 212, 0.6),
        0 0 25px rgba(0, 245, 212, 0.3),
        0 0 50px rgba(0, 245, 212, 0.15);
}

/* ── Vault Grid ── */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.vault-cell {
    position: relative;
    background: rgba(26, 26, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 28px 24px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.vault-cell:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 245, 212, 0.2);
}

.vault-cell:hover .cell-glow {
    opacity: 1;
}

.cell-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.cell-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cell-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(200, 200, 208, 0.3);
    letter-spacing: 0.2em;
}

.cell-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 0.08em;
    color: #e0e0e0;
}

.cell-bar {
    width: 100%;
    height: 4px;
    background: #323236;
    border-radius: 2px;
    overflow: hidden;
}

.cell-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #FF2D7B, #00F5D4);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
    width: 0;
    transition: width 1.5s ease-out;
}

.vault-cell[data-cell='signal'] .cell-bar-fill { background: linear-gradient(90deg, #FF2D7B, #FF2D7B); box-shadow: 0 0 8px rgba(255, 45, 123, 0.4); }
.vault-cell[data-cell='noise'] .cell-bar-fill { background: linear-gradient(90deg, #B8FF00, #B8FF00); box-shadow: 0 0 8px rgba(184, 255, 0, 0.4); }
.vault-cell[data-cell='ratio'] .cell-bar-fill { background: linear-gradient(90deg, #00F5D4, #00F5D4); box-shadow: 0 0 8px rgba(0, 245, 212, 0.4); }
.vault-cell[data-cell='edge'] .cell-bar-fill { background: linear-gradient(90deg, #FF2D7B, #00F5D4); box-shadow: 0 0 8px rgba(0, 245, 212, 0.4); }

/* ── Manifesto ── */
.vault-manifesto {
    text-align: center;
    padding: 48px 60px;
    position: relative;
    max-width: 800px;
}

.manifesto-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 45, 123, 0.15);
    border-radius: 4px;
}

.manifesto-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.06em;
    color: #e0e0e0;
    line-height: 1.3;
    text-transform: uppercase;
}

.manifesto-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.attribution-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF2D7B, transparent);
}

.attribution-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: #FF2D7B;
    text-shadow: 0 0 8px rgba(255, 45, 123, 0.4);
}

/* ── Vault Footer ── */
.vault-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,200,208,0.15), transparent);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(200, 200, 208, 0.4);
}

.footer-separator {
    color: rgba(200, 200, 208, 0.2);
    font-size: 8px;
}

.footer-leds {
    display: flex;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .leather-panels {
        grid-template-columns: 1fr;
    }
    .vault-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faceplate-content {
        padding: 24px 24px;
    }
    .section--greenhouse,
    .section--vault {
        padding: 60px 24px;
    }
    .faceplate-gauges {
        gap: 30px;
    }
    .vault-manifesto {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .vault-grid {
        grid-template-columns: 1fr;
    }
    .toggle-group {
        gap: 14px;
    }
    .faceplate-gauges {
        gap: 20px;
    }
    .gauge-ring {
        width: 70px;
        height: 70px;
    }
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
    .footer-separator {
        display: none;
    }
}
/* ── Additional design tokens ── */
.section--faceplate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1A1A1A;
}

.console-body::after {
    content: '';
    display: block;
    height: 1px;
    background: #111;
    margin-top: 12px;
    opacity: 0.5;
}

.panel-stitching {
    border-color: #444;
}
