/* ============================================
   Motion+ LLC — Global Stylesheet
   Palette: Black (#0A0A0A), White (#FFFFFF), Crimson (#DC143C)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0A0A0A;
  --black-light: #141414;
  --black-card: #1A1A1A;
  --gray-dark: #2A2A2A;
  --gray-mid: #666;
  --gray-light: #999;
  --white: #FFFFFF;
  --white-off: #F0F0F0;
  --crimson: #DC143C;
  --crimson-dark: #B01030;
  --crimson-glow: rgba(220, 20, 60, 0.25);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1280px;
  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-primary);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { color: var(--gray-light); line-height: 1.7; }
.text-crimson { color: var(--crimson); }
.text-white { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.nav-logo {
  margin-right: auto;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

@media (min-width: 901px) {
  .nav-logo img {
    height: 60px;
  }
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson);
  border-radius: 1px;
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-light);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--black-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--crimson-glow);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-ghost {
  color: var(--crimson);
  padding: 0.85rem 0;
}

.btn-ghost:hover { color: var(--white); }

.btn-ghost svg,
.btn-primary svg,
.btn-outline svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-ghost:hover svg { transform: translateX(4px); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--crimson-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-mid);
  font-size: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Layouts --- */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* --- Product Cards Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(220, 20, 60, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--black-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.product-card-body .tagline {
  color: var(--crimson);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-card-body p {
  font-size: 0.95rem;
  flex: 1;
}

.product-card-body .btn-ghost {
  margin-top: 1rem;
  align-self: flex-start;
}

/* --- Product Detail Page --- */
.product-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .product-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.product-hero-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
}

.product-hero-image img {
  width: 100%;
  height: auto;
}

.product-hero-text .section-label { margin-bottom: 0.75rem; }
.product-hero-text h1 { margin-bottom: 1rem; }
.product-hero-text .tagline {
  font-size: 1.25rem;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.product-hero-text p { margin-bottom: 2rem; }

/* Spec / stat strips */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* Feature list */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--crimson);
}

.feature-item h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.feature-item p {
  font-size: 0.9rem;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.image-gallery img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.02);
}

/* --- 3D Viewer --- */
.stl-viewer-container {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.stl-viewer-container .stl-viewer-canvas {
  width: 100%;
  height: 400px;
  display: block;
}

.stl-viewer-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

.stl-viewer-container canvas:active { cursor: grabbing; }

.stl-viewer-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--gray-mid);
  background: rgba(10,10,10,0.8);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 5;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: rgba(220, 20, 60, 0.2);
  transform: translateY(-2px);
}

.team-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.team-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.team-card .role {
  color: var(--crimson);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Investors Page --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--crimson), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  transform: translateX(-4px);
}

.timeline-item h4 {
  margin-bottom: 0.25rem;
  color: var(--white);
}

.timeline-item .date {
  font-size: 0.8rem;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.award-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.award-card .amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 0.35rem;
}

.award-card .source {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* Allocation bar */
.allocation-chart {
  margin: 2rem 0;
}

.allocation-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
}

.allocation-bar div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  transition: flex var(--transition);
}

.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.allocation-legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.allocation-legend span::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--dot-color, var(--crimson));
}

/* --- Contact Form --- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-glow);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-mid);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-light);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--crimson);
  background: rgba(220, 20, 60, 0.1);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-mid);
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 100%);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.4);
  position: relative;
}

.cta-banner .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Misc --- */
.breadcrumb {
  padding: calc(var(--nav-height) + 1.5rem) 0 0;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.5rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child { order: 1; }

@media (max-width: 768px) {
  .two-col.reverse > :first-child { order: 1; }
  .two-col.reverse > :last-child { order: 2; }
}

/* Patent badge */
.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  color: var(--crimson);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.patent-badge svg {
  width: 14px;
  height: 14px;
}

/* Price tag */
.price-tag {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.price-tag .from {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-light);
}

.price-compare {
  font-size: 0.9rem;
  color: var(--gray-mid);
  text-decoration: line-through;
  margin-left: 0.75rem;
}

/* How it works steps */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-item .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(220, 20, 60, 0.1);
  border: 2px solid var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.step-item h4 { margin-bottom: 0.5rem; }
.step-item p { font-size: 0.9rem; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.comparison-table th {
  color: var(--gray-light);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-table td { color: var(--gray-light); }

.comparison-table tr.highlight td {
  color: var(--white);
  background: rgba(220, 20, 60, 0.06);
  font-weight: 600;
}

.comparison-table tr.highlight td:first-child {
  color: var(--crimson);
}

/* Loading spinner */
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   MOBILE FORMATTING IMPROVEMENTS
   Desktop layout is preserved. These rules only engage on
   smaller screens to make the site feel polished on phones
   and tablets.
   ========================================================== */

/* Tablet breakpoint (≤ 900px) */
@media (max-width: 900px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.2; }
  h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }

  /* Section padding gets tighter on mobile so content doesn't feel lost */
  .section {
    padding: clamp(2.5rem, 7vw, 4rem) 0;
  }

  /* Make stat cards wrap nicely — two per row on tablets */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
  }

  .stat-card { padding: 1.1rem; }
  .stat-card .number { font-size: 1.6rem; }
  .stat-card .label { font-size: 0.8rem; }

  /* Product hero gets stacked earlier and centered */
  .product-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .product-hero-image { margin: 0 auto; max-width: 100%; }
  .product-hero-text { max-width: 100%; }
  .product-hero-text .cta-buttons,
  .product-hero-text > div[style*="display: flex"] {
    justify-content: center;
  }

  /* Buttons become full-width friendly on mobile */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-buttons { justify-content: flex-start; }
  .hero-buttons .btn { flex: 1 1 auto; min-width: 140px; }

  /* Features and steps stack cleanly */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Image gallery becomes one or two columns */
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* 3D viewer height reduces on mobile */
  .stl-viewer-container,
  .stl-viewer-container .stl-viewer-canvas {
    min-height: 320px;
  }

  .stl-viewer-container > div[id$="-viewer"],
  .stl-viewer-container > div[id*="viewer"] {
    height: 320px !important;
  }

  /* Comparison tables become scrollable rather than cramped */
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  /* Breadcrumb adapts */
  .breadcrumb {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.8rem;
  }

  /* Two-column layouts stack */
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* CTA banner on mobile */
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .cta-banner p { font-size: 1rem; }

  /* Product cards */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Team grid — two per row on tablets */
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* Investor page specific */
  .award-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .allocation-legend {
    grid-template-columns: 1fr !important;
  }

  /* Timeline on mobile */
  .timeline-item { padding-left: 1rem; }
}

/* Phone breakpoint (≤ 600px) */
@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* Stat cards: 1 per row on very small phones for readability */
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card .number {
    font-size: 1.5rem;
  }

  /* Team section: single column on phones */
  .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 340px;
    margin: 0 auto !important;
  }

  /* Award grid: single column on phones */
  .award-grid {
    grid-template-columns: 1fr !important;
  }

  /* Image gallery single column */
  .image-gallery {
    grid-template-columns: 1fr;
  }

  /* Hero buttons stack full-width */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Product hero CTAs stack full-width */
  .product-hero-text > div[style*="display: flex"] {
    flex-direction: column;
  }

  .product-hero-text > div[style*="display: flex"] .btn {
    width: 100%;
  }

  /* Smaller 3D viewer on phones */
  .stl-viewer-container,
  .stl-viewer-container .stl-viewer-canvas {
    min-height: 280px;
  }

  .stl-viewer-container > div[id$="-viewer"],
  .stl-viewer-container > div[id*="viewer"] {
    height: 280px !important;
  }

  /* Section labels */
  .section-label {
    font-size: 0.75rem;
  }

  /* CTA banner tightens */
  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: 14px;
  }

  .cta-banner h2 { font-size: 1.5rem; }

  /* Price tag scaling */
  .price-tag {
    font-size: 1.5rem;
  }

  /* Patent badge */
  .patent-badge {
    font-size: 0.7rem;
  }

  /* Allocation bar */
  .allocation-bar {
    flex-direction: column;
    height: auto !important;
  }

  .allocation-segment {
    width: 100% !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Footer tightens */
  .footer-inner {
    gap: 1.5rem;
  }

  /* Breadcrumb wraps */
  .breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Prevent horizontal overflow on any small screen */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  img, video, canvas {
    max-width: 100%;
    height: auto;
  }

  table {
    max-width: 100%;
  }
}
