/* Bay State Sites — premium build. Vanilla CSS, zero libraries.
   Dark cinematic surface · Space Grotesk display · Inter body
   Scroll-driven animations (CSS animation-timeline) with graceful fallbacks. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/spacegrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05070d;
  --bg-2: #080c15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf5;
  --muted: #96a3b8;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --blue-soft: #60a5fa;
  --grad: linear-gradient(92deg, var(--blue-soft), var(--cyan));
  --display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  interpolate-size: allow-keywords; /* animatable height:auto for <details> */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

a { color: var(--text); }
em { font-style: italic; }
.nowrap { white-space: nowrap; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.4rem; }
.wrap-narrow { max-width: 780px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ================= Loader ================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.7s var(--ease-out), visibility 0s 0.7s;
}
html.loaded .loader { transform: translateY(-100%); visibility: hidden; }
html.skip-loader .loader { display: none; }
.loader-inner { text-align: center; }
.loader-mark { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: 0.14em; color: var(--text); }
.loader-mark span { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: lm-in 0.55s var(--ease-out) forwards; }
.loader-mark .sp { width: 0.5em; }
.loader-mark .lt-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-mark span:nth-child(1) { animation-delay: 0.05s; } .loader-mark span:nth-child(2) { animation-delay: 0.09s; }
.loader-mark span:nth-child(3) { animation-delay: 0.13s; } .loader-mark span:nth-child(5) { animation-delay: 0.17s; }
.loader-mark span:nth-child(6) { animation-delay: 0.21s; } .loader-mark span:nth-child(7) { animation-delay: 0.25s; }
.loader-mark span:nth-child(8) { animation-delay: 0.29s; } .loader-mark span:nth-child(9) { animation-delay: 0.33s; }
.loader-mark span:nth-child(11) { animation-delay: 0.40s; } .loader-mark span:nth-child(12) { animation-delay: 0.44s; }
.loader-mark span:nth-child(13) { animation-delay: 0.48s; } .loader-mark span:nth-child(14) { animation-delay: 0.52s; }
.loader-mark span:nth-child(15) { animation-delay: 0.56s; }
@keyframes lm-in { to { opacity: 1; transform: none; } }
.loader-sub { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 0.9rem; opacity: 0; animation: lm-in 0.5s var(--ease-out) 0.55s forwards; }
.loader-bar { width: min(260px, 60vw); height: 2px; background: var(--line); margin: 1.6rem auto 0; overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform: translateX(-100%); animation: lb-fill 0.9s var(--ease-out) 0.15s forwards; }
@keyframes lb-fill { to { transform: translateX(0); } }

/* ================= Scroll progress ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  display: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ================= Header ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(5, 7, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(5, 7, 13, 0.85); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.wordmark .mark { width: 30px; height: 30px; flex: none; }
.wordmark span { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.wordmark em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: 0.28em; }
.site-nav { display: none; gap: 1.6rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--text); }
.site-header .btn { margin-left: auto; }
@media (min-width: 800px) { .site-nav { display: flex; } .site-header .btn { margin-left: 0; } }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center;
  padding: 0.85rem 1.6rem; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #05070d;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 8px 30px -8px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5), 0 14px 40px -8px rgba(34, 211, 238, 0.5); }
.btn-primary .arrow { transition: transform 0.25s var(--ease-spring); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.4); }
.btn-ghost { background: transparent; color: var(--muted); border: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); text-decoration-color: var(--cyan); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: clip;
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero.shader-on .aurora { display: none; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(90px); opacity: 0.55; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -8%; top: -6%; background: radial-gradient(circle, rgba(59,130,246,0.55), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -6%; top: 8%; background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 32%; bottom: -18%; background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 65%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, 10vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(6vw, -8vh) scale(1.2); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid { display: grid; gap: 3.5rem; align-items: center; width: 100%; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.4rem;
  border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 999px; padding: 0.45rem 1rem;
  background: rgba(34, 211, 238, 0.06);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }

.h1-line { display: block; overflow: hidden; }
.h1-inner { display: inline-block; transform: translateY(115%); }
html.loaded .h1-inner { animation: line-up 0.9s var(--ease-out) forwards; }
html.loaded .h1-line:nth-child(1) .h1-inner { animation-delay: 0.10s; }
html.loaded .h1-line:nth-child(2) .h1-inner { animation-delay: 0.20s; }
html.loaded .h1-line:nth-child(3) .h1-inner { animation-delay: 0.30s; }
html.loaded .h1-line:nth-child(4) .h1-inner { animation-delay: 0.40s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero .lede, .hero .hero-ctas, .hero .hero-stats, .hero .eyebrow {
  opacity: 0; transform: translateY(18px);
}
html.loaded .hero .eyebrow { animation: fade-up 0.8s var(--ease-out) 0.05s forwards; }
html.loaded .hero .lede { animation: fade-up 0.8s var(--ease-out) 0.5s forwards; }
html.loaded .hero .hero-ctas { animation: fade-up 0.8s var(--ease-out) 0.62s forwards; }
html.loaded .hero .hero-stats { animation: fade-up 0.8s var(--ease-out) 0.74s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.lede { font-size: 1.15rem; color: var(--muted); margin: 1.4rem 0 1.9rem; max-width: 33em; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem;
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  max-width: 560px;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; }
.stat-dim { color: var(--muted); font-size: 0.9em; }
.hero-stats dd { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }

/* Hero browser mockup */
.hero-visual { position: relative; }
.mock-float { position: relative; max-width: 460px; margin: 0 auto; }
@supports (animation-timeline: view()) {
  .mock-float {
    animation: mock-parallax linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes mock-parallax { to { transform: translateY(-56px); } }
}
.browser {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--line-strong);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(59, 130, 246, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-out);
  opacity: 0;
}
html.loaded .browser { animation: mock-in 1s var(--ease-out) 0.45s forwards; }
@keyframes mock-in { from { opacity: 0; transform: translateY(34px) rotateX(6deg); } to { opacity: 1; transform: none; } }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-url { margin-left: 10px; font-size: 0.7rem; color: var(--muted); background: rgba(255,255,255,0.05); border-radius: 6px; padding: 3px 10px; letter-spacing: 0.02em; }
.browser-body { background: #f5f4f0; }
.bm-nav { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; }
.bm-logo { width: 60px; height: 10px; border-radius: 3px; background: #1d3a2a; }
.bm-links { display: flex; gap: 6px; margin-left: auto; }
.bm-links i { width: 22px; height: 7px; border-radius: 2px; background: #ddd8cc; }
.bm-cta { width: 52px; height: 16px; border-radius: 4px; background: #c96a2b; }
.bm-hero { background: linear-gradient(150deg, #1d3a2a, #2e6b45); color: #fff; padding: 22px 16px 24px; }
.bm-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; }
.bm-tag { font-size: 0.72rem; opacity: 0.9; margin: 6px 0 13px; }
.bm-btn { display: inline-block; background: #a84e17; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 6px 13px; border-radius: 5px; }
.bm-row { display: flex; gap: 8px; padding: 12px 14px 4px; }
.bm-pic { flex: 1; height: 52px; border-radius: 6px; background: #c9d4c5; }
.bm-pic.p2 { background: #d8cdbb; } .bm-pic.p3 { background: #b9c8cf; }
.bm-stars { padding: 10px 14px 16px; font-size: 0.72rem; color: #b8860b; }
.bm-stars em { color: #6f6a5e; }

.float-chip {
  position: absolute; display: flex; gap: 10px; align-items: center;
  background: #0c1119;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 14px; border-radius: 12px;
  font-size: 0.76rem; line-height: 1.35;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
}
.float-chip strong { display: block; font-size: 0.8rem; }
.float-chip svg { color: var(--cyan); flex: none; }
.chip-call { left: -8%; bottom: 18%; }
.chip-quote { right: -6%; top: 12%; }
html.loaded .chip-call { animation: chip-in 0.7s var(--ease-out) 1.05s forwards, bob 5.5s ease-in-out 1.8s infinite; }
html.loaded .chip-quote { animation: chip-in 0.7s var(--ease-out) 1.25s forwards, bob 6.5s ease-in-out 2s infinite reverse; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ================= Marquee ================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; overflow: clip; background: var(--bg-2); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap; animation: marquee 36s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.marquee-track i { color: var(--cyan); font-style: normal; font-size: 0.7rem; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Sections ================= */
.section { position: relative; padding: 6.5rem 0; }
.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.section-lede { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin-bottom: 3rem; }
.section-lede strong { color: var(--text); }

/* Reveal-on-scroll (JS IntersectionObserver adds .in) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Glow cards (pointer-tracked radial highlight) */
.glow-card { position: relative; overflow: hidden; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* ================= Benefits bento ================= */
.benefits {
  background-image: url("/assets/contours.svg");
  background-repeat: no-repeat;
  background-position: right -220px top -160px;
  background-size: 900px;
}
.casestudy {
  background-image: url("/assets/contours.svg");
  background-repeat: no-repeat;
  background-position: left -420px bottom -320px;
  background-size: 1000px;
}
.bento { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .bento { grid-template-columns: 1fr 1fr; } }
.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.bento-card:hover { border-color: rgba(96, 165, 250, 0.4); transform: translateY(-4px); }
.bc-num { font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 1.1rem; }
.bento-card p { color: var(--muted); font-size: 0.98rem; }
.bento-card h3 { color: var(--text); }

/* ================= Pricing ================= */
.pricing { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.plans { display: grid; gap: 1.4rem; margin-bottom: 2rem; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 1.9rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, rgba(96,165,250,0.7), rgba(34,211,238,0.7)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(59, 130, 246, 0.35);
}
.plan header { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.plan h3 { font-size: 1.5rem; }
.price { margin-top: 0.5rem; display: flex; align-items: baseline; gap: 0.4rem; }
.price .amount { font-family: var(--display); font-size: 3.4rem; font-weight: 700; letter-spacing: -0.03em; }
.price .per { font-size: 1.05rem; color: var(--muted); }
.setup { font-size: 0.94rem; color: var(--muted); margin-top: 0.2rem; }
.plan-note { font-size: 0.97rem; color: var(--muted); }
.plan-fineprint { font-size: 0.86rem; color: var(--muted); }
.badge {
  align-self: flex-start;
  background: var(--grad); color: #05070d;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.badge-alt { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.plan .btn { margin-top: auto; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li { padding-left: 1.8em; position: relative; font-size: 0.97rem; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.24em; width: 1.05em; height: 1.05em;
  background: var(--grad);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

.guarantee {
  display: grid; gap: 1.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px; padding: 2rem 1.8rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 820px) { .guarantee { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; } }
.g-head { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: 0.25rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-item p:not(.g-head) { font-size: 0.93rem; color: var(--muted); }

.fineprint { font-size: 0.87rem; color: var(--muted); max-width: 54em; }

/* ================= Case study ================= */
.cs-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 920px) { .cs-grid { grid-template-columns: 0.95fr 1.05fr; } }
.cs-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ba figcaption { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }
.cs-shot { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line-strong); }
.cap-note { color: rgba(150,163,184,0.7); }
.ph {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 0.85rem; font-weight: 500; padding: 1rem;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1rem; text-align: center; }
.stat-num { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-top: 0.3rem; }
.pull-quote { border-left: 2px solid; border-image: linear-gradient(180deg, var(--blue-soft), var(--cyan)) 1; padding: 0.3rem 0 0.3rem 1.4rem; margin-bottom: 1.5rem; }
.pull-quote p { font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.45; margin-bottom: 0.6rem; }
.pull-quote cite { font-style: normal; font-size: 0.92rem; color: var(--muted); }
.ref-note { font-size: 0.96rem; color: var(--text); font-weight: 500; }

/* ================= Demos ================= */
.demo-grid { display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .demo-grid { grid-template-columns: repeat(3, 1fr); } }
.demo-card {
  display: block; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.demo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 50px -20px rgba(59, 130, 246, 0.4);
}
.demo-thumb { aspect-ratio: 16 / 10; position: relative; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; }
.thumb-land { background: linear-gradient(155deg, #16301f, #2e6b45); }
.thumb-plumb { background: linear-gradient(155deg, #10263a, #2563eb); }
.thumb-paint { background: linear-gradient(155deg, #3a1d10, #c2622a); }
.dt-band { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: rgba(255, 255, 255, 0.18); }
.dt-title { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.05rem; line-height: 1.25; letter-spacing: 0.03em; }
.dt-btn { width: 86px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.demo-meta { padding: 1rem 1.2rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.demo-name { font-weight: 600; color: var(--text); }
.demo-trade { font-size: 0.85rem; color: var(--muted); }
.demo-arrow { font-size: 1.2rem; color: var(--cyan); transition: transform 0.25s var(--ease-spring); }
.demo-card:hover .demo-arrow { transform: translateX(5px); }

/* ================= Steps ================= */
.how { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.steps { list-style: none; display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.7rem; transition: border-color 0.3s ease, transform 0.3s var(--ease-out); }
.step:hover { border-color: rgba(96, 165, 250, 0.4); transform: translateY(-4px); }
.step-num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.step-head { font-family: var(--display); font-weight: 700; font-size: 1.22rem; margin-bottom: 0.5rem; }
.step p:not(.step-head):not(.step-num) { font-size: 0.96rem; color: var(--muted); }

/* ================= FAQ ================= */
.faq-list details {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  margin-bottom: 0.8rem; overflow: clip;
  transition: border-color 0.3s ease;
}
.faq-list details:hover, .faq-list details[open] { border-color: rgba(96, 165, 250, 0.35); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 12px; height: 12px; translate: 0 -50%;
  background: linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
              linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat;
  transition: rotate 0.35s var(--ease-out);
}
.faq-list details[open] summary::after { rotate: 135deg; }
.faq-list details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }
.faq-a { padding: 0 1.4rem 1.25rem; }
.faq-a p { color: var(--muted); font-size: 0.98rem; }
.faq-a em { color: var(--text); }

/* ================= Intake ================= */
.start { position: relative; overflow: clip; padding-bottom: 7.5rem; }
.start-glow {
  position: absolute; left: 50%; bottom: -40%; translate: -50% 0;
  width: 900px; height: 600px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18), transparent 60%);
  filter: blur(40px);
}
#intake {
  display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.2rem 1.9rem;
}
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: rgba(150, 163, 184, 0.55); }
.field select { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%2396a3b8" stroke-width="2" fill="none"/></svg>'); background-repeat: no-repeat; background-position: right 1rem center; }
.field select:invalid { color: rgba(150, 163, 184, 0.75); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  background: rgba(255, 255, 255, 0.07);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 500; }
.form-msg.ok { color: #6ee7a0; }
.form-msg.err { color: #fda4a4; }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 3rem; background: var(--bg-2); overflow: clip; }
.footer-big {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: 0.95;
  opacity: 0.16; margin-bottom: 2.5rem; white-space: nowrap;
}
.footer-grid { display: grid; gap: 2rem; font-size: 0.93rem; color: var(--muted); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1.2fr; } }
.footer-head { color: var(--text); font-weight: 600; margin-bottom: 0.3rem; }
.footer-email a { color: var(--cyan); text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.site-footer nav a:hover { color: var(--text); }
.footer-legal { align-self: end; }
.footer-credit { margin-top: 0.5rem; color: rgba(150, 163, 184, 0.65); font-style: italic; }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
  .h1-inner, .hero .lede, .hero .hero-ctas, .hero .hero-stats, .hero .eyebrow, .browser, .float-chip { opacity: 1 !important; transform: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
