/* Landing page: content floats over the 3D valley rendered in .landing-scene. */

.landing { position: relative; min-height: 100vh; color: var(--ink); overflow-x: clip; --progress: 0; }

.landing-scene { will-change: transform; position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s ease; background: linear-gradient(#9db3bf, #ebe4d4 60%, #7c8f4f); }
.landing-scene.is-ready { opacity: 1; }
.no-webgl .landing-scene { opacity: 1; }

/* Keeps text readable over the landscape: light at dawn, darker towards dusk. */
.landing-veil {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(244, 242, 235, calc(.62 - var(--progress) * 3)), rgba(244, 242, 235, calc(.3 - var(--progress) * 1.5)) 45%, transparent 70%),
        linear-gradient(to bottom, rgba(33, 54, 41, calc(var(--progress) * .35)), rgba(20, 28, 24, calc(var(--progress) * .45)));
}

.landing > main, .landing > footer { position: relative; z-index: 2; }
.landing > .landing-nav { z-index: 10; }

/* ---------- Header ---------- */

.landing-nav { position: fixed !important; top: 0; left: 0; right: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 48px); transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.landing-nav.is-scrolled { height: 64px; background: rgba(251, 250, 246, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(30, 35, 30, .08); }
.landing-nav nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.landing-nav nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: 14px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.landing-mark svg { display: block; filter: drop-shadow(0 4px 10px rgba(46, 90, 62, .35)); }
@media (max-width: 720px) { .landing-nav .hide-sm { display: none; } .landing-nav nav a:not(.btn) { font-size: 13px; } }

.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.btn-glass { background: rgba(251, 250, 246, .8); color: var(--ink); border-color: rgba(30, 35, 30, .14); }
.btn-glass:hover { background: rgba(251, 250, 246, .85); color: var(--ink); }
.btn-light { background: #F4F2EB; color: var(--forest-dark); }
.btn-light:hover { background: #fff; color: var(--forest-dark); }
.btn-glass-dark { background: rgba(20, 28, 24, .35); color: #F4F2EB; border-color: rgba(244, 242, 235, .35); }
.btn-glass-dark:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.landing .btn-primary { box-shadow: 0 10px 24px -10px rgba(34, 68, 47, .7); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.landing .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(34, 68, 47, .75); }

/* ---------- Hero ---------- */

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 120px clamp(20px, 7vw, 110px) 96px; max-width: 1100px; perspective: 900px; }
.hero .eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.hero-title { font-size: clamp(42px, 7.2vw, 96px); line-height: .98; letter-spacing: -.025em; font-weight: 700; display: flex; flex-direction: column; text-wrap: balance; }
.hero-title .accent { color: var(--forest); font-style: italic; }
.hero-pitch { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 620px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.is-animated .hero-line { display: block; opacity: 0; transform: translateY(40px) rotateX(-55deg); transform-origin: 50% 100%; animation: rise-in 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
.is-animated .hero-actions.hero-line { display: flex; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(30, 35, 30, .35); border-radius: 16px; opacity: calc(1 - var(--progress) * 12); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Reveal ---------- */

.is-animated [data-landing-target~="reveal"] { opacity: 0; transform: perspective(1000px) translateY(70px) rotateX(18deg) scale(.96); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, .84, .24, 1); transition-delay: var(--delay, 0ms); }
.is-animated [data-landing-target~="reveal"].is-visible { opacity: 1; transform: none; }

/* ---------- Manifesto ---------- */

.manifesto { min-height: 80vh; display: grid; place-items: center; padding: 80px clamp(20px, 8vw, 140px); }
.manifesto p { max-width: 980px; font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -.015em; text-align: center; color: var(--ink); text-wrap: balance; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: rgba(251, 250, 246, .88); box-shadow: 0 40px 80px -40px rgba(30, 35, 30, .35); }
.manifesto strong { color: var(--forest); display: block; margin-top: .3em; }

/* ---------- Features ---------- */

.features { display: flex; flex-direction: column; gap: clamp(90px, 16vh, 180px); padding: 60px clamp(20px, 6vw, 96px) 140px; max-width: 1280px; margin: 0 auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); }
.feature.reverse .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: rgba(251, 250, 246, .92); box-shadow: 0 30px 70px -40px rgba(30, 35, 30, .4); }
.feature-index { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--forest); letter-spacing: .1em; }
.feature h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
.feature p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.feature-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.feature-points svg { color: var(--forest); background: var(--forest-tint); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.reverse .feature-text { order: 0; } }

.vignette { perspective: 1200px; --tilt-x: 0deg; --tilt-y: 0deg; }
.vignette-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: 0 50px 90px -40px rgba(20, 30, 24, .55), 0 18px 36px -24px rgba(20, 30, 24, .35); transform: rotateX(calc(8deg + var(--tilt-x))) rotateY(calc(-14deg + var(--tilt-y))) translateZ(0); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: float 7s ease-in-out infinite; will-change: transform, translate; }
.feature.reverse .vignette-card { transform: rotateX(calc(8deg + var(--tilt-x))) rotateY(calc(14deg + var(--tilt-y))); animation-delay: -3s; }
.vignette-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--glare-x, 30%) var(--glare-y, 0%), rgba(255, 255, 255, .22), transparent 55%); }
.vignette-card > * { transform: translateZ(30px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.vignette-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: 18px; }
.vignette-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.vignette-row .grow { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.vignette-stat { display: flex; flex-direction: column; gap: 2px; }
.vignette-stat strong { font-family: var(--font-display); font-size: 34px; }
.alert-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.alert-icon.bad { background: var(--bad-tint); color: var(--bad); }
.alert-icon.warn { background: var(--warn-tint); color: var(--warn); }
@media (max-width: 900px) { .vignette-card, .feature.reverse .vignette-card { transform: rotateX(6deg) rotateY(0deg); } }

/* ---------- Audience ---------- */

.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 40px clamp(20px, 6vw, 96px) 160px; max-width: 1180px; margin: 0 auto; perspective: 1200px; }
.audience-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: 24px; background: rgba(251, 250, 246, .92); box-shadow: 0 30px 70px -40px rgba(20, 30, 24, .5); transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .4s ease; }
.is-animated .audience-card.is-visible { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.audience-card h2 { font-size: 28px; }
.audience-card p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.audience-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: #F4F2EB; box-shadow: 0 12px 24px -12px rgba(46, 90, 62, .8); }
@media (max-width: 760px) { .audience { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */

.steps-section { padding: 40px clamp(20px, 6vw, 96px) 180px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: clamp(34px, 4.5vw, 60px); letter-spacing: -.02em; text-align: center; color: #F7F3EA; text-shadow: 0 2px 30px rgba(20, 28, 24, .45); }
.landing-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.landing-steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: rgba(251, 250, 246, .93); box-shadow: 0 30px 60px -36px rgba(20, 28, 24, .6); }
.landing-steps h3 { font-family: var(--font-display); font-size: 22px; }
.landing-steps p { color: var(--ink-2); font-size: 16px; }
.step-number { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #F4F2EB; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
@media (max-width: 860px) { .landing-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Final call ---------- */

.final-cta { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 80px clamp(20px, 8vw, 140px) 120px; color: #F7F3EA; }
.final-cta h2 { font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: -.025em; max-width: 1000px; text-shadow: 0 4px 40px rgba(10, 16, 12, .5); text-wrap: balance; }
.final-cta p { font-size: clamp(17px, 1.6vw, 21px); max-width: 620px; color: rgba(247, 243, 234, .88); }
.final-cta .hero-actions { justify-content: center; }

.landing-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px clamp(20px, 6vw, 96px); color: rgba(247, 243, 234, .75); font-size: 14px; border-top: 1px solid rgba(247, 243, 234, .15); }
.landing-footer nav { display: flex; gap: 20px; }
.landing-footer a { color: rgba(247, 243, 234, .9); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .is-animated .hero-line, .is-animated [data-landing-target~="reveal"] { animation: none; opacity: 1; transform: none; transition: none; }
    .vignette-card { animation: none; }
    .scroll-cue span { animation: none; }
}
