/* ==========================================================================
   Quantum Garage — Superposition Hero
   ========================================================================== */

:root {
    --color-bg: #000000;
    --color-text: #f5f5f7;
    --color-text-muted: #86868b;

    --color-glow: #00d4ff;
    --color-quantum-blue: #0a84ff;

    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Quantum Field Background (Canvas)
   -------------------------------------------------------------------------- */
.quantum-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 300vh;
    background: var(--color-bg);
}

.hero-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Quantum Words — Blanco con contorno fosforescente
   -------------------------------------------------------------------------- */
.superposition {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.quantum-word {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;

    /* Responsive font size */
    font-size: clamp(0.7rem, 1.8vw, 1.3rem);

    /* Blanco interior + contorno fosforescente */
    color: #fff;
    -webkit-text-stroke: 1px var(--color-glow);
    text-shadow:
        0 0 8px var(--color-glow),
        0 0 15px var(--color-glow),
        0 0 30px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(0, 212, 255, 0.2);

    opacity: 0;
    will-change: transform, opacity;
    transform: translate(-50%, -50%);
}

/* Variaciones sutiles de intensidad */
.quantum-word:nth-child(3n) {
    -webkit-text-stroke-width: 1.5px;
}

.quantum-word:nth-child(5n) {
    text-shadow:
        0 0 10px var(--color-glow),
        0 0 20px var(--color-glow),
        0 0 40px rgba(0, 212, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Brand Name
   -------------------------------------------------------------------------- */
.collapsed-state {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 14vw, 11rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-word--quantum {
    color: var(--color-quantum-blue);
    text-shadow:
        0 0 20px rgba(10, 132, 255, 0.3),
        0 0 40px rgba(10, 132, 255, 0.15);
}

.brand-word--quantum .char {
    display: inline-block;
}

.brand-word--garage {
    color: var(--color-text);
}

.brand-word--garage .char {
    display: inline-block;
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    letter-spacing: 0.01em;
}

.tagline .word {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Intro Overlay
   -------------------------------------------------------------------------- */
.intro-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
}

.intro-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-glow);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.intro-title {
    font-size: clamp(1.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text);
    margin: 0;
    position: relative;

    /* Efecto superposición sutil */
    text-shadow:
        -2px -1px 0 rgba(0, 212, 255, 0.2),
        2px 1px 0 rgba(139, 92, 246, 0.2),
        0 0 40px rgba(0, 212, 255, 0.15);
}

/* Copias fantasma (superposición) - usando data attribute */
.intro-title::before,
.intro-title::after {
    content: 'INFINITAS POSIBILIDADES';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.intro-title::before {
    color: var(--color-glow);
    animation: superposition1 3s ease-in-out infinite;
}

.intro-title::after {
    color: #8b5cf6;
    animation: superposition2 3s ease-in-out infinite;
}

@keyframes superposition1 {
    0%, 100% { transform: translate(-2px, -1px); opacity: 0.08; }
    50% { transform: translate(-4px, -2px); opacity: 0.15; }
}

@keyframes superposition2 {
    0%, 100% { transform: translate(2px, 1px); opacity: 0.08; }
    50% { transform: translate(4px, 2px); opacity: 0.15; }
}

.intro-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Scroll Indicator — Quantum Particle
   -------------------------------------------------------------------------- */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    z-index: 20;
}

/* Partícula cuántica con anillos orbitales */
.quantum-particle {
    position: relative;
    width: 50px;
    height: 50px;
}

.particle-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 10px var(--color-glow),
        0 0 20px var(--color-glow),
        0 0 30px rgba(0, 212, 255, 0.5);
    animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

.particle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--color-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.particle-ring--1 {
    width: 20px;
    height: 20px;
    animation: ringExpand 2s ease-out infinite;
}

.particle-ring--2 {
    width: 20px;
    height: 20px;
    animation: ringExpand 2s ease-out infinite 0.6s;
}

.particle-ring--3 {
    width: 20px;
    height: 20px;
    animation: ringExpand 2s ease-out infinite 1.2s;
}

@keyframes ringExpand {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
        border-color: var(--color-glow);
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.scroll-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-arrow {
    color: var(--color-glow);
    opacity: 0.6;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #050505;
    z-index: 10;
}

.container {
    max-width: 900px;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-quantum-blue);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .quantum-word {
        font-size: clamp(0.6rem, 2.5vw, 0.9rem);
        -webkit-text-stroke-width: 0.5px;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }
}
