/* ============================================================
   Candide / Eldorado alternate landing
   Scoped under .candide-landing — does not alter other pages.
   Palette: deep night navy, amber dawn, garden gold (no purple neon).
   ============================================================ */

.candide-landing {
    --c-night: #06080f;
    --c-navy: #0c1224;
    --c-mid: #152038;
    --c-dawn: #2a1f14;
    --c-amber: #f0b45a;
    --c-gold: #e8a33d;
    --c-gold-bright: #ffce6b;
    --c-cream: #f7efe0;
    --c-ink: #ece6d8;
    --c-muted: rgba(236, 230, 216, 0.72);
    --c-garden: #1a2418;
    --c-leaf: #c9a24a;
    color: var(--c-ink);
    background: var(--c-night);
    overflow: clip;
    position: relative;
}

.candide-landing .candide-kicker {
    font-family: var(--font-body);
    font-size: 12.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--c-gold-bright);
    margin: 0 0 18px;
}

.candide-landing .candide-display {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.6vw, 64px);
    font-weight: 480;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    max-width: 18ch;
}

.candide-landing .candide-display em {
    font-style: italic;
    font-weight: 520;
    background: linear-gradient(105deg, var(--c-gold-bright) 10%, #fff4d8 48%, var(--c-gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ---------- Hero ---------- */
.candide-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 72px;
    background:
        radial-gradient(90% 70% at 70% 10%, rgba(240, 180, 90, 0.14) 0%, transparent 55%),
        radial-gradient(60% 50% at 20% 30%, rgba(90, 140, 180, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--c-navy) 0%, var(--c-night) 55%, #14100c 100%);
    color: var(--c-cream);
    overflow: hidden;
}

.candide-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.candide-sky-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 40%, rgba(10, 8, 6, 0.55) 78%, rgba(12, 10, 8, 0.92) 100%);
}

.candide-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: min(34vh, 280px);
    color: #0e160f;
    pointer-events: none;
    transform: translateY(var(--candide-horizon-shift, 0px));
    will-change: transform;
}

.candide-garden-sil {
    width: 100%;
    height: 100%;
    display: block;
}

.candide-hill-far { fill: #152218; opacity: 0.85; }
.candide-hill-near { fill: #0e160f; }
.candide-trees { opacity: 0.9; }

.candide-hero-glow {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    height: 280px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(50% 60% at 50% 80%, rgba(255, 206, 107, 0.22) 0%, transparent 70%);
    animation: candide-pulse 7s ease-in-out infinite;
}

@keyframes candide-pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.candide-hero-inner {
    position: relative;
    z-index: 3;
    padding-bottom: 28px;
    max-width: 920px;
}

.candide-brand {
    font-family: var(--font-display);
    font-size: clamp(52px, 11vw, 120px);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 0.92;
    margin: 0 0 18px;
    background: linear-gradient(120deg, #fff8e8 0%, var(--c-gold-bright) 42%, var(--c-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 8px 40px rgba(232, 163, 61, 0.18));
}

.candide-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.4vw, 48px);
    font-weight: 450;
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 16ch;
    color: var(--c-cream);
}

.candide-title em {
    font-style: italic;
    font-weight: 520;
    color: var(--c-gold-bright);
}

.candide-lede {
    font-size: clamp(16.5px, 2vw, 19.5px);
    line-height: 1.55;
    color: var(--c-muted);
    max-width: 34em;
    margin: 0 0 30px;
}

.candide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.candide-ghost {
    color: var(--c-cream) !important;
    border-color: rgba(247, 239, 224, 0.45) !important;
}

.candide-scroll-hint {
    position: absolute;
    right: 28px;
    bottom: 36px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: rgba(247, 239, 224, 0.45);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.candide-scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, var(--c-gold-bright), transparent);
    animation: candide-drip 2.4s ease-in-out infinite;
}

@keyframes candide-drip {
    0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 700px) {
    .candide-scroll-hint { display: none; }
    .candide-hero { align-items: center; padding: 140px 0 100px; }
    .candide-hero-inner { padding-bottom: 0; }
}

/* ---------- Meteor crossing (sticky scroll stage) ---------- */
.candide-crossing {
    position: relative;
    height: 180vh;
    background: var(--c-night);
}

.candide-crossing-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.candide-crossing-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 80% 20%, rgba(255, 206, 107, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #080b16 0%, #120e0a 100%);
    transform: scale(calc(1 + var(--candide-cross-progress, 0) * 0.08));
}

.candide-meteor-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.95;
    pointer-events: none;
}

.candide-trail {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--candide-cross-progress, 0));
}

.candide-meteor-head {
    filter: drop-shadow(0 0 10px rgba(255, 206, 107, 0.8));
}

.candide-crossing-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.candide-crossing-sub {
    font-size: 18px;
    color: var(--c-muted);
    max-width: 36em;
    margin: 0;
}

/* ---------- Truths ---------- */
.candide-truths {
    background: linear-gradient(180deg, #120e0a 0%, #1a1610 50%, #141810 100%);
    padding: 110px 0;
}

.candide-truths .candide-display { max-width: 14ch; }

.candide-truth-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
    border-top: 1px solid rgba(232, 163, 61, 0.28);
}

.candide-truth {
    padding-top: 28px;
    border-top: none;
}

.candide-truth-num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 28px;
    color: var(--c-gold);
    margin-bottom: 12px;
    opacity: 0.85;
}

.candide-truth h3 {
    font-size: 24px;
    font-weight: 520;
    margin-bottom: 10px;
    color: var(--c-cream);
}

.candide-truth p {
    color: var(--c-muted);
    font-size: 15.5px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .candide-truth-row { grid-template-columns: 1fr; gap: 8px; }
    .candide-truth { padding: 22px 0; border-top: 1px solid rgba(232, 163, 61, 0.2); }
    .candide-truth:first-child { border-top: none; }
}

/* ---------- Map / chapters ---------- */
.candide-map {
    background: linear-gradient(180deg, #141810 0%, #0c1018 100%);
    padding: 100px 0 40px;
}

.candide-map-intro {
    margin-bottom: 40px;
}

.candide-chapters {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 80px;
    display: flex;
    flex-direction: column;
}

.candide-chapter {
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    gap: 20px;
    align-items: center;
    padding: 28px 8px;
    border-top: 1px solid rgba(236, 230, 216, 0.1);
    color: inherit;
    transition: background 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
}

.candide-chapter:last-child { border-bottom: 1px solid rgba(236, 230, 216, 0.1); }

.candide-chapter:hover {
    background: rgba(232, 163, 61, 0.06);
    padding-left: 16px;
}

.candide-chapter-index {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    color: var(--c-gold);
    opacity: 0.7;
}

.candide-chapter h3 {
    font-size: 22px;
    margin: 0 0 6px;
    color: var(--c-cream);
}

.candide-chapter p {
    margin: 0;
    color: var(--c-muted);
    font-size: 15px;
    max-width: 48em;
}

.candide-chapter-go {
    font-size: 22px;
    color: var(--c-gold-bright);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.candide-chapter:hover .candide-chapter-go {
    opacity: 1;
    transform: none;
}

@media (max-width: 640px) {
    .candide-chapter { grid-template-columns: 48px 1fr; }
    .candide-chapter-go { display: none; }
}

/* ---------- Eldorado quote ---------- */
.candide-eldorado {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    background: #0a0c14;
}

.candide-eldorado-wash {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(45% 40% at 50% 50%, rgba(255, 206, 107, 0.16) 0%, transparent 70%),
        radial-gradient(80% 60% at 50% 100%, rgba(232, 163, 61, 0.08) 0%, transparent 60%);
    transform: translateY(calc(var(--candide-eldorado-shift, 0) * 40px));
    will-change: transform;
}

.candide-eldorado-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.candide-ornament {
    color: var(--c-gold);
    font-size: 22px;
    margin: 0 0 28px;
    opacity: 0.85;
}

.candide-quote {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 450;
    font-style: italic;
    line-height: 1.35;
    margin: 0 0 28px;
    border: none;
    padding: 0;
    color: var(--c-cream);
}

.candide-quote-link {
    font-weight: 600;
    color: var(--c-gold-bright);
    font-size: 15.5px;
}

/* ---------- Garden ---------- */
.candide-garden-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 24px;
    background: transparent;
}

.candide-landing > .candide-garden-section {
    background: linear-gradient(180deg, #0a0c14 0%, var(--c-garden) 45%, #12180f 100%);
    max-width: none;
    width: 100%;
    padding-left: max(24px, calc((100% - var(--container)) / 2 + 24px));
    padding-right: max(24px, calc((100% - var(--container)) / 2 + 24px));
}

.candide-garden-lede {
    color: var(--c-muted);
    font-size: 17.5px;
    max-width: 36em;
    margin: 0 0 28px;
}

.candide-garden-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.candide-garden-list li {
    padding-left: 18px;
    border-left: 2px solid var(--c-gold);
    color: var(--c-muted);
    font-size: 15.5px;
}

.candide-garden-list strong {
    color: var(--c-cream);
    font-family: var(--font-display);
    font-weight: 520;
    display: block;
    margin-bottom: 2px;
    font-size: 18px;
}

.candide-garden-visual {
    display: flex;
    justify-content: center;
}

.candide-plot {
    width: min(100%, 380px);
    height: auto;
}

.candide-plot-fruit {
    transform-origin: center;
    animation: candide-fruit 4.5s ease-in-out infinite;
}

.candide-plot-fruit:nth-of-type(2) { animation-delay: 0.6s; }
.candide-plot-fruit:nth-of-type(3) { animation-delay: 1.2s; }

@keyframes candide-fruit {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

.candide-plot-leaves {
    animation: candide-sway 6s ease-in-out infinite;
    transform-origin: 240px 400px;
}

@keyframes candide-sway {
    0%, 100% { transform: rotate(-1.2deg); }
    50% { transform: rotate(1.5deg); }
}

@media (max-width: 900px) {
    .candide-landing > .candide-garden-section {
        grid-template-columns: 1fr;
        padding: 80px 24px;
    }
    .candide-garden-visual { order: -1; }
    .candide-plot { width: min(100%, 260px); }
}

/* ---------- Products ---------- */
.candide-products {
    background: #12180f;
    padding-top: 40px;
    padding-bottom: 100px;
}

.candide-products-sub {
    color: var(--c-muted);
    font-size: 17px;
    max-width: 36em;
    margin: 0 0 36px;
}

.candide-product {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    padding: 28px 0 0;
    border-top: 2px solid var(--c-gold);
    color: inherit;
    transition: transform 0.35s var(--ease-out);
}

.candide-product:hover { transform: translateX(8px); }

.candide-product-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--c-cream);
}

.candide-product-desc {
    color: var(--c-muted);
    font-size: 15.5px;
}

.candide-product-domain {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-gold-bright);
    font-weight: 650;
}

/* ---------- Finale ---------- */
.candide-finale {
    position: relative;
    padding: 130px 0;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(70% 80% at 50% 120%, rgba(232, 163, 61, 0.22) 0%, transparent 55%),
        radial-gradient(120% 90% at 50% 0%, var(--c-mid) 0%, var(--c-night) 100%);
}

.candide-finale-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.candide-finale-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.candide-finale .candide-display {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.candide-finale-sub {
    color: var(--c-muted);
    font-size: 18px;
    margin: 0 auto 32px;
    max-width: 28em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .candide-hero-glow,
    .candide-scroll-line,
    .candide-plot-fruit,
    .candide-plot-leaves {
        animation: none !important;
    }
    .candide-horizon,
    .candide-eldorado-wash,
    .candide-crossing-bg {
        transform: none !important;
    }
    .candide-trail { stroke-dashoffset: 0; }
}
