/* ================================================================
   GeniPulse marketing site — genipulse.app
   Brand: dark navy (#1a1a2e → #0f3460), indigo #6366f1,
   cyan #00d4ff (wordmark), purple #a06ee8 (app icon).
   ================================================================ */

:root {
  --bg-0: #0b0d1c;
  --bg-1: #1a1a2e;
  --bg-2: #16213e;
  --bg-3: #0f3460;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f1f5f9;
  --text-soft: #b6c2d4;
  --text-dim: #8494ab;

  --indigo: #6366f1;
  --indigo-hover: #4f46e5;
  --cyan: #00d4ff;
  --purple: #a06ee8;
  --green: #10b981;
  --red: #ef4444;

  --grad-brand: linear-gradient(100deg, var(--indigo), var(--cyan));
  --grad-purple: linear-gradient(120deg, var(--purple), var(--indigo));

  --radius: 16px;
  --radius-sm: 10px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
/* Hard guard: no element may widen the page past the viewport */
html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }

.btn-primary {
  background: var(--grad-brand);
  color: #05070f;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 212, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------------------------------------------------------------
   Nav
   --------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  background: rgba(11, 13, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-pulse { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { color: #05070f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 160px 0 90px;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(15, 52, 96, 0.75), transparent 65%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 60%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  background: rgba(99, 102, 241, 0.22);
  top: -140px; right: -80px;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: rgba(0, 212, 255, 0.10);
  bottom: -180px; left: -120px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}

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

.hero-sub {
  color: var(--text-soft);
  font-size: 1.12rem;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Pulse dot (live indicator) */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------------------------------------------------------------
   Hero dashboard mockup
   --------------------------------------------------------------- */
.hero-visual { perspective: 1400px; }

.mock-dash {
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.92), rgba(15, 20, 40, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px 20px 20px;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.mock-dash:hover { transform: rotateY(0deg) rotateX(0deg); }

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-2);
}
.mock-dots i:first-child { background: rgba(239, 68, 68, 0.6); }
.mock-dots i:nth-child(2) { background: rgba(245, 158, 11, 0.6); }
.mock-dots i:last-child  { background: rgba(16, 185, 129, 0.6); }
.mock-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.mock-time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-dim); }

.mock-stats {
  display: grid;
  /* minmax(0,1fr): let tiles shrink below content width on small screens */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 6px;
}
.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.mock-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.mock-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-stat-value.good { color: var(--green); }
.mock-stat-sub { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; margin-left: 3px; }

.mock-pulse { padding: 4px 0 10px; }
.mock-pulse svg { width: 100%; height: 56px; display: block; }
.pulse-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawPulse 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}
@keyframes drawPulse {
  0%   { stroke-dashoffset: 1400; }
  70%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.mock-machines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mock-machine {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  min-width: 0;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.running { background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
.status-dot.stopped { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
.mock-mid { font-weight: 700; font-family: var(--font-display); min-width: 74px; }
.mock-order { color: var(--text-dim); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.mock-badge.run  { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.mock-badge.stop { color: #fca5a5; background: rgba(239, 68, 68, 0.14); }

.hero-visual-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 14px;
}

/* ---------------------------------------------------------------
   Industry strip
   --------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 22px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.strip-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}
.strip-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-soft);
}
.strip-items i { color: var(--indigo); font-style: normal; }

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
.section { padding: 100px 0; }
.section-alt {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(99, 102, 241, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--border);
}

.section-head { text-align: center; max-width: 44em; margin: 0 auto 60px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-head h2, .split-copy h2, .cta-inner h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Feature cards
   --------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
  background: var(--surface-2);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-cyan   { color: var(--cyan);   background: rgba(0, 212, 255, 0.10);  border: 1px solid rgba(0, 212, 255, 0.25); }
.icon-purple { color: var(--purple); background: rgba(160, 110, 232, 0.12); border: 1px solid rgba(160, 110, 232, 0.3); }
.icon-indigo { color: #8b8ef7;       background: rgba(99, 102, 241, 0.13); border: 1px solid rgba(99, 102, 241, 0.32); }

.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------------------------------------------------------------
   Steps
   --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 22px;
  align-items: start;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-purple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 0.93rem; }
.step-arrow {
  align-self: center;
  color: var(--indigo);
  font-size: 1.6rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------
   Split (deep-dive) sections
   --------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-rev .split-copy { order: 2; }
.split-rev .split-visual { order: 1; }

.split-copy p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 22px; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mock-panel {
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.92), rgba(15, 20, 40, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 28px;
}
.mock-panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text);
}

/* Horizontal bars */
.hbar {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.83rem;
}
.hbar-label { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.hbar-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible .hbar-track i { width: var(--w); }
.bar-purple { background: var(--grad-purple); }
.bar-indigo { background: linear-gradient(90deg, var(--indigo), #818cf8); }
.bar-cyan   { background: linear-gradient(90deg, #0891b2, var(--cyan)); }
.hbar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); }

/* AI chat mockup */
.mock-chat { display: grid; gap: 14px; }
.chat-msg {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
  max-width: 88%;
}
.chat-msg.user {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  justify-self: end;
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  background: var(--surface-2);
  border: 1px solid var(--border);
  justify-self: start;
  border-bottom-left-radius: 4px;
  color: var(--text-soft);
}
.chat-msg.ai strong { color: var(--cyan); }
.chat-typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  justify-self: start;
}
.chat-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: blink 1.3s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------------------------------------------------------------
   Platform grid
   --------------------------------------------------------------- */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.plat-item {
  background: var(--bg-0);
  padding: 28px 26px;
  transition: background 0.2s ease;
}
.plat-item:hover { background: var(--bg-1); }
.plat-item h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.plat-item p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(0, 212, 255, 0.12), transparent 70%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border-block: 1px solid var(--border);
  padding: 90px 0;
}
.cta-inner { text-align: center; max-width: 42em; margin-inline: auto; }
.cta-inner p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 30px; }

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 28px; }
.contact-alt { display: grid; gap: 4px; }
.contact-alt-label { font-size: 0.85rem; color: var(--text-dim); }
.contact-email {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); opacity: 0.7; }

.hp { display: none; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: rgba(0, 0, 0, 0.25);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .brand-icon { width: 28px; height: 28px; }
.footer .brand-word { font-size: 1.05rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--text); }
.footer-meta { color: var(--text-dim); font-size: 0.82rem; }

/* ---------------------------------------------------------------
   Reveal-on-scroll
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-line, .pulse-dot::after, .chat-typing i { animation: none; }
  .reveal.visible .hbar-track i, .hbar-track i { transition: none; width: var(--w); }
  .mock-dash { transform: none; }
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .mock-dash { transform: none; max-width: 620px; margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-copy { order: 1; }
  .split-rev .split-visual { order: 2; }
  .plat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero { padding: 120px 0 64px; }
  .feature-grid, .plat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mock-stats { gap: 8px; }
  .mock-stat { padding: 8px 10px; }
  .mock-stat-value { font-size: 1.1rem; }
  .mock-stat-label { font-size: 0.6rem; }

  /* Machine rows: badge joins the top line, order drops to its own line */
  .mock-machine { flex-wrap: wrap; row-gap: 4px; padding: 10px 12px; }
  .mock-mid { min-width: 0; }
  .mock-badge { margin-left: auto; }
  .mock-order { flex-basis: 100%; order: 3; font-size: 0.78rem; }

  .mock-dash { padding: 14px 14px 16px; }
  .mock-titlebar { flex-wrap: wrap; }
  .mock-panel { padding: 22px 18px; }
  .hbar { grid-template-columns: 92px 1fr 44px; gap: 8px; font-size: 0.78rem; }
  .card { padding: 26px 22px; }
  .contact-form { padding: 26px 20px; }

  /* Full-width tappable CTAs */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-points { flex-direction: column; gap: 8px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 13, 28, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }
}
