/* Landing Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: slideZoom 8s ease-in-out infinite;
}

@keyframes slideZoom {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.slide-category {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.01em;
    color: rgba(245, 243, 238, 0.90);
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 36px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons .btn-gold {
    background: #E8B400;
    color: #0E0E0E !important;
    border: none;
    padding: 11px 20px;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.hero-buttons .btn-gold:hover {
    background: #C99700;
    color: #0E0E0E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 180, 0, 0.3);
}

/* Slide Navigation */
.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.slide-dot:hover {
    background: var(--gold);
}

/* Slide Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-arrow:hover {
    background: var(--gold);
    color: #000;
}

.slide-prev {
    left: 30px;
}

.slide-next {
    right: 30px;
}

/* Pillars / Equation Section */
.pillars {
    background: var(--beast-black);
    padding: 200px 40px 200px;
}

.pillars-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.pillars-eyebrow {
    text-align: center;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--beast-gold);
    text-transform: uppercase;
    margin-bottom: 52px;
    position: relative;
    top: -60px;
}

.equation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.equation-term {
    text-align: center;
    flex: 1;
    max-width: 220px;
    padding: 0 12px;
    cursor: pointer;
    outline: none;
    transition: filter 0.3s, opacity 0.3s;
}

.equation-term:focus-visible {
    outline: 2px solid var(--beast-gold);
    outline-offset: 6px;
}

.term-word {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    text-transform: uppercase;
    color: var(--bone);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
}

.term-subtitle {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--beast-gold);
    margin-bottom: 14px;
}

.term-rule {
    width: 28px;
    height: 2px;
    background: var(--beast-gold);
    margin: 0 auto 14px;
}

.term-desc {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 14px;
    color: var(--steel-grey);
    line-height: 1.55;
}

.equation-operator {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: rgba(232, 180, 0, 0.30);
    padding: 8px 8px 0;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.equation-result {
    text-align: center;
    flex: 1;
    max-width: 220px;
    padding: 0 12px;
}

.result-word {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(42px, 6vw, 64px);
    text-transform: uppercase;
    color: var(--beast-gold);
    line-height: 1;
    letter-spacing: 0.01em;
    min-height: 1em;
    transition: opacity 0.35s, text-shadow 0.35s, color 0.35s;
}

/* ── Equation animation states ─────────────────────── */

/* Pre-animation: everything hidden. Applied by JS only, so no-JS users
   see the full section. */
.pillars.is-armed [data-eq] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.pillars.is-armed [data-eq="op"] {
    transform: none;
    transition: opacity 0.4s ease;
}

.pillars [data-eq].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Cipher styling while scrambling */
.result-word.is-scrambling {
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.06em;
}

.result-word.is-locked {
    text-shadow: 0 0 28px rgba(232, 180, 0, 0.5);
}

/* Hover weight transfer (only active after sequence completes) */
.pillars.is-solved .equation-term.is-dimmed {
    filter: brightness(0.45);
}

.pillars.is-solved .result-word.is-charged {
    text-shadow: 0 0 22px rgba(232, 180, 0, 0.45);
}

/* Sabotage states */
.equation-term.is-removed {
    opacity: 0.32;
}

.equation-term.is-removed .term-word::after {
    content: '';
    position: absolute;
    left: -4%;
    right: -4%;
    top: 50%;
    height: 3px;
    background: var(--beast-gold);
    transform: rotate(-4deg);
}

.equation-term.is-removed .term-rule {
    background: var(--steel-grey);
}

/* BEAST degradation tiers */
.result-word.degrade-1 { opacity: 0.6; }
.result-word.degrade-2 { opacity: 0.35; }
.result-word.degrade-3 { opacity: 0.18; color: var(--steel-grey); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pillars.is-armed [data-eq] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .result-word { transition: none; }
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Countdown Section */
.countdown-section {
    background: var(--beast-black);
    padding: 120px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.countdown-inner {
    max-width: 800px;
    margin: 0 auto;
}

.countdown-eyebrow {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--beast-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    top: -20px;
}

.countdown-heading {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    text-transform: uppercase;
    color: var(--bone);
    line-height: 0.92;
    letter-spacing: 0.005em;
    margin: 0 0 36px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
}

.countdown-tile {
    background: var(--black-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 22px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--bone);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: var(--steel-grey);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-top: 8px;
}

.countdown-colon {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: rgba(232, 180, 0, 0.25);
    padding-top: 18px;
    line-height: 1;
}

.countdown-sub {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--steel-grey);
    margin: 0;
}

/* Gold Takeover CTA */
.cta-gold {
    background: var(--beast-gold);
    padding: 0;
    width: 100%;
}

.cta-gold-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 120px;
}

.cta-gold-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-gold-heading {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(48px, 7vw, 80px);
    line-height: 0.88;
    text-transform: uppercase;
    color: var(--beast-black);
    letter-spacing: -0.005em;
    margin: 0 0 10px;
}

.cta-gold-eyebrow {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.50);
}

.cta-gold-btn {
    display: inline-block;
    background: var(--beast-black);
    color: var(--beast-gold);
    padding: 18px 40px;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.cta-gold-btn:hover {
    opacity: 0.85;
    color: var(--beast-gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive — Equation / Pillars */
@media (max-width: 900px) {
    .equation {
        flex-wrap: wrap;
        gap: 32px 0;
        justify-content: center;
    }

    .equation-term {
        flex: 0 0 30%;
        max-width: none;
    }

    .equation-operator {
        flex: 0 0 auto;
        padding: 0 4px;
        font-size: 28px;
    }

    .equation-result {
        flex: 0 0 auto;
        max-width: none;
    }
}

/* Responsive — Hero + Equation mobile */
@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 28px;
    }

    .hero-buttons .btn-gold {
        padding: 14px 28px;
        font-size: 7px;
    }

    .pillars {
        padding: 100px 24px 100px;
    }

    .equation {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .equation-term {
        flex: none;
        max-width: 280px;
    }

    .equation-operator {
        font-size: 32px;
        padding: 0;
    }

    .equation-result {
        flex: none;
    }

    .term-word {
        font-size: 44px;
    }

    .result-word {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .slide-arrow {
        display: none;
    }

    .countdown-section {
        padding: 64px 24px 72px;
    }

    .countdown-tile {
        padding: 16px 14px;
        min-width: 64px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-colon {
        font-size: 22px;
        padding-top: 14px;
    }

    .cta-gold-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px 24px;
        gap: 32px;
    }

    .cta-gold-heading {
        font-size: 48px;
    }

    .cta-gold-btn {
        width: 100%;
        text-align: center;
        padding: 18px 28px;
    }

    .section-heading {
        font-size: 1.75rem;
    }
}
