/* ==========================================================================
   QA-Report — CMM Inspection Software landing page
   "Precision instrument" design system: blueprint atmosphere, dimension-line
   dividers, mono technical labels, tolerance-check motifs.
   Shares the visual language of /free-drawing-ballooning-tool.
   ========================================================================== */

:root {
  --bg: 220 22% 10%;
  --bg-deep: 222 26% 7%;
  --card: 220 18% 14%;
  --card-2: 220 18% 16%;
  --muted: 220 16% 20%;
  --fg: 210 20% 98%;
  --mut-fg: 218 11% 68%;
  --primary: 210 100% 55%;
  --accent: 195 100% 50%;
  --green: 152 60% 48%;
  --rose: 350 85% 60%;
  --purple: 265 85% 68%;
  --border: 220 16% 22%;

  --font-sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --radius: 14px;
  --maxw: 76rem;
}

/* ---------------------------------------------------------------- base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: hsl(var(--bg-deep));
  color: hsl(var(--fg));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: hsl(var(--accent)); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: hsl(var(--primary) / 0.4); }

/* mono technical label — reused everywhere */
.hero-eyebrow, .cta-eyebrow, .dim-label, .breadcrumb, .compat-label,
.compat-strip ul li, .step-num, .tol-status, .footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------ page backdrop */
.page-bg {
  position: relative;
  background-color: hsl(var(--bg));
  background-image:
    linear-gradient(to right, hsl(216 30% 60% / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(216 30% 60% / 0.055) 1px, transparent 1px),
    linear-gradient(to right, hsl(216 30% 60% / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(216 30% 60% / 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  overflow-x: clip;
}
.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.page-bg::before {
  top: -160px; left: 12%;
  width: 820px; height: 540px;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.16), transparent 65%);
}
.page-bg::after {
  top: 700px; right: -240px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, hsl(var(--accent) / 0.07), transparent 65%);
}

.landing {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px 110px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15px; line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.3,1.1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(202 100% 48%));
  color: #fff;
  box-shadow: 0 12px 28px -10px hsl(var(--primary) / 0.65),
              inset 0 1px 0 hsl(0 0% 100% / 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px hsl(var(--primary) / 0.8),
              inset 0 1px 0 hsl(0 0% 100% / 0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border-color: hsl(var(--border));
  color: hsl(var(--fg));
  background: hsl(var(--card) / 0.5);
}
.btn-ghost:hover { border-color: hsl(var(--accent) / 0.6); color: hsl(var(--accent)); transform: translateY(-2px); }

.btn-light { background: #fff; color: hsl(222 47% 16%); box-shadow: 0 14px 30px -10px hsl(220 30% 4% / 0.5); }
.btn-light:hover { transform: translateY(-2px); background: hsl(210 40% 96%); }
.btn-ghost-light { border-color: hsl(0 0% 100% / 0.55); color: #fff; }
.btn-ghost-light:hover { background: hsl(0 0% 100% / 0.12); border-color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 17px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------------------------------------------------------------- NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--bg-deep) / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: hsl(var(--fg)); }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a, .nav-trigger {
  color: hsl(var(--mut-fg)); font-size: 14.5px; font-weight: 600;
  font-family: var(--font-sans);
  background: transparent; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-links > a:hover, .nav-trigger:hover,
.nav-item-dropdown:hover .nav-trigger,
.nav-item-dropdown:focus-within .nav-trigger { color: hsl(var(--fg)); }

.nav-item-dropdown { position: relative; }
.nav-caret { transition: transform .2s; }
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: -10px; min-width: 290px;
  display: flex; flex-direction: column; gap: 2px;
  background: hsl(var(--card-2) / 0.97);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 8px;
  box-shadow: 0 28px 50px -18px hsl(220 30% 3% / 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown-panel a { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 10px; transition: background .15s; }
.nav-dropdown-panel a:hover { background: hsl(var(--primary) / 0.1); }
.nav-dd-title { color: hsl(var(--fg)); font-size: 14.5px; font-weight: 700; }
.nav-dd-desc { color: hsl(var(--mut-fg)); font-size: 13px; line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { color: hsl(var(--fg)); font-weight: 600; font-size: 14.5px; padding: 0 6px; }

.nav-mobile { display: none; position: static; }
.nav-mobile > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: hsl(var(--fg)); }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:hover { background: hsl(var(--muted) / 0.6); }
.nav-mobile .ic-close { display: none; }
.nav-mobile[open] > summary .ic-menu { display: none; }
.nav-mobile[open] > summary .ic-close { display: inline; }
.nav-mobile-panel {
  position: fixed; top: 66px; left: 0; right: 0;
  background: hsl(var(--bg-deep) / 0.98);
  border-bottom: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; padding: 8px 28px 22px;
  box-shadow: 0 30px 50px -20px hsl(220 30% 3% / 0.9);
}
.nav-mobile-panel a:not(.btn) { padding: 14px 4px; color: hsl(var(--mut-fg)); font-weight: 600; font-size: 16px; border-bottom: 1px solid hsl(var(--border) / 0.5); }
.nav-mobile-panel a:not(.btn):hover { color: hsl(var(--fg)); }
.nav-mobile-panel .nav-mobile-signin { color: hsl(var(--fg)); }
.nav-mobile-panel .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- HERO */
.breadcrumb { color: hsl(var(--mut-fg) / 0.55); margin-bottom: 30px; }
.breadcrumb a { color: hsl(var(--mut-fg) / 0.75); transition: color .2s; }
.breadcrumb a:hover { color: hsl(var(--fg)); }
.bc-sep { margin: 0 10px; }

.hero { padding-top: 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.07);
  border: 1px solid hsl(var(--accent) / 0.3);
  border-radius: 999px;
  padding: 9px 18px;
}
.pulse-dot { position: relative; width: 8px; height: 8px; flex: 0 0 auto; }
.pulse-dot::before, .pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: hsl(var(--accent));
}
.pulse-dot::before { opacity: .7; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 26px 0 0;
}
.hero h1 .accent {
  background: linear-gradient(100deg, hsl(var(--primary)) 10%, hsl(var(--accent)) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: hsl(var(--mut-fg));
  line-height: 1.75;
  margin: 22px 0 0;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.benefits {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 36px 0 0; padding: 0;
  max-width: 34rem;
}
.benefits li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14.5px; font-weight: 600; color: hsl(var(--fg));
}
.benefits li svg { width: 19px; height: 19px; color: hsl(var(--accent)); flex: 0 0 auto; }

/* report preview + floating tolerance chips */
.hero-visual { position: relative; }
.device-report {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.35);
  box-shadow: 0 40px 80px -30px hsl(220 30% 3% / 0.9),
              0 0 0 1px hsl(var(--primary) / 0.08),
              0 0 80px -24px hsl(var(--primary) / 0.35);
  transition: transform .35s, box-shadow .35s;
}
.device-report:hover {
  transform: translateY(-5px);
  box-shadow: 0 50px 90px -30px hsl(220 30% 3% / 0.95),
              0 0 0 1px hsl(var(--primary) / 0.18),
              0 0 100px -20px hsl(var(--primary) / 0.5);
}
.device-report img { width: 100%; display: block; }
.pdf-hint {
  position: absolute; bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: hsl(var(--bg-deep) / 0.88);
  backdrop-filter: blur(8px);
  color: hsl(var(--fg));
  border: 1px solid hsl(var(--border));
  padding: 9px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
}
.pdf-hint svg { width: 15px; height: 15px; color: hsl(var(--accent)); }

/* fiducial corner crosshairs */
.fid { position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none; }
.fid::before, .fid::after { content: ""; position: absolute; background: hsl(var(--accent) / 0.6); }
.fid::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.fid::after { top: 50%; left: 0; height: 1.5px; width: 100%; transform: translateY(-50%); }
.fid-tl { top: 10px; left: 10px; }
.fid-tr { top: 10px; right: 10px; }
.fid-bl { bottom: 10px; left: 10px; }
.fid-br { bottom: 10px; right: 10px; }

/* floating tolerance-check chips */
.tol-chip {
  position: absolute;
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 15px;
  border-radius: 12px;
  background: hsl(var(--card-2) / 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 20px 40px -16px hsl(220 30% 3% / 0.9);
  animation: chip-float 6s ease-in-out infinite;
}
.tol-status { letter-spacing: 0.12em; font-size: 11px; }
.tol-data {
  font-family: var(--font-mono);
  font-size: 12.5px; color: hsl(var(--mut-fg));
  white-space: nowrap;
}
.tol-data strong { color: hsl(var(--fg)); font-weight: 700; }
.tol-pass { top: -22px; left: -34px; border-color: hsl(var(--green) / 0.5); }
.tol-pass .tol-status { color: hsl(var(--green)); }
.tol-fail { bottom: 56px; left: -48px; border-color: hsl(var(--rose) / 0.5); animation-delay: 1.6s; }
.tol-fail .tol-status { color: hsl(var(--rose)); }
.tol-fail .tol-data strong { color: hsl(var(--rose)); }
.tol-bonus { top: 34%; right: -30px; border-color: hsl(var(--purple) / 0.5); animation-delay: 3.2s; }
.tol-bonus .tol-status { color: hsl(var(--purple)); }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* compatibility strip */
.compat-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;
  margin-top: 52px;
  padding: 18px 26px;
  border-radius: 14px;
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--card) / 0.4);
}
.compat-label { color: hsl(var(--mut-fg) / 0.6); letter-spacing: 0.22em; }
.compat-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.compat-strip ul li {
  color: hsl(var(--mut-fg));
  letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 9px;
}
.compat-strip ul li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

/* ------------------------------------------- dimension-line dividers */
.dim-divider {
  display: flex; align-items: center; gap: 18px;
  margin: 14px 0 -10px;
}
.dim-divider::before, .dim-divider::after {
  content: ""; flex: 1;
  border-top: 1px dashed hsl(var(--border));
}
.dim-tick { width: 1px; height: 14px; background: hsl(var(--mut-fg) / 0.5); flex: 0 0 auto; }
.dim-label { color: hsl(var(--mut-fg) / 0.75); white-space: nowrap; }

/* ------------------------------------------------------ section head */
.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 44px;
}
.section-head h2, .faq > h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: hsl(var(--fg));
  line-height: 1.12;
}
.section-head p {
  font-size: 17px;
  color: hsl(var(--mut-fg));
  margin-top: 14px;
  line-height: 1.65;
}
.grad {
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- PAIN */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  position: relative;
  background: hsl(var(--card) / 0.75);
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 26px 26px 24px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pain-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, hsl(var(--rose)), hsl(var(--rose) / 0.2));
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--rose) / 0.45);
  box-shadow: 0 24px 48px -24px hsl(220 30% 3% / 0.9);
}
.pain-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: hsl(var(--rose));
  background: hsl(var(--rose) / 0.1);
  border: 1px solid hsl(var(--rose) / 0.35);
  margin-bottom: 16px;
}
.pain-icon svg { width: 21px; height: 21px; }
.pain-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: hsl(var(--fg)); margin-bottom: 9px; }
.pain-card p { font-size: 14.5px; color: hsl(var(--mut-fg)); line-height: 1.6; }

/* --------------------------------------------------------------- STEPS */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.step {
  position: relative;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.07), hsl(var(--card) / 0.75) 55%);
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 28px 26px 24px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 26px 50px -26px hsl(var(--primary) / 0.45);
}
.step-num {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px;
  color: hsl(var(--accent) / 0.8);
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  box-shadow: 0 10px 22px -8px hsl(var(--primary) / 0.6);
  margin-bottom: 18px;
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; color: hsl(var(--fg)); margin-bottom: 9px; }
.step p { font-size: 14.5px; color: hsl(var(--mut-fg)); line-height: 1.6; }
.step-arrow {
  display: flex; align-items: center;
  color: hsl(var(--accent) / 0.55);
}
.step-arrow svg { width: 40px; height: 24px; }

/* ------------------------------------------------------------ FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: hsl(var(--card) / 0.75);
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 28px 26px 24px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 26px 52px -26px hsl(220 30% 3% / 0.95);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 24px; height: 24px; color: #fff; }
.ic-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 10px 24px -10px #3b82f6aa; }
.ic-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 10px 24px -10px #06b6d4aa; }
.ic-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 10px 24px -10px #8b5cf6aa; }
.ic-emerald { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 24px -10px #10b981aa; }
.ic-amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 10px 24px -10px #f59e0baa; }
.ic-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); box-shadow: 0 10px 24px -10px #f43f5eaa; }
.feature-card h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; color: hsl(var(--fg)); margin-bottom: 9px; transition: color .25s; }
.feature-card:hover h3 { color: hsl(var(--accent)); }
.feature-card p { font-size: 14.5px; color: hsl(var(--mut-fg)); line-height: 1.6; }

/* -------------------------------------------------------------- SAMPLE */
.figure { max-width: 640px; margin: 0 auto; text-align: center; }
.figure-frame {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.3);
  box-shadow: 0 40px 80px -36px hsl(220 30% 3% / 0.95),
              0 0 70px -28px hsl(var(--primary) / 0.3);
  transition: transform .35s, box-shadow .35s;
}
.figure-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 50px 90px -36px hsl(220 30% 3% / 1),
              0 0 90px -24px hsl(var(--primary) / 0.45);
}
.figure img { width: 100%; }
.figure figcaption {
  font-size: 14.5px;
  color: hsl(var(--mut-fg));
  margin-top: 22px;
  line-height: 1.6;
}
.figure figcaption a { font-weight: 700; }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 56rem; margin: 0 auto; width: 100%; }
.faq > h2 { margin-bottom: 30px; text-align: center; }
.faq details {
  background: hsl(var(--card) / 0.7);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 0 26px;
  margin-bottom: 12px;
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: hsl(var(--primary) / 0.45); background: hsl(var(--card) / 0.9); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  font-size: 16px; font-weight: 700;
  color: hsl(var(--fg));
  letter-spacing: -0.005em;
  transition: color .2s;
}
.faq details[open] summary h3 { color: hsl(var(--accent)); }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 19px; font-weight: 500;
  color: hsl(var(--accent));
  border: 1.5px solid hsl(var(--accent) / 0.45);
  border-radius: 50%;
  transition: transform .25s, background .25s;
}
.faq details[open] summary::after {
  content: "\2013";
  transform: rotate(180deg);
  background: hsl(var(--accent) / 0.1);
}
.faq details p {
  padding: 0 0 22px;
  font-size: 15px; color: hsl(var(--mut-fg)); line-height: 1.7;
  max-width: 66ch;
}
.faq p strong { color: hsl(var(--fg)); font-weight: 700; }

/* ---------------------------------------------------------- LEARN MORE */
.learn-more {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}
.learn-more h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  color: hsl(var(--fg));
  margin-bottom: 12px;
}
.learn-more p { font-size: 16px; color: hsl(var(--mut-fg)); line-height: 1.7; }
.learn-more a { font-weight: 600; border-bottom: 1px dashed hsl(var(--accent) / 0.5); transition: border-color .2s; }
.learn-more a:hover { border-bottom-style: solid; border-bottom-color: hsl(var(--accent)); }

/* --------------------------------------------------------------- CTA */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 22px;
  padding: 72px 40px;
  background: linear-gradient(135deg, hsl(212 90% 38%), hsl(199 95% 42%));
  border: 1px solid hsl(var(--accent) / 0.4);
  box-shadow: 0 50px 100px -50px hsl(var(--primary) / 0.6);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, hsl(0 0% 100% / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(0 0% 100% / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 280px; border-radius: 50%;
  background: radial-gradient(ellipse, hsl(0 0% 100% / 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta-eyebrow { color: hsl(0 0% 100% / 0.75); margin-bottom: 14px; }
.cta h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 900; letter-spacing: -0.03em;
  color: #fff; line-height: 1.1;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 17.5px; color: hsl(0 0% 100% / 0.88);
  max-width: 560px; margin: 0 auto 34px; line-height: 1.65;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------ FOOTER */
.footer {
  background: hsl(var(--bg-deep));
  border-top: 1px solid hsl(var(--border) / 0.7);
  padding: 56px 0 30px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-size: 17px; font-weight: 800; }
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: hsl(var(--mut-fg) / 0.8); }
.footer h4 { color: hsl(var(--mut-fg) / 0.6); margin-bottom: 16px; font-size: 11px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { font-size: 14px; padding: 5px 0; }
.footer a { color: hsl(var(--mut-fg)); transition: color .2s; }
.footer a:hover { color: hsl(var(--fg)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: hsl(var(--mut-fg) / 0.7);
}

/* -------------------------------------------------------- animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fade-up .8s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d, 0s); }

/* transform must end at none — keeps fixed-position descendants viable
   and avoids stale containing blocks (same fix as the ballooning page). */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim, .tol-chip, .pulse-dot::before { animation: none !important; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .tol-pass { left: -10px; }
  .tol-fail { left: -14px; }
  .tol-bonus { right: -8px; }
}

@media (max-width: 980px) {
  .landing { padding: 104px 20px 80px; gap: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 34rem; margin: 0 auto; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { justify-content: center; transform: rotate(90deg); height: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* mobile nav */
  .nav-links { display: none; }
  .nav-actions > .nav-signin,
  .nav-actions > .btn-primary { display: none; }
  .nav-mobile { display: inline-flex; }
}

/* ==== AI Ballooning Section ==== */
.ai-balloon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.ai-balloon-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ai-mode {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted));
  border-radius: 12px;
}
.ai-mode h3 {
  font-size: 17px;
  font-weight: 800;
  color: hsl(var(--fg));
  margin-bottom: 6px;
}
.ai-mode p {
  font-size: 14px;
  color: hsl(var(--mut-fg));
  line-height: 1.55;
}
.ai-mode-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2px;
}
.ai-mode-fast {
  background: hsl(var(--accent) / .15);
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / .3);
}
.ai-mode-precise {
  background: hsl(var(--purple) / .15);
  color: hsl(var(--purple));
  border: 1px solid hsl(var(--purple) / .3);
}
.ai-balloon-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-balloon-highlights li {
  font-size: 14px;
  color: hsl(var(--mut-fg));
  padding-left: 22px;
  position: relative;
}
.ai-balloon-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: hsl(var(--green));
  font-weight: 700;
}
.ai-balloon-video {
  position: sticky;
  top: 90px;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid hsl(var(--muted));
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.btn-md {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  align-self: flex-start;
}
.btn-md:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px hsl(var(--primary) / .35);
}

@media (max-width: 900px) {
  .ai-balloon-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-balloon-video { position: static; }
}

@media (max-width: 640px) {
  .landing { padding: 92px 16px 64px; gap: 40px; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .benefits { grid-template-columns: 1fr; }
  .cta { padding: 52px 22px; }
  .cta-actions .btn { width: 100%; }
  .dim-label { font-size: 10.5px; letter-spacing: 0.12em; }
  .compat-strip { padding: 16px 18px; }
  /* tolerance chips: tuck inside the image bounds so nothing overflows */
  .tol-pass { top: -14px; left: 8px; }
  .tol-fail { bottom: 48px; left: 8px; }
  .tol-bonus { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
