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

:root {
    --deep-indigo: #1a1a2e;
    --navy: #0f3460;
    --dark-blue: #16213e;
    --yellow: #e8d21d;
    --red: #e94560;
    --grey: #8a8a9a;
    --light: #eaeaea;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--deep-indigo);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Zone Base === */
.zone {
    min-height: 100vh;
    position: relative;
}

.section-header {
    padding: 6rem 5vw 2rem;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.title-rule {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-top: 1rem;
}

/* === Zone 1: Arsenal Gate === */
#arsenal-gate {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-indigo);
    overflow: hidden;
}

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

.gate-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bauhaus-shapes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0.4;
}

.shape {
    width: 24px;
    height: 24px;
}

.shape.circle {
    border-radius: 50%;
    border: 2px solid var(--yellow);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid var(--red);
}

.shape.square {
    border: 2px solid var(--light);
}

.hero-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--light);
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-shadow: 0 0 80px rgba(232, 210, 29, 0.15);
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    color: var(--grey);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--yellow), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === Zone 2: Axiom Panels === */
#axiom-panels {
    background: var(--dark-blue);
    padding-bottom: 6rem;
}

.panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    padding: 0 5vw;
}

.axiom-panel {
    background: var(--deep-indigo);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, background 0.4s ease;
}

.axiom-panel:hover {
    background: var(--navy);
    transform: translateY(-4px);
}

.panel-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--yellow);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1.5rem;
}

.panel-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.panel-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
}

.panel-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.axiom-panel:hover .panel-accent {
    transform: scaleX(1);
}

/* === Zone 3: Proof Field === */
#proof-field {
    background: var(--deep-indigo);
    padding-bottom: 6rem;
}

.proof-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 5vw;
}

.proof-card {
    border: 1px solid rgba(234, 234, 234, 0.1);
    padding: 3rem 2.5rem;
    position: relative;
    transition: border-color 0.4s ease;
}

.proof-card:hover {
    border-color: var(--red);
}

.card-symbol {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

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

.card-term {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.card-definition {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-notation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--yellow);
    background: rgba(232, 210, 29, 0.08);
    padding: 0.5rem 1rem;
    display: inline-block;
    letter-spacing: 0.05em;
}

/* === Zone 4: Armory Footer === */
#armory-footer {
    background: var(--deep-indigo);
    border-top: 1px solid rgba(234, 234, 234, 0.08);
    min-height: auto;
    padding: 6rem 5vw;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    align-items: start;
}

.footer-kanji {
    font-family: 'Roboto Slab', serif;
    font-weight: 900;
    font-size: 5rem;
    color: var(--dark-blue);
    line-height: 1;
    user-select: none;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.8;
    max-width: 500px;
}

.footer-grid-lines {
    display: flex;
    gap: 6px;
    margin-top: 2rem;
}

.footer-grid-lines span {
    width: 30px;
    height: 2px;
    background: var(--navy);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.meta-label {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 70px;
}

.meta-value {
    font-family: 'Inter', sans-serif;
    color: var(--light);
    font-weight: 400;
}

.status-active {
    color: var(--yellow);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-kanji {
        font-size: 3rem;
    }

    .panels-grid {
        grid-template-columns: 1fr;
    }

    .proof-cards {
        grid-template-columns: 1fr;
    }
}
