/* ===================================================================
   HEAVEN GRAB — TITO
   =================================================================== */

:root{
  --ink: #121212;
  --ink-soft: #1d1d1d;
  --paper: #F3EEE2;
  --paper-dim: #E8E1D0;
  --kraft: #C7A06C;
  --blue: #1AA0C4;
  --green: #12966F;
  --white: #FFFFFF;
  --line: rgba(18,18,18,0.12);
  --line-light: rgba(243,238,226,0.16);
  --radius: 14px;
  --ff-head: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--ff-head); margin:0 0 .5em; line-height:1.05; letter-spacing:-0.01em; }
p{ margin:0 0 1em; }
button{ font-family: inherit; cursor:pointer; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 600;
  opacity: .65;
  margin-bottom: .9em;
}

.section-title{
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 720px;
  margin-bottom: .8em;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: 1em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--ink{ background: var(--ink); color: var(--paper); }
.btn--ink:hover{ background: var(--ink-soft); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover{ border-color: var(--ink); }
.btn--paper{ background: var(--paper); color: var(--ink); }
.btn--small{ padding: .65em 1.2em; font-size: .82rem; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  background: rgba(243,238,226,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  display:flex;
  align-items:center;
  gap: 2rem;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:.6em; margin-right:auto; }
.brand__mark{ width: 30px; height: 30px; border-radius: 8px; }
.brand__word{ font-family: var(--ff-head); font-weight: 700; letter-spacing:.02em; font-size: .95rem; }
.nav{ display:flex; gap: 1.8rem; }
.nav a{ font-size: .88rem; font-weight: 500; opacity: .8; }
.nav a:hover{ opacity: 1; }
.nav__cta{ margin-left: .5rem; }
.burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding: 8px; }
.burger span{ width: 22px; height: 2px; background: var(--ink); display:block; }

/* ---------- Hero ---------- */
.hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  padding-top: 76px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(26,160,196,0.10), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(18,150,111,0.10), transparent 55%);
}
.hero__inner{ max-width: 760px; }
.hero__title{
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  font-family: var(--ff-head);
  margin-bottom: .5em;
}
.hero__desc{ max-width: 46ch; opacity: .75; font-size: 1.05rem; }
.hero__actions{ display:flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.scroll-hint{
  position:absolute;
  left: 24px;
  bottom: 32px;
  display:flex;
  align-items:center;
  gap: .6em;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
}
.scroll-hint__line{ width: 40px; height:1px; background: currentColor; }

/* ---------- Pinned 3D scene ---------- */
.scene{
  position: relative;
  height: 420vh;
  background: var(--ink);
}
.scene__sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display:flex;
  align-items:center;
}
#scene-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.scene__sticky::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(18,18,18,0.92) 0%, rgba(18,18,18,0.55) 42%, rgba(18,18,18,0) 62%);
  pointer-events:none;
  z-index:1;
}
.scene__panel{
  position:absolute;
  z-index: 2;
  left: 24px;
  top: 50%;
  transform: translateY(-38%);
  max-width: 480px;
  color: var(--paper);
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
  pointer-events:none;
}
.scene__panel.is-active{
  opacity: 1;
  transform: translateY(-50%);
}
.scene__panel h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); }
.scene__panel p{ opacity:.72; font-size: 1rem; max-width: 42ch; }
.scene__panel .eyebrow{ color: var(--paper); opacity:.55; }
.scene__loader{
  position:absolute;
  z-index:3;
  right: 32px;
  bottom: 32px;
  color: var(--paper);
  opacity:.5;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform: uppercase;
  transition: opacity .4s ease;
}
.scene__loader.is-hidden{ opacity:0; }

/* ---------- Features ---------- */
.features{ padding: 7rem 0; }
.features__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.feature__num{
  display:block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--kraft);
  margin-bottom: .5em;
}
.feature h3{ font-size: 1.05rem; }
.feature p{ opacity:.7; font-size:.94rem; margin-bottom:0; }

/* ---------- Shop ---------- */
.shop{ padding: 6rem 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop__inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items:center;
}
.shop__visual{
  position: relative;
  background: var(--paper-dim);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
#shop-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  cursor: grab;
  touch-action: none;
}
#shop-canvas:active{ cursor: grabbing; }
.shop__drag-hint{
  position:absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align:center;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform: uppercase;
  opacity:.4;
  pointer-events:none;
  margin:0;
}
.shop__title{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.shop__price{ font-family: var(--ff-head); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.2em; }

.swatches{ display:flex; gap: .8rem; margin-bottom: .7rem; }
.swatch{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline-offset: 3px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(18,18,18,0.08);
}
.swatch--black{ background: #1a1a1a; }
.swatch--blue{ background: #001489; }
.swatch--red{ background: #D93025; }
.swatch--orange{ background: #F07818; }
.swatch--yellow{ background: #F2C531; }
.swatch.is-active{ border-color: var(--ink); }
.swatch.is-active::after{
  content:"";
  position:absolute; inset:-6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.swatch-label{ font-size: .88rem; opacity:.65; margin-bottom: 1.8rem; }
.swatch-label span{ font-weight:600; opacity: 1; }

.qty{ display:flex; align-items:center; gap: 1rem; margin-bottom: 1.6rem; font-size:.9rem; }
.qty__control{ display:flex; align-items:center; gap: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; }
.qty__control button{ background:none; border:none; font-size: 1.1rem; line-height:1; padding: .2rem .3rem; }
#qty-value{ min-width: 1.2ch; text-align:center; font-weight:600; }

.btn--buy{
  width:100%;
  flex-direction: column;
  gap: .15rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1em 1.6em;
  border-radius: 12px;
}
.btn--buy__label{ font-size: 1.05rem; font-weight: 700; }
.btn--buy__pay{ font-size: .72rem; opacity:.6; font-weight: 500; letter-spacing:.02em; }
.shop__note{ margin-top: 1rem; font-size: .8rem; opacity: .55; }

/* ---------- Trust ---------- */
.trust{ padding: 5rem 0; }
.trust__grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; text-align:center; }
.trust__item img{ width: 54px; height:54px; margin: 0 auto 1rem; }
.trust__item h3{ font-size: 1.05rem; }
.trust__item p{ opacity:.65; font-size:.92rem; margin-bottom:0; }

/* ---------- Store ---------- */
.store{ padding: 2rem 0 7rem; }
.store__inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items:center;
}
.store__text h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.store__text p{ max-width: 46ch; opacity:.8; margin-bottom: 1.6em; }
.store__visual img{ border-radius: var(--radius); width:100%; }

/* ---------- Closer ---------- */
.closer{
  background: var(--ink);
  color: var(--paper);
  padding: 7rem 0;
  text-align:center;
}
.closer h2{ font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18ch; margin: 0 auto .8em; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--paper); padding-top: 4rem; }
.site-footer__inner{ display:flex; justify-content:space-between; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); flex-wrap: wrap; }
.site-footer__logo{ height: 26px; width:auto; margin-bottom: 1rem; }
.site-footer__brand p{ opacity:.6; font-size:.9rem; }
.site-footer__links{ display:flex; gap: 3.5rem; }
.site-footer__links h4{ font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; opacity:.5; margin-bottom: 1em; }
.site-footer__links a{ display:block; font-size:.9rem; opacity:.8; margin-bottom:.7em; }
.site-footer__links a:hover{ opacity:1; }
.site-footer__bottom{ padding: 1.6rem 24px; font-size:.78rem; opacity:.45; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .nav{
    display:flex;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: var(--paper);
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 2rem;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 90;
  }
  .nav.is-open{ transform: translateY(0); }
  .nav a{ font-size: 1.3rem; }
  .nav__cta{ display:none; }
  .burger{ display:flex; z-index: 101; }
  .features__grid{ grid-template-columns: repeat(2,1fr); }
  .shop__inner{ grid-template-columns: 1fr; gap: 2.5rem; }
  .trust__grid{ grid-template-columns: 1fr; gap: 2rem; }
  .store__inner{ grid-template-columns: 1fr; gap: 2.5rem; }
  .scene__panel{ max-width: 88vw; left: 20px; }
}
@media (max-width: 560px){
  .site-header__inner{ height: 66px; }
  .hero{ padding-top: 66px; }
  .nav{ top: 66px; height: calc(100vh - 66px); }
}
