:root {
  --bg: #faf5ee;
  --bg-2: #f2e9dd;
  --card: #ffffff;
  --ink: #1c130d;
  --muted: #6b5d52;
  --line: #e6d9c9;
  --accent: #ff6a2b;
  --accent-2: #ffb347;
  --accent-ink: #1b0d05;
  --dark: #120d0a;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.035em; text-decoration: none; }
.logo img { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,245,238,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(60,30,10,.35); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 16.5px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s, background .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -12px rgba(255,106,43,.75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(255,106,43,.85); }
/* light sweep across the primary button */
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s 2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-sm.btn-primary::after { display: none; }
.trigger { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.trigger span { display: inline-flex; align-items: center; gap: 6px; }
.trigger span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #2fa36b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.wa[hidden] { display: none; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1, h2 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h2 { margin: 12px 0 14px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.section-lead { font-size: 18.5px; color: var(--muted); max-width: 36em; margin: 0; }
section { position: relative; padding: 96px 0; }

/* ---------- Device frames ---------- */
.phone { position: relative; width: 320px; aspect-ratio: 390 / 844; border-radius: 50px; padding: 11px; background: linear-gradient(145deg, #2a1d15, var(--dark) 40%); box-shadow: 0 60px 100px -40px rgba(60,30,10,.55), 0 0 0 1.5px #3a2a20 inset, 0 0 0 7px rgba(255,255,255,.04); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 21px; left: 50%; width: 88px; height: 24px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #0d0b0a; }
.screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #0d0b0a; }

.browser { border-radius: 16px; background: #fff; box-shadow: 0 50px 90px -40px rgba(60,30,10,.45), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f3ece3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2d4c3; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { flex: 1; margin-left: 14px; padding: 4px 12px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .screen { border-radius: 0; aspect-ratio: 1280 / 800; height: auto; }

/* ---------- QR ---------- */
.qr { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 12px; position: relative; overflow: hidden; }
.qr svg { display: block; width: 100%; height: auto; }
.qr.is-scanning::after { content: ""; position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 16px 4px rgba(255,106,43,.55); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
footer { padding: 30px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
footer .logo { font-size: 18px; }
footer .logo img { width: 26px; height: 26px; }

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; padding: 9px 14px; font-size: 13.5px; box-shadow: none; }
  .logo { font-size: 20px; }
  .logo img { width: 30px; height: 30px; }
  section { padding: 68px 0; }
  .btn { padding: 15px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
