:root {
  --bg: #131516;
  --bg-2: #1b1e1f;
  --fg: #e4e8e5;
  --muted: #8a938e;
  --line: rgba(228, 232, 229, 0.14);
  --accent: #8ef5c4;
  --accent-dim: rgba(142, 245, 196, 0.14);
  --f-display: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --f-mono: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --f-body: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  margin: 0 0 1.4rem;
  color: var(--accent);
}
.display--xl { font-size: clamp(2.3rem, 5.4vw, 5.4rem); }
.mono, .eyebrow, .chips li, .tag, .link-mono, .header, .bar-foot, .pill, summary {
  font-family: var(--f-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.accent { color: var(--accent); }
.eyebrow { color: var(--muted); margin: 0 0 1rem; }
.lede { font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 34rem; color: #c8cfca; margin: 0 0 1.6rem; }

/* ---------- Preloader / gate ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(19,21,22,0.2), rgba(19,21,22,0.92) 70%);
  transition: opacity 1s var(--ease), visibility 1s;
}
.preloader.is-loading { background: var(--bg); }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__stage { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 0 var(--gutter); }
.wordmark { font-family: var(--f-body); font-weight: 600; letter-spacing: 0.18em; margin: 0 0 24px; font-size: 14px; }
.preloader__load { display: grid; gap: 10px; justify-items: center; }
.bar { width: 180px; height: 6px; border: 1px solid var(--accent); padding: 1px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preloader__gate { display: grid; justify-items: center; gap: 14px; animation: rise 1s var(--ease) both; }
.preloader__gate[hidden], .preloader__load[hidden] { display: none; }
.preloader__gate .display { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.2rem; }
.gate__copy { max-width: 22rem; margin: 0 0 12px; font-size: 14px; color: #c8cfca; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-mark--xl { width: 64px; height: 64px; }

/* ---------- Canvas + grain ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-3%,2%); } 66% { transform: translate(2%,-3%); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-weight: 600; letter-spacing: 0.16em; font-size: 13px; }
.header__links { display: flex; gap: 8px; align-items: center; padding-top: 8px; }
.header__links a:hover { color: var(--accent); }
.index { display: flex; gap: 8px; margin-left: auto; margin-right: 28px; }
.index button {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--f-mono); font-size: 9px; line-height: 20px; text-align: center;
  transform: translateY(var(--arc, 0px));
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.index button:hover, .index button.is-active { background: var(--accent); color: var(--bg); }
.index button span {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  color: var(--accent); font-size: 9px; white-space: nowrap; letter-spacing: 0.1em;
  opacity: 0; transition: opacity 0.4s;
}
.index button.is-active span { opacity: 1; }

/* ---------- Panels ---------- */
main { position: relative; z-index: 2; }
main, .header, .bar-foot, .wa { transition: opacity 1.2s var(--ease) 0.2s; }
.is-locked main, .is-locked .header, .is-locked .bar-foot, .is-locked .wa { opacity: 0; pointer-events: none; }
.panel {
  position: relative;
  min-height: 130svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter);
}
.panel--hero { min-height: 100svh; }
.panel__inner { position: relative; width: min(560px, 100%); }
.panel__inner::before {
  content: ""; position: absolute; inset: -80px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 35% 55%, rgba(19,21,22,0.78), rgba(19,21,22,0) 70%);
}
.panel--center .panel__inner::before { background: radial-gradient(ellipse at center, rgba(19,21,22,0.55), rgba(19,21,22,0) 65%); }
.panel--center { justify-content: center; text-align: center; }
.panel--center .panel__inner { width: min(1100px, 100%); display: grid; justify-items: center; }
.panel--center .lede { margin-inline: auto; }
.panel--wide .panel__inner { width: min(1120px, 100%); }
.panel--left .panel__inner { margin-left: clamp(0px, 4vw, 60px); }

.badge {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 18px;
  border: 1px solid var(--accent); border-radius: 50%;
  font-family: var(--f-mono); font-size: 10px; color: var(--accent);
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 2rem; }
.chips li { border: 1px solid var(--line); padding: 7px 10px; color: #c8cfca; background: rgba(19,21,22,0.5); backdrop-filter: blur(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; background: rgba(19,21,22,0.55); backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.pill__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-dim); }
.pill__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover, .pill--solid { background: var(--accent); color: var(--bg); }
.pill:hover .pill__icon, .pill--solid .pill__icon { background: rgba(19,21,22,0.14); }
.pill--solid:hover { background: transparent; color: var(--accent); }
.link-mono { color: var(--muted); margin-top: 14px; }
.link-mono:hover { color: var(--accent); }

.tag { position: absolute; left: var(--x); top: var(--y); color: #cfd6d1; font-size: 9px; pointer-events: none; }
.tag::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); vertical-align: middle; }

.eco-strip {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px;
  list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.eco-strip a:hover { color: var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: rgba(19,21,22,0.82); backdrop-filter: blur(6px); padding: 26px 22px 30px; }
.steps h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 500; letter-spacing: -0.02em; font-size: 1.6rem; margin: 18px 0 8px; }
.steps p { margin: 0; color: #b9c1bc; font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); background: rgba(19,21,22,0.6); backdrop-filter: blur(4px); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 12px; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0; padding: 0 0 24px; color: #c1c9c4; max-width: 40rem; }

/* Footer bar */
.bar-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  color: var(--muted);
  background: linear-gradient(to top, rgba(19,21,22,0.9), transparent);
}
.bar-foot__current { color: var(--accent); }
.bar-foot__right { display: flex; align-items: center; gap: 16px; }
.progress { width: 70px; height: 1px; background: var(--line); position: relative; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.sound {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.sound span { width: 2px; height: 3px; background: var(--muted); border-radius: 1px; transition: background 0.3s; }
.sound[aria-pressed="true"] { border-color: var(--accent); }
.sound[aria-pressed="true"] span { background: var(--accent); animation: eq 1s ease-in-out infinite; }
.sound span:nth-child(2) { animation-delay: -0.2s !important; }
.sound span:nth-child(3) { animation-delay: -0.5s !important; }
.sound span:nth-child(4) { animation-delay: -0.1s !important; }
.sound span:nth-child(5) { animation-delay: -0.7s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* WhatsApp */
.wa {
  position: fixed; right: var(--gutter); bottom: 124px; z-index: 21;
  display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px;
  border-radius: 999px; border: 1px solid rgba(142, 245, 196, 0.26);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 60%), rgba(19, 21, 22, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transition: opacity 1.2s var(--ease) 0.2s, transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.wa:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 44px -18px rgba(0, 0, 0, 0.9), 0 0 28px -6px rgba(142, 245, 196, 0.45); }
.wa__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--bg); }
.wa__icon svg { width: 20px; height: 20px; fill: currentColor; }
.wa__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: wa-ping 2.8s var(--ease) infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa__text { display: grid; gap: 3px; line-height: 1; }
.wa__text small { font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.wa__text b { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.panel__inner > .reveal:nth-child(2) { transition-delay: 0.06s; }
.panel__inner > .reveal:nth-child(3) { transition-delay: 0.12s; }
.panel__inner > .reveal:nth-child(4) { transition-delay: 0.18s; }
.panel__inner > .reveal:nth-child(5) { transition-delay: 0.24s; }
.steps li:nth-child(2) { transition-delay: 0.08s; }
.steps li:nth-child(3) { transition-delay: 0.16s; }
.steps li:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .index { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .panel { min-height: 110svh; padding: 110px var(--gutter) 120px; align-items: flex-end; }
  .panel--hero { align-items: center; }
  .panel--left .panel__inner, .panel--wide .panel__inner { margin: 0; }
  .panel__inner::before { inset: -30px -16px; background: radial-gradient(ellipse at 40% 60%, rgba(19,21,22,0.85), rgba(19,21,22,0) 75%); }
  .tag { display: none; }
  .eco-strip { display: none; }
  .steps { grid-template-columns: 1fr; }
  .bar-foot > .mono:first-child, .bar-foot__right > .mono { display: none; }
  .header__links { padding-top: 6px; }
  .wa { bottom: 64px; padding: 5px; }
  .wa__icon { width: 46px; height: 46px; }
  .wa__icon svg { width: 22px; height: 22px; }
  .wa__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
