/* reasoner.dev - Hand-Drawn Retro-Futuristic Split-Screen */

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

:root {
    --midnight-slate: #1C2333;
    --blueprint-cream: #F0EBE0;
    --neon-coral: #FF6B6B;
    --electric-cyan: #4ECDC4;
    --chrome-yellow: #FFD93D;
    --chalk-white: #F5F5F0;
    --graphite: #2A2A35;
    --sunset-lavender: #9B8EC4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--midnight-slate);
}

/* === Split Container === */
#split-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* === Left Panel === */
#left-panel {
    width: 55%;
    background-color: var(--midnight-slate);
    color: var(--chalk-white);
    padding: 4rem 3rem 4rem 4rem;
    position: relative;
    z-index: 2;
}

.left-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

/* === Right Panel === */
#right-panel {
    width: 45%;
    background-color: var(--blueprint-cream);
    color: var(--graphite);
    padding: 4rem 4rem 4rem 3rem;
    position: relative;
    z-index: 2;
}

#blueprint-grid {
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(42, 42, 53, 0.03) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(42, 42, 53, 0.03) 0 1px, transparent 1px 40px);
    pointer-events: none;
    z-index: 0;
}

.right-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

/* === Divider === */
#divider {
    width: 4px;
    position: fixed;
    top: 0;
    left: 55%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#divider-svg {
    width: 4px;
    height: 100%;
}

#divider-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease;
    filter: drop-shadow(0 0 3px rgba(255, 107, 107, 0.4));
}

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

/* === Hero Text === */
.hero-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--chalk-white);
    text-shadow: 2px 2px 0 var(--neon-coral);
    line-height: 1;
}

.hero-text-right {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--graphite);
    text-shadow: 2px 2px 0 var(--electric-cyan);
    line-height: 1;
}

/* === Section Headers === */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sketch-icon {
    flex-shrink: 0;
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--chalk-white);
    text-shadow: 1px 1px 0 var(--neon-coral);
}

/* === Body Text === */
.body-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--chalk-white);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* === Code Block === */
.code-block {
    font-family: 'Inconsolata', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--electric-cyan);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--neon-coral);
    margin: 1.5rem 0;
    max-width: 520px;
}

/* === Skyline Statement === */
.skyline-statement {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 7rem);
    color: var(--neon-coral);
    line-height: 1.05;
    max-width: 500px;
}

.doodle-circle {
    width: 120%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: -10%;
    border: 2px dashed var(--neon-coral);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

/* === Skyline Container === */
.skyline-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.city-skyline {
    width: 100%;
    height: auto;
}

.draw-building {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1s ease;
}

.draw-building.drawn {
    stroke-dashoffset: 0;
}

/* === Counter Signs === */
.counter-sign {
    position: absolute;
    background-color: rgba(255, 217, 61, 0.15);
    border: 1.5px solid var(--graphite);
    border-radius: 2px;
    padding: 4px 8px;
    text-align: center;
    transform: rotate(-2deg);
}

.counter-label {
    font-family: 'Inconsolata', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--graphite);
    display: block;
}

.counter-value {
    font-family: 'Inconsolata', monospace;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--neon-coral);
}

/* === Sky Gradient === */
.sky-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, var(--sunset-lavender), transparent);
    opacity: 0.3;
    pointer-events: none;
}

.hand-drawn-sun {
    position: absolute;
    top: 10%;
    right: 15%;
}

/* === Night === */
.night-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 35, 51, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.night-overlay.active {
    opacity: 1;
}

.window-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.window-light {
    position: absolute;
    width: 4px;
    height: 6px;
    background-color: var(--chrome-yellow);
    opacity: 0;
    transition: opacity 1s ease;
}

.window-light.lit {
    opacity: 0.8;
    animation: windowGlow 2s ease-in-out infinite alternate;
}

@keyframes windowGlow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* === Final Title === */
.final-title {
    margin-top: 3rem;
}

.final-left {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--chalk-white);
    text-shadow: 1px 1px 0 var(--neon-coral);
}

.final-title-right {
    margin-top: 3rem;
}

.final-right {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--graphite);
    text-shadow: 1px 1px 0 var(--electric-cyan);
}

/* === Responsive === */
@media (max-width: 768px) {
    #split-container {
        flex-direction: column;
    }

    #left-panel,
    #right-panel {
        width: 100%;
        padding: 2rem;
    }

    #divider {
        display: none;
    }

    #blueprint-grid {
        width: 100%;
        position: absolute;
    }

    .left-section,
    .right-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .counter-sign {
        position: relative;
        left: auto !important;
        top: auto !important;
        display: inline-block;
        margin: 0.5rem;
    }
}
