/* ============================================
   ELOAH — Sacred Editorial Design
   Palette: Parchment + Forest Green + Gold
   No purple. No glassmorphism. No bento.
   ============================================ */

:root {
    --bg:           #F5F0E8;
    --bg-alt:       #ECEAE0;
    --white:        #FFFFFF;
    --dark:         #1C2018;
    --primary:      #1A3A2A;
    --accent:       #C8963E;
    --accent-light: #E8B85A;
    --text:         #1C2018;
    --text-muted:   #5C5C4A;
    --border:       rgba(28, 32, 24, 0.12);
    --shadow:       0 2px 24px rgba(28, 32, 24, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.65;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* === SHARED TYPOGRAPHY === */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--dark);
}

.section-heading em {
    font-style: italic;
    color: var(--primary);
}

/* === SECTION LABELS (01, 02, 03, 04) === */
.section-label-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.label-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.label-text {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* === NAVIGATION === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

#navbar.visible {
    transform: translateY(0);
}

#navbar.scrolled {
    box-shadow: 0 2px 20px rgba(28, 32, 24, 0.09);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.nav-cta {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--primary);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--primary);
    color: var(--bg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: all 0.25s;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.mobile-menu ul { list-style: none; padding: 0.5rem 2rem 1rem; }

.mobile-menu ul li { border-bottom: 1px solid var(--border); }

.mobile-menu ul li:last-child { border-bottom: none; }

.mobile-menu ul li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.mobile-menu ul li a:hover { color: var(--primary); }

.mobile-menu.open { display: block; }

/* === HERO VIDEO === */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0.45;
}

/* === GRAIN TEXTURE === */
.hero-grain,
.vision-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 5rem;
    overflow: hidden;
    background: var(--bg);
    text-align: center;
}

.hero > *:not(.hero-video-wrap) { position: relative; z-index: 1; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #3A8F5A;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-anim 2s ease-in-out infinite;
}

@keyframes pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(1.4); }
}

.hero-main { margin-bottom: 2.5rem; }

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 0.9;
    color: var(--dark);
    display: block;
}

.hero-line-1 {
    display: block;
    font-size: clamp(5rem, 15vw, 13rem);
    letter-spacing: -0.025em;
}

.hero-line-2 {
    display: block;
    font-size: clamp(5rem, 15vw, 13rem);
    letter-spacing: -0.025em;
    color: var(--primary);
    font-style: italic;
}

.hero-verse-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-verse-line {
    width: 36px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-verse {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.65;
    max-width: 520px;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: var(--dark);
    font-weight: 500;
    max-width: 440px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* === BUTTONS === */
.btn-primary {
    background: var(--primary);
    color: var(--bg);
    padding: 0.85rem 2rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary:hover {
    background: var(--dark);
    border-color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    padding: 0.85rem 2rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--dark);
    padding: 0.95rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gold:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0.5;
    animation: bounce-hint 2.5s ease-in-out infinite;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* === PURPOSE SECTION === */
.purpose {
    padding: 7rem 2rem;
    background: var(--white);
}

.purpose .section-label-row {
    margin-bottom: 3.5rem;
}

.purpose-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
    align-items: center;
}

.purpose-img-frame {
    position: relative;
}

.purpose-img-frame img {
    width: 100%;
    height: auto;
}

.purpose-img-accent {
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 55%;
    height: 55%;
    border: 2px solid var(--accent);
    z-index: -1;
    pointer-events: none;
}

.purpose-text-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.purpose-body p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.purpose-body p:last-child { margin-bottom: 0; }

.purpose-callout {
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    background: rgba(200, 150, 62, 0.06);
}

.purpose-callout p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--primary);
}

/* === BEHIND THE SCENES === */
.behind {
    padding: 7rem 2rem;
    background: var(--bg);
}

.behind .section-label-row { margin-bottom: 3rem; }

.behind-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto 3.5rem;
}

.behind-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 380px;
    line-height: 1.75;
}

.stats-row {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    border: 1px solid var(--border);
    background: var(--white);
}

.stat-item {
    flex: 1;
    padding: 2.5rem 2rem;
    text-align: center;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.story-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.story-photo {
    width: 100%;
    height: auto;
    display: block;
}

.story-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.story-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.story-text blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--primary);
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent);
    line-height: 1.6;
}

/* === EVOLUTION SECTION === */
.evolution {
    padding: 7rem 0;
    background: var(--bg-alt);
}

.evolution .section-label-row,
.evolution-header {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.evolution-header {
    margin-bottom: 3.5rem;
}

.evo-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 0 2rem;
}

.evo-item:last-child {
    border-bottom: 1px solid var(--border);
}

.evo-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem 2.5rem 0;
    border-right: 1px solid var(--border);
    gap: 0.4rem;
}

.evo-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.evo-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.evo-content {
    padding: 2.5rem 0 2.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.evo-item--alt .evo-content {
    direction: rtl;
}

.evo-item--alt .evo-content > * {
    direction: ltr;
}

.evo-img-wrap img {
    width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.evo-img-wrap img:hover {
    transform: scale(1.025);
}

.evo-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.evo-text p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

.game-tag {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: rgba(26, 58, 42, 0.06);
    border-left: 3px solid var(--primary);
    font-size: 0.92rem;
    color: var(--primary);
    line-height: 1.5;
}

/* === VISION SECTION === */
.vision {
    position: relative;
    padding: 7rem 2rem;
    background: var(--primary);
    color: var(--bg);
    overflow: hidden;
}

.vision > * { position: relative; z-index: 1; }

.vision-label-row {
    color: rgba(245, 240, 232, 0.45);
    margin-bottom: 3rem;
}

.vision-label-row .label-num { color: var(--accent); }
.vision-label-row .label-text { color: rgba(245, 240, 232, 0.4); }

.vision-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.vision-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.06;
    color: var(--bg);
    margin-bottom: 2rem;
}

.vision-heading em {
    font-style: italic;
    color: var(--accent-light);
}

.vision-body { margin-bottom: 2.5rem; }

.vision-body p {
    font-size: 1.05rem;
    color: rgba(245, 240, 232, 0.72);
    line-height: 1.75;
}

.vision-counter { margin: 2.5rem 0; }

.vision-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 13vw, 9.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.vision-num-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: rgba(245, 240, 232, 0.42);
}

.vision-text { margin-bottom: 3rem; }

.vision-text p {
    font-size: 1rem;
    color: rgba(245, 240, 232, 0.72);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.vision-text p:last-child { margin-bottom: 0; }

.vision-text strong {
    color: var(--bg);
    font-weight: 600;
}

.vision-cta { margin-bottom: 3.5rem; }

.platform-section {
    border-top: 1px solid rgba(245, 240, 232, 0.14);
    padding-top: 2.5rem;
}

.platform-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: rgba(245, 240, 232, 0.38);
    margin-bottom: 1.25rem;
}

.platform-btns {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(245, 240, 232, 0.22);
    color: rgba(245, 240, 232, 0.78);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.platform-btn:hover {
    border-color: rgba(245, 240, 232, 0.45);
    color: var(--bg);
    background: rgba(245, 240, 232, 0.07);
}

.platform-btn--android {
    border-color: rgba(61, 220, 132, 0.35);
    color: #5DE6A0;
}

.platform-btn--android:hover {
    background: rgba(61, 220, 132, 0.08);
    border-color: rgba(61, 220, 132, 0.55);
}

.platform-btn--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(245, 240, 232, 0.38);
    margin-bottom: 1rem;
}

.footer-sep {
    width: 36px;
    height: 1px;
    background: var(--accent);
    margin: 1.25rem auto;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.28);
}

.footer-updated {
    font-size: 0.72rem;
    color: rgba(245, 240, 232, 0.18);
    margin-top: 0.3rem;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.72s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .purpose-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .nav-cta { display: none; }

    .mobile-menu-btn { display: flex; }

    .purpose-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .purpose-img-accent { display: none; }

    .purpose-img-frame img {
        aspect-ratio: 3/2;
    }

    .behind-header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stats-row {
        flex-direction: column;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .story-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-photo-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .story-text blockquote {
        text-align: left;
    }

    .evo-item {
        grid-template-columns: 1fr;
    }

    .evo-meta {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 0;
    }

    .evo-year { font-size: 1.8rem; }

    .evo-content {
        padding: 2rem 0;
        grid-template-columns: 1fr;
    }

    .evo-item--alt .evo-content { direction: ltr; }

    .hero-line-1,
    .hero-line-2 {
        font-size: clamp(4rem, 18vw, 7.5rem);
    }
}

@media (max-width: 540px) {
    .hero-verse-wrap {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-label-row { margin-bottom: 2rem; }

    .vision-num {
        font-size: clamp(4rem, 20vw, 7rem);
    }

    .platform-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .pulse-dot { animation: none; }
    .hero-scroll-hint { animation: none; }
    .evo-img-wrap img { transition: none; }
}

/* === FAQ SECTION === */
.faq {
    padding: 7rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    padding: 1.5rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item[open] .faq-question {
    color: var(--primary);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
