:root {
  --bg-canvas: #0c1c20;
  --bg-surface: #142a30;
  --bg-surface-elevated: #1a353c;
  --text-primary: #e0f2f1;
  --text-muted: #8faeb2;
  --accent-primary: #ff6f59;
  --accent-hover: #ff8573;
  --border-subtle: rgba(255, 111, 89, 0.22);
  --border-glass: rgba(224, 242, 241, 0.12);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 34px -6px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 28px -6px rgba(255, 111, 89, 0.45);
  --radius-card: 20px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
  min-height: 100vh;
}

/* Micro bar & Header (Static Flow, Moves with scroll) */
.micro-bar {
  background: #081417;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.micro-bar .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: var(--glow-accent);
}

.site-header {
  position: static;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 24px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.brand-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-link span {
  color: var(--accent-primary);
}
.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-desktop a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s var(--ease-kinetic);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-glass);
  padding: 16px 24px;
}
.mobile-nav-drawer.open {
  display: block;
}
.mobile-nav-drawer a {
  display: block;
  padding: 10px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-nav-drawer a:last-child {
  border-bottom: none;
}
.mobile-nav-drawer a:hover {
  color: var(--accent-primary);
}

/* Layout Core */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-readable {
  max-width: 72ch;
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #0c1c20;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic), background-color 0.2s;
  box-shadow: var(--shadow-elevation);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-secondary {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  position: relative;
  transition: color 0.2s;
}
.btn-secondary::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 8px;
  width: calc(100% - 40px);
  height: 1px;
  background-color: var(--accent-primary);
  transition: transform 0.2s;
}
.btn-secondary:hover::after {
  transform: scaleY(2);
}

/* Hero Section */
.hero-split {
  padding: 60px 0 50px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 111, 89, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-image-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-elevation);
  background: var(--bg-surface);
  position: relative;
}
.hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Stat Strip Component */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0 60px;
}
.stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.stat-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
}
.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Card Grids */
.section-head {
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-bottom: 60px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-elevation);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-kinetic), border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}
.card-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  height: 190px;
  background: #091518;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 18px;
}

/* Lab Accordion Component */
.accordion-group {
  margin-bottom: 60px;
}
.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-trigger:hover {
  color: var(--accent-primary);
}
.accordion-indicator {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.accordion-item.active .accordion-indicator {
  transform: rotate(45deg);
}
.accordion-content {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.accordion-item.active .accordion-content {
  display: block;
}

/* Spec Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 26px 0 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
}
table.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
table.tech-table th, table.tech-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.94rem;
}
table.tech-table th {
  background: #09171b;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
table.tech-table tr:last-child td {
  border-bottom: none;
}

/* Interactive Gait / Recommendation Tool */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 30px;
  margin: 40px 0 60px;
  box-shadow: var(--shadow-elevation);
}
.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.form-field input, .form-field select, .form-field textarea {
  background: #09171a;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.tool-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.tool-output {
  margin-top: 24px;
  padding: 18px;
  background: #09171a;
  border-radius: 12px;
  border: 1px dashed var(--border-glass);
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: #bbf7d0;
  display: none;
}

/* Kinetic Tabs */
.tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Callout Box */
.lab-callout {
  background: linear-gradient(135deg, rgba(22, 61, 73, 0.8), rgba(13, 42, 51, 0.95));
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 24px 28px;
  margin: 30px 0;
}
.lab-callout h4 {
  font-size: 1.15rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

/* Footer Section */
.site-footer {
  background: #071316;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px;
  margin-top: 80px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about p {
  margin: 12px 0;
  max-width: 45ch;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-col h5 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-nav-col a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-legal-links {
  display: flex;
  gap: 18px;
}
.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: var(--accent-primary);
}

/* Scroll reveal helper */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive queries */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
