/* ============================================================
   lsware.bid — Dopamine Neon Art Deco
   Palette: Void Black #0A0A0A | Deep Void #111111 | Dark Indigo #1A0033
            Neon Gold #F7E000 | Acid Pink #FF3FBE | Electric Cyan #00F5C8
            Neon Violet #C849FF | Hot Orange #FF6B00 | Sky Electric #00BFFF
            Alarm Red #FF1744
   Fonts: Poiret One (display) | Josefin Sans (headings) | Space Mono (body)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

:root {
    --void-black: #0A0A0A;
    --deep-void: #111111;
    --dark-indigo: #1A0033;
    --neon-gold: #F7E000;
    --acid-pink: #FF3FBE;
    --electric-cyan: #00F5C8;
    --neon-violet: #C849FF;
    --hot-orange: #FF6B00;
    --sky-electric: #00BFFF;
    --alarm-red: #FF1744;
    --ghost-white: #ECECEC;
    --soft-white: #F0F0F0;
    --font-display: 'Poiret One', sans-serif;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-black);
    color: var(--ghost-white);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* ---- GRAIN OVERLAY ---- */
.grain {
    position: relative;
    overflow: hidden;
}

.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.18;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

/* ---- FLICKER ANIMATION ---- */
@keyframes flicker {
    0%, 94%, 100% { opacity: 1; }
    95%           { opacity: 0.4; }
    97%           { opacity: 0.8; }
}

/* ---- PULSE ANIMATION (sunburst) ---- */
@keyframes pulse {
    0%   { opacity: 0.7; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

/* ---- SLIDE-IN ANIMATION (stagger) ---- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- TAGLINE FADE-IN ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   APEX SECTION
   ============================================================ */
.section-apex {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: var(--void-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Sunburst */
.sunburst-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 1;
}

.sunburst {
    position: relative;
    width: 200px;
    height: 200px;
    animation: pulse 3s ease-in-out infinite;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 60px;
    background: linear-gradient(to top, var(--neon-gold), transparent);
    opacity: 0.7;
    transform-origin: 50% 100%;
    transform: rotate(var(--angle)) translateX(-50%) translateY(-100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Apex Content */
.apex-content {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    width: 100%;
}

.wordmark {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--neon-gold), var(--acid-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: slideIn 0.8s ease-out both;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acid-pink);
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.2s forwards;
}

/* Apex neon rule */
.neon-rule {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: var(--neon-gold);
    z-index: 3;
}

.flicker {
    animation: flicker 8s infinite;
}

/* ============================================================
   CASCADE SECTION
   ============================================================ */
.section-cascade {
    position: relative;
    width: 100%;
    padding: 80px 0 100px;
    background-color: var(--void-black);
    overflow: visible;
}

.neon-rule-top,
.neon-rule-bottom {
    position: relative;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: var(--acid-pink);
    opacity: 0.4;
    margin-bottom: 48px;
}

.neon-rule-bottom {
    margin-top: 48px;
    margin-bottom: 0;
}

.cascade-block {
    position: relative;
    left: var(--left);
    width: 42%;
    min-width: 280px;
    padding: 36px 44px 36px 36px;
    background-color: var(--deep-void);
    transform: rotate(-1.5deg);
    margin-bottom: 0;
    z-index: 2;
}

.parallelogram-primary {
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

.parallelogram-secondary {
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
    transform: rotate(1deg);
}

.block-heading {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-gold);
    margin-bottom: 14px;
}

.block-body {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: rgba(236, 236, 236, 0.85);
}

/* Stagger animation for cascade blocks */
.stagger-item {
    opacity: 0;
    animation: slideIn 0.5s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 200ms);
}

/* ============================================================
   FREQUENCY SECTION
   ============================================================ */
.section-frequency {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--void-black);
    display: flex;
    align-items: flex-end;
    padding: 0 5%;
    overflow: hidden;
}

.frequency-bars {
    display: flex;
    align-items: flex-end;
    gap: 3%;
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
}

.freq-bar {
    position: relative;
    width: var(--width);
    flex-shrink: 0;
    height: var(--height);
    background-color: var(--color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 12px;
    opacity: 0;
    animation: slideIn 0.6s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 400ms);
}

/* Bar label base styles */
.bar-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--void-black);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Secondary headings alternate color: #F0F0F0 (Josefin Sans, soft white) */
.section-frequency .freq-bar:nth-child(odd) .bar-label {
    color: #F0F0F0;
}

.section-frequency .freq-bar:nth-child(even) .bar-label {
    color: var(--void-black);
}

/* ============================================================
   SIGNAL SECTION
   ============================================================ */
.section-signal {
    position: relative;
    width: 100%;
    padding: 100px 8% 100px;
    background-color: var(--deep-void);
}

/* Secondary display headings use Josefin Sans at 700 with colors: var(--electric-cyan) or #F0F0F0 */
.signal-headline {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ghost-white);
    margin-bottom: 32px;
    text-align: left;
    opacity: 0;
    animation: slideIn 0.5s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 200ms);
}

.signal-rule {
    width: 80%;
    height: 1px;
    background-color: var(--neon-gold);
    margin-bottom: 60px;
}

.signal-columns {
    display: flex;
    gap: 0;
    width: 100%;
}

.signal-col {
    flex: 1;
    padding: 0 4% 0 0;
    clip-path: polygon(0 0, 95% 0, 90% 100%, 0% 100%);
    opacity: 0;
    animation: slideIn 0.5s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 200ms);
}

.signal-col:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%);
}

.col-rule {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 63, 190, 0.4);
    margin-bottom: 20px;
}

.col-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--electric-cyan);
    margin-bottom: 16px;
}

/* Secondary display headings use Josefin Sans at 700 — Neon Cyan or White (#F0F0F0) */

.col-body {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: rgba(236, 236, 236, 0.85);
    margin-bottom: 20px;
}

.col-data {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--acid-pink);
    line-height: 1.8;
}

/* ============================================================
   TERMINUS SECTION
   ============================================================ */
.section-terminus {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    background: radial-gradient(ellipse at center, var(--dark-indigo) 0%, #000000 70%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    overflow: hidden;
}

.terminus-staircase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.terminus-line-1 {
    font-family: var(--font-display);
    font-size: clamp(50px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--neon-gold);
    margin-left: 0;
    opacity: 0;
    animation: slideIn 0.6s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 300ms);
}

.terminus-line-2 {
    font-family: var(--font-mono);
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ghost-white);
    margin-left: 40px;
    margin-top: 16px;
    opacity: 0;
    animation: slideIn 0.6s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 300ms);
}

.terminus-line-3 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--electric-cyan);
    margin-left: 80px;
    margin-top: 12px;
    opacity: 0;
    animation: slideIn 0.6s ease-out both;
    animation-delay: calc(var(--i) * 120ms + 300ms);
}

/* Diagonal rule in terminus */
.terminus-diagonal-rule {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 200%;
    height: 1px;
    background-color: var(--neon-violet);
    transform: rotate(-2deg);
    transform-origin: left center;
    animation: flicker 8s infinite;
}

/* ============================================================
   SECTION SEPARATORS (gap between sections)
   ============================================================ */
.section-apex,
.section-cascade,
.section-frequency,
.section-signal {
    margin-bottom: 48px;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-gold);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .cascade-block {
        width: 80%;
        left: 5% !important;
    }

    .signal-columns {
        flex-direction: column;
        gap: 40px;
    }

    .signal-col {
        clip-path: none;
    }

    .signal-col:last-child {
        clip-path: none;
    }

    .frequency-bars {
        gap: 2%;
    }

    .terminus-line-1 {
        margin-left: 0;
    }

    .terminus-line-2 {
        margin-left: 20px;
    }

    .terminus-line-3 {
        margin-left: 40px;
    }
}
