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

:root {
    --slate: #8a96a8;
    --frost-blue: #5bb8f0;
    --snow: #e8edf5;
    --teal: #3dd9c4;
    --deep-navy: #0d1520;
    --coral: #e86a8a;
    --dark-navy: #111b2e;
    --abyss: #0b0f1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--abyss);
    color: var(--snow);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Mountain Background */
.mountain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.contour-lines {
    width: 100%;
    height: 300%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
}

.contour {
    fill: none;
    stroke: var(--frost-blue);
    stroke-width: 1.2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.4;
    transition: stroke-dashoffset 2s ease-out;
}

.contour.visible {
    stroke-dashoffset: 0;
}

.contour-2, .contour-4, .contour-6, .contour-8 {
    stroke: var(--teal);
    opacity: 0.25;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    z-index: 1;
    max-width: clamp(360px, 65vw, 820px);
    margin: 0 auto;
    padding: 10vh 1.5rem;
}

/* Panels */
.panel {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

/* Frost Card */
.frost-card {
    background: rgba(17, 27, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(91, 184, 240, 0.15);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3.5rem);
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.frost-card.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Typography */
.display-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--snow);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--frost-blue);
    margin-bottom: 1.2rem;
}

.tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--slate);
    margin-bottom: 2rem;
}

.body-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 2rem;
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--teal);
    opacity: 0.7;
}

/* Code Snippet */
.code-snippet {
    background: rgba(11, 15, 26, 0.8);
    border: 1px solid rgba(61, 217, 196, 0.2);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
}

.code-snippet code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--teal);
    line-height: 1.6;
}

/* Grid Mosaic */
.grid-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 60px);
    gap: 8px;
    margin-top: 1rem;
}

.mosaic-tile {
    border-radius: 6px;
    border: 1px solid rgba(91, 184, 240, 0.2);
    background: rgba(91, 184, 240, 0.05);
    transition: background 0.4s ease, transform 0.3s ease;
}

.mosaic-tile:hover {
    background: rgba(91, 184, 240, 0.15);
    transform: scale(1.05);
}

.tile-1 { background: rgba(91, 184, 240, 0.1); }
.tile-2 { background: rgba(61, 217, 196, 0.1); }
.tile-3 { background: rgba(232, 106, 138, 0.1); }
.tile-4 { background: rgba(61, 217, 196, 0.08); }
.tile-5 { background: rgba(232, 106, 138, 0.06); }
.tile-6 { background: rgba(91, 184, 240, 0.08); }

/* Particle Field */
.particle-field {
    width: 100%;
    height: 150px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(11, 15, 26, 0.5);
    border: 1px solid rgba(91, 184, 240, 0.1);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--deep-navy);
    background: var(--frost-blue);
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

/* Coordinates */
.coordinates {
    margin-top: 1rem;
}

/* Puzzle Piece Icon */
.puzzle-piece-icon {
    margin-top: 1.5rem;
    opacity: 0.6;
}

/* Particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--frost-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: drift 6s infinite ease-in-out;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(20px, -15px); opacity: 0.8; }
}
