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

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

body {
    background: #0a0a12;
    color: #e8e4dd;
    font-family: 'Work Sans', sans-serif;
    font-weight: 350;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* === PANELS === */
.panel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* === SCANLINES === */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 3px,
        rgba(0, 255, 213, 0.04) 3px,
        rgba(0, 255, 213, 0.04) 4px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

/* === PANEL 1 — SIGNAL DETECTED === */
.panel-1 {
    background: #0a0a12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aurora-bleed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.aurora-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    transform: scale(0);
    transition: transform 1.8s ease-out;
}

.aurora-magenta {
    width: 500px;
    height: 500px;
    background: rgba(255, 45, 111, 0.4);
    top: 20%;
    left: 55%;
}

.aurora-violet {
    width: 450px;
    height: 450px;
    background: rgba(139, 92, 246, 0.35);
    top: 35%;
    left: 40%;
}

.aurora-cyan {
    width: 480px;
    height: 480px;
    background: rgba(0, 255, 213, 0.3);
    top: 25%;
    left: 65%;
}

.aurora-bleed.active .aurora-circle {
    transform: scale(1);
}

.panel-1-content {
    position: relative;
    z-index: 5;
    text-align: left;
    padding-left: clamp(2rem, 5vw, 6rem);
}

.hero-title {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.0;
    color: #e8e4dd;
    text-transform: uppercase;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, color 0.3s ease;
}

.hero-title .letter.visible {
    opacity: 1;
    transform: scale(1);
}

.divider-line {
    width: clamp(150px, 30vw, 300px);
    height: 2px;
    margin: 1.5rem 0;
    transform: rotate(-45deg);
    transform-origin: left center;
}

.divider-line svg {
    width: 100%;
    height: 100%;
}

#divider-stroke {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease-out;
}

#divider-stroke.drawn {
    stroke-dashoffset: 0;
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.06em;
    color: #00ffd5;
    min-height: 1.5em;
}

.chevron-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #00ffd5;
    z-index: 5;
    animation: pulse-chevron 2s ease-in-out infinite;
}

@keyframes pulse-chevron {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

/* === PANEL 2 — SIGNAL ANALYSIS === */
.panel-2 {
    background: #0a0a12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    max-width: 900px;
    width: 90%;
    position: relative;
    z-index: 5;
}

.angular-card {
    background: #12122a;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    clip-path: polygon(4% 0, 100% 2%, 97% 100%, 0 96%);
    transform: rotate(-4deg);
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #ff2d6f 0%, #8b5cf6 35%, #00ffd5 70%, #22d3a7 100%) 1;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, box-shadow 0.3s ease;
}

.angular-card.visible {
    opacity: 1;
}

.card-left {
    grid-column: 1;
    grid-row: 1;
    transform: translateX(-100px) rotate(-4deg);
}

.card-left.visible {
    transform: translateX(0) rotate(-4deg);
}

.card-right {
    grid-column: 2;
    grid-row: 1;
    transform: translateX(100px) rotate(-4deg);
}

.card-right.visible {
    transform: translateX(0) rotate(-4deg);
}

.card-center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 400px;
    width: 100%;
    transform: translateY(80px) rotate(-4deg);
}

.card-center.visible {
    transform: translateY(0) rotate(-4deg);
}

.angular-card:hover {
    animation: glitch-shift 120ms steps(2) 1;
    transform: rotate(-4deg) scale(1.03);
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.15);
}

@keyframes glitch-shift {
    0% { clip-path: polygon(4% 0, 100% 2%, 97% 50%, 0 48%); transform: rotate(-4deg) translateX(-2px); }
    50% { clip-path: polygon(4% 50%, 100% 52%, 97% 100%, 0 96%); transform: rotate(-4deg) translateX(2px); }
    100% { clip-path: polygon(4% 0, 100% 2%, 97% 100%, 0 96%); transform: rotate(-4deg) scale(1.03); }
}

.card-heading {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.0;
    color: #00ffd5;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 350;
    color: #e8e4dd;
    margin-bottom: 0.75rem;
}

.card-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.06em;
    color: #fbbf24;
    opacity: 0.7;
}

/* === PANEL 3 — SIGNAL DECODED === */
.panel-3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aurora-gradient-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--aurora-angle, 135deg), #ff2d6f 0%, #8b5cf6 35%, #00ffd5 70%, #22d3a7 100%);
    z-index: 0;
}

.panel-3-text {
    position: relative;
    z-index: 5;
    max-width: 520px;
    padding: 2rem;
    mix-blend-mode: difference;
}

.manifesto-line {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    color: #e8e4dd;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.manifesto-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === PANEL 4 — SIGNAL ORIGIN === */
.panel-4 {
    background: #0a0a12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-stream {
    position: absolute;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.06em;
    color: #00ffd5;
    overflow: hidden;
    width: 100%;
}

.stream-1 {
    top: 25%;
    opacity: 1;
    animation: marquee 8s linear infinite;
}

.stream-2 {
    top: 40%;
    opacity: 0.6;
    animation: marquee 12s linear infinite reverse;
}

.stream-3 {
    top: 55%;
    opacity: 0.3;
    animation: marquee 18s linear infinite;
}

.data-stream span {
    display: inline-block;
    padding-left: 100%;
    animation: inherit;
}

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

.terminal-slashes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.slash {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    color: #00ffd5;
    opacity: 0.3;
    font-size: 1.5rem;
}

.s1 { top: 30%; left: 15%; }
.s2 { top: 45%; left: 75%; }
.s3 { top: 65%; left: 25%; }
.s4 { top: 35%; left: 85%; }
.s5 { top: 70%; left: 60%; }

.terminal-center {
    position: relative;
    z-index: 5;
    text-align: center;
}

.terminal-title {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.0;
    background: linear-gradient(135deg, #ff2d6f 0%, #8b5cf6 35%, #00ffd5 70%, #22d3a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.terminal-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.06em;
    color: #00ffd5;
}
