/* ============================================================
   Modern Frontend Inspector — product landing site
   Pure CSS, no frameworks. Dark developer-tool aesthetic.
   Breakpoints: 320 / 768 / 1024 / 1440
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color — near-black neutral scale + single cold-cyan accent */
  --bg: #0b0c0e;
  --bg-raised: #111318;
  --surface: #16181d;
  --surface-hover: #1a1d23;
  --border: #262a33;
  --border-strong: #3a404d;
  --text: #e8eaee;
  --text-muted: #9aa1ad;
  --text-faint: #6b7280;
  --accent: #4fc1ff;
  --accent-dim: #2a6f96;
  --accent-ink: #062330; /* text on accent surfaces */
  --danger: #ff7b72;

  /* Extended instrument accents */
  --accent-purple: #a78bfa;
  --accent-purple-dim: #6d28d9;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --surface-alt: #12141a;
  --surface-card: #151820;
  --border-subtle: #1c2029;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Shape — sharp, utility-panel feel */
  --radius: 6px;
  --border-width: 1px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 320px safety net; layout must not rely on it */
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--sp-4);
  font-weight: 650;
}

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — visible on focus only */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--sp-2);
  text-decoration: none;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent-dim);
  background: var(--bg-raised);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: #6ccfff;
  border-color: #6ccfff;
}

/* Primary-CTA hover language: subtle elevation (no scale/bounce).
   Shadow color is derived from --accent via color-mix(), never hardcoded.
   Applies to every primary CTA and all pricing card buttons — consistently
   nowhere else. :focus-visible included for keyboard users. */
.btn--primary,
.price-card .btn {
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.btn--primary:hover,
.btn--primary:focus-visible,
.price-card .btn:hover,
.price-card .btn:focus-visible {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn svg {
  flex: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark__badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--bg-raised);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

/* Scroll-spy active section (set by script.js); placed after the hover
   rule so the active color sticks even while hovered */
.site-nav a:not(.btn).is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 var(--sp-2);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-9) 0;
  border-top: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-8);
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

.hero__sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

.hero__sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.hero__notes li::before {
  content: "·";
  color: var(--accent);
  margin-right: var(--sp-2);
}

/* Screenshot placeholder — side panel is a tall, narrow panel */
.shot-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  padding: var(--sp-4);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  aspect-ratio: 9 / 16;
  max-width: 360px;
}

.shot-placeholder svg {
  color: var(--accent-dim);
}

/* Real product screenshots */
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.hero .shot-img {
  max-width: 360px;
}

/* ---------- Workflow strip ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  counter-reset: step;
}

.workflow li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  counter-increment: step;
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.workflow h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}

.workflow p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card svg {
  display: block;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.card p + p {
  margin-top: var(--sp-2);
}

/* Honest-behavior footnotes shown inside cards */
.card__note {
  display: block;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Full-width callout inside a section */
.callout {
  margin-top: var(--sp-6);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: 0.9375rem;
}

.callout strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: none;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Pro section ---------- */
.pro-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.pro-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}

.pro-list svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}

.pro-list h3 {
  font-size: 0.9375rem;
  margin: 0 0 2px;
}

.pro-list p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-raised);
}

.compare thead th:not(:first-child),
.compare td:not(:first-child) {
  text-align: center;
  width: 120px;
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody tr:hover td {
  background: var(--surface-hover);
}

.compare .group td {
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.compare td:first-child {
  color: var(--text-muted);
}

.check {
  color: var(--accent);
}

.cross {
  color: var(--text-faint);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.price-card--featured {
  border-color: var(--accent-dim);
}

.price-card__badge {
  position: absolute;
  top: -10px;
  left: var(--sp-4);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.price-card__plan {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.price-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
}

.price-card__price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card__desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  min-height: 3em;
  margin-bottom: var(--sp-4);
}

.price-card .btn {
  margin-top: auto;
}

.pricing-note {
  margin-top: var(--sp-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pricing-note code {
  white-space: normal;
}

/* ---------- Privacy & security ---------- */
.secure-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  max-width: 880px;
}

.secure-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5);
}

.secure-list svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}

.secure-list h3 {
  font-size: 0.9375rem;
  margin: 0 0 2px;
}

.secure-list p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.shots-grid figure {
  margin: 0;
}

.shots-grid figcaption {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: var(--sp-2);
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 var(--sp-5) var(--sp-4);
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0 var(--sp-6);
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 48ch;
}

.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}

.site-footer ul li {
  margin-bottom: var(--sp-2);
}

.site-footer ul a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer ul a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
  color: var(--text-faint);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
}

/* ---------- Legal pages (privacy / terms / support) ---------- */
.legal {
  max-width: 760px;
  padding: var(--sp-8) 0 var(--sp-9);
}

.legal h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.legal .legal-updated {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin-bottom: var(--sp-6);
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: var(--sp-7);
}

.legal h3 {
  font-size: 1rem;
  margin-top: var(--sp-5);
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--sp-4);
}

.legal li {
  margin-bottom: var(--sp-2);
}

.legal strong {
  color: var(--text);
}

.legal code {
  white-space: normal;
}

.legal .contact-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--sp-5);
  margin-top: var(--sp-6);
}

.legal .contact-box p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Awwwards / Site of the Day Instrument Styles & Components
   ============================================================ */

/* ---------- Technical Utilities & Annotations ---------- */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 193, 255, 0.08);
  border: 1px solid rgba(79, 193, 255, 0.25);
  padding: 3px 10px;
  border-radius: 4px;
}

.tech-tag--purple {
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}

.tech-tag--emerald {
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
}

.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.spec-chip svg {
  color: var(--accent);
}

/* Technical frame with corner crosshairs */
.crosshair-frame {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.crosshair-frame::before,
.crosshair-frame::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-dim);
  line-height: 1;
  pointer-events: none;
  z-index: 5;
}

.crosshair-frame::before { top: 6px; left: 8px; }
.crosshair-frame::after { top: 6px; right: 8px; }

/* Hero spatial visual wrapper */
.hero-visual-frame {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0d0f13;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.hero-target-annotation {
  position: absolute;
  top: 140px;
  left: -24px;
  z-index: 10;
  background: #080a0d;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(79, 193, 255, 0.2);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hero-target-annotation .dim {
  color: var(--accent);
  font-weight: 600;
}

.hero-target-annotation .tag {
  color: var(--text-muted);
}

/* ---------- The Friction (Old vs New) ---------- */
.friction-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.friction-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}

.friction-col--good {
  border-color: rgba(79, 193, 255, 0.35);
  background: linear-gradient(180deg, rgba(79, 193, 255, 0.03) 0%, var(--surface) 100%);
}

.friction-col h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.friction-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.friction-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.friction-col--good .friction-steps li {
  border-color: rgba(79, 193, 255, 0.15);
  color: var(--text);
}

.friction-icon {
  flex: none;
  margin-top: 2px;
}

.friction-icon--bad { color: var(--danger); }
.friction-icon--good { color: var(--accent); }

/* ---------- Interactive Inspection Showcase ---------- */
.showcase {
  background: #090b0e;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  margin-top: var(--sp-7);
}

.showcase-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111419;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.showcase-dots {
  display: flex;
  gap: 6px;
}

.showcase-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.showcase-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #07090b;
  border: 1px solid var(--border);
  padding: 3px 14px;
  border-radius: 4px;
  width: min(360px, 60%);
}

.showcase-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.showcase-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase-canvas {
  padding: var(--sp-7);
  background: radial-gradient(circle at center, rgba(79, 193, 255, 0.04) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--border);
  position: relative;
  min-height: 420px;
}

.showcase-target-wrap {
  position: relative;
  display: inline-flex;
  padding: 12px;
}

.showcase-target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.showcase-target svg {
  flex: none;
}

/* Inspection highlight outline */
.showcase-overlay {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--accent);
  pointer-events: none;
  border-radius: inherit;
}

.showcase-tag-badge {
  position: absolute;
  top: -12px;
  left: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.showcase-dim-badge {
  position: absolute;
  bottom: -12px;
  right: 6px;
  background: #000;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 1px 6px;
  border-radius: 3px;
}

.showcase-toggles {
  margin-top: var(--sp-6);
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.showcase-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.showcase-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.showcase-btn-group {
  display: flex;
  gap: 4px;
}

.showcase-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.showcase-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.showcase-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* Code inspection panel */
.showcase-inspector {
  background: #0b0d10;
  display: flex;
  flex-direction: column;
}

.showcase-tabs {
  display: flex;
  background: #111419;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.showcase-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.showcase-tab:hover {
  color: var(--text);
}

.showcase-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(79, 193, 255, 0.05);
}

.showcase-code-box {
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.showcase-code-box pre {
  margin: 0;
  font-family: inherit;
  color: inherit;
  white-space: pre-wrap;
}

.showcase-copy-bar {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: #0d0f13;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  background: rgba(79, 193, 255, 0.08);
}

/* ---------- Narrative Acts (Deep Dives) ---------- */
.act-section {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.act-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-8);
  align-items: center;
}

.act-grid--reverse {
  grid-template-columns: 360px 1fr;
}

.act-grid--reverse .act-content {
  order: 2;
}

.act-grid--reverse .act-visual {
  order: 1;
}

.act-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.act-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.act-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.act-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.act-feature-item svg {
  flex: none;
  color: var(--accent);
  margin-top: 3px;
}

.act-feature-item strong {
  color: var(--text);
  font-size: 0.9375rem;
}

.act-feature-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 2px 0 0;
}

.act-code-snippet {
  background: #08090b;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

.act-code-snippet .keyword { color: var(--accent); }
.act-code-snippet .prop { color: var(--accent-purple); }
.act-code-snippet .val { color: var(--text); }
.act-code-snippet .comment { color: var(--text-faint); font-style: italic; }

.act-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.act-visual .shot-img {
  max-width: 360px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Pro Architectural Workbench ---------- */
.pro-workbench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.pro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease;
}

.pro-card:hover {
  border-color: var(--accent-dim);
}

.pro-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.pro-card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.pro-card-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
}

.pro-card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.pro-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: var(--sp-3);
  flex: 1;
}

.pro-card-example {
  background: #08090b;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- Local-First Security Architecture ---------- */
.arch-diagram {
  background: #0a0c0f;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.arch-cols {
  display: grid;
  grid-template-columns: 1.2fr 80px 1fr;
  align-items: center;
  gap: var(--sp-4);
}

.arch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--sp-5);
}

.arch-box--primary {
  border-color: rgba(79, 193, 255, 0.4);
  background: linear-gradient(180deg, rgba(79, 193, 255, 0.04) 0%, var(--surface) 100%);
}

.arch-box h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-box ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.arch-box li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-box li svg {
  flex: none;
  color: var(--accent-emerald);
}

.arch-box--backend li svg {
  color: var(--accent-purple);
}

.arch-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.arch-divider-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---------- Terminal Closing CTA ---------- */
.terminal-cta {
  background: #090b0e;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  margin-top: var(--sp-8);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111419;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.terminal-body {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.terminal-statement {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}

.terminal-statement span {
  color: var(--accent);
}

.terminal-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}

.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .act-grid,
  .act-grid--reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .act-grid--reverse .act-content {
    order: 1;
  }

  .act-grid--reverse .act-visual {
    order: 2;
  }

  .showcase-body {
    grid-template-columns: 1fr;
  }

  .showcase-canvas {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 380px;
  }

  .pro-workbench {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-cols {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .arch-divider {
    flex-direction: row;
    justify-content: center;
  }

  .arch-divider-line {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .friction-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-workbench {
    grid-template-columns: 1fr;
  }

  .showcase-canvas {
    padding: var(--sp-4);
  }

  .showcase-url-bar {
    display: none;
  }
}

@media (max-width: 480px) {
  .friction-col {
    padding: var(--sp-4);
  }

  .hero-target-annotation {
    display: none;
  }

  .showcase-toggle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .showcase-btn-group {
    width: 100%;
    display: flex;
  }

  .showcase-btn {
    flex: 1;
    text-align: center;
  }

  .terminal-statement {
    font-size: 1.5rem;
  }
}

@media (max-width: 359px) {
  .showcase-toggles {
    padding: var(--sp-3);
  }

  .showcase-btn {
    padding: 3px 6px;
    font-size: 0.625rem;
  }

  .showcase-tab {
    padding: 6px 10px;
    font-size: 0.6875rem;
  }
}


@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--sp-6);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }

  .pro-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile nav kicks in before the tight 769–860px desktop range overflows */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .site-nav .btn {
    margin-top: var(--sp-4);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--sp-8) 0;
  }

  .hero {
    padding: var(--sp-7) 0 var(--sp-8);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero .shot-placeholder,
  .hero .shot-img {
    max-width: 300px;
    justify-self: center;
  }

  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .secure-list {
    grid-template-columns: 1fr;
  }

  .shots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots-grid .shot-placeholder {
    aspect-ratio: 9 / 14;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .card-grid,
  .workflow,
  .pro-list,
  .pricing-grid,
  .shots-grid {
    grid-template-columns: 1fr;
  }

  .price-card__price {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    flex-direction: column;
    gap: var(--sp-2);
  }
}

/* 320px hard floor: verify no horizontal overflow below this point */
@media (max-width: 359px) {
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .wordmark {
    font-size: 0.875rem;
  }
}

/* Motion guard — WCAG 2.3.3: kill transitions/animations and smooth
   scrolling for users who opt out of 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;
    scroll-behavior: auto !important;
  }
}
