* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:    #ffffff;
    --ink:   #0f0f10;
    --muted: rgba(15, 15, 16, 0.6);
    --line:  rgba(15, 15, 16, 0.1);
    --green:      #3a9f2a;
    --green-deep: #2d8019;
    --green-soft: #4ab82f;
    --orange:     #f38f2a;
    --orange-deep:#e87817;
    --cream:      #faf7f0;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   LOADER — Bottle filling
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader__scene {
    position: relative;
    width: 220px;
    height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.loader__bottle {
    width: 100%;
    height: 100%;
    max-height: 360px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.loader__scoop {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 80px;
    z-index: 3;
    will-change: transform;
}
.loader__scoop svg { width: 100%; height: auto; }

.loader__particles {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 2;
}
.loader__particles span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #b78551;
    border-radius: 50%;
    will-change: transform, opacity;
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.loader__counter {
    color: var(--green-deep);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* =========================================================
   STORE SECTION
   ========================================================= */
.store {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg);
}

/* ---------- Top nav ---------- */
.topnav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
}

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    will-change: transform;
}
.topnav__logo-mark { width: 36px; height: 36px; }
.topnav__logo-mark svg { width: 100%; height: 100%; display: block; }
.topnav__logo-text em {
    color: var(--green);
    font-style: normal;
}

.topnav__links {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}
.topnav__links a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    will-change: transform;
}
.topnav__links a.is-active { color: var(--orange); }
.topnav__links a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--orange);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.topnav__links a:hover::after { transform: translateX(-50%) scaleX(1); }

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.topnav__icon {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    will-change: transform;
    transition: background 0.3s;
}
.topnav__icon:hover { background: rgba(15, 15, 16, 0.06); }
.topnav__icon svg { width: 22px; height: 22px; }
.topnav__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.topnav__menu {
    width: 42px; height: 42px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: background 0.3s;
}
.topnav__menu svg { width: 18px; height: 18px; }
.topnav__menu:hover { background: var(--green-deep); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 10;
    padding: 2rem 2rem 6rem;
    text-align: center;
    min-height: calc(100vh - 90px);
}

.hero__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.35em;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 auto 1.75rem;
    max-width: 840px;
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}
.hero__char {
    display: inline-block;
    will-change: transform, color;
    transition: color 0.3s ease;
}
.hero__char.is-space { width: 0.25em; }

.hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(243, 143, 42, 0.35);
    overflow: hidden;
    will-change: transform;
    z-index: 4;
}
.hero__cta-label { position: relative; z-index: 2; }
.hero__cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    z-index: 1;
}

/* ---------- Bottles scene ---------- */
.bottles {
    position: relative;
    height: clamp(320px, 38vw, 440px);
    margin: 0 auto;
    max-width: 1100px;
}

.bottles__arch {
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 700px;
    aspect-ratio: 2 / 1;
    background: radial-gradient(ellipse at center, var(--green-soft) 0%, var(--green) 60%, var(--green-deep) 100%);
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
    z-index: 1;
    will-change: transform;
    box-shadow: inset 0 -20px 60px rgba(0, 0, 0, 0.15);
}

.bottle {
    position: absolute;
    bottom: 0;
    z-index: 3;
    width: clamp(130px, 14vw, 170px);
    cursor: pointer;
    will-change: transform;
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.3));
}
.bottle svg { width: 100%; height: auto; display: block; }
.bottle--left {
    left: calc(50% - 250px);
    z-index: 2;
}
.bottle--center {
    left: calc(50% - 90px);
    z-index: 4;
}
.bottle--right {
    left: calc(50% + 70px);
    z-index: 2;
}

/* Leaves */
.leaf {
    position: absolute;
    width: 60px;
    height: 100px;
    will-change: transform;
    z-index: 5;
}
.leaf--1 { top: -60px; left: -30px;  transform: rotate(-30deg); }
.leaf--2 { top: 20%;   left: -60px;  transform: rotate(40deg); width: 80px; height: 130px; }
.leaf--3 { top: -40px; right: -20px; transform: rotate(40deg); }
.leaf--4 { top: 30%;   right: -50px; transform: rotate(-20deg); width: 70px; height: 120px; }
.leaf--5 { bottom: 10%; right: -80px; transform: rotate(15deg); }

/* Scoop + bowl */
.scoop, .bowl {
    position: absolute;
    bottom: 0;
    width: 160px;
    height: 140px;
    z-index: 6;
    border-radius: 14px;
    overflow: hidden;
    will-change: transform;
}
.scoop { left: -30px; }
.bowl  { right: -30px; }
.scoop img, .bowl img {
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
}

/* ---------- Partners ---------- */
.partners {
    margin-top: 3.5rem;
    padding: 0 2rem;
}
.partners__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.partners__dash {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--orange);
}
.partners__text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.partners__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.partners__logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.6;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    filter: grayscale(1);
    will-change: transform;
    transition: filter 0.35s ease, opacity 0.35s ease;
}
.partners__logo em, .partners__logo b {
    font-style: normal;
    color: var(--green);
}
.partners__logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ---------- Paint stroke ---------- */
.paint-stroke {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    z-index: 2;
}

/* ---------- Initial states ---------- */
[data-magnetic], [data-link], [data-fade], [data-title-line] .hero__char,
[data-bottle], [data-leaf], [data-scoop], [data-bowl], [data-cta], [data-arch], [data-partner] {
    opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topnav__links { display: none; }
}
@media (max-width: 760px) {
    .topnav { padding: 1rem 1.25rem; gap: 0.5rem; }
    .topnav__logo-text { font-size: 1.1rem; }
    .hero { padding: 1rem 1.25rem 5rem; }
    .hero__title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .bottle--left  { left: calc(50% - 180px); width: 110px; }
    .bottle--right { left: calc(50% + 40px);  width: 110px; }
    .scoop, .bowl { width: 110px; height: 100px; }
    .scoop { left: -15px; }
    .bowl  { right: -15px; }
    .partners__logos { gap: 1.5rem; }
    .partners__logo { font-size: 0.9rem; }
    .leaf { width: 40px !important; height: 70px !important; }
}
@media (max-width: 480px) {
    .hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; }
    .bottles { height: 280px; }
    .bottle--left  { left: calc(50% - 140px); width: 85px; }
    .bottle--right { left: calc(50% + 30px);  width: 85px; }
    .bottle--center { width: 110px; }
    .scoop, .bowl { width: 80px; height: 70px; }
    .partners__logos { gap: 1rem; }
    .partners__logo { font-size: 0.75rem; }
    .topnav__menu { width: 36px; height: 36px; }
    .leaf--2, .leaf--4 { display: none; }
}
