/* =========================================================================
   ScanBridge — promo site
   Corporate, modern, navy-first design system
   ========================================================================= */

:root {
  /* Brand */
  --navy-950: #060f24;
  --navy-900: #0b1b36;
  --navy-800: #0e2147;
  --navy-700: #122a5a;
  --navy-600: #1a3a7a;
  --navy-500: #1f4aa3;

  --blue-500: #1f6feb;
  --blue-400: #4a8def;
  --blue-300: #79a8f3;
  --blue-200: #b8d2f9;
  --blue-100: #e6efff;

  --cyan-400: #38bdf8;

  /* Neutrals */
  --ink-900: #0b1b36;
  --ink-800: #1a2a48;
  --ink-700: #2c3a55;
  --ink-600: #475467;
  --ink-500: #667085;
  --ink-400: #98a2b3;
  --ink-300: #d0d5dd;
  --ink-200: #e4e7ec;
  --ink-100: #eef2f7;
  --ink-50: #f7f9fc;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(11, 27, 54, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 27, 54, 0.08);
  --shadow-lg: 0 24px 48px rgba(11, 27, 54, 0.12);
  --shadow-glow: 0 16px 48px rgba(31, 111, 235, 0.28);
  --ring: 0 0 0 1px rgba(11, 27, 54, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --nav-h: 72px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color var(--t-fast);
}

button { font-family: inherit; }

::selection { background: var(--blue-500); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   Animated background
   ========================================================================= */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 60%, #f7f9fc 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}
.orb-1 {
  top: -180px; left: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.55), transparent 70%);
  animation: floatY 18s ease-in-out infinite;
}
.orb-2 {
  top: 30%; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  animation: floatY 22s ease-in-out infinite reverse;
}
.orb-3 {
  bottom: -200px; left: 25%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11, 27, 54, 0.18), transparent 70%);
  animation: floatX 28s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-50px) translateX(30px); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(40px) scale(1.05); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 27, 54, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 27, 54, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.6), transparent 70%);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(11, 27, 54, 0.18);
}
.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand-accent { color: var(--blue-500); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--blue-500);
  transition: width var(--t-base);
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Mobile-only CTA inside hamburger menu (hidden on desktop) */
.nav-mobile-cta { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--navy-600) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(31, 111, 235, 0.32);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(31, 111, 235, 0.42);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--ink-200);
}
.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover { color: var(--navy-900); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: var(--blue-500);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(31, 111, 235, 0.18);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(31, 111, 235, 0.04); }
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-600);
  margin: 0 0 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink-100);
  padding-top: 24px;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta strong {
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-meta span {
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* Hero visual stack */
.hero-visual {
  position: relative;
  height: 540px;
}

.visual-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.vc {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.float-1 { animation: float 7s ease-in-out infinite; }
.float-2 { animation: float 9s ease-in-out infinite 1s; }
.float-3 { animation: float 8s ease-in-out infinite 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.vc-browser {
  top: 0; left: 0;
  width: 70%;
  z-index: 3;
}
.vc-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}
.vc-browser-bar > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-200);
}
.vc-browser-bar > span:nth-child(1) { background: #ff5f57; }
.vc-browser-bar > span:nth-child(2) { background: #febc2e; }
.vc-browser-bar > span:nth-child(3) { background: #28c840; }
.vc-url {
  margin-left: 10px;
  flex: 1;
  background: var(--ink-50);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--ink-500);
  font-family: "JetBrains Mono", monospace;
}

.vc-browser-body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vc-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vc-label {
  font-size: 0.8rem;
  color: var(--ink-500);
  width: 90px;
  flex-shrink: 0;
}
.vc-value {
  font-size: 0.9rem;
  color: var(--navy-900);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vc-pill {
  font-size: 0.7rem;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.vc-bar {
  flex: 1;
  height: 6px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.vc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  border-radius: 999px;
  animation: barFill 2.5s ease-in-out infinite;
}
@keyframes barFill {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.85); transform-origin: left; }
}
.vc-chips { display: flex; gap: 6px; }
.chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink-50);
  color: var(--ink-500);
  border: 1px solid var(--ink-100);
}
.chip-active {
  background: var(--blue-500);
  color: var(--white);
  border-color: transparent;
}
.vc-pages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.vc-page {
  aspect-ratio: 3 / 4;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 6px;
  background-image:
    linear-gradient(transparent 22%, var(--ink-200) 22%, var(--ink-200) 24%, transparent 24%),
    linear-gradient(transparent 36%, var(--ink-200) 36%, var(--ink-200) 38%, transparent 38%),
    linear-gradient(transparent 50%, var(--ink-200) 50%, var(--ink-200) 52%, transparent 52%),
    linear-gradient(transparent 64%, var(--ink-200) 64%, var(--ink-200) 66%, transparent 66%);
}
.vc-page-add {
  background: var(--white);
  border: 1.5px dashed var(--ink-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  font-weight: 600;
  font-size: 1.1rem;
  background-image: none;
}
.vc-cta {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-600));
  color: var(--white);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}
.vc-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: ctaPulse 1.6s ease-out infinite;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.vc-service {
  bottom: 170px;
  right: 0;
  width: 78%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  z-index: 2;
}
.vc-service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-300);
  flex-shrink: 0;
}
.vc-service-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.vc-service-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "JetBrains Mono", monospace;
}
.vc-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(34, 197, 94, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.vc-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.vc-device {
  bottom: 0;
  right: 60px;
  width: 60%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy-900);
  z-index: 1;
}
.vc-device-title { font-weight: 600; font-size: 0.95rem; }
.vc-device-sub { font-size: 0.8rem; color: var(--ink-500); }

.vc-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.line {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: dashFlow 2s linear infinite;
}
.line-b { animation-delay: 1s; }
@keyframes dashFlow {
  to { stroke-dashoffset: -32; }
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--ink-300);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink-400);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =========================================================================
   Stats strip
   ========================================================================= */
.stats {
  padding: 24px 0 56px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.stats-grid > div {
  border-right: 1px solid var(--ink-100);
  padding-right: 24px;
}
.stats-grid > div:last-child { border-right: none; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-700);
  font-weight: 500;
}
.stat-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
  font-weight: 400;
}

/* =========================================================================
   Sections - shared
   ========================================================================= */
.section {
  position: relative;
  padding: 96px 0;
}
.section-soft { background: var(--ink-50); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 111, 235, 0.35), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(56, 189, 248, 0.25), transparent 45%);
  pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.section-eyebrow.accent { color: var(--blue-300); }

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy-900);
}
.section-dark .section-head h2 { color: var(--white); }

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-600);
}
.section-dark .section-lead { color: rgba(255, 255, 255, 0.72); }

/* =========================================================================
   Problem
   ========================================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.problem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 235, 0.25);
  box-shadow: var(--shadow-lg);
}
.problem-card:hover::before { opacity: 1; }
.problem-card > * { position: relative; }
.problem-num {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-500);
  margin-bottom: 18px;
  font-family: "JetBrains Mono", monospace;
}
.problem-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.problem-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.6;
}

/* =========================================================================
   Solution / architecture diagram
   ========================================================================= */
.arch {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  margin-bottom: 40px;
}

.arch-node {
  text-align: center;
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--t-base), border-color var(--t-base);
}
.arch-node:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 168, 243, 0.5);
}
.arch-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  margin-bottom: 14px;
}
.arch-icon.glow {
  background: linear-gradient(135deg, var(--blue-500), var(--navy-900));
  border-color: rgba(122, 168, 243, 0.7);
  box-shadow: 0 12px 32px rgba(31, 111, 235, 0.4);
}
.arch-icon.glow img { border-radius: 8px; }
.arch-node h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
}
.arch-node p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.arch-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(56, 189, 248, 0.18);
  color: var(--cyan-400);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  min-width: 110px;
}
.arch-arrow svg {
  width: 100%;
  height: 24px;
  color: var(--blue-300);
}
.arch-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  animation: dashFlow 1.6s linear infinite;
}
.arch-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.solution-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}
.solution-bullets li {
  display: flex;
  gap: 12px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  align-items: flex-start;
  position: relative;
  padding-left: 32px;
}
.solution-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.2);
  border: 1px solid var(--blue-300);
}
.solution-bullets li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue-300);
  border-bottom: 2px solid var(--blue-300);
  transform: rotate(-45deg);
}
.solution-bullets li span {
  color: var(--white);
  font-weight: 600;
  margin-right: 4px;
}

/* =========================================================================
   Features
   ========================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 235, 0.3);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(31, 111, 235, 0.15);
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.feature-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================================
   Steps
   ========================================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-300) 0 6px, transparent 6px 14px);
}
.step {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-600));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
  font-family: "JetBrains Mono", monospace;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.95rem;
}

.how-callout {
  margin-top: 48px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.how-callout::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  pointer-events: none;
}
.how-callout strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.how-callout span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* =========================================================================
   Use cases
   ========================================================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.usecase {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.usecase::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.usecase:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 235, 0.25);
  box-shadow: var(--shadow-md);
}
.usecase:hover::after { opacity: 1; }
.usecase-tag {
  display: inline-block;
  width: fit-content;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
}
.usecase h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.usecase p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.9rem;
}

/* =========================================================================
   Comparison table
   ========================================================================= */
.compare-wrap { max-width: 980px; }
.compare {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 16px 24px;
}
.compare-table thead th {
  background: var(--ink-50);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-100);
}
.compare-table thead th.us {
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white);
}
.compare-table tbody tr { border-bottom: 1px solid var(--ink-100); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--ink-50); }
.compare-table td:first-child { color: var(--ink-700); font-weight: 500; }
.compare-table td.us {
  background: rgba(31, 111, 235, 0.04);
  color: var(--navy-900);
  font-weight: 600;
}
.compare-table td.us .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-table td.us .check::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-500);
  background-image:
    linear-gradient(45deg, transparent 40%, var(--white) 40%, var(--white) 50%, transparent 50%),
    linear-gradient(-45deg, transparent 40%, var(--white) 40%, var(--white) 60%, transparent 60%);
  background-size: 50% 50%, 50% 50%;
  background-position: 50% 30%, 30% 70%;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 111, 235, 0.2);
}
.plan-featured {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}
.plan-featured:hover { transform: scale(1.02) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -14px; right: 24px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}
.plan-head h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: inherit;
  font-weight: 700;
}
.plan-head p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}
.plan-featured .plan-head p { color: rgba(255, 255, 255, 0.65); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.plan-featured .plan-price .amount { color: var(--white); }
.plan-price .period {
  color: var(--ink-500);
  font-size: 0.95rem;
  font-weight: 500;
}
.plan-featured .plan-price .period { color: rgba(255, 255, 255, 0.65); }
.plan-alt {
  font-size: 0.85rem;
  color: var(--ink-500);
}
.plan-featured .plan-alt { color: rgba(255, 255, 255, 0.55); }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-700);
  font-size: 0.93rem;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.12);
}
.plan-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
  transform: rotate(-45deg);
}
.plan-featured .plan-list li { color: rgba(255, 255, 255, 0.85); }
.plan-featured .plan-list li::before { background: rgba(255, 255, 255, 0.12); }
.plan-featured .plan-list li::after { border-color: var(--cyan-400); }
.plan-featured .btn-primary {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--blue-500) 130%);
  z-index: -1;
}
.cta-bg::before, .cta-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-bg::before {
  top: -120px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.6), transparent 70%);
  animation: floatY 14s ease-in-out infinite;
}
.cta-bg::after {
  bottom: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent 70%);
  animation: floatY 18s ease-in-out infinite reverse;
}
.cta-content {
  max-width: 720px;
  position: relative;
}
.cta h2 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--white);
}
.cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}
.cta-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cta-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.cta-grid li span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  flex-shrink: 0;
}
.cta-grid li span::after {
  content: "";
  position: absolute;
  left: 9px; top: 11px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--cyan-400);
  border-bottom: 2px solid var(--cyan-400);
  transform: rotate(-45deg);
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p {
  margin: 16px 0 0;
  max-width: 320px;
  font-size: 0.93rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-cols h5 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.footer-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.93rem;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer-cols a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grids */
.problem-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.problem-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.problem-grid .reveal:nth-child(3) { transition-delay: 200ms; }

.feature-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.feature-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.feature-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.feature-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.feature-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.feature-grid .reveal:nth-child(6) { transition-delay: 300ms; }
.feature-grid .reveal:nth-child(7) { transition-delay: 360ms; }
.feature-grid .reveal:nth-child(8) { transition-delay: 420ms; }

.usecase-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.usecase-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.usecase-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.usecase-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.usecase-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.usecase-grid .reveal:nth-child(6) { transition-delay: 400ms; }

.steps .reveal:nth-child(1) { transition-delay: 0ms; }
.steps .reveal:nth-child(2) { transition-delay: 150ms; }
.steps .reveal:nth-child(3) { transition-delay: 300ms; }

.pricing-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 240ms; }

/* =========================================================================
   Mobile menu open state
   ========================================================================= */
.nav.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 520px; max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch { grid-template-columns: 1fr; gap: 12px; }
  .arch-arrow { transform: rotate(90deg); min-width: 0; }
  .arch-arrow svg { width: 60px; }
}

@media (max-width: 880px) {
  /* ---- Nav: hide all desktop CTAs, only hamburger remains ---- */
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.menu-open .nav-links a {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav.menu-open .nav-links a:hover,
  .nav.menu-open .nav-links a:focus { background: var(--ink-50); }
  .nav.menu-open .nav-links a::after { display: none; }

  /* CTA inside the mobile menu */
  .nav.menu-open .nav-mobile-cta {
    display: inline-flex !important;
    margin-top: 10px;
    padding: 14px 20px;
    justify-content: center;
  }

  /* ---- Hero: stack vertically, render visual as a normal flow ---- */
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-actions .btn { flex: 1 1 auto; min-width: 180px; }

  .hero-visual {
    height: auto;
    max-width: 480px;
    margin: 0 auto;
  }
  .visual-stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .vc {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .float-1, .float-2, .float-3 { animation: none; }
  .vc-lines { display: none; }

  /* ---- Stats: 2x2 ---- */
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div:nth-child(2) { border-right: none; }
  .stats-grid > div:nth-child(1),
  .stats-grid > div:nth-child(2) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-100);
  }
  .stats-grid > div:nth-child(3),
  .stats-grid > div:nth-child(4) { padding-top: 20px; }

  .problem-grid,
  .feature-grid,
  .usecase-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  .how-callout { flex-direction: column; align-items: flex-start; }
  .how-callout > div { width: 100%; }

  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .brand-name { font-size: 1.05rem; }

  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); margin-top: 18px; }
  .lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
    padding-top: 20px;
  }
  .hero-meta li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero-meta strong { font-size: 1rem; }
  .hero-meta span { font-size: 0.85rem; }
  .hero-scroll { display: none; }

  .stats { padding-top: 8px; }
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }
  .stats-grid > div {
    border-right: none;
    border-bottom: 1px solid var(--ink-100);
    padding: 0 0 18px;
  }
  .stats-grid > div:nth-child(1),
  .stats-grid > div:nth-child(2) { padding-bottom: 18px; }
  .stats-grid > div:nth-child(3),
  .stats-grid > div:nth-child(4) { padding-top: 0; }
  .stats-grid > div:last-child { border-bottom: none; padding-bottom: 0; }

  .problem-grid,
  .feature-grid,
  .usecase-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .problem-card { padding: 26px 22px; }
  .feature-card { padding: 22px 20px; }

  .arch { padding: 28px 18px; }
  .arch-arrow svg { width: 48px; height: 20px; }
  .solution-bullets { grid-template-columns: 1fr; }

  .step { padding: 26px 22px; }
  .how-callout { padding: 24px 22px; }
  .how-callout strong { font-size: 1.2rem; }

  .compare-wrap { padding: 0; }
  .compare {
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table { min-width: 460px; }
  .compare-table th,
  .compare-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .plan { padding: 28px 22px; }
  .plan-badge { right: 18px; top: -12px; font-size: 0.7rem; padding: 5px 12px; }
  .plan-price .amount { font-size: 2rem; }

  .cta { padding: 40px 22px; border-radius: var(--radius-lg); }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .footer { padding-top: 48px; }
  .footer-inner { gap: 32px; padding-bottom: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
