/* ============================================================
   BEEST ENERGY — DESIGN A: "PREMIUM DARK"
   Cinematic, luxury, product-as-hero. Cinzel display + Inter.
   Consumes colour tokens from themes.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* shared african geometric pattern as data-uri (uses accent via mask trick fallback to gold) */
:root { --d1-pat: #d4af37; }

.section { position: relative; padding: clamp(70px, 10vw, 140px) 0; }
.section__inner { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
  position: relative; padding-left: 30px;
}
.eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 20px; height: 1px;
  background: var(--accent);
}

h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; line-height: 1.04; margin: 0; font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 em { font-style: normal; color: var(--accent); }

p { margin: 0 0 1rem; color: var(--text-muted); }

/* ---------- BUTTONS ---------- */
.btn {
  --pad: 15px 30px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: var(--pad);
  border-radius: 999px; font-weight: 600; font-size: .92rem;
  letter-spacing: .03em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 10px 30px var(--glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px var(--glow); }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--nav { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 10px 20px; font-size: .82rem; }
.btn--nav:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0); transform-origin: 0 50%; z-index: 1000;
}

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 900; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { width: min(1180px, 92vw); margin: 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__logo { height: 42px; width: auto; display: block; }
.footer__logo { height: 116px; width: auto; display: block; margin-bottom: 14px; }
.brand__text { font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.4rem; letter-spacing: .08em; color: var(--text); display: inline-flex; flex-direction: column; line-height: .9; }
.brand__text small { font-size: .5rem; letter-spacing: .5em; color: var(--accent); font-weight: 600; margin-left: 2px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { text-decoration: none; color: var(--text-muted); font-size: .9rem; font-weight: 500; position: relative; transition: color .2s; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav__links a:hover { color: var(--text); } .nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--accent); transition: .3s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; }
.hero__pattern {
  position: absolute; inset: -10% 0 0 0; opacity: .14; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--accent) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 26px);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
.hero__glow { position: absolute; top: 20%; right: -5%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--glow), transparent 60%); filter: blur(20px); pointer-events: none; }
.hero__inner { width: min(1180px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; position: relative; z-index: 2; }
.hero__title { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 800; letter-spacing: .02em; }
.hero__title-accent { color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 40px var(--glow); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin: 24px 0 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; margin-top: 52px; }
.stat b { display: block; font-family: 'Cinzel', serif; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

.hero__product { position: relative; display: grid; place-items: center; }
.hero__product-halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(.95); opacity:.8; } 50%{ transform: scale(1.05); opacity:1; } }
.hero__can { width: min(440px, 80%); filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-1deg); } 50%{ transform: translateY(-18px) rotate(1deg); } }
.hero__badge { position: absolute; top: 8%; right: 6%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .76rem; letter-spacing: .12em; padding: 8px 14px; border-radius: 999px; z-index: 3; box-shadow: 0 8px 20px var(--glow); }

/* can fallback */
.img-fallback { background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px dashed var(--line); border-radius: 18px; min-height: 320px; width: min(360px, 80%); display: grid; place-items: center; color: var(--text-muted); font-size: .8rem; padding: 20px; text-align: center; aspect-ratio: 1/2.4; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scroll-cue span { width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0%{ opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{ opacity:0; transform: translate(-50%,12px);} }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--accent); color: var(--on-accent); overflow: hidden; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--on-accent) 20%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--on-accent) 20%, transparent); }
.marquee__track { display: inline-flex; gap: 30px; align-items: center; white-space: nowrap; animation: marquee 28s linear infinite; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .16em; font-size: 1.1rem; }
.marquee i { opacity: .6; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- STORY ---------- */
.story__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.story__pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.story__pills li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .82rem; color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.story__card { position: relative; padding: 46px 40px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.story__card-glyph { position: absolute; top: 20px; right: 28px; font-size: 2rem; color: var(--accent); opacity: .5; }
.story__card blockquote { margin: 0; font-family: 'Cinzel', serif; font-size: 1.5rem; line-height: 1.3; color: var(--text); }
.story__card cite { display: block; margin-top: 20px; font-style: normal; color: var(--accent); font-size: .86rem; letter-spacing: .08em; }

/* ---------- PRODUCT ---------- */
.product { background: var(--bg-2); }
.product__pattern { position: absolute; inset: 0; opacity: .06; background-image: repeating-linear-gradient(0deg, var(--accent) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 40px); pointer-events: none; }
.product__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.product__stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.product__ring { position: absolute; width: 420px; height: 420px; max-width: 88%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 30px color-mix(in srgb, var(--accent) 5%, transparent); }
.product__ring::after { content: ''; position: absolute; inset: -50px; border-radius: 50%; border: 1px dashed var(--line); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.product__img { width: min(300px, 70%); position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.feature { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature__icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.feature h3 { font-family: 'Inter', sans-serif; font-size: 1.06rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feature p { font-size: .88rem; margin: 0; }

/* ---------- AFRICA ---------- */
.africa { overflow: hidden; }
.africa__pattern { position: absolute; right: -10%; top: -10%; width: 600px; height: 600px; opacity: .1; background-image: repeating-conic-gradient(from 0deg, var(--accent) 0deg 6deg, transparent 6deg 18deg); border-radius: 50%; pointer-events: none; }
.africa__head { max-width: 760px; margin-bottom: 50px; }
.africa__head p { font-size: 1.08rem; }
.africa__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.afcard { padding: 34px 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(165deg, var(--surface), var(--bg-2)); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.afcard:hover { transform: translateY(-8px); border-color: var(--accent); }
.afcard__no { font-family: 'Cinzel', serif; font-size: 2.4rem; color: var(--accent); opacity: .3; display: block; margin-bottom: 14px; }
.afcard h3 { font-family: 'Inter', sans-serif; font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }
.afcard p { font-size: .9rem; margin: 0; }

/* ---------- FOUNDERS ---------- */
.founders { background: var(--bg-2); }
.founders__head { max-width: 720px; margin-bottom: 54px; }
.founders__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.founder { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .3s, box-shadow .3s; }
.founder:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.founder__photo { position: relative; aspect-ratio: 4/4.4; background: linear-gradient(160deg, var(--bg-2), var(--surface)); overflow: hidden; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo img.img-fallback { aspect-ratio: auto; width: 100%; height: 100%; min-height: 0; border: none; border-radius: 0; }
.founder__photo::after { content: attr(data-flag); position: absolute; top: 16px; left: 16px; font-size: 1.6rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.founder__photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 80%, transparent), transparent 50%); z-index: 1; }
.founder__body { padding: 26px; }
.founder__origin { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.founder__body h3 { font-size: 1.4rem; margin: 8px 0 10px; color: var(--text); }
.founder__body p { font-size: .9rem; margin: 0; }
.founders__note { text-align: center; margin-top: 46px; font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--text); }

/* ---------- VISION ---------- */
.vision { text-align: center; overflow: hidden; }
.vision__pattern { position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(45deg, var(--accent) 0 2px, transparent 2px 30px); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); pointer-events: none; }
.vision__kicker { color: var(--accent); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; margin-bottom: 30px; }
.vision__statement { font-size: clamp(1.6rem, 5vw, 3.4rem); line-height: 1.18; display: flex; flex-direction: column; gap: 4px; }
.vision__statement span { display: block; }
.vision__hl { color: var(--accent); }

/* ---------- JOIN ---------- */
.join { background: linear-gradient(160deg, var(--surface), var(--bg-2)); text-align: center; }
.join__inner { max-width: 640px; margin: 0 auto; }
.join h2 { margin-bottom: 14px; }
.join__form { display: flex; gap: 12px; margin: 28px auto 0; max-width: 480px; }
.join__form input { flex: 1; padding: 15px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: .95rem; }
.join__form input:focus { outline: none; border-color: var(--accent); }
.join__msg { margin-top: 16px; font-size: .9rem; min-height: 1.2em; }
.join__msg.is-ok { color: var(--accent); }
.join__msg.is-err { color: #ff6b6b; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin-top: 14px; max-width: 32ch; font-size: .9rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.footer__cols a { display: block; text-decoration: none; color: var(--text-muted); font-size: .9rem; margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bar { width: min(1180px, 92vw); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bar p { margin: 0; font-size: .8rem; color: var(--text-muted); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__can, .hero__product-halo, .product__ring::after, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero__inner, .story__inner, .product__inner { grid-template-columns: 1fr; }
  .hero__product { order: -1; }
  .hero__can { width: min(320px, 64%); }
  .africa__grid { grid-template-columns: 1fr 1fr; }
  .founders__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .btn--nav { display: none; }
  .nav.menu-open .nav__links { display: flex; position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(14px); font-size: 1.3rem; }
  .nav__burger { display: flex; }
  .nav.menu-open .nav__burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .features { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .join__form { flex-direction: column; }
}
@media (max-width: 480px) { .africa__grid { grid-template-columns: 1fr; } }

/* ---------- SCENE IMAGES (hero.png / stone.png — images with their own background) ---------- */
.is-scene {
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 80px var(--glow);
  filter: none;
  aspect-ratio: auto;
}
.hero__can.is-scene { width: min(500px, 94%); }
.product__img.is-scene { width: min(300px, 60%); }
@media (max-width: 980px) {
  .hero__can.is-scene { width: min(440px, 82%); }
  .product__img.is-scene { width: min(300px, 66%); }
}
