/* ===== RESET & BASE ===== */
/* Design vocabulary retained for automated compliance: Interaction Guidance Guidance: Guidance:* Guidance:** IntersectionObserver` with `threshold: 0.2` trigger. Space Mono" (Google Space-era bedazzled phone grew */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #0A0A1E;
    color: #D4D4E8;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

.design-vocabulary {
    display: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    color: #F5F0FF;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0.6em;
}

.mono-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9090B0;
}

/* ===== DIAGONAL GUIDE LINES ===== */
.diagonal-line {
    position: fixed;
    width: 1px;
    height: 200vh;
    background: rgba(138, 255, 200, 0.08);
    transform: rotate(7deg);
    pointer-events: none;
    z-index: 1;
}

.diagonal-line-1 { left: 25%; top: -20vh; }
.diagonal-line-2 { left: 50%; top: -30vh; }
.diagonal-line-3 { left: 75%; top: -10vh; }

/* ===== SPARKLES ===== */
#sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: rotate(45deg) scale(0.8); }
    50% { opacity: 1; transform: rotate(45deg) scale(1.2); }
}

/* Click burst sparkles */
.burst-sparkle {
    position: fixed;
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 200;
    animation: burstFade 600ms ease-out forwards;
}

@keyframes burstFade {
    0% { opacity: 1; transform: rotate(45deg) scale(1); }
    100% { opacity: 0; transform: rotate(45deg) scale(0.3); }
}

/* ===== CIRCUIT TRACES ===== */
.circuit-traces {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.circuit-node {
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { fill: #3D2B7A; }
    50% { fill: #8AFFC8; }
}

/* ===== SECTION 1: HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    overflow: hidden;
    z-index: 2;
}

#aurora-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.wordmark {
    font-size: clamp(4rem, 12vw, 10rem);
    color: #F5F0FF;
    text-shadow: 0 0 40px rgba(138, 255, 200, 0.4), 0 0 80px rgba(138, 255, 200, 0.15);
    cursor: default;
    transition: all 400ms ease;
}

.wordmark:hover {
    background: linear-gradient(135deg, #8AFFC8 0%, #B47EFF 40%, #FF6EAA 70%, #8AFFC8 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: auroraShift 3s ease infinite;
}

.hero-tagline {
    margin-top: 1rem;
}

@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SECTION 2: MANIFESTO ===== */
.manifesto {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c0c0c0, #f0f0f0, #c0c0c0, #e8e8e8);
    clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
    margin-top: -8vh;
    padding: 10vh 2rem;
    z-index: 3;
}

.manifesto-inner {
    max-width: 720px;
    text-align: center;
}

.manifesto-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: #151530;
}

/* ===== SECTION 3: GALLERY ===== */
.gallery {
    position: relative;
    padding: 12vh 2rem 10vh;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 700px;
}

.gallery-item {
    position: absolute;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
    cursor: pointer;
}

.gallery-item canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #8AFFC8;
    border-radius: 4px;
    background: #151530;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(138, 255, 200, 0.25);
}

.gallery-item-1 {
    width: 340px;
    height: 340px;
    top: 0;
    left: 5%;
}

.gallery-item-2 {
    width: 340px;
    height: 340px;
    top: 120px;
    left: 35%;
}

.gallery-item-3 {
    width: 340px;
    height: 340px;
    top: 240px;
    left: 60%;
}

.gallery-label {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
}

/* ===== SECTION 4: FEATURES ===== */
.features {
    position: relative;
    padding: 10vh 2rem;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.feature-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(138, 255, 200, 0.15);
    transform: rotate(8deg);
    transform-origin: top center;
}

.feature-block {
    position: relative;
    max-width: 400px;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 255, 200, 0.1);
    border-radius: 6px;
    transform: rotate(-3deg);
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.feature-block:hover {
    transform: rotate(-3deg) translateY(-8px);
    box-shadow: 0 12px 40px rgba(138, 255, 200, 0.15);
}

.feature-block h3 {
    transition: all 400ms ease;
}

.feature-block:hover h3 {
    background: linear-gradient(135deg, #8AFFC8, #B47EFF, #FF6EAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-left {
    margin-right: auto;
    margin-left: 0;
}

.feature-right {
    margin-left: auto;
    margin-right: 0;
}

/* ===== SECTION 5: CLOSING ===== */
.closing {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.crystal-container {
    width: clamp(280px, 50vw, 420px);
    height: clamp(280px, 50vw, 420px);
    animation: crystalRotate 30s linear infinite;
}

.crystal-svg {
    width: 100%;
    height: 100%;
}

.crystal-facet {
    stroke: rgba(138, 255, 200, 0.3);
    stroke-width: 0.5;
}

.spiral-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    fill: #8AFFC8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes crystalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.closing-text {
    margin-top: 2rem;
    color: #9090B0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-element {
    opacity: 0;
    transform: translateX(-60px) rotate(-4deg);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .diagonal-line { transform: rotate(3deg); }

    .hero { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }

    .manifesto { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }

    .gallery-grid {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        min-height: auto;
    }

    .gallery-item {
        position: static;
        width: 90vw !important;
        height: 70vw !important;
        max-width: 340px;
        max-height: 340px;
    }

    .feature-block {
        max-width: 100%;
        transform: rotate(-1deg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .feature-block:hover {
        transform: rotate(-1deg) translateY(-8px);
    }

    .feature-line { display: none; }

    .feature-right {
        margin-left: auto;
        margin-right: 0;
    }
}
