/* Primum & Terminus - Landing Page Styles */
/* Brand update: Terminus Orange palette */

/* ===================== ACCESSIBILITY ===================== */
/* Skip navigation link — visible on focus for keyboard users (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent, #FF6A00);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0A0F14;
  --surface: #111827;
  --surface-2: #1a2233;
  --border: #1e2d45;
  --accent: #FF6A00;
  --accent-dim: rgba(255, 106, 0, 0.10);
  --accent-glow: rgba(255, 106, 0, 0.28);
  --blue: #3DA5FF; /* was #007BFF — bumped for WCAG 2.0 AA contrast on dark surfaces */
  --blue-dim: rgba(0, 123, 255, 0.12);
  --text: #FFFFFF;
  --muted: #C5C5C5;
  --font: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* =====================
   LAYOUT
   ===================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* =====================
   NAV
   ===================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-amp {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #0A0F14 !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 16px var(--accent-glow);
  color: #0A0F14 !important;
}

/* =====================
   HERO
   ===================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* CSS-only grid background */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

/* Radial glow */
#hero::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  max-width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; /* was 12px — rem respects browser base font size (WCAG 1.4.4) */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text);
}

h1 .amp {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  max-width: min(580px, 100%);
  margin: 0 auto 40px;
  line-height: 1.5;
  padding: 0 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0A0F14;
  font-weight: 700;
  font-size: 0.9375rem; /* was 15px — rem for WCAG 1.4.4 */
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem; /* was 15px — rem for WCAG 1.4.4 */
  padding: 13px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.hero-trust {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  flex-wrap: wrap;
  max-width: 100%;
}

.hero-trust::before {
  display: none;
  border-radius: 50%;
  opacity: 0.8;
}

/* =====================
   HERO PROOF ITEMS
   ===================== */

.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: left;
}

.proof-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.proof-item strong {
  color: var(--text);
}

.proof-icon {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 5px;
}

/* =====================
   PLATFORM ARCHITECTURE
   ===================== */

.platform-architecture {
  margin-top: 56px;
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
}

.arch-arrow {
  display: none;
}

.arch-node {
  background: var(--surface);
  border: 1px solid rgba(30, 45, 69, 0.8);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arch-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255,106,0,0.12);
}

.arch-node-discover { border-top: 3px solid #3DA5FF; }
.arch-node-protect  { border-top: 3px solid var(--accent); }
.arch-node-manage   { border-top: 3px solid #4DFF91; }
.arch-node-audit    { border-top: 3px solid #FF6A00; }
.arch-node-sign     { border-top: 3px solid #b44dff; }
.arch-node-attribute{ border-top: 3px solid #FFD700; }

.arch-stage-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.arch-products {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-product {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
}

.arch-description {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* arch-arrow hidden — grid layout replaces linear flow */

.platform-chain-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.platform-chain-note .proof-icon {
  margin-top: 4px;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .arch-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .arch-flow {
    grid-template-columns: 1fr;
  }
}

/* =====================
   MOAT STATEMENT
   ===================== */

.moat-statement {
  margin: 32px auto 0;
  max-width: 680px;
  padding: 28px 36px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-style: normal;
  text-align: left;
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.08);
}

@media (max-width: 600px) {
  .moat-statement {
    padding: 20px 20px;
    font-size: 1.05rem;
  }
}

/* =====================
   SECTION HEADERS
   ===================== */

.section-label {
  display: inline-block;
  font-size: 0.6875rem; /* was 11px — rem for WCAG 1.4.4 */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem; /* was 17px — rem for WCAG 1.4.4 */
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

/* =====================
   THE PROBLEM
   ===================== */

#problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  color: var(--muted);
}

/* =====================
   THE STACK
   ===================== */

#stack {
  padding-bottom: 80px;
}

.stack-header {
  text-align: center;
  margin-bottom: 56px;
}

.stack-header .section-desc {
  margin: 0 auto;
}

/* Flow stages bar */
.flow-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flow-stage {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  cursor: default;
  transition: color 0.2s, background 0.2s;
}

.flow-stage:first-child {
  border-radius: 8px 0 0 8px;
}

.flow-stage:last-child {
  border-radius: 0 8px 8px 0;
}

.flow-stage:not(:first-child) {
  border-left: none;
  margin-left: 0;
}

/* Arrow divider via clip-path on a pseudo element */
.flow-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 14px solid var(--border);
  z-index: 2;
}

.flow-stage:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-left: 13px solid var(--surface);
  z-index: 3;
}

.flow-stage.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Product cards grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* The Stack section — fixed 5-col grid (2 rows of 5) */
.stack-grid .product-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-grid .product-card .btn-primary {
  margin-top: 16px;
  text-align: center;
  display: block;
}

.stack-grid {
  grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 900px) {
  .stack-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .product-desc {
  flex: 1;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.product-card:hover::after {
  opacity: 1;
}

.product-stage-tag {
  font-size: 0.625rem; /* was 10px — rem for WCAG 1.4.4 */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 106, 0, 0.2);
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}

.product-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.product-name span {
  color: var(--accent);
}

.product-desc {
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  color: var(--muted);
  line-height: 1.55;
}

/* =====================
   WHY P&T
   ===================== */

#why {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-header .section-desc {
  margin: 0 auto;
}

.differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.25s;
}

.diff-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
}

.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 1px solid rgba(0, 123, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.diff-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.diff-body {
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  color: var(--muted);
  line-height: 1.6;
}

.diff-detail {
  font-size: 0.75rem; /* was 12px — rem for WCAG 1.4.4 */
  color: var(--blue);
  margin-top: 10px;
  font-weight: 500;
}

/* =====================
   INDUSTRIES
   ===================== */

#industries {
  text-align: center;
}

.industries-header {
  margin-bottom: 56px;
}

.industries-header .section-desc {
  margin: 0 auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 16px;
  transition: border-color 0.25s, transform 0.2s;
}

.industry-card:hover {
  border-color: rgba(255, 106, 0, 0.3);
  transform: translateY(-2px);
}

.industry-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.industry-card:hover .industry-icon {
  transform: scale(1.08);
}

.industry-name {
  font-size: 0.875rem; /* was 14px — rem for WCAG 1.4.4 */
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* =====================
   CTA SECTION
   ===================== */

#cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 16px;
}

.cta-content .section-desc {
  margin: 0 auto 40px;
  font-size: 18px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-email {
  font-size: 0.9375rem; /* was 15px — rem for WCAG 1.4.4 */
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cta-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =====================
   FOOTER
   ===================== */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 0.9375rem; /* was 15px — rem for WCAG 1.4.4 */
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-sub {
  font-size: 0.8125rem; /* was 13px — rem for WCAG 1.4.4 */
  color: var(--muted);
  margin-top: 4px;
}

.footer-copy {
  font-size: 0.8125rem; /* was 13px — rem for WCAG 1.4.4 */
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem; /* was 13px — rem for WCAG 1.4.4 */
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* =====================
   COMPLIANCE BADGE ROW
   ===================== */

.compliance-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  justify-content: center;
}

.compliance-badge {
  font-size: 0.6875rem; /* was 11px — rem for WCAG 1.4.4 */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--surface);
}

/* =====================
   RESPONSIVE
   ===================== */

/* =====================
   HAMBURGER MENU (mobile nav)
   ===================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   TABLET (≤ 900px)
   ===================== */

@media (max-width: 900px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 150;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 14px;
  }

  /* Layout */
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .differentiators {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }


  h1 {
    font-size: clamp(36px, 7vw, 54px);
  }
}

/* =====================
   MOBILE (≤ 600px)
   ===================== */

@media (max-width: 600px) {
  /* Spacing */
  section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Hero */
  h1 {
    font-size: clamp(30px, 8vw, 42px);
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 28px;
    padding: 0;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    width: 85%;
    max-width: 320px;
    display: block;
  }

  .hero-trust {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    margin-bottom: 16px;
  }

  .compliance-row {
    gap: 6px;
    margin-top: 20px;
    padding: 0 4px;
  }

  .compliance-badge {
    font-size: 0.6rem;
    padding: 5px 9px;
  }

  /* Problem section */
  .stat-number {
    font-size: 28px;
  }

  /* Flow bar */
  .flow-bar {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .flow-stage {
    flex: 0 0 calc(30% - 6px);
    border-radius: 6px;
    border: 1px solid var(--border) !important;
    margin-left: 0;
    font-size: 0.625rem;
    padding: 10px 6px;
    text-align: center;
    justify-content: center;
  }

  .flow-stage:not(:last-child)::after,
  .flow-stage:not(:last-child)::before {
    display: none;
  }

  /* Product grid */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Why / differentiators */
  .differentiators {
    grid-template-columns: 1fr;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn-primary {
    text-align: center;
  }

  .cta-email {
    text-align: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Section headings */
  h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* Hero tagline — override inline clamp */
  .hero-content > p[style] {
    font-size: 1.1rem !important;
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }
}

/* =====================
   FOCUS STYLES (WCAG 2.4.7 / §502.4)
   Visible focus indicator for all interactive elements.
   Uses :focus-visible so mouse users don’t see the ring,
   only keyboard/AT users do.
   ===================== */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link gets a stronger indicator */
.skip-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Nav CTA button focus */
.nav-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Primary buttons — white ring since bg is orange */
.btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--accent-glow);
}

/* Secondary buttons */
.btn-secondary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* =====================
   REDUCED MOTION (WCAG 2.3.3 / §502.4)
   Respects user OS setting to minimize animations.
   ===================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================
   HIGH CONTRAST MODE (Windows Forced Colors / §502.4)
   Ensures the UI remains usable in Windows High Contrast
   and other forced-color environments.
   ===================== */

@media (forced-colors: active) {
  .btn-primary,
  .nav-cta {
    forced-color-adjust: none;
    background: ButtonText;
    color: ButtonFace;
    border: 2px solid ButtonText;
  }

  .btn-secondary {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
    border: 2px solid ButtonText;
  }

  .skip-link {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }

  .product-card,
  .diff-card,
  .stat-card,
  .industry-card {
    border: 1px solid ButtonText;
  }

  .compliance-badge {
    border: 1px solid ButtonText;
    color: ButtonText;
  }
}
