/* ---------- reveals: only hidden once JS is confirmed running (html.js), motion.js adds .is-in ---------- */
[data-reveal] { transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.js [data-split]:not(.is-in) .w > span { transform: translateY(105%); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 20px; border-radius: var(--r-btn);
  font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.btn-sm { --h: 36px; padding-inline: 14px; font-size: 14px; }
.btn-primary { background: var(--volt); color: var(--black-900); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: var(--volt-soft); }
.btn-primary:active { background: var(--volt-deep); }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--chip); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .34); }
.paper .btn-ghost { border-color: var(--line-dark); background: transparent; color: var(--ink-dark); }
.paper .btn-ghost:hover { background: rgba(16, 26, 36, .05); }
.btn-dark { background: var(--black-900); color: var(--ink); }
.btn-dark:hover { background: var(--black-800); }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-btn); color: var(--ink); transition: background var(--t-hover); }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 20px; height: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-inline: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--chip); font-size: 14px; color: var(--muted); transition: color var(--t-hover), border-color var(--t-hover); }
.pill:hover { color: var(--ink); border-color: var(--line-strong); }
.pill svg { width: 15px; height: 15px; color: var(--volt); }

/* text links: volt underline sweep */
.link { background: linear-gradient(var(--volt), var(--volt)) no-repeat 0 100% / 0 1px; transition: background-size .25s var(--ease), color var(--t-hover); padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; color: var(--ink); }

/* ---------- labels and headers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .bolt { width: 7px; height: 14px; }
.paper .eyebrow { color: var(--muted-dark); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { font-size: 18px; color: var(--muted); max-width: 60ch; }
.paper .section-head p { color: var(--muted-dark); }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08) 70%, transparent); }
.hairline-volt { background: linear-gradient(90deg, var(--line-volt), transparent); }

/* ---------- spotlight card ---------- */
.card {
  position: relative; display: block; border-radius: var(--r-card); background: var(--black-800); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color var(--t-hover);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(251, 214, 35, .14), transparent 60%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: rgba(6, 10, 18, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-inline-start: 36px; margin-inline-end: auto; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color var(--t-hover); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { background-size: 100% 1px; }
.nav-live { display: inline-flex; align-items: center; gap: 7px; }
.nav-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--volt); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

@media (max-width: 1080px) { .nav-call { display: none; } }
@media (max-width: 820px) {
  .nav-links, .nav-quote { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- mobile menu sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--black-950);
  display: flex; flex-direction: column; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.sheet.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.sheet-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.sheet nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sheet nav a { font: 500 40px/1.15 var(--display); letter-spacing: -.02em; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--t-hover); }
.sheet nav a:hover { color: var(--volt); }
.sheet.is-open nav a { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet nav a { opacity: 1; transform: none; } .sheet:not(.is-open) { display: none; } }
.sheet.is-open nav a:nth-child(2) { transition-delay: .04s; } .sheet.is-open nav a:nth-child(3) { transition-delay: .08s; }
.sheet.is-open nav a:nth-child(4) { transition-delay: .12s; } .sheet.is-open nav a:nth-child(5) { transition-delay: .16s; }
.sheet.is-open nav a:nth-child(6) { transition-delay: .20s; } .sheet.is-open nav a:nth-child(7) { transition-delay: .24s; }
.sheet-foot { display: grid; gap: 10px; }
.sheet-foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab.is-shown::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 1.4s var(--ease) 1 forwards; }
.wa-fab:hover { transform: translateY(-2px); }
@keyframes wa-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* ---------- footer: one quiet line ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-line { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 22px; font-size: 14px; color: var(--muted); }
.footer-line a:hover { color: var(--ink); }

/* ---------- inner page hero ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(48px, 7vw, 104px); margin-block: 20px 24px; max-width: 14ch; }
.page-hero p:not(.eyebrow) { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 62ch; }
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -10vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--line-volt); border-inline-start-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg); opacity: .6;
}
.crumbs { display: flex; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.crumbs a:hover { color: var(--ink); }
.todo-note { border: 1px dashed var(--line-volt); border-radius: var(--r-card); padding: 24px; color: var(--muted); font-size: 15px; }
