/* ============================================================
   HAPTAGON: Tactile Spectrum + Tactile Field Design System
   ============================================================ */

:root {
  /* Tactile Spectrum */
  --graphite: #111820;
  --graphite-blue: #1D2A35;
  --coral: #FF5C57;
  --cyan: #42D6D0;
  --ice: #EAF7F5;
  --bg: #F4F6F3;
  --text: #12191F;
  --muted: #68757D;
  --white: #FFFFFF;
  --border: rgba(18, 25, 31, 0.08);
  --border-strong: rgba(18, 25, 31, 0.14);
  --shadow-nav: 0 8px 32px rgba(17, 24, 32, 0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
  --shadow-soft: 0 20px 60px rgba(17, 24, 32, 0.1);
  --radius-nav: 999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-force: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(66, 214, 208, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(255, 92, 87, 0.05), transparent 50%),
    linear-gradient(180deg, #F7F9F6 0%, var(--bg) 40%, #EEF2EF 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.display-xl {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.045em;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.display-md {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.7;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 42rem;
}

.section-head .lede { margin-top: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-force), box-shadow 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--graphite);
  color: var(--ice);
  box-shadow: 0 10px 28px rgba(17, 24, 32, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(17, 24, 32, 0.28), 0 0 0 1px rgba(66, 214, 208, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(66, 214, 208, 0.06);
  transform: translateY(-2px);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 92, 87, 0.28);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 92, 87, 0.36);
}

.btn-ghost-light {
  color: var(--ice);
  border: 1px solid rgba(234, 247, 245, 0.28);
}

.btn-ghost-light:hover {
  background: rgba(234, 247, 245, 0.08);
  border-color: var(--cyan);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.25rem 0;
  transition: padding 0.35s var(--ease-out);
}

.nav-wrap.scrolled { padding-top: 0.65rem; }

.nav {
  width: min(100%, calc(var(--max) + 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-nav);
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.35s var(--ease-out), background 0.35s;
}

.nav-wrap.scrolled .nav {
  box-shadow: 0 12px 40px rgba(17, 24, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
}

.logo-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.logo-type .tactile-o {
  display: inline-block;
  position: relative;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.05em;
  margin: 0 0.02em;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.logo-type .tactile-o::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
}

.logo-type .tactile-o::after {
  content: "";
  position: absolute;
  inset: 38%;
  background: var(--coral);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(17, 24, 32, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-actions .btn { padding: 0.65rem 1.1rem; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.brand-signal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: 0.18em;
  color: var(--graphite);
  margin: 1rem 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-signal .logo-mark { width: 48px; height: 48px; }

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--graphite-blue);
  margin-bottom: 1.1rem;
  max-width: 28rem;
}

.hero-equation {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: -0.35rem 0 1rem;
}

.hero .lede { margin-bottom: 0.25rem; }

/* Hero tactile surface */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.tactile-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.tactile-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 214, 208, 0.18), transparent 70%);
  filter: blur(20px);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hex-surface {
  position: relative;
  width: min(88%, 420px);
  aspect-ratio: 1;
  cursor: crosshair;
  touch-action: none;
}

.hex-surface svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-label {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 8px 24px rgba(17, 24, 32, 0.06);
}

.hero-label:nth-child(1) { top: 6%; left: 0; color: var(--coral); }
.hero-label:nth-child(2) { top: 18%; right: 0; color: var(--cyan); }
.hero-label:nth-child(3) { bottom: 22%; left: 0; }
.hero-label:nth-child(4) { bottom: 8%; right: 4%; }

.fingertip {
  position: absolute;
  width: 54px;
  height: 72px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
  filter: drop-shadow(0 8px 16px rgba(17, 24, 32, 0.2));
  z-index: 5;
}

/* ============================================================
   INTRO: Editorial
   ============================================================ */
.intro {
  background:
    linear-gradient(180deg, transparent, rgba(234, 247, 245, 0.55) 20%, rgba(234, 247, 245, 0.55) 80%, transparent);
}

.intro-quote {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 16ch;
}

.intro-quote span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.intro-body {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.word-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--border-strong);
  padding-top: 2.5rem;
}

.word-block {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
}

.word-block .giant {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wave-line {
  margin-top: 1rem;
  height: 28px;
  width: 100%;
}

.wave-line path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.7;
}

.word-block:nth-child(2) .wave-line path { stroke: var(--coral); }
.word-block:nth-child(3) .wave-line path { stroke: var(--graphite-blue); }

.word-block.is-visible .wave-line path {
  animation: wavePulse 2.4s ease-in-out infinite;
}

@keyframes wavePulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.5; }
  50% { stroke-dashoffset: -20; opacity: 1; }
}

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  opacity: 0.35;
  z-index: 0;
}

.pipe-stage {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-force), border-color 0.3s;
}

.pipe-stage:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 214, 208, 0.45);
}

.pipe-stage .step {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.pipe-stage:nth-child(2) .step { color: var(--coral); }
.pipe-stage:nth-child(4) .step { color: var(--graphite); }

.pipe-stage h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.pipe-stage ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.25rem 0;
  padding-left: 0.9rem;
  position: relative;
}

.pipe-stage ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.pipe-stage:nth-child(3) ul li::before { background: var(--coral); }

.signal-path {
  height: 3px;
  margin-top: 1rem;
  border-radius: 3px;
  background: rgba(17, 24, 32, 0.06);
  overflow: hidden;
  position: relative;
}

.signal-path::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: signalFlow 2.2s linear infinite;
}

@keyframes signalFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(350%); }
}

/* ============================================================
   HAPTICS ENGINE (dark)
   ============================================================ */
.engine-section {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(66, 214, 208, 0.12), transparent 60%),
    radial-gradient(600px 400px at 10% 80%, rgba(255, 92, 87, 0.08), transparent 55%),
    linear-gradient(165deg, var(--graphite) 0%, var(--graphite-blue) 100%);
  color: var(--ice);
  border-radius: clamp(0px, 3vw, 32px);
  margin: 0 clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
}

.engine-section h2,
.engine-section .eyebrow { color: var(--ice); }
.engine-section .eyebrow { color: rgba(234, 247, 245, 0.65); }
.engine-section .eyebrow::before { background: var(--cyan); }
.engine-section .lede { color: rgba(234, 247, 245, 0.65); }

.engine-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.actuator-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(234, 247, 245, 0.1);
  border-radius: var(--radius-lg);
}

.actuator {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(234, 247, 245, 0.06);
  border: 1px solid rgba(66, 214, 208, 0.2);
  position: relative;
  overflow: hidden;
}

.actuator::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.35;
  transform: scale(0.6);
}

.actuator.active::after {
  animation: actuatorPulse 1.6s ease-out infinite;
  background: var(--coral);
  opacity: 0.9;
}

.actuator.active {
  border-color: rgba(255, 92, 87, 0.55);
  box-shadow: 0 0 18px rgba(255, 92, 87, 0.25);
}

@keyframes actuatorPulse {
  0% { transform: scale(0.5); opacity: 0.95; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.5); opacity: 0; }
}

.engine-stats {
  display: grid;
  gap: 0.85rem;
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 247, 245, 0.1);
  border-radius: var(--radius-sm);
}

.stat-card .k {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.5);
  font-weight: 600;
}

.stat-card .v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-card .v.coral { color: var(--coral); }
.stat-card .v.cyan { color: var(--cyan); }

/* ============================================================
   FORCE MAP
   ============================================================ */
.force-map-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.force-canvas-frame {
  position: relative;
  background: var(--graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(66, 214, 208, 0.15);
  box-shadow: var(--shadow-soft);
}

#forceMap {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 420px;
  cursor: crosshair;
}

.force-legend {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.7);
  font-weight: 600;
}

.legend-bar {
  width: 120px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), #7BE0A8, var(--coral));
}

.force-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.force-readout {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.force-readout h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.force-readout .big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.pressure-levels {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.plevel {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.plevel .bar {
  height: 6px;
  background: rgba(17, 24, 32, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.plevel .bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  width: var(--w, 40%);
  transition: width 0.4s var(--ease-force);
}

.plevel.low .bar i { background: var(--cyan); }
.plevel.med .bar i { background: #5FD4A0; }
.plevel.high .bar i { background: var(--coral); }

/* ============================================================
   TECH MODULES
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.tech-module {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.4s var(--ease-force), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-module:hover {
  transform: translateY(-5px);
  border-color: rgba(66, 214, 208, 0.4);
  box-shadow: 0 16px 40px rgba(17, 24, 32, 0.08);
}

.tech-viz {
  height: 72px;
  margin-bottom: 1.1rem;
  position: relative;
}

.tech-module h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.tech-module p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   APPLICATIONS
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.4s var(--ease-force);
}

.app-card:hover {
  border-color: rgba(255, 92, 87, 0.35);
  transform: translateY(-3px);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ice);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.app-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   AUTOMOTIVE / XR / ROBOTICS feature panels
   ============================================================ */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.feature-panel.reverse { direction: rtl; }
.feature-panel.reverse > * { direction: ltr; }

.panel-visual {
  background: var(--graphite);
  border-radius: var(--radius-lg);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 214, 208, 0.12);
}

.dash-ui {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.5);
  font-weight: 600;
}

.dash-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dash-btn {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(234, 247, 245, 0.05);
  border: 1px solid rgba(234, 247, 245, 0.12);
  color: var(--ice);
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-force);
}

.dash-btn:hover,
.dash-btn.active {
  border-color: var(--coral);
  background: rgba(255, 92, 87, 0.12);
  transform: scale(1.02);
}

.feedback-curve {
  margin-top: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

.feedback-curve .label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.45);
  margin-bottom: 0.5rem;
}

.curve-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.curve-steps span.arrow { color: rgba(234, 247, 245, 0.3); font-weight: 400; }

.xr-visual, .robot-visual {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 380px;
  padding: 1.5rem;
}

.sensor-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sensor-tag {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(17, 24, 32, 0.75);
  color: var(--ice);
  border: 1px solid rgba(66, 214, 208, 0.35);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.sensor-tag strong {
  display: block;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.15rem;
}

.sensor-tag.coral strong { color: var(--coral); }

/* ============================================================
   PLATFORM ARCHITECTURE
   ============================================================ */
.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.arch-node {
  width: 100%;
  text-align: center;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.arch-node:hover {
  border-color: var(--cyan);
  transform: scale(1.02);
}

.arch-node.engine {
  background: var(--graphite);
  color: var(--ice);
  border-color: transparent;
}

.arch-node.output {
  background: var(--ice);
  border-color: rgba(66, 214, 208, 0.4);
}

.arch-arrow {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, var(--cyan), var(--coral));
  position: relative;
}

.arch-arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--coral);
}

/* ============================================================
   RESEARCH
   ============================================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.research-item {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.research-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.research-item:nth-child(even)::before {
  background: linear-gradient(90deg, var(--coral), transparent);
}

.research-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.research-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.research-diagram {
  height: 48px;
  margin-top: 1rem;
  opacity: 0.7;
}

/* ============================================================
   LATENCY TIMELINE
   ============================================================ */
.latency-section {
  background: var(--ice);
  border-radius: clamp(0px, 3vw, 32px);
  margin: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.timeline {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0 1rem;
}

.timeline-track {
  position: absolute;
  top: 38px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(17, 24, 32, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.timeline-signal {
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: latencySignal 3s ease-in-out infinite;
  box-shadow: 0 0 12px var(--cyan);
}

@keyframes latencySignal {
  0% { left: -18%; }
  100% { left: 100%; }
}

.timeline-points {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.t-point {
  text-align: center;
}

.t-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--graphite);
  border: 3px solid var(--cyan);
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 4px rgba(66, 214, 208, 0.15);
}

.t-point:last-child .t-dot {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 92, 87, 0.15);
}

.t-point .name {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.t-point .ms {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ============================================================
   TACTILE EXPERIENCE GRID
   ============================================================ */
.feel-section {
  position: relative;
}

.feel-section .section-head {
  max-width: 20ch;
}

.tactile-playground {
  position: relative;
  background: var(--graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(66, 214, 208, 0.15);
  cursor: crosshair;
  touch-action: none;
}

#tactileGrid {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
}

.feel-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.45);
  font-weight: 600;
  pointer-events: none;
}

/* ============================================================
   INDUSTRIES / INTEGRATIONS / TRUST
   ============================================================ */
.industry-grid,
.integration-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.industry-card,
.integration-chip,
.trust-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.3s, transform 0.35s var(--ease-force);
}

.industry-card:hover,
.trust-card:hover {
  border-color: rgba(66, 214, 208, 0.45);
  transform: translateY(-3px);
}

.industry-card h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
}

.industry-icon {
  width: 40px;
  height: 40px;
  color: var(--graphite);
}

.integration-chip {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.1rem;
}

.integration-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============================================================
   DEVELOPER
   ============================================================ */
.dev-section {
  background:
    linear-gradient(160deg, var(--graphite) 0%, #0c1218 100%);
  color: var(--ice);
  border-radius: clamp(0px, 3vw, 32px);
  margin: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.dev-section h2 { color: var(--ice); }
.dev-section .lede { color: rgba(234, 247, 245, 0.6); }
.dev-section .eyebrow { color: rgba(234, 247, 245, 0.55); }

.dev-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.code-window {
  background: #0a0f14;
  border: 1px solid rgba(234, 247, 245, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-chrome {
  display: flex;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(234, 247, 245, 0.08);
}

.code-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(234, 247, 245, 0.2);
}

.code-chrome i:nth-child(1) { background: #FF5C57; }
.code-chrome i:nth-child(2) { background: #E8C547; }
.code-chrome i:nth-child(3) { background: #42D6D0; }

.code-window pre {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #c8d4dc;
}

.code-window .kw { color: var(--coral); }
.code-window .fn { color: var(--cyan); }
.code-window .str { color: #8BE0B0; }
.code-window .num { color: #E8C547; }
.code-window .prop { color: #A8C0D0; }

.live-response {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(234, 247, 245, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 280px;
}

.live-response .label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 247, 245, 0.45);
  font-weight: 600;
}

#devPulse {
  width: 180px;
  height: 180px;
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-study {
  border: 1px dashed rgba(17, 24, 32, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.55);
}

.case-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 92, 87, 0.3);
  border-radius: 6px;
}

.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.compare-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
}

.compare-box.after {
  background: var(--graphite);
  color: var(--ice);
  border-color: transparent;
}

.compare-box .tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.compare-box.after .tag { color: var(--cyan); }

.compare-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: inherit;
}

.compare-box p {
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-box.after p { color: rgba(234, 247, 245, 0.55); }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-placeholder {
  text-align: center;
  padding: 1.25rem;
  background: var(--ice);
  border-radius: var(--radius-sm);
}

.metric-placeholder .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--graphite);
}

.metric-placeholder .desc {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.metric-placeholder .ph {
  font-size: 0.65rem;
  color: var(--coral);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--cyan);
  font-weight: 400;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--coral);
}

.faq-item .answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  background: var(--graphite);
  color: var(--ice);
  border-radius: clamp(0px, 3vw, 32px);
  margin: 0 clamp(0.75rem, 2vw, 1.5rem);
  overflow: hidden;
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 1.5rem;
}

.final-cta h2 {
  color: var(--ice);
  max-width: 12ch;
  margin-inline: auto;
}

.final-cta .lede {
  margin: 1.25rem auto 0;
  color: rgba(234, 247, 245, 0.6);
  max-width: 28rem;
}

.final-cta .cta-row {
  justify-content: center;
}

.final-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.35;
}

.final-field svg {
  width: min(70%, 520px);
  animation: fieldPulse 6s ease-in-out infinite;
}

@keyframes fieldPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.06); opacity: 0.45; }
}

.final-cta .container { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--graphite);
  color: rgba(234, 247, 245, 0.65);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(234, 247, 245, 0.08);
}

.footer .logo-type { color: var(--ice); }

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 22ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(234, 247, 245, 0.4);
  font-size: 0.8rem;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(244, 246, 243, 0.97);
  backdrop-filter: blur(20px);
  padding: 6rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-panel.open { display: flex; }

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-panel .btn { margin-top: 1rem; width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid,
  .engine-panel,
  .force-map-wrap,
  .feature-panel,
  .feature-panel.reverse,
  .dev-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline::before { display: none; }

  .tech-grid { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid,
  .integration-grid,
  .trust-grid { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 767px) {
  .container { width: min(100% - 1.5rem, var(--max)); }

  .nav-actions .btn-primary span.hide-sm { display: none; }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-labels .hero-label {
    font-size: 0.7rem;
    padding: 0.4rem 0.55rem;
  }

  .word-triad {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .word-block {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
  }

  .pipeline,
  .tech-grid,
  .app-grid,
  .research-grid,
  .industry-grid,
  .integration-grid,
  .trust-grid,
  .case-compare,
  .metrics-row,
  .timeline-points {
    grid-template-columns: 1fr;
  }

  .timeline-track { display: none; }

  .t-point {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .t-dot { margin: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }

  .actuator-grid { grid-template-columns: repeat(4, 1fr); }

  .dash-controls { grid-template-columns: 1fr; }

  .tactile-playground,
  #tactileGrid { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
