:root{--bg:#14100d;--fg:#f6efe6;--accent:#c98f55;--green:#6f9a5b}
*{margin:0;padding:0;box-sizing:border-box}
html{background:var(--bg)}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--fg);background:var(--bg)}

#loader{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;transition:opacity .6s}
#loader.done{opacity:0;pointer-events:none}
.bar{width:min(260px,60vw);height:3px;background:#ffffff22;border-radius:3px;overflow:hidden}
#bar{display:block;height:100%;width:0;background:var(--accent)}
#pct{font-size:.8rem;opacity:.7}

.disclaimer{position:fixed;top:0;left:0;right:0;z-index:30;padding:9px 5vw;text-align:center;font-size:.75rem;background:#000b;backdrop-filter:blur(6px);letter-spacing:.02em}

#scroller{height:700vh;position:relative}
.stage{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden}
#canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 40%,#14100dd0 100%)}

.copy{position:absolute;z-index:5;max-width:min(480px,86vw);opacity:0;transform:translateY(24px);transition:opacity .45s,transform .45s;top:50%;translate:0 -50%;text-shadow:0 2px 18px #000b}
.copy.show{opacity:1;transform:none}
.copy.center{left:50%;translate:-50% -50%;text-align:center}
.copy.left{left:6vw}
.copy.right{right:6vw;text-align:right}
.eyebrow{font-size:.8rem;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:1em}
h1{font-size:clamp(2.4rem,7vw,5rem);line-height:1.02;margin-bottom:.5em;font-family:Georgia,"Times New Roman",serif}
h2{font-size:clamp(1.7rem,4.5vw,3rem);margin-bottom:.5em;font-family:Georgia,"Times New Roman",serif}
.copy p{font-size:clamp(1rem,1.6vw,1.2rem);opacity:.9;line-height:1.55}
.hint{margin-top:2em;font-size:.85rem!important;opacity:.6!important}
.btn{display:inline-block;margin-top:1.2em;padding:.85em 1.8em;border-radius:99px;background:var(--accent);color:#1a120b;text-decoration:none;font-weight:600}

footer{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:10vh 6vw;line-height:1.6}
footer p{max-width:560px;opacity:.85}
@media (max-width:700px){.copy.left,.copy.right{left:50%;right:auto;translate:-50% -50%;text-align:center}}
@media (prefers-reduced-motion:reduce){.copy{transition:none}}

/* ===== Navigasi & bagian informasi ===== */
html{scroll-behavior:smooth}
.nav{position:fixed;top:14px;left:50%;translate:-50% 0;z-index:25;display:flex;gap:4px;padding:6px;border-radius:99px;background:#000a;backdrop-filter:blur(8px)}
.nav a{color:var(--fg);text-decoration:none;font-size:.8rem;padding:.45em 1em;border-radius:99px;opacity:.8}
.nav a:hover{background:#ffffff1f;opacity:1}
@media (max-width:600px){.nav a{padding:.45em .7em;font-size:.72rem}}

.info{padding:14vh 6vw;position:relative}
.info.alt{background:#1b1510}
.wrap{max-width:1000px;margin:0 auto}
.wrap.narrow{max-width:680px}
.info h2{font-size:clamp(1.8rem,4.5vw,3rem);margin-bottom:.6em}
.info p{line-height:1.7;opacity:.88;margin-bottom:1em;font-size:1.05rem}
.center-text{text-align:center}
.lead{font-size:1.1rem!important}
.note{font-size:.8rem!important;opacity:.55!important;margin-top:2.5em}

.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

.toggle{display:flex;justify-content:center;gap:8px;margin:2em 0}
.tab{font:inherit;color:var(--fg);background:#ffffff12;border:1px solid #ffffff22;padding:.7em 1.4em;border-radius:99px;cursor:pointer;transition:.25s}
.tab.active{background:var(--accent);color:#1a120b;border-color:var(--accent);font-weight:600}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.card{padding:2em;border-radius:20px;background:linear-gradient(160deg,#2a1f17,#1a130e);border:1px solid #ffffff14;opacity:.45;transform:scale(.97);transition:.4s}
.card.active{opacity:1;transform:scale(1);border-color:var(--accent);box-shadow:0 10px 40px #0007}
.card h3{font-family:Georgia,serif;font-size:1.8rem;margin:.6em 0 .4em}
.card ul{list-style:none;margin-top:1em;font-size:.92rem;opacity:.8;line-height:1.8}
.card li::before{content:"• ";color:var(--accent)}
.tag{display:inline-block;font-size:.75rem;padding:.35em .9em;border-radius:99px;background:var(--accent);color:#1a120b;font-weight:600}
.tag.green{background:var(--green)}

.steps{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;margin-top:3em}
.steps li{padding:1.6em;border-top:2px solid var(--accent);background:#ffffff08;border-radius:0 0 14px 14px}
.num{font-family:Georgia,serif;font-size:2rem;color:var(--accent)}
.steps h3{margin:.4em 0}
.steps p{font-size:.95rem!important;margin:0!important}

.cta{text-align:center;padding-bottom:18vh}
@media (prefers-reduced-motion:reduce){.reveal{transition:none}}

/* ===== Posisi teks untuk video kopi ===== */
.stage::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(to top,#14100dc0 0%,transparent 38%),linear-gradient(to bottom,#14100d99 0%,transparent 22%)}
.copy.bottom{top:auto;bottom:7vh;left:50%;translate:-50% 0;text-align:center;max-width:min(760px,92vw)}
.copy.bottom h1{white-space:nowrap;margin-bottom:.3em}
.copy.bottom .eyebrow{margin-bottom:.6em}
.copy.bottom .hint{margin-top:1em}
.copy.topleft{top:16vh;left:6vw;translate:0 0}
@media (max-width:700px){
  .copy.bottom h1{white-space:normal;font-size:clamp(2rem,9vw,3rem)}
  .copy.bottom .eyebrow{font-size:.65rem}
  .copy.topleft,.copy.left,.copy.right{top:14vh;bottom:auto;left:50%;right:auto;translate:-50% 0;text-align:center}
}

/* ===== Logo ===== */
.brand{position:fixed;top:12px;left:5vw;z-index:26;display:block}
.brand img{height:36px;width:auto;display:block}
.hero-logo{display:none;height:44px;width:auto;margin:0 auto 14px}
.footer-logo{height:64px;width:auto;margin-bottom:8px}
@media (max-width:899px){.brand{display:none}.hero-logo{display:block}}

/* ===== Dua produk The Tani Series ===== */
.duo{display:flex;align-items:center;gap:14px;margin-top:1.1rem;flex-wrap:wrap}
.prod{display:flex;flex-direction:column;padding:12px 18px;border-radius:16px;background:rgba(20,16,13,.55);border:1px solid rgba(201,143,85,.45);backdrop-filter:blur(6px)}
.prod .tim{font-size:.8rem;opacity:.75;letter-spacing:.08em;text-transform:uppercase}
.prod strong{font-family:Georgia,serif;font-size:clamp(1.2rem,2.2vw,1.6rem);line-height:1.15}
.prod em{font-style:normal;font-size:.85rem;color:var(--accent);margin-top:2px}
.atau{opacity:.8;font-style:italic}
@media (max-width:700px){.duo{justify-content:center;gap:8px}.prod{padding:9px 13px}.copy.topleft .btn{margin-top:.9em}}
@media (max-width:700px){.duo{flex-wrap:nowrap;gap:6px}.prod{padding:7px 9px;border-radius:12px;min-width:0}.prod strong{font-size:1rem}.prod em{font-size:.7rem}.prod .tim{font-size:.65rem}.atau{font-size:.8rem}.copy.topleft{top:11vh}}

/* Rapikan: kartu produk ditumpuk rapi di kiri, tidak menyentuh gelas */
@media (min-width:701px){
  .duo{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:6px;margin-top:1.2rem}
  .prod{width:min(300px,24vw);min-width:230px;padding:12px 18px}
  .prod strong{font-size:clamp(1.2rem,1.7vw,1.5rem)}
  .atau{margin-left:6px;font-size:.95rem}
  .copy.topleft .btn{margin-top:1.4rem}
}
footer .credit{opacity:.55;font-size:.85rem}

/* ===== Responsif (HP, tablet, layar pendek) ===== */
.cards{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.steps{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))}
.nav{max-width:94vw}
.nav a{white-space:nowrap}
img{max-width:100%}

@media (max-width:700px){
  /* lebar blok teks eksplisit: elemen absolute dengan left:50% tadinya menyempit jadi 50% layar */
  .copy,.copy.bottom{width:min(92vw,440px);max-width:none}
  .copy.bottom{bottom:max(5vh,env(safe-area-inset-bottom,0px) + 16px)}
  .copy.bottom h1{white-space:normal;font-size:clamp(1.9rem,8.6vw,2.7rem);line-height:1.05;margin-bottom:.35em}
  .copy.bottom p:not(.eyebrow):not(.hint){font-size:.98rem;line-height:1.45}
  .copy.bottom .eyebrow{font-size:.62rem;letter-spacing:.18em;margin-bottom:.5em}
  .copy.bottom .hint{margin-top:.8em;font-size:.78rem!important}
  .hero-logo{height:34px;margin-bottom:10px}
  h2{font-size:clamp(1.6rem,7.4vw,2.2rem)}
  .copy p{font-size:.98rem}
  .copy.topleft,.copy.left,.copy.right{top:12vh;translate:-50% 0}
  .nav{top:10px;padding:4px}
  .nav a{padding:.45em .62em;font-size:.7rem}
  .info{padding:11vh 6vw}
  .info p{font-size:1rem}
  .card{padding:1.4em}
  .card h3{font-size:1.5rem}
  .steps{gap:14px;margin-top:2em}
  .steps li{padding:1.2em}
  .toggle{margin:1.4em 0}
  .tab{padding:.65em 1.1em;font-size:.92rem}
  .btn{padding:.8em 1.5em;font-size:.95rem}
  footer{padding:8vh 6vw}
  .footer-logo{height:52px}
}

/* HP kecil (<=360px) */
@media (max-width:360px){
  .nav a{padding:.4em .5em;font-size:.66rem}
  .prod{padding:6px 7px}
  .prod strong{font-size:.9rem}
  .prod em{font-size:.64rem}
  .atau{font-size:.72rem}
}

/* Layar pendek / HP landscape */
@media (max-height:520px) and (orientation:landscape){
  .copy.bottom{bottom:4vh;width:min(70vw,640px)}
  .copy.bottom h1{font-size:clamp(1.6rem,5.2vw,2.4rem);white-space:nowrap}
  .hero-logo{display:none}
  .copy.bottom .hint,.copy.bottom .eyebrow{display:none}
  .copy.topleft,.copy.left,.copy.right{top:16vh;translate:0 0;text-align:left}
  .copy.left,.copy.topleft{left:6vw}
  .copy.right{right:6vw;left:auto;text-align:right}
  .copy{width:min(46vw,420px)}
  .copy p{font-size:.88rem;line-height:1.4}
  h2{font-size:1.5rem}
  .duo{flex-direction:row;flex-wrap:nowrap;gap:6px}
  .prod{width:auto;min-width:0;padding:6px 10px}
  .prod strong{font-size:.95rem}
  .brand img{height:28px}
  .nav{top:8px}
}

/* Tablet portrait */
@media (min-width:701px) and (max-width:1024px) and (orientation:portrait){
  .copy.bottom h1{font-size:clamp(2.6rem,8vw,4rem)}
  .copy.topleft{top:12vh}
  .prod{width:min(320px,40vw)}
}

/* Koreksi akhir: kartu produk jangan menyentuh gelas di tablet & landscape */
@media (min-width:701px) and (max-width:1024px) and (orientation:portrait){
  .prod{width:min(300px,32vw);min-width:0}
  .copy.topleft{top:10vh}
}
@media (max-height:520px) and (orientation:landscape){
  .duo{flex-direction:column;align-items:flex-start;gap:3px;margin-top:.6rem}
  .prod{width:min(210px,30vw);min-width:0;padding:5px 10px}
  .prod .tim{display:none}
  .atau{margin-left:4px;font-size:.78rem}
  .copy.topleft .btn{margin-top:.8rem;padding:.6em 1.2em;font-size:.85rem}
  .copy.topleft{top:14vh}
}
