/* lovebot.quest - Chrome & Neon Swiss Design */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0A0A14;
    color: #E8E8E8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
.domain-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(52px, 9vw, 140px);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
}

.domain-title__love {
    color: #E8E8E8;
    background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-title__bot {
    color: #C0C0C0;
    background: linear-gradient(180deg, #C0C0C0 0%, #A8A8B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-title__dot {
    color: #FFB347;
    -webkit-text-fill-color: #FFB347;
}

.domain-title__quest {
    color: #FF2D7B;
    -webkit-text-fill-color: #FF2D7B;
    text-shadow: 0 0 30px rgba(255, 45, 123, 0.4);
}

.section-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8E8E8;
    margin-bottom: 32px;
}

.section-heading--neon {
    color: #FF2D7B;
    text-shadow: 0 0 40px rgba(255, 45, 123, 0.6), 0 0 80px rgba(255, 45, 123, 0.3);
}

.section-heading--final {
    color: #C0C0C0;
    font-weight: 300;
}

.section-number {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 700;
    color: rgba(255, 45, 123, 0.08);
    line-height: 1;
    letter-spacing: 0.05em;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 300;
    line-height: 1.8;
    color: #A8A8B8;
    max-width: 540px;
}

.body-text--chrome {
    color: #C0C0C0;
}

.body-text--warm {
    color: #FFB347;
}

.body-text--overflow {
    color: #E8E8E8;
}

.body-text--silence {
    color: #7B7B8E;
    font-weight: 400;
}

.subtitle-line {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7B7B8E;
    margin-top: 8px;
}

/* ==================== SECTIONS ==================== */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    padding: 48px 24px;
    position: relative;
    z-index: 2;
}

/* ==================== SECTION 1: AWAKENING ==================== */
.section--awakening {
    background: radial-gradient(ellipse at 50% 50%, #1A1A2E 0%, #14142A 40%, #0A0A14 100%);
}

.hero-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

.awakening__title-block {
    grid-column: 2 / 11;
    text-align: center;
    padding-top: 10vh;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.awakening__pulse {
    grid-column: 5 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pulse-ring {
    width: 160px;
    height: 160px;
}

.pulse-ring__outer,
.pulse-ring__mid,
.pulse-ring__inner {
    fill: none;
    stroke-width: 1;
}

.pulse-ring__outer {
    stroke: rgba(255, 45, 123, 0.15);
    animation: pulseRing 3s ease-in-out infinite;
}

.pulse-ring__mid {
    stroke: rgba(255, 45, 123, 0.3);
    animation: pulseRing 3s ease-in-out 0.5s infinite;
}

.pulse-ring__inner {
    stroke: rgba(255, 45, 123, 0.6);
    animation: pulseRing 3s ease-in-out 1s infinite;
}

.scroll-indicator {
    grid-column: 6 / 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-indicator__line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #FF2D7B);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #7B7B8E;
    margin-top: 16px;
}

/* ==================== SECTION 2: SIGNAL ==================== */
.section--signal {
    background: linear-gradient(180deg, #0A0A14 0%, #14142A 50%, #0A0A14 100%);
}

.signal-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.signal__number {
    grid-column: 1 / 4;
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
}

.signal__content {
    grid-column: 4 / 10;
    padding-top: 12vh;
}

.signal__metric {
    grid-column: 10 / 13;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.signal__waveform {
    margin-top: 40px;
    width: 100%;
    height: 120px;
}

.waveform-display {
    width: 100%;
    height: 100%;
}

.waveform-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.waveform-path--1 {
    stroke: #FF2D7B;
    filter: drop-shadow(0 0 6px rgba(255, 45, 123, 0.5));
}

.waveform-path--2 {
    stroke: #FFB347;
    opacity: 0.6;
    filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.3));
}

.waveform-path--3 {
    stroke: #C0C0C0;
    opacity: 0.3;
}

.metric-display {
    text-align: right;
    font-family: 'Work Sans', 'Space Grotesk', sans-serif;
}

.metric-display__label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #7B7B8E;
    margin-bottom: 8px;
}

.metric-display__value {
    display: block;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 600;
    color: #FF2D7B;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(255, 45, 123, 0.4);
}

.metric-display__unit {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #A8A8B8;
    margin-top: 4px;
}

/* ==================== SECTION 3: RESONANCE ==================== */
.section--resonance {
    background: radial-gradient(ellipse at 30% 60%, #2A2A4A 0%, #14142A 50%, #0A0A14 100%);
}

.resonance__number {
    grid-column: 10 / 13;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 10vh;
}

.resonance__content {
    grid-column: 2 / 8;
    padding-top: 15vh;
}

.resonance__frequency {
    grid-column: 8 / 12;
    display: flex;
    align-items: center;
    padding-top: 15vh;
}

.resonance__circles {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 40px;
}

.resonance-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 179, 71, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: resonancePulse 4s ease-in-out infinite;
}

.resonance-circle--1 { width: 40px; height: 40px; border-color: rgba(255, 45, 123, 0.6); animation-delay: 0s; }
.resonance-circle--2 { width: 80px; height: 80px; border-color: rgba(255, 45, 123, 0.4); animation-delay: 0.3s; }
.resonance-circle--3 { width: 120px; height: 120px; border-color: rgba(255, 179, 71, 0.3); animation-delay: 0.6s; }
.resonance-circle--4 { width: 160px; height: 160px; border-color: rgba(255, 179, 71, 0.2); animation-delay: 0.9s; }
.resonance-circle--5 { width: 200px; height: 200px; border-color: rgba(192, 192, 192, 0.1); animation-delay: 1.2s; }

.frequency-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
    padding: 0 20px;
}

.freq-bar {
    flex: 1;
    background: linear-gradient(180deg, #FF2D7B, #FFB347);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    opacity: 0.6;
    transition: height 0.3s ease;
}

/* ==================== SECTION 4: OVERFLOW ==================== */
.section--overflow {
    background: radial-gradient(ellipse at 70% 40%, #2A2A4A 0%, #1A1A2E 30%, #0A0A14 100%);
}

.overflow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.overflow__number {
    grid-column: 1 / 4;
    padding-top: 8vh;
}

.overflow__content {
    grid-column: 3 / 10;
    padding-top: 12vh;
    position: relative;
}

.overflow__data-stream {
    grid-column: 10 / 13;
    overflow: hidden;
    height: 60vh;
    display: flex;
    align-items: center;
}

.overflow__glitch-text {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.glitch-word {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #FF2D7B;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 40px rgba(255, 45, 123, 0.5);
}

.glitch-word::before,
.glitch-word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-word::before {
    color: #00FFFF;
    animation: glitch1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 65% 0);
}

.glitch-word::after {
    color: #FFB347;
    animation: glitch2 2s infinite linear alternate-reverse;
    clip-path: inset(65% 0 0 0);
}

.data-stream {
    border-left: 2px solid #B47CFF;
    font-family: 'Space Mono', 'Space Grotesk', monospace;
    font-size: 11px;
    color: #2A2A4A;
    line-height: 1.4;
    overflow: hidden;
    word-break: break-all;
    max-height: 100%;
}

/* ==================== SECTION 5: SILENCE ==================== */
.section--silence {
    background: linear-gradient(180deg, #0A0A14 0%, #14142A 50%, #0A0A14 100%);
}

.silence__content {
    grid-column: 3 / 11;
    text-align: center;
    padding-top: 15vh;
}

.silence__wave {
    width: 100%;
    height: 200px;
    margin: 48px 0;
    opacity: 0.4;
}

.silence-wave {
    width: 100%;
    height: 100%;
}

.silence-wave-path {
    fill: none;
    stroke: #C0C0C0;
    stroke-width: 1;
    opacity: 0.5;
}

.silence__domain {
    margin-top: 48px;
}

.domain-echo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(24px, 3vw, 48px);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2A2A4A;
    transition: color 3s ease;
}

.domain-echo:hover {
    color: #FF2D7B;
    text-shadow: 0 0 30px rgba(255, 45, 123, 0.3);
}

.silence__coda {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coda-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #7B7B8E;
}

.coda-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, #7B7B8E, transparent);
    margin-top: 16px;
}

/* ==================== PROGRESS TRACK ==================== */
.progress-track {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 200px;
    background: rgba(42, 42, 74, 0.5);
    z-index: 100;
    border-radius: 1px;
}

.progress-track__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #FF2D7B, #FFB347);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.progress-track__markers {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.progress-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2A2A4A;
    border: 1px solid #7B7B8E;
    transition: all 0.3s ease;
}

.progress-marker.active {
    background: #FF2D7B;
    border-color: #FF2D7B;
    box-shadow: 0 0 10px rgba(255, 45, 123, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes resonancePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes glitch1 {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch2 {
    0% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
    100% { transform: translate(0); }
}

/* ==================== SCROLL REVEAL ==================== */
.section__grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section__grid.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.section__grid.visible > *:nth-child(1) { transition-delay: 0.1s; }
.section__grid.visible > *:nth-child(2) { transition-delay: 0.3s; }
.section__grid.visible > *:nth-child(3) { transition-delay: 0.5s; }

/* Awakening always visible */
.section--awakening .section__grid > * {
    opacity: 1;
    transform: none;
}

.section--awakening .awakening__title-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

/* ==================== CHROME METALLIC EFFECT ==================== */
.signal__text-block::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C0C0C0, #E8E8E8, #C0C0C0);
    margin-bottom: 24px;
}

.resonance__text-block::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #FFB347, #FF2D7B);
    margin-bottom: 24px;
}

.overflow__text-block::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #FF2D7B;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(255, 45, 123, 0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 16px;
    }

    .awakening__title-block,
    .signal__number,
    .signal__content,
    .signal__metric,
    .resonance__number,
    .resonance__content,
    .resonance__frequency,
    .overflow__number,
    .overflow__content,
    .overflow__data-stream,
    .silence__content {
        grid-column: 1 / -1;
    }

    .signal__number,
    .resonance__number,
    .overflow__number {
        padding-top: 4vh;
    }

    .signal__content,
    .resonance__content,
    .overflow__content {
        padding-top: 0;
    }

    .overflow__glitch-text {
        gap: 16px;
        flex-wrap: wrap;
    }

    .progress-track {
        right: 8px;
        height: 120px;
    }

    .frequency-bars {
        height: 120px;
    }

    .resonance__circles {
        height: 150px;
    }

    .awakening__pulse {
        grid-column: 1 / -1;
    }

    .scroll-indicator {
        grid-column: 1 / -1;
    }
}