/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --coral-pink: #ff6b8a;
    --ice-blue: #e8f4f8;
    --soft-blue: #7b9fd4;
    --deep-navy: #0d2847;
    --mid-blue: #1565a8;
    --turquoise: #40e0d0;
    --abyss: #0a1628;
    --golden: #ffd166;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--abyss);
    color: var(--ice-blue);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.65;
}

/* === CANVAS === */
#bubble-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

/* === DEPTH ZONES === */
.depth-zone {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
}

/* === ZONE BACKGROUNDS === */
.zone-surface {
    background: linear-gradient(180deg, #1565a8 0%, #0d2847 100%);
}

.zone-shallow {
    background: linear-gradient(180deg, #0d2847 0%, #0a1e3a 100%);
}

.zone-twilight {
    background: linear-gradient(180deg, #0a1e3a 0%, #081630 100%);
}

.zone-midnight {
    background: linear-gradient(180deg, #081630 0%, #0a1628 100%);
}

.zone-abyss {
    background: linear-gradient(180deg, #0a1628 0%, #060e1c 100%);
}

.zone-hadal {
    background: #060e1c;
    min-height: 30vh;
}

/* === TYPOGRAPHY === */
.hero-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.12em;
    line-height: 1.05;
    color: var(--ice-blue);
    text-align: center;
    text-shadow: 0 0 60px rgba(64, 224, 208, 0.3), 0 0 120px rgba(64, 224, 208, 0.1);
}

.dot-accent {
    color: var(--turquoise);
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(232, 244, 248, 0.7);
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 0.04em;
}

.section-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--ice-blue);
    margin-bottom: 2.5rem;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    color: rgba(232, 244, 248, 0.85);
}

.mono-accent {
    font-family: 'Space Mono', monospace;
    color: var(--turquoise);
}

/* === DEPTH INDICATOR === */
.depth-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
}

.depth-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--turquoise);
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
}

.depth-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--turquoise), transparent);
}

/* === SCROLL HINT === */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.scroll-bubble {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--turquoise);
    opacity: 0.5;
    animation: bubbleUp 2s ease-in-out infinite;
}

.scroll-bubble:nth-child(2) { animation-delay: 0.3s; }
.scroll-bubble:nth-child(3) { animation-delay: 0.6s; }

@keyframes bubbleUp {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-12px); opacity: 1; }
}

/* === CRYSTALS === */
.crystal {
    position: absolute;
    z-index: 5;
    opacity: 0.6;
}

.crystal-1 {
    width: 120px;
    height: 180px;
    top: 10%;
    left: 8%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.12), rgba(123, 159, 212, 0.08));
    clip-path: polygon(50% 0%, 85% 25%, 100% 60%, 70% 100%, 20% 85%, 0% 40%);
    transform: rotate(15deg);
    animation: crystalFloat 8s ease-in-out infinite;
}

.crystal-2 {
    width: 80px;
    height: 140px;
    top: 20%;
    right: 12%;
    background: linear-gradient(135deg, rgba(255, 107, 138, 0.1), rgba(64, 224, 208, 0.08));
    clip-path: polygon(30% 0%, 80% 10%, 100% 50%, 75% 100%, 10% 80%, 0% 30%);
    transform: rotate(-20deg);
    animation: crystalFloat 10s ease-in-out infinite reverse;
}

.crystal-3 {
    width: 60px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(64, 224, 208, 0.06));
    clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
    transform: rotate(8deg);
    animation: crystalFloat 7s ease-in-out infinite;
}

.crystal-4 {
    width: 100px;
    height: 160px;
    top: 15%;
    right: 6%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(21, 101, 168, 0.08));
    clip-path: polygon(40% 0%, 90% 20%, 100% 65%, 60% 100%, 5% 75%, 0% 25%);
    transform: rotate(-12deg);
    animation: crystalFloat 9s ease-in-out infinite;
}

.crystal-5 {
    width: 70px;
    height: 110px;
    bottom: 10%;
    left: 5%;
    background: linear-gradient(135deg, rgba(123, 159, 212, 0.12), rgba(255, 107, 138, 0.06));
    clip-path: polygon(50% 0%, 100% 40%, 85% 100%, 15% 100%, 0% 40%);
    animation: crystalFloat 11s ease-in-out infinite reverse;
}

.crystal-6 {
    width: 90px;
    height: 130px;
    top: 8%;
    left: 3%;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(64, 224, 208, 0.1));
    clip-path: polygon(45% 0%, 95% 30%, 80% 100%, 10% 90%, 0% 25%);
    transform: rotate(22deg);
    animation: crystalFloat 8.5s ease-in-out infinite;
}

.crystal-7 {
    width: 50px;
    height: 90px;
    bottom: 15%;
    right: 8%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.12), rgba(255, 107, 138, 0.08));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalFloat 7.5s ease-in-out infinite reverse;
}

.crystal-8 {
    width: 110px;
    height: 170px;
    top: 12%;
    right: 10%;
    background: linear-gradient(135deg, rgba(255, 107, 138, 0.1), rgba(255, 209, 102, 0.06));
    clip-path: polygon(30% 0%, 85% 15%, 100% 55%, 70% 100%, 15% 85%, 0% 35%);
    transform: rotate(-8deg);
    animation: crystalFloat 10s ease-in-out infinite;
}

.crystal-9 {
    width: 65px;
    height: 95px;
    bottom: 25%;
    left: 8%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(21, 101, 168, 0.08));
    clip-path: polygon(50% 0%, 100% 30%, 90% 100%, 10% 100%, 0% 30%);
    transform: rotate(18deg);
    animation: crystalFloat 9.5s ease-in-out infinite reverse;
}

@keyframes crystalFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

/* === JELLYFISH === */
.jellyfish {
    position: absolute;
    z-index: 3;
    width: 50px;
    height: 70px;
    border-radius: 50% 50% 20% 20%;
    animation: jellyPulse 4s ease-in-out infinite;
}

.jellyfish::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 107, 138, 0.4), transparent);
}

.jellyfish-1 {
    top: 30%;
    right: 15%;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 107, 138, 0.3), rgba(255, 107, 138, 0.05));
    border: 1px solid rgba(255, 107, 138, 0.2);
    animation-delay: 0s;
}

.jellyfish-2 {
    bottom: 25%;
    left: 10%;
    width: 35px;
    height: 50px;
    background: radial-gradient(ellipse at 50% 30%, rgba(64, 224, 208, 0.25), rgba(64, 224, 208, 0.05));
    border: 1px solid rgba(64, 224, 208, 0.2);
    animation-delay: 1.5s;
}

@keyframes jellyPulse {
    0%, 100% { transform: translateY(0) scaleX(1); }
    25% { transform: translateY(-15px) scaleX(0.9); }
    50% { transform: translateY(-8px) scaleX(1.05); }
    75% { transform: translateY(-20px) scaleX(0.95); }
}

/* === CONTENT BLOCKS === */
.content-block {
    max-width: 500px;
    margin-bottom: 2rem;
}

.content-left {
    margin-right: auto;
}

.content-right {
    margin-left: auto;
    text-align: right;
}

/* === FEATURE GRID === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(64, 224, 208, 0.04);
    border: 1px solid rgba(64, 224, 208, 0.1);
    border-radius: 2px;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(64, 224, 208, 0.3);
    background: rgba(64, 224, 208, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

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

.feature-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ice-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.feature-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(232, 244, 248, 0.7);
    line-height: 1.55;
}

/* === PROCESS STEPS === */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ice-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

/* === BIOLUMINESCENT ORBS === */
.bioluminescent-orbs {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: orbPulse 5s ease-in-out infinite;
}

.orb-1 {
    width: 12px; height: 12px;
    top: 20%; left: 80%;
    background: var(--turquoise);
    box-shadow: 0 0 20px var(--turquoise), 0 0 40px rgba(64, 224, 208, 0.3);
    animation-delay: 0s;
}
.orb-2 {
    width: 8px; height: 8px;
    top: 60%; left: 15%;
    background: var(--coral-pink);
    box-shadow: 0 0 15px var(--coral-pink), 0 0 30px rgba(255, 107, 138, 0.3);
    animation-delay: 1s;
}
.orb-3 {
    width: 6px; height: 6px;
    top: 40%; left: 50%;
    background: var(--golden);
    box-shadow: 0 0 15px var(--golden), 0 0 30px rgba(255, 209, 102, 0.3);
    animation-delay: 2s;
}
.orb-4 {
    width: 10px; height: 10px;
    top: 75%; left: 70%;
    background: var(--turquoise);
    box-shadow: 0 0 18px var(--turquoise);
    animation-delay: 0.5s;
}
.orb-5 {
    width: 7px; height: 7px;
    top: 30%; left: 35%;
    background: var(--soft-blue);
    box-shadow: 0 0 15px var(--soft-blue);
    animation-delay: 3s;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* === CTA === */
.abyss-title {
    text-align: center;
}

.abyss-text {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.cta-cluster {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-primary {
    background: var(--turquoise);
    color: var(--abyss);
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(64, 224, 208, 0.5), 0 4px 20px rgba(64, 224, 208, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--turquoise);
    border: 1px solid rgba(64, 224, 208, 0.4);
}

.cta-secondary:hover {
    background: rgba(64, 224, 208, 0.08);
    transform: translateY(-2px);
}

/* === TRENCH GLOW === */
.trench-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--turquoise), var(--coral-pink), var(--golden), transparent);
    opacity: 0.5;
    filter: blur(2px);
}

/* === FOOTER === */
.zone-hadal .zone-content {
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(232, 244, 248, 0.35);
    letter-spacing: 0.06em;
}

/* === SCROLL REVEAL === */
.zone-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zone-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Surface zone starts visible */
.zone-surface .zone-content {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .content-right {
        text-align: left;
    }

    .depth-indicator {
        display: none;
    }

    .process-step {
        gap: 1rem;
    }

    .step-number {
        font-size: 1.8rem;
    }
}
