/* InnoKart - Design System & Stylesheet */
/* Theme: Dark, warm, premium. Background near-black brown #0a0705, text #f3ece4, accent #e08a4b */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  /* Colors */
  --bg-primary: #0a0705;
  --bg-secondary: #120d09;
  --bg-surface: #18110c;
  --bg-surface-elevated: #201710;
  --bg-card: #150f0b;
  --bg-card-hover: #1f1610;
  --bg-overlay: rgba(10, 7, 5, 0.85);

  --border-subtle: #241b14;
  --border-medium: #35271d;
  --border-accent: rgba(224, 138, 75, 0.4);

  --text-primary: #f3ece4;
  --text-secondary: #c7bbb0;
  --text-muted: #8d8073;
  --text-inverse: #0a0705;

  --accent: #e08a4b;
  --accent-hover: #f19b5c;
  --accent-subtle: rgba(224, 138, 75, 0.12);
  --accent-glow: rgba(224, 138, 75, 0.25);

  --status-pass: #5bb381;
  --status-pass-bg: rgba(91, 179, 129, 0.12);

  /* Fonts */
  --font-text: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Typography Scales */
  --fs-2xs: 0.6875rem;
  /* 11px */
  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-md: 1.125rem;
  /* 18px */
  --fs-lg: 1.25rem;
  /* 20px */
  --fs-xl: 1.5rem;
  /* 24px */
  --fs-2xl: 2rem;
  /* 32px */
  --fs-3xl: 2.75rem;
  /* 44px */
  --fs-4xl: 3.5rem;
  /* 56px */

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions & Motion */
  --ease-motion: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 150ms var(--ease-motion);
  --transition-normal: 260ms var(--ease-motion);
  --transition-smooth: 350ms var(--ease-motion);

  /* Layout */
  --container-max: 1240px;
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility & Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* Typography Helpers */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--accent);
}

.mono-subtle {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 300ms var(--ease-motion),
    border-color 300ms var(--ease-motion),
    backdrop-filter 300ms var(--ease-motion),
    -webkit-backdrop-filter 300ms var(--ease-motion),
    box-shadow 300ms var(--ease-motion);
}

.navbar.is-scrolled {
  background-color: rgba(10, 7, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-logo span {
  color: var(--accent);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 250ms var(--ease-motion),
    background-color 200ms var(--ease-motion),
    border-color 200ms var(--ease-motion),
    box-shadow 200ms var(--ease-motion),
    color 200ms var(--ease-motion);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(224, 138, 75, 0.25);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 18px rgba(224, 138, 75, 0.35);
  }
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background-color: var(--bg-surface-elevated);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
  }
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-xs);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  background-color: var(--bg-surface);
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(circle at 68% 40%, #24140a 0%, #120a05 50%, #0a0705 90%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-frame {
  position: relative;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-y;
  display: block;
}

/* WebGL Fallback Styles */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-2xl);
  background: linear-gradient(180deg, #0a0705 0%, #24140a 55%, #140b06 60%, #080503 100%);
  pointer-events: none;
}

.fallback-card {
  background: rgba(18, 13, 9, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 440px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.fallback-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-2xs) 0 var(--space-md);
}

.fallback-parts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

.fallback-part-item {
  line-height: 1.4;
  font-size: var(--fs-xs);
}

.fallback-part-item strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  text-transform: capitalize;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.85rem;
  background-color: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-headline {
  font-size: clamp(2.2rem, 4.2vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-paragraph {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xs);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-stat-value span {
  color: var(--accent);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero 3D Stage (Right side of hero on desktop) */
.hero-3d-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.hero-3d-caption {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background-color: rgba(18, 13, 9, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Category Ticker Strip */
.ticker-wrap {
  overflow: hidden;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  gap: var(--space-xl);
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticker-separator {
  color: var(--accent);
  opacity: 0.6;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Inventions Section */
.inventions-section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
}

.section-headline {
  font-size: clamp(1.8rem, 3.2vw, var(--fs-3xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subhead {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 620px;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
}

/* Inventions Grid */
.inventions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Invention Card */
.invention-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform 280ms var(--ease-motion),
    box-shadow 280ms var(--ease-motion),
    border-color 280ms var(--ease-motion),
    background-color 280ms var(--ease-motion);
  position: relative;
  overflow: hidden;
}

.invention-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, -500px) var(--my, -500px),
      rgba(224, 138, 75, 0.16),
      transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease-motion);
  z-index: 1;
}

.invention-card>* {
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .invention-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }

  .invention-card:hover::before {
    opacity: 1;
  }
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.card-category {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.card-stock {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.card-price {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.card-maker {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.card-maker strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Problem & Solution Strip */
.card-tech-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.summary-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary-text {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.45;
}

/* How It Works Steps */
.card-how-it-works {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.how-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--accent);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Specs Grid */
.card-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.spec-val {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-primary);
}

/* Card Metrics Bar */
.card-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.card-metrics-bar strong {
  color: var(--text-primary);
}

/* Card Actions */
.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-xs);
}

/* Section: Inside Every Invention */
.inside-tech-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.inside-tech-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.inside-tech-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.inside-tech-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.inside-point-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}

.inside-point-card:hover {
  border-color: var(--border-medium);
}

.point-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  padding: 4px 8px;
  background-color: var(--accent-subtle);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.point-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.point-text strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.point-text p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Interactive Teardown Preview Card */
.passport-preview-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.passport-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.passport-preview-title {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.passport-preview-serial {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  padding: 2px 8px;
  background-color: var(--accent-subtle);
  border-radius: var(--radius-xs);
}

.passport-test-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.passport-test-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  padding: 0.5rem 0.65rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-xs);
}

.test-row-label {
  color: var(--text-secondary);
}

.test-row-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-pass-badge {
  font-size: var(--fs-2xs);
  color: var(--status-pass);
  background-color: var(--status-pass-bg);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

/* Section: How an invention gets here (4 steps) */
.how-it-works-section {
  padding: var(--space-4xl) 0;
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.step-card-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step-card-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.step-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section: Innovation in Numbers (Row) */
.numbers-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.numbers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.number-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition-fast);
}

.number-card:hover {
  border-color: var(--border-medium);
}

.number-stat {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, var(--fs-4xl));
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.number-stat span {
  color: var(--accent);
}

.number-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.number-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Maker Call to Action */
.cta-section {
  padding: var(--space-4xl) 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #20150d 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
  display: block;
  gap: var(--space-2xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: none;
}

.cta-headline {
  font-size: clamp(1.6rem, 2.8vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.maker-form {
  margin-top: var(--space-xl);
}

.maker-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.maker-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.4rem;
}

.maker-field-full {
  grid-column: 1 / -1;
}

.maker-field label {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.maker-field label span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 400;
}

.maker-field input,
.maker-field select,
.maker-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font: var(--fs-sm) var(--font-text);
}

.maker-field textarea {
  min-height: 92px;
  resize: vertical;
}

.maker-field input:focus,
.maker-field select:focus,
.maker-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.maker-counter {
  align-self: flex-end;
  color: var(--text-muted);
  font: var(--fs-2xs) var(--font-mono);
}

.maker-form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.maker-form-actions .cta-note {
  text-align: left;
}

.maker-form-message {
  min-height: 1.5em;
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.maker-form-message.is-error {
  color: #ff9a8e;
}

.maker-form-message.is-success {
  color: #8bd7a9;
}

/* Footer */
.site-footer {
  background-color: #060403;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 320px;
}

.footer-summary {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-bottom strong {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Technology Teardown & Passport Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.modal-close-btn {
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Modal Content Tabs */
.modal-tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xs);
}

.modal-tab-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-tab-btn.active {
  background-color: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}

.modal-tab-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-tab-panel.active {
  display: flex;
}

/* Modal Parts Stack */
.modal-parts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal-part-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--transition-fast);
}

.modal-part-item:hover {
  border-color: var(--border-medium);
}

.part-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.part-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.part-cost {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}

.part-role {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.45;
}

.part-source {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  background-color: var(--bg-surface);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

/* Modal Passport View */
.modal-passport-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.passport-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 3000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries (375px, 768px, 1440px) */
@media (max-width: 1024px) {
  .inventions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 0;
  }

  .hero-frame {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + var(--space-xs));
    align-items: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .hero-3d-stage {
    order: -1;
    min-height: 220px;
    margin-bottom: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .inside-tech-wrap {
    grid-template-columns: 1fr;
  }

  .numbers-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .inventions-grid {
    grid-template-columns: 1fr;
  }

  .steps-strip {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
  }

  .modal-dialog {
    padding: var(--space-md);
  }
}

/* Fixes */
.hero-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Scroll Reveal System */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 550ms var(--ease-motion),
    transform 550ms var(--ease-motion);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Touch & Reduced Motion Guarantees */
@media (hover: none),
(pointer: coarse) {
  .invention-card:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
  }

  .invention-card::before {
    display: none !important;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .ticker-wrap:hover .ticker-track {
    animation-play-state: running;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ticker-track {
    animation: none !important;
  }

  .invention-card {
    transform: none !important;
    transition: none !important;
  }

  .invention-card::before {
    display: none !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Shopping & Detail Features (InnoKart E-Commerce System)
   ========================================================================== */

/* Inventions Toolbar: Search & Sort */
.inventions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.search-box-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.65rem 2.4rem 0.65rem 2.6rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.sort-box-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.sort-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sort-select {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

.inventions-no-results {
  grid-column: 1 / -1;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.no-results-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.no-results-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 400px;
}

/* Navbar Cart Button & Badge */
.cart-toggle-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: scale(1);
  transition: transform 250ms var(--ease-motion);
}

.cart-badge.bump {
  transform: scale(1.35);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 4, 3, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-motion), visibility 300ms var(--ease-motion);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 350ms var(--ease-motion);
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.drawer-title-wrap h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.cart-drawer-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-primary);
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  gap: var(--space-sm);
  color: var(--text-muted);
}

.cart-item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xs);
}

.cart-item-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--border-subtle);
}

.cart-item-total {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover:not(:disabled) {
  background-color: var(--bg-surface-elevated);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-value {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  min-width: 24px;
  text-align: center;
  user-select: none;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-remove-btn:hover {
  color: #ff6b6b;
}

.drawer-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.drawer-summary-row.total-row {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xs);
}

.free-shipping-tag {
  color: var(--status-pass);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
}

/* Modal Enhancements & Tabs */
.modal-dialog {
  max-width: 820px;
}

.modal-tabs {
  overflow-x: auto;
  white-space: nowrap;
}

/* Tab 2: How It Works Step Wizard */
.step-wizard-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
}

.step-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.step-progress-track {
  height: 4px;
  background-color: var(--border-medium);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  background-color: var(--accent);
  transition: width 300ms var(--ease-motion);
}

.step-card-active {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-huge-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-card-text {
  font-size: var(--fs-base);
  color: var(--text-primary);
  line-height: 1.6;
}

.step-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Tab 3: Build Chips */
.chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.component-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.build-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.build-stat-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
}

.build-stat-val {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.build-stat-lbl {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tab 4: Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.specs-table th,
.specs-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.specs-table td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  width: 45%;
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Tab 5: Inside 3D Interactive Scene */
.inside-3d-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.inside-3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: radial-gradient(circle at 50% 50%, #20140b 0%, #0d0906 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: grab;
}

.inside-3d-canvas-wrap:active {
  cursor: grabbing;
}

.inside-3d-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.inside-3d-hint {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(10, 7, 5, 0.75);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  pointer-events: none;
}

.explode-slider-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--bg-card);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.explode-slider-bar label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  white-space: nowrap;
}

.explode-slider-bar input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.inside-part-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color 200ms var(--ease-motion), box-shadow 200ms var(--ease-motion);
}

.inside-part-card.active-part {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-subtle);
}

/* Tab 6: Passport & QR Canvas */
.passport-panel-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 640px) {
  .passport-panel-layout {
    grid-template-columns: 1fr;
  }
}

.passport-qr-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.passport-qr-canvas {
  background-color: #060403;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
}

.passport-qr-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modal Footer */
.modal-footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  gap: var(--space-md);
}

.modal-price-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stock-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--status-pass);
  background: var(--status-pass-bg);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Innovation Features: Compare & Impact Calculator
   ========================================================================== */

/* Card Compare Checkbox */
.card-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  user-select: none;
  background: var(--bg-surface);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.card-compare-label:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.compare-checkbox {
  accent-color: var(--accent);
  cursor: pointer;
  width: 13px;
  height: 13px;
}

/* Floating Compare Bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(14, 10, 7, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  z-index: 2500;
  transform: translateY(100%);
  transition: transform 320ms var(--ease-motion);
  padding: var(--space-sm) 0;
}

.compare-bar.is-visible {
  transform: translateY(0);
}

.compare-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.compare-bar-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.compare-bar-badge {
  background-color: var(--accent-subtle);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent-glow);
}

.compare-bar-label {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.compare-thumbnails {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-primary);
}

.compare-chip-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: bold;
}

.compare-chip-remove:hover {
  color: #ff6b6b;
}

.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Side-by-Side Comparison Table Modal */
.compare-dialog {
  max-width: 960px;
  width: 95%;
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.compare-table thead th {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  text-align: left;
  min-width: 180px;
}

.compare-table thead th:first-child {
  min-width: 150px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.compare-device-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-device-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
}

.compare-device-cat {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--accent);
  text-transform: uppercase;
}

.compare-row-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: rgba(255, 255, 255, 0.02);
}

.compare-cell {
  color: var(--text-secondary);
  transition: background-color var(--transition-fast);
}

.compare-cell.is-best {
  background-color: rgba(91, 179, 129, 0.12);
  color: var(--status-pass);
  font-weight: 600;
}

.compare-best-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background-color: var(--status-pass);
  color: #060403;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Impact Calculator Section */
.calculator-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calculator-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.calc-device-selector {
  display: flex;
  gap: var(--space-xs);
  background-color: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
  border: 1px solid var(--border-subtle);
}

.calc-device-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-device-btn.active {
  background-color: var(--accent);
  color: var(--text-inverse);
  font-weight: 700;
}

.calc-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 768px) {
  .calc-body-grid {
    grid-template-columns: 1fr;
  }
}

.calc-controls-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-slider-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.calc-slider-val {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 6px;
  border-radius: var(--radius-full);
}

.calc-results-col {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.calc-results-col::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(224, 138, 75, 0.15), transparent 70%);
  pointer-events: none;
}

.calc-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 520px) {
  .calc-metrics-row {
    grid-template-columns: 1fr;
  }
}

.calc-metric-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-metric-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-metric-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

.estimate-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.calc-metric-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-mono);
}

.calc-metric-num span {
  color: var(--accent);
}

.calc-metric-unit {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.calc-formula-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-formula-title {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.calc-formula-text {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: var(--font-mono);
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .compare-bar {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .brand-tagline,
  .nav-actions > .btn-primary {
    display: none;
  }

  .nav-menu .mobile-submit-link {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    color: var(--text-inverse);
    font-weight: 600;
    text-align: center;
  }

  .nav-menu .mobile-submit-link::after {
    display: none;
  }

  .nav-menu .mobile-submit-link:hover {
    color: var(--text-inverse);
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .hero-frame {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: hidden;
    padding-top: var(--nav-height);
  }

  #hero-canvas {
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 45vh;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
    position: relative;
    z-index: 3;
  }

  .hero-3d-stage {
    order: -1;
    flex: 0 0 45vh;
    width: 100%;
    min-height: 0;
    height: 45vh;
    margin: 0;
    justify-content: flex-end;
    padding-bottom: var(--space-md);
    z-index: 3;
  }

  .hero-3d-caption {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: var(--space-xs);
    max-width: calc(100vw - 2rem);
    padding: 0.4rem 0.7rem;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    padding: var(--space-lg) 0 var(--space-xl);
    isolation: isolate;
  }

  .hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 -1rem -1rem;
    background: linear-gradient(
      180deg,
      rgba(10, 7, 5, 0.35) 0%,
      rgba(10, 7, 5, 0.92) 18%,
      #0a0705 100%
    );
    pointer-events: none;
  }

  .hero-actions {
    gap: var(--space-sm);
  }

  .hero-headline {
    text-wrap: balance;
  }

  .hero-stat-label,
  .summary-text,
  .card-maker {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
  }

  .card-maker strong {
    color: rgba(255, 255, 255, 0.9);
  }

  .filter-btn,
  .card-category,
  .card-stock,
  .summary-label,
  .spec-key,
  .card-metrics-bar {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.74);
  }

  .spec-val {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
  }
}

/* Demo checkout and order tracking */
.orders-panel {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background:
    radial-gradient(circle at 85% 8%, rgba(224, 138, 75, 0.12), transparent 26rem),
    var(--bg-primary);
  color: var(--text-primary);
}

.orders-panel.is-open {
  display: flex;
}

.orders-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) max(var(--space-lg), calc((100vw - 900px) / 2));
  background: rgba(10, 7, 5, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.orders-panel-header h2 {
  margin-top: 0.2rem;
  font-size: var(--fs-xl);
}

.orders-close-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.orders-panel-content {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: var(--space-xl) 0 var(--space-3xl);
}

.checkout-progress {
  margin-bottom: var(--space-2xl);
}

.checkout-progress-track {
  height: 4px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}

.checkout-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 250ms var(--ease-motion);
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  list-style: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.checkout-steps li.active,
.checkout-steps li.complete {
  color: var(--accent);
}

.checkout-step-panel h3,
.orders-list-heading {
  margin-bottom: var(--space-md);
  font-size: var(--fs-lg);
}

.checkout-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-field input,
.checkout-field textarea,
.order-track-form input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font: inherit;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.order-track-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.checkout-field textarea {
  resize: vertical;
}

.demo-payment-note {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
}

.payment-options {
  display: grid;
  gap: var(--space-sm);
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.payment-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.payment-options input {
  accent-color: var(--accent);
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.checkout-error,
.orders-message.is-error {
  margin-top: var(--space-md);
  color: #ff9b8f;
}

.checkout-review-items,
.orders-list {
  display: grid;
  gap: var(--space-sm);
}

.checkout-review-item,
.orders-list-card,
.order-result-card {
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.checkout-review h4 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: var(--fs-sm);
}

.checkout-review-address {
  white-space: pre-line;
  color: var(--text-secondary);
}

.checkout-review-payment {
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

.checkout-review-total {
  margin-top: var(--space-sm);
  color: var(--accent);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.order-confirmation {
  width: min(100% - 2rem, 560px);
  margin: auto;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.order-confirmation h3 {
  margin: var(--space-sm) 0;
  font-size: var(--fs-xl);
}

.order-confirmation > p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.order-confirmation strong {
  color: var(--accent);
  font-family: var(--font-mono);
}

.order-checkmark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto var(--space-lg);
  place-items: center;
  border: 2px solid var(--status-pass);
  border-radius: 50%;
  animation: order-check-pop 420ms var(--ease-motion) both;
}

.order-checkmark span {
  width: 22px;
  height: 12px;
  border-bottom: 3px solid var(--status-pass);
  border-left: 3px solid var(--status-pass);
  transform: translateY(-2px) rotate(-45deg);
}

@keyframes order-check-pop {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

.order-confirmation .btn {
  margin: var(--space-xs);
}

.order-track-form {
  margin-bottom: var(--space-lg);
}

.order-track-form > label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.order-track-form > div {
  display: flex;
  gap: var(--space-sm);
}

.orders-message {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.order-tracking-result {
  margin-bottom: var(--space-xl);
}

.order-result-heading,
.orders-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.order-result-heading strong,
.orders-list-card strong {
  font-family: var(--font-mono);
  color: var(--accent);
}

.order-status-badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-xl);
  list-style: none;
}

.order-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--fs-xs);
}

.order-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(50% + 10px);
  width: calc(100% - 20px);
  height: 2px;
  background: var(--border-medium);
}

.order-timeline li.complete:not(:last-child)::after {
  background: var(--status-pass);
}

.order-timeline-dot {
  z-index: 1;
  width: 16px;
  height: 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: 50%;
}

.order-timeline li.complete .order-timeline-dot,
.order-timeline li.current .order-timeline-dot {
  background: var(--status-pass);
  border-color: var(--status-pass);
}

.order-timeline li.current {
  color: var(--text-primary);
}

.orders-list-heading {
  margin-top: var(--space-xl);
}

.orders-list-card {
  flex-wrap: wrap;
}

.orders-list-card > span:not(.order-status-badge),
.orders-empty {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

@media (max-width: 600px) {
  .orders-panel-header {
    padding: var(--space-md);
  }

  .orders-panel-content {
    width: calc(100% - 2rem);
    padding-top: var(--space-lg);
  }

  .checkout-address-grid {
    grid-template-columns: 1fr;
  }

  .checkout-field-wide {
    grid-column: auto;
  }

  .order-timeline li {
    font-size: 10px;
  }

  .order-result-heading,
  .orders-list-card {
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .navbar {
    background-color: rgba(10, 7, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border-subtle);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(4rem, 7vw, 6rem);
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }
}

/* InnoBot */
.chat-launcher {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  color: var(--text-inverse);
  background: var(--accent);
  border: 1px solid var(--accent-hover);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 22px var(--accent-glow);
  font: 600 var(--fs-sm) var(--font-text);
  cursor: pointer;
  transition: transform 220ms var(--ease-motion), background-color 180ms ease;
}

.chat-launcher::before {
  content: '✦';
  font-size: 1.2rem;
}

.chat-launcher:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.chat-panel {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 62px);
  z-index: 5001;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 2rem));
  height: min(570px, calc(100dvh - 7rem));
  min-height: max(0px, min(340px, calc(100dvh - 7rem)));
  overflow: hidden;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 220ms var(--ease-motion),
    transform 220ms var(--ease-motion),
    visibility 220ms;
}

.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-title-group {
  display: flex;
  flex-direction: column;
}

.chat-title-group strong {
  font-size: var(--fs-base);
}

.chat-title-group span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.chat-close {
  width: 38px;
  height: 38px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.chat-close:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  overflow-y: auto;
  padding: var(--space-md);
  overscroll-behavior: contain;
}

.chat-message {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.chat-message-bot {
  color: var(--text-primary);
  background: var(--bg-card);
  border-top-left-radius: var(--radius-xs);
}

.chat-message-user {
  align-self: flex-end;
  color: var(--text-inverse);
  background: var(--accent);
  border-color: var(--accent);
  border-top-right-radius: var(--radius-xs);
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.chat-action,
.chat-quick-option {
  padding: 0.45rem 0.7rem;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font: 500 var(--fs-xs) var(--font-text);
  cursor: pointer;
}

.chat-action:hover,
.chat-quick-option:hover {
  color: var(--text-primary);
  background: rgba(224, 138, 75, 0.22);
}

.chat-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chat-typing-dot 800ms ease-in-out infinite alternate;
}

.chat-typing span:nth-child(2) {
  animation-delay: 160ms;
}

.chat-typing span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes chat-typing-dot {
  to {
    opacity: 0.35;
    transform: translateY(-3px);
  }
}

.chat-form {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.chat-input {
  min-width: 0;
  flex: 1;
  padding: 0.7rem 0.8rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font: var(--fs-sm) var(--font-text);
}

.chat-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.chat-send {
  padding: 0.6rem 0.85rem;
  color: var(--text-inverse);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  font: 600 var(--fs-sm) var(--font-text);
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-panel {
    right: 0.75rem;
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 58px);
    width: calc(100vw - 1.5rem);
    height: min(600px, calc(100dvh - 6rem));
  }

  .chat-launcher {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .maker-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .maker-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel,
  .chat-launcher {
    transition: none;
  }

  .chat-typing span {
    animation: none;
  }
}

/* Cinematic intro */
html.intro-active,
html.nav-open {
  overflow: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.intro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  background: #0A0705;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0);
  contain: paint;
}

html.intro-active .intro-overlay {
  display: block;
}

.intro-skip {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #E08A4A;
  border-radius: 999px;
  background: rgba(10, 7, 5, 0.78);
  color: #F2E9DC;
  font: 500 0.75rem 'JetBrains Mono', monospace;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s 0s, background-color 180ms ease;
}

html.intro-active .intro-skip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 200ms, 200ms, 200ms, 0s;
}

.intro-skip:hover,
.intro-skip:focus-visible {
  background: rgba(224, 138, 74, 0.2);
  outline: 2px solid rgba(224, 138, 74, 0.45);
  outline-offset: 3px;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  display: block;
  max-width: 100%;
  pointer-events: none;
}

.intro-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 720px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  pointer-events: none;
  will-change: transform, opacity;
}

.intro-mark {
  display: block;
  width: clamp(3rem, 8vw, 5rem);
  height: auto;
  margin: 0 auto clamp(0.35rem, 1.2vw, 0.8rem);
  overflow: visible;
  fill: none;
  stroke: #E08A4A;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-wordmark {
  display: inline-block;
  color: #F2E9DC;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  clip-path: inset(0 100% 0 0);
}

.intro-wordmark-orange {
  color: #E08A4A;
}

.intro-tagline {
  margin-top: clamp(0.7rem, 2vw, 1.4rem);
  color: #C7BBB0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  letter-spacing: 0.6em;
  opacity: 0;
  white-space: nowrap;
}

.intro-sweep {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(22vw, 280px);
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(224, 138, 74, 0.18) 35%, rgba(255, 240, 220, 0.95) 50%, rgba(224, 138, 74, 0.18) 65%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-headline-line {
  display: block;
}

html.intro-entering .navbar,
html.intro-entering .hero-headline-line,
html.intro-entering .hero-pill,
html.intro-entering .hero-paragraph,
html.intro-entering .hero-actions,
html.intro-entering .hero-actions .btn,
html.intro-entering .hero-stats,
html.intro-entering .chat-launcher {
  transition-property: opacity, transform;
  transition-duration: 60ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.24, 1);
}

html.intro-entering .navbar {
  transition-property: background-color, border-color, backdrop-filter, -webkit-backdrop-filter, box-shadow, opacity, transform;
  transition-duration: 300ms, 300ms, 300ms, 300ms, 300ms, 60ms, 60ms;
  transition-timing-function: var(--ease-motion), var(--ease-motion), var(--ease-motion), var(--ease-motion), var(--ease-motion), cubic-bezier(0.2, 0.8, 0.24, 1), cubic-bezier(0.2, 0.8, 0.24, 1);
}

html.intro-entering .hero-actions .btn {
  transition-property: opacity, transform, background-color, border-color, box-shadow, color;
  transition-duration: 60ms, 60ms, 200ms, 200ms, 200ms, 200ms;
}

html.intro-entering .chat-launcher {
  transition-property: opacity, transform, background-color;
  transition-duration: 60ms, 60ms, 180ms;
}

html.intro-active .navbar,
html.intro-active .hero-pill,
html.intro-active .hero-headline-line,
html.intro-active .hero-paragraph,
html.intro-active .hero-actions,
html.intro-active .hero-actions .btn,
html.intro-active .hero-stats,
html.intro-active .chat-launcher {
  opacity: 0;
}

html.intro-active .navbar {
  transform: translateY(-18px);
}

html.intro-active .hero-pill,
html.intro-active .hero-headline-line,
html.intro-active .hero-paragraph,
html.intro-active .hero-stats {
  transform: translateY(16px);
}

html.intro-active .hero-actions,
html.intro-active .hero-actions .btn {
  transform: scale(0.94);
}

html.intro-active .chat-launcher {
  transform: scale(0.86);
}

html.intro-entering .navbar { transition-delay: 0ms; }
html.intro-entering .hero-pill { transition-delay: 40ms; }
html.intro-entering .hero-headline-line:first-child { transition-delay: 80ms; }
html.intro-entering .hero-headline-line:nth-child(2) { transition-delay: 160ms; }
html.intro-entering .hero-paragraph { transition-delay: 160ms; }
html.intro-entering .hero-actions,
html.intro-entering .hero-actions .btn { transition-delay: 240ms; }
html.intro-entering .hero-stats,
html.intro-entering .chat-launcher { transition-delay: 240ms; }

html.intro-reduced .navbar,
html.intro-reduced .hero-content > *,
html.intro-reduced .hero-actions .btn,
html.intro-reduced .chat-launcher {
  opacity: 0;
}

html.intro-done .navbar,
html.intro-done .hero-content > *,
html.intro-done .hero-actions .btn,
html.intro-done .chat-launcher {
  opacity: 1;
}

html.intro-entering.intro-reduced .navbar,
html.intro-entering.intro-reduced .hero-content > *,
html.intro-entering.intro-reduced .hero-actions .btn,
html.intro-entering.intro-reduced .chat-launcher {
  transition-duration: 300ms;
  transition-delay: 0ms;
}

.hero-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
}

.hero-frame {
  position: relative;
  top: auto;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
}

#hero-canvas {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: auto;
  touch-action: pan-y;
}

#hero-canvas.is-hidden {
  display: none;
}

.hero-section.is-hero-fallback {
  background: linear-gradient(180deg, #0a0705 0%, #24140a 55%, #140b06 60%, #080503 100%);
}

.hero-actions .btn,
.nav-link,
.nav-actions > *,
.mobile-toggle,
.btn,
button,
a {
  min-height: 44px;
}

.hero-layout,
.hero-3d-stage {
  pointer-events: none;
}

.hero-content {
  pointer-events: auto;
}

.btn {
  min-height: 44px;
}

.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 769px) {
  .navbar {
    background: rgba(10, 7, 5, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border-subtle);
  }

  .hero-layout {
    min-height: calc(100svh - var(--nav-height));
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: center;
  }

  .hero-content {
    max-width: min(100%, 650px);
  }
}

@media (max-width: 1024px) {
  .container {
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
  }

  .nav-menu {
    gap: clamp(0.6rem, 1.4vw, 1.25rem);
  }

  .nav-link {
    font-size: clamp(0.72rem, 1.2vw, var(--fs-sm));
  }

  .hero-content {
    gap: clamp(0.7rem, 1.5vw, var(--space-lg));
  }

  .hero-headline {
    font-size: clamp(2rem, 4.3vw, 3.5rem);
    text-wrap: balance;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .brand-tagline,
  .nav-actions > .btn-primary {
    display: none;
  }

  .nav-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--nav-height) + env(safe-area-inset-top)) 0 auto;
    max-height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: rgba(18, 13, 9, 0.98);
    border-bottom: 1px solid var(--border-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1100;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-menu .mobile-submit-link {
    justify-content: center;
    margin-top: 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 700;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-frame {
    position: relative;
    top: auto;
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
    min-height: 0;
    padding-top: 0;
  }

  .hero-3d-stage {
    order: -1;
    flex: 0 0 clamp(180px, 31svh, 300px);
    width: 100%;
    min-height: 0;
    height: clamp(180px, 31svh, 300px);
    margin: 0;
    justify-content: flex-end;
    padding: 0 0 0.5rem;
  }

  .hero-content {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    z-index: 3;
    gap: clamp(0.4rem, 1.15svh, 0.7rem);
    overflow: visible;
    padding: 0.3rem 0 max(0.5rem, env(safe-area-inset-bottom));
    isolation: isolate;
  }

  .hero-content::before {
    inset: -0.6rem -1rem -1rem;
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.64), #0a0705 22%);
  }

  .hero-headline {
    font-size: clamp(1.65rem, 7.1vw, 2.35rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .hero-paragraph {
    max-width: 100%;
    font-size: clamp(0.78rem, 3.25vw, 0.92rem);
    line-height: 1.4;
  }

  .hero-pill {
    padding: 0.22rem 0.65rem;
  }

  .hero-pill .mono-label {
    font-size: 0.62rem;
  }

  .hero-actions {
    gap: 0.4rem;
    padding-top: 0;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.68rem, 2.9vw, 0.82rem);
    white-space: normal;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding-top: 0.5rem;
  }

  .hero-stat-value {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .hero-stat-label {
    font-size: clamp(0.56rem, 2.5vw, 0.7rem);
    line-height: 1.15;
  }

  .hero-3d-caption {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    max-width: calc(100% - 1rem);
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    transform: translateX(-50%);
  }

  .inventions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inside-tech-wrap,
  .numbers-row {
    grid-template-columns: 1fr;
  }

  .cta-card {
    display: block;
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    max-width: none;
    max-height: 100svh;
    min-height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .toast-notice {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    max-width: calc(100vw - 1.5rem);
    width: max-content;
  }

  .chat-panel {
    max-width: calc(100vw - 1.5rem);
  }

  .invention-card img,
  .invention-card svg,
  canvas {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .inventions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout {
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
  }

  .hero-3d-stage {
    flex-basis: clamp(170px, 29svh, 240px);
    height: clamp(170px, 29svh, 240px);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-actions .btn:last-child {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) and (max-height: 520px) {
  :root {
    --nav-height: 52px;
  }

  .navbar {
    height: var(--nav-height);
  }

  .hero-frame {
    position: relative;
    top: auto;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
  }

  .hero-layout {
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
  }

  .hero-3d-stage {
    flex-basis: 26svh;
    height: 26svh;
  }

  .hero-content {
    gap: 0.25rem;
  }

  .hero-headline {
    font-size: clamp(1.35rem, 5.6vh, 1.9rem);
  }

  .hero-paragraph {
    font-size: 0.72rem;
    line-height: 1.25;
  }
}

@media (max-height: 520px) {
  :root {
    --nav-height: 52px;
  }

  .navbar {
    height: var(--nav-height);
  }

  .brand-tagline,
  .nav-actions > .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--nav-height) + env(safe-area-inset-top)) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom));
    background: rgba(18, 13, 9, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    z-index: 1100;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }

  .hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-frame {
    position: relative;
    top: auto;
    display: block;
    height: 100svh;
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
    overflow: visible;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
    min-height: 0;
  }

  .hero-3d-stage {
    order: -1;
    flex: 0 0 24svh;
    width: 100%;
    height: 24svh;
    min-height: 0;
    margin: 0;
  }

  .hero-content {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.25rem;
    overflow: visible;
    padding: 0.25rem 0 max(0.4rem, env(safe-area-inset-bottom));
  }

  .hero-headline {
    font-size: clamp(1.35rem, 5.6vh, 1.9rem);
    line-height: 1.03;
    text-wrap: balance;
  }

  .hero-paragraph {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .hero-actions {
    gap: 0.35rem;
    padding-top: 0;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding-top: 0.3rem;
  }

  .hero-stat-value {
    font-size: 1rem;
  }

  .hero-stat-label {
    font-size: 0.55rem;
    line-height: 1.1;
  }

}

@media (hover: none), (pointer: coarse) {
  .invention-card:focus-visible,
  .btn:focus-visible,
  .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .hero-content > *,
  .hero-actions .btn,
  .chat-launcher {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html.intro-entering.intro-reduced .navbar,
  html.intro-entering.intro-reduced .hero-content > *,
  html.intro-entering.intro-reduced .hero-actions .btn,
  html.intro-entering.intro-reduced .chat-launcher {
    transition-duration: 300ms !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
  }

  .hero-frame {
    height: auto;
    min-height: 0;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
  }

  .hero-layout {
    height: auto;
    min-height: 0;
    padding-bottom: clamp(1.25rem, 4svh, 2rem);
  }

  .hero-3d-stage {
    --hero-mobile-stage-height: clamp(200px, 34svh, 280px);
    flex: 0 0 var(--hero-mobile-stage-height);
    height: var(--hero-mobile-stage-height);
  }

  #hero-canvas {
    top: calc(var(--nav-height) + env(safe-area-inset-top));
    height: clamp(200px, 34svh, 280px);
    touch-action: none;
  }

  .hero-content {
    flex: 0 0 auto;
  }
}

.btn:disabled,
.account-form button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.account-modal-open {
  overflow: hidden;
}

.account-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.account-modal-backdrop[hidden],
.account-form[hidden] {
  display: none !important;
}

.account-modal {
  position: relative;
  width: min(100%, 440px);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.account-modal h2 {
  margin: 0.35rem 2.5rem 0.25rem 0;
  font-size: var(--fs-xl);
}

.account-demo-note {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.account-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.account-mode-tabs,
.account-form-actions {
  display: flex;
  gap: var(--space-sm);
}

.account-mode-tabs {
  margin: var(--space-md) 0;
  border-bottom: 1px solid var(--border-medium);
}

.account-mode-btn {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.account-mode-btn.is-active {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.account-form {
  display: grid;
  gap: var(--space-sm);
}

.account-form > label {
  display: grid;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.account-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font: inherit;
}

.account-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.password-visibility-toggle {
  min-width: 54px;
  min-height: 44px;
  color: var(--accent-hover);
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.account-field-error,
.account-form-error,
.inline-field-error {
  color: #ff9a8e;
  font-size: var(--fs-xs);
}

.account-form-error {
  line-height: 1.45;
}

.account-form-actions {
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.account-form-actions > button {
  flex: 1 1 150px;
}

.nav-link.is-active {
  color: var(--accent-hover);
}

.nav-link[aria-current="location"]::after {
  transform: scaleX(1);
}

.maker-submissions {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.maker-submissions h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-lg);
}

.maker-submissions-list {
  display: grid;
  gap: var(--space-sm);
}

.maker-submission-card {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.maker-submission-card span,
.maker-submissions-empty {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.maker-submissions-empty.is-error {
  color: #ff9a8e;
}

.inline-field-error {
  margin-top: -0.2rem;
}

.order-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-timeline-time {
  min-height: 1.2em;
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.3;
}

.checkout-field input[aria-invalid="true"],
.checkout-field textarea[aria-invalid="true"] {
  border-color: #ff9a8e;
}

@media (max-width: 768px) {
  .account-open-btn {
    display: none;
  }

  .nav-menu .mobile-account-link {
    justify-content: center;
    margin-top: 0.35rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    text-align: center;
  }

  .order-timeline-time {
    font-size: 0.58rem;
  }
}

/* Lightweight page polish */
.reveal-item {
  transform: translateY(20px);
  transition-duration: 460ms;
}

.reveal-item:not(.is-revealed) {
  will-change: opacity, transform;
}

.section-headline {
  transform: translate3d(0, var(--heading-parallax, 0px), 0);
  transition: transform 160ms linear;
}

.invention-card {
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.invention-card.is-tilting {
  transform: perspective(900px) rotateX(var(--card-tilt-x, 0deg)) rotateY(var(--card-tilt-y, 0deg)) translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 0 24px rgba(224, 138, 75, 0.09);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.invention-card img {
  transition: transform 420ms var(--ease-motion);
}

@media (hover: hover) and (pointer: fine) {
  .invention-card:hover img {
    transform: scale(1.045);
  }

  #inventions-grid .btn-inspect:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
  }
}

.recycled-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.recycled-ring {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transform: rotate(-90deg);
}

.recycled-ring-track,
.recycled-ring-value {
  fill: none;
  stroke-width: 4;
}

.recycled-ring-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.recycled-ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
}

.passport-preview-card.is-revealed .test-pass-badge {
  animation: passport-stamp 420ms var(--ease-motion) both;
}

.passport-preview-card.is-revealed .passport-test-row:nth-child(2) .test-pass-badge {
  animation-delay: 100ms;
}

.passport-preview-card.is-revealed .passport-test-row:nth-child(3) .test-pass-badge {
  animation-delay: 200ms;
}

@keyframes passport-stamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-8deg); }
  70% { opacity: 1; transform: scale(0.92) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.has-button-ripple {
  overflow: hidden;
  isolation: isolate;
}

.button-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: rgba(255, 245, 227, 0.34);
  pointer-events: none;
  transform: scale(0);
  animation: button-ripple-out 520ms ease-out forwards;
}

.has-button-ripple > :not(.button-ripple) {
  position: relative;
  z-index: 1;
}

@keyframes button-ripple-out {
  to { opacity: 0; transform: scale(1); }
}

.cart-flight-dot {
  position: fixed;
  z-index: 7000;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 233, 206, 0.95);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(224, 138, 75, 0.8);
  pointer-events: none;
}

.inside-layer-labels {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 5px;
  max-width: min(42%, 170px);
}

.inside-layer-label {
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(224, 138, 75, 0.22);
  border-radius: var(--radius-xs);
  background: rgba(10, 7, 5, 0.8);
  color: var(--text-secondary);
  font: 500 0.65rem var(--font-mono);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.inside-layer-label.is-active {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: rgba(224, 138, 75, 0.14);
}

.custom-cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11000;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 220, 184, 0.9);
  border-radius: 50%;
  background: rgba(224, 138, 75, 0.42);
  box-shadow: 0 0 16px rgba(224, 138, 75, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: width 140ms ease, height 140ms ease, opacity 140ms ease, background-color 140ms ease;
  will-change: transform;
}

.custom-cursor-orb.is-visible {
  opacity: 1;
}

.custom-cursor-orb.is-interactive {
  width: 28px;
  height: 28px;
  background: rgba(224, 138, 75, 0.18);
}

.custom-cursor-orb.is-pressed {
  width: 10px;
  height: 10px;
}

.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor [role="button"] {
  cursor: none !important;
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
}

@media (max-width: 640px) {
  .inside-layer-labels {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .inside-layer-label {
    flex: 0 0 auto;
    max-width: 42vw;
  }
}

@media (max-width: 768px) {
  .custom-cursor-orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invention-card.is-tilting,
  .section-headline {
    transform: none !important;
    transition: none !important;
  }

  .custom-cursor-orb,
  .button-ripple,
  .cart-flight-dot {
    display: none !important;
    animation: none !important;
  }

  .passport-preview-card .test-pass-badge {
    animation: none !important;
  }
}

@media (min-width: 1101px) {
  .nav-menu .mobile-submit-link,
  .nav-menu .mobile-account-link {
    display: none;
  }
}

@media (max-width: 1100px) {
  .brand-tagline,
  .nav-actions > .account-open-btn,
  .nav-actions > .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--nav-height) + env(safe-area-inset-top)) 0 auto;
    max-height: calc(100svh - var(--nav-height) - env(safe-area-inset-top));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: rgba(18, 13, 9, 0.98);
    border-bottom: 1px solid var(--border-medium);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1100;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .mobile-submit-link {
    justify-content: center;
    margin-top: 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 700;
    text-align: center;
  }

  .nav-menu .mobile-account-link {
    justify-content: center;
    margin-top: 0.35rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    text-align: center;
  }
}

.compare-bar.is-visible ~ .chat-launcher {
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 8rem);
}

@media (max-width: 480px) {
  .compare-bar.is-visible ~ .chat-launcher {
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 8rem);
  }
}