/* ============================================
   luminescence.dev — Styles
   Memphis geometry + bioluminescent mountain gorge
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0D0F14;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #E8E4DF;
    background-color: #0D0F14;
    overflow: hidden;
}

/* --- Scroll Snap Container --- */
#scroll-container {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

/* --- Zone Base --- */
.zone {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.zone-1 { background-color: #0D0F14; }
.zone-2 { background-color: #161923; }
.zone-3 { background-color: #0D0F14; }
.zone-4 { background-color: #161923; }
.zone-5 { background-color: #0D0F14; }
.zone-6 {
    background-color: #161923;
    animation: zoneBreathe 6s ease-in-out infinite;
}

@keyframes zoneBreathe {
    0%, 100% { background-color: #161923; }
    50% { background-color: #1a1f2e; }
}

/* --- Zone Indicator --- */
.zone-indicator {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 5;
}

.zone-indicator .label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A8690;
}

/* --- Glyph Container --- */
.zone-glyphs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* --- Glyph Positioning --- */
.glyph, .mountain-icon {
    position: absolute;
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.25, 0.1, 0.25, 1.0),
                filter 800ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
    filter: blur(4px);
}

.glyph.revealed, .mountain-icon.revealed {
    filter: blur(0);
}

/* Glyph pulse animations */
@keyframes glyphPulse1 { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }
@keyframes glyphPulse2 { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.65; } }
@keyframes glyphPulse3 { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

.glyph.revealed { animation: glyphPulse1 5s ease-in-out infinite; }
.glyph.revealed:nth-child(2n) { animation: glyphPulse2 7s ease-in-out infinite; }
.glyph.revealed:nth-child(3n) { animation: glyphPulse3 6s ease-in-out infinite; }

.mountain-icon.revealed { opacity: 0.5; }

/* Glow filters on glyphs */
.glyph[class*="mint"], .glyph[class*="pyramid"], .glyph[class*="concentric-2"],
.glyph[class*="column-3"], .glyph[class*="zigzag-4"], .glyph[class*="zigzag-5"] {
    filter: drop-shadow(0 0 12px rgba(168, 230, 207, 0.3));
}

.glyph.revealed[class*="squiggle"], .glyph.revealed[class*="concentric-1"],
.glyph.revealed[class*="column-2"], .glyph.revealed[class*="circles"] {
    filter: drop-shadow(0 0 10px rgba(195, 177, 225, 0.25));
}

.glyph.revealed[class*="zigzag-1"], .glyph.revealed[class*="zigzag-2"],
.glyph.revealed[class*="zigzag-3"] {
    filter: drop-shadow(0 0 10px rgba(232, 180, 200, 0.2));
}

/* --- Zone 1: Hero --- */
.glyph-circle-hero {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glyph-circle-hero circle {
    transition: opacity 1200ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.glyph-circle-hero.revealed {
    filter: drop-shadow(0 0 20px rgba(168, 230, 207, 0.3));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.domain-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    color: #E8E4DF;
    text-shadow: 0 0 30px rgba(168, 230, 207, 0.15);
    margin-bottom: 3rem;
}

.char {
    opacity: 0;
    display: inline-block;
    transition: opacity 300ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.char.dot {
    color: #A8E6CF;
    text-shadow: 0 0 15px rgba(168, 230, 207, 0.4);
}

.char.visible {
    opacity: 1;
}

.scroll-indicator {
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 600ms ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* Color references: #C3B1E1 #E8B4C8 #FFDAB9 */
.pulse-lavender {
    animation: pulseLav 4s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(195, 177, 225, 0.25));
}

@keyframes pulseLav {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Zone 2 Glyph Positions --- */
.glyph-zigzag-1 { top: 15%; right: 10%; }
.glyph-squiggle-1 { bottom: 20%; left: 5%; }
.glyph-concentric-1 { top: 60%; right: 30%; }

/* --- Zone 3 Glyph Positions --- */
.glyph-pyramid-1 { top: 10%; left: 8%; }
.glyph-column-1 { top: 25%; right: 12%; }
.glyph-zigzag-2 { bottom: 15%; left: 15%; }
.mi-1 { bottom: 30%; right: 8%; }

/* --- Zone 4 Glyph Positions --- */
.glyph-triangle-round { top: 12%; right: 15%; }
.glyph-squiggle-2 { bottom: 25%; left: 3%; }
.glyph-circles-stack { top: 35%; left: 10%; }
.glyph-zigzag-3 { bottom: 10%; right: 20%; }
.mi-2 { top: 18%; left: 30%; }
.mi-3 { bottom: 35%; right: 5%; }

/* --- Zone 5 Glyph Positions --- */
.glyph-concentric-2 { top: 8%; right: 8%; }
.glyph-pyramid-2 { bottom: 15%; left: 5%; }
.glyph-squiggle-3 { top: 45%; left: 20%; }
.glyph-column-2 { top: 15%; left: 45%; }
.glyph-zigzag-4 { bottom: 30%; right: 15%; }
.mi-4 { top: 70%; right: 5%; }
.mi-5 { top: 25%; left: 12%; }

/* --- Zone 6 Glyph Positions --- */
.glyph-pyramid-3 { top: 5%; left: 5%; }
.glyph-concentric-3 { top: 15%; right: 10%; }
.glyph-triangle-round-2 { bottom: 20%; left: 8%; }
.glyph-squiggle-4 { top: 40%; right: 3%; }
.glyph-column-3 { bottom: 5%; right: 25%; }
.glyph-zigzag-5 { top: 65%; left: 3%; }
.glyph-circles-stack-2 { top: 10%; left: 40%; }
.mi-6 { bottom: 10%; left: 15%; }
.mi-7 { top: 30%; left: 55%; }
.mi-stars { top: 5%; right: 35%; }

/* --- Content Blocks --- */
.content-block {
    position: absolute;
    z-index: 3;
    max-width: 38ch;
    padding: 2rem 2.5rem;
    border: 1px dotted rgba(232, 180, 200, 0.4);
    opacity: 0;
    filter: blur(4px);
    transition: opacity 1000ms cubic-bezier(0.25, 0.1, 0.25, 1.0),
                filter 1000ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.content-block.revealed {
    opacity: 1;
    filter: blur(0);
}

.content-block p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    color: #E8E4DF;
    margin-bottom: 1rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Content block positions */
.content-block-2 { top: 35%; left: 30%; }
.content-block-3 { top: 30%; left: 55%; }
.content-block-4 { top: 40%; left: 15%; }
.content-block-5 { top: 25%; left: 50%; }
.content-block-6 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border-color: rgba(168, 230, 207, 0.3);
    box-shadow: 0 0 40px rgba(168, 230, 207, 0.08);
}

/* Corner ornament */
.corner-ornament {
    position: absolute;
    top: -1px;
    left: -1px;
}

/* Glow halo behind content */
.glow-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.glow-halo-intense {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.08) 0%, rgba(195, 177, 225, 0.04) 40%, transparent 70%);
}

/* Final statement styling */
.final-statement {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem) !important;
    line-height: 1.8 !important;
    color: #A8E6CF !important;
    text-shadow: 0 0 20px rgba(168, 230, 207, 0.3);
}

/* --- Dot Grid Overlay --- */
.dot-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(168, 230, 207, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* --- Zigzag Border Divider (pseudo-element on zones) --- */
.zone-3::before, .zone-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 8px;
    z-index: 2;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 6px,
        rgba(232, 180, 200, 0.4) 6px,
        rgba(232, 180, 200, 0.4) 7px
    );
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpolyline points='0,8 10,0 20,8' fill='white'/%3E%3C/svg%3E");
    mask-size: 20px 8px;
    mask-repeat: repeat-x;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpolyline points='0,8 10,0 20,8' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 20px 8px;
    -webkit-mask-repeat: repeat-x;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .content-block {
        max-width: 85vw;
        padding: 1.5rem;
    }
    .content-block-2 { top: 30%; left: 8%; }
    .content-block-3 { top: 25%; left: 8%; }
    .content-block-4 { top: 30%; left: 8%; }
    .content-block-5 { top: 20%; left: 8%; }
    .content-block-6 { left: 50%; }

    .glyph {
        transform: scale(0.7);
    }

    .zone-indicator {
        top: 1rem;
        left: 1rem;
    }
}
