/* =========================================================
   VEDIXA · EAR VEDA — Static Landing (HTML/CSS/JS)
   Palette: Cream #F5F3ED · Dark Green #0F1E16 · Brand #1E3F2B · Gold #C5A059/#D4AF37
   Fonts: Cormorant Garamond (display) · Manrope (body)
========================================================= */
:root {
    --cream: #f5f3ed;
    --cream-2: #efeade;
    --dark: #0f1e16;
    --dark-2: #0a140e;
    --green: #1e3f2b;
    --green-soft: #315a41;
    --ink: #1b2a20;
    --gold: #c5a059;
    --gold-bright: #d4af37;
    --line: rgba(27, 42, 32, 0.14);
    --f-display: "Cormorant Garamond", Georgia, serif;
    --f-body: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--f-body);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.5;
    cursor: default;
}
#root { display: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--cream); }

/* Grain overlay */
.grain {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: 0.045; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--green), var(--gold));
    z-index: 10000;
}

/* ---------- Shared type ---------- */
.overline {
    font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
    font-weight: 600; color: var(--green-soft); margin-bottom: 1.4rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.overline--gold { color: var(--gold-bright); }
.section-title {
    font-family: var(--f-display); font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02;
    letter-spacing: -0.02em; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--green); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-body); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.01em; border-radius: 100px; padding: 0.95rem 1.9rem;
    transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn--solid { background: var(--green); color: var(--cream); }
.btn--solid:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--green); background: rgba(30,63,43,0.05); }
.btn--pill { background: var(--green); color: var(--cream); padding: 0.7rem 1.4rem; font-size: 0.82rem; }

/* ---------- NAV ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}
.nav.is-scrolled {
    background: rgba(245,243,237,0.72);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line);
    padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav__brand img { height: 44px; width: auto; object-fit: contain; background: #0a140e; border-radius: 12px; padding: 5px 12px; box-shadow: 0 6px 18px -8px rgba(0,0,0,0.4); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
    font-size: 0.85rem; font-weight: 500; color: var(--ink); position: relative;
    transition: color 0.3s ease;
}
.nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
    background: var(--green); transition: width 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100svh; padding: 7rem clamp(1.2rem, 4vw, 3rem) 4rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 8%, #ffffff 0%, var(--cream) 42%, var(--cream-2) 100%);
}
.hero__glow {
    position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%);
    width: min(720px, 90vw); height: min(720px, 90vw);
    background: radial-gradient(circle, rgba(197,160,89,0.28) 0%, rgba(197,160,89,0) 62%);
    z-index: 0; pointer-events: none;
}
.hero__label {
    position: relative; z-index: 3; font-size: 0.72rem; letter-spacing: 0.26em;
    text-transform: uppercase; font-weight: 600; color: var(--green-soft);
    display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem;
}
.hero__label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(212,175,55,0.2); }
.hero__title {
    position: relative; z-index: 3; font-family: var(--f-display); font-weight: 500;
    font-size: clamp(2.6rem, 7.4vw, 5.4rem); line-height: 1.0; letter-spacing: -0.03em;
    color: var(--ink); max-width: 15ch;
}
.hero__title em { font-style: italic; color: var(--green); }
.hero__title .line { display: block; overflow: hidden; padding: 0.02em 0; }
.hero__title .line__inner { display: block; transform: translateY(115%); transition: transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.is-loaded .hero__title .line:nth-child(1) .line__inner { transform: translateY(0); transition-delay: 0.15s; }
.is-loaded .hero__title .line:nth-child(2) .line__inner { transform: translateY(0); transition-delay: 0.30s; }

.hero__bottle {
    position: relative; z-index: 2; width: clamp(180px, 23vw, 280px);
    margin: 3.4rem 0 0.6rem; border-radius: 22px; background: #0a140e; padding: 6px;
    border: 1px solid rgba(197,160,89,0.35);
    box-shadow: 0 50px 90px -30px rgba(15,30,22,0.55);
    opacity: 0; transform: translateY(50px) scale(0.94);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1);
    transition-delay: 0.45s; will-change: transform, opacity;
}
.is-loaded .hero__bottle { opacity: 1; transform: translateY(0) scale(1); }
.hero__sub {
    position: relative; z-index: 3; max-width: 46ch; font-size: 1.02rem;
    color: rgba(27,42,32,0.72); margin: 0.6rem 0 2rem;
}
.hero__cta { position: relative; z-index: 3; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green-soft);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--green-soft), transparent); animation: scrollpulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--green); padding: 1.6rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track span {
    font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem);
    white-space: nowrap; padding-right: 1rem;
    color: transparent; -webkit-text-stroke: 1px rgba(245,243,237,0.55);
}
.marquee__track span i { font-style: normal; color: var(--gold-bright); -webkit-text-stroke: 0; padding: 0 0.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- STORY / CHAPTERS ---------- */
.story { padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 6vw, 8rem); }
.story__intro { max-width: 68ch; margin-bottom: 5rem; }
.chapter {
    display: grid; grid-template-columns: 0.5fr 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--line);
}
.chapter--reverse .chapter__media { order: 3; }
.chapter--reverse .chapter__text { order: 2; }
.chapter--reverse .chapter__num { order: 1; }
.chapter__num {
    font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); font-style: italic;
    color: var(--gold); line-height: 1;
}
.chapter__media { overflow: hidden; border-radius: 200px 200px 18px 18px; }
.chapter__media img {
    width: 100%; height: clamp(280px, 34vw, 460px); object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2,0.8,0.2,1); will-change: transform;
}
.chapter__media:hover img { transform: scale(1.06); }
.chapter__text h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; margin-bottom: 1rem; color: var(--green); }
.chapter__text p { font-size: 1.02rem; color: rgba(27,42,32,0.72); max-width: 42ch; }

/* ---------- INGREDIENTS (DARK) ---------- */
.ingredients {
    position: relative; background: var(--dark); color: var(--cream);
    padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 6vw, 8rem); overflow: hidden;
}
.ingredients__spot {
    position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(197,160,89,0.16) 0%, rgba(197,160,89,0) 60%);
    pointer-events: none;
}
.ingredients__head { position: relative; z-index: 2; max-width: 68ch; margin-bottom: 4rem; }
.ing-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.ing-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(197,160,89,0.22);
    border-radius: 18px; padding: 2rem 1.6rem; backdrop-filter: blur(8px);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), border-color 0.5s ease, background-color 0.5s ease;
}
.ing-card:hover { transform: translateY(-8px); border-color: var(--gold-bright); background: rgba(255,255,255,0.06); }
.ing-card__no { font-family: var(--f-display); font-size: 2rem; color: var(--gold-bright); margin-bottom: 1.2rem; }
.ing-card h4 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.7rem; }
.ing-card p { font-size: 0.92rem; color: rgba(245,243,237,0.66); }

.stats {
    position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(245,243,237,0.12);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-bright); line-height: 1; }
.stat__label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,243,237,0.6); }

/* ---------- RITUAL ---------- */
.ritual { padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 6vw, 8rem); }
.ritual__head { max-width: 68ch; margin-bottom: 4rem; }
.ritual__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.rstep { border-top: 2px solid var(--green); padding-top: 1.6rem; }
.rstep__no { font-family: var(--f-display); font-style: italic; font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.rstep h4 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--green); margin-bottom: 0.6rem; }
.rstep p { font-size: 0.98rem; color: rgba(27,42,32,0.72); max-width: 34ch; }

/* ---------- VOICES ---------- */
.voices {
    background: var(--cream-2); padding: clamp(5rem, 12vw, 9rem) clamp(1.2rem, 6vw, 8rem);
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.voices__quote {
    font-family: var(--f-display); font-style: italic; font-weight: 500;
    font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.2; color: var(--green);
    max-width: 20ch; margin: 1rem 0 1.6rem;
}
.voices__by { font-size: 0.85rem; letter-spacing: 0.12em; color: rgba(27,42,32,0.6); }

/* ---------- CONTACT ---------- */
.contact {
    position: relative; background: var(--dark-2); color: var(--cream);
    padding: clamp(5rem, 12vw, 10rem) clamp(1.2rem, 6vw, 8rem); overflow: hidden; text-align: left;
}
.contact__glow {
    position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%); width: 80vw; height: 60vw;
    background: radial-gradient(circle, rgba(30,63,43,0.6) 0%, rgba(30,63,43,0) 62%); pointer-events: none;
}
.contact__sub { position: relative; z-index: 2; max-width: 48ch; color: rgba(245,243,237,0.7); margin: 1.2rem 0 3rem; }
.contact__cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ccard {
    display: flex; flex-direction: column; gap: 0.5rem; padding: 2rem 1.8rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(245,243,237,0.12); border-radius: 18px;
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), border-color 0.5s ease, background-color 0.5s ease;
}
.ccard:hover { transform: translateY(-6px); border-color: var(--gold-bright); background: rgba(255,255,255,0.06); }
.ccard__ic { width: 34px; height: 34px; margin-bottom: 0.8rem; color: var(--gold-bright); }
.ccard__ic svg { width: 100%; height: 100%; }
.ccard__k { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,243,237,0.55); }
.ccard__v { font-family: var(--f-display); font-size: 1.5rem; color: var(--cream); }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 6vw, 8rem) 2.5rem; overflow: hidden; }
.footer__word {
    font-family: var(--f-display); font-weight: 600; font-size: clamp(4rem, 20vw, 18rem);
    line-height: 0.8; letter-spacing: -0.03em; color: transparent;
    -webkit-text-stroke: 1px rgba(197,160,89,0.4); text-align: center; margin-bottom: 3rem;
}
.footer__row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(245,243,237,0.12); }
.footer__brand { max-width: 40ch; }
.footer__brand img { height: 54px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.92rem; color: rgba(245,243,237,0.6); }
.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer__contact a { font-family: var(--f-display); font-size: 1.3rem; transition: color 0.3s ease; }
.footer__contact a:hover { color: var(--gold-bright); }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: 0.78rem; color: rgba(245,243,237,0.45); }

/* ---------- FLOATING WIDGET ---------- */
.fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200; display: flex; flex-direction: column; gap: 0.7rem; }
.fab__btn {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(15,30,22,0.8); color: var(--cream); border: 1px solid rgba(197,160,89,0.35);
    backdrop-filter: blur(12px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), background-color 0.4s ease;
}
.fab__btn:hover { transform: scale(1.1) translateY(-2px); background: var(--green); }
.fab__btn--wa { background: #1faf57; border-color: rgba(255,255,255,0.3); }
.fab__btn--wa:hover { background: #17944a; }
.fab__btn span { width: 24px; height: 24px; display: block; }
.fab__btn svg { width: 100%; height: 100%; }

/* ---------- Reveal states ---------- */
.reveal, .reveal-fade { opacity: 0; }
.reveal { transform: translateY(38px); }
.reveal-fade { transform: translateY(16px); }
.is-in { opacity: 1 !important; transform: none !important; }
.reveal, .reveal-fade { transition: opacity 1s cubic-bezier(0.2,0.8,0.2,1), transform 1s cubic-bezier(0.2,0.8,0.2,1); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav__links { display: none; }
    .ing-grid, .stats, .contact__cards { grid-template-columns: repeat(2, 1fr); }
    .ritual__steps { grid-template-columns: 1fr; gap: 2.4rem; }
    .chapter { grid-template-columns: 1fr; text-align: left; }
    .chapter__num { font-size: 3rem; }
    .chapter--reverse .chapter__media,
    .chapter--reverse .chapter__text,
    .chapter--reverse .chapter__num { order: initial; }
}
@media (max-width: 560px) {
    .ing-grid, .stats, .contact__cards { grid-template-columns: 1fr; }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { width: 100%; }
    .nav__cta { display: none; }
    .footer__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
    .reveal, .reveal-fade { opacity: 1; transform: none; }
    .hero__scroll-line { animation: none; }
}
