/* RIYUSH TECHNOLOGIES — Premium Industrial Design System
   Refined editorial hierarchy, selective dark cinematic storytelling,
   generous whitespace, zero dashboard clutter */
:root {
  --ink: #090F17;
  --navy: #0C1524;
  --navy-elev: #142238;
  --blue: #0055CC;
  --blue-hover: #0043A3;
  --electric-blue: #168FE5;
  --violet: #793DC9;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --muted: #526174;
  --line: #E2E8F0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --grad-brand: linear-gradient(90deg, #0055CC 0%, #168FE5 48%, #793DC9 100%);
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(9, 15, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(9, 15, 23, 0.10);
  --max-w: 1260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 36px);
}

.brand-rule { height: 3px; width: 100%; background: var(--grad-brand); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 8px 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-logo-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.brand-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; color: var(--ink); }
.brand-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }

.logo-reveal { animation: logoPresentation 750ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes logoPresentation {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link, .nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  text-decoration: none;
}
.nav-link:hover, .nav-dropdown-btn:hover, .nav-link[aria-current="page"], .nav-link.active-view {
  background: var(--paper);
  color: var(--blue);
  text-decoration: none;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 120;
}
.nav-item.open > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--paper); color: var(--blue); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--paper); }
.btn-dark-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-dark-outline:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 0.85rem; }

/* Sections & Editorial Typography */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .muted { color: #B6C5D8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: #7CC4FA; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grad-brand); display: inline-block; }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(2.15rem, 4.4vw, 3.45rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.38rem); font-weight: 700; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 64ch; font-weight: 400; }
.muted { color: var(--muted); }

/* Editorial Hero */
.hero {
  padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 92px);
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.hero-visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--navy);
  color: #C4D2E4;
  font-size: 0.8rem;
}

/* Clean Editorial Capability Directory (No repetitive dashboard boxes) */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.capability-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.capability-row h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.capability-row p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* Selective Cinematic Scroll-Driven Showcase (ROG-Inspired, Non-Trapping) */
.cinematic-band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}
.cinematic-chapter {
  position: relative;
  height: 310vh;
  margin-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.cinematic-sticky {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  align-content: center;
  padding: 20px 0;
}
.cinematic-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070D17;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.stage-photo-layer,
.stage-cutaway-layer,
.stage-finish-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: opacity, transform;
}
.stage-photo-layer img,
.stage-finish-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-cutaway-layer {
  background: rgba(8, 14, 24, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.stage-cutaway-layer svg { width: 100%; height: 100%; }
.stage-finish-layer { opacity: 0; }
.stage-hud-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(9, 15, 23, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #E2ECFA;
  z-index: 5;
}
.stage-hud-track {
  flex: 1;
  max-width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.stage-hud-fill { height: 100%; width: 0%; background: var(--grad-brand); }

.stage-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.stage-step {
  padding: 12px 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  color: #94A6BE;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.stage-step.active {
  border-left-color: #168FE5;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.stage-step strong { display: block; font-size: 0.96rem; margin-bottom: 2px; }
.stage-step span { font-size: 0.86rem; }

/* Grids & Clean Surface Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-dark { background: var(--navy-elev); border: 1px solid var(--line-dark); color: var(--white); }

/* Expandable Infrastructure Details */
.infra-details {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.infra-details summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}
.infra-details summary::-webkit-details-marker { display: none; }
.infra-details[open] summary { border-bottom: 1px solid var(--line); }
.infra-table-wrap { overflow-x: auto; padding: 8px 22px 22px; }
.infra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.infra-table th, .infra-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.infra-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Machine Explorer & Individually Controlled Demos (Play/Pause/Replay/Full-Screen) */
.explorer-shell {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.explorer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  padding: 9px 15px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tab-btn[aria-selected="true"], .tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.machine-selector-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.machine-select-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
  color: var(--ink);
  min-height: 48px;
}
.machine-select-btn:hover { background: var(--paper); border-color: var(--blue); }
.machine-select-btn[aria-pressed="true"], .machine-select-btn.active {
  background: #EDF4FF;
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}
.machine-select-title { font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.machine-select-sub { font-size: 0.8rem; color: var(--muted); }

.demo-stage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.demo-stage-dark { background: var(--navy); color: var(--white); border-color: var(--line-dark); }
.demo-viewport {
  position: relative;
  background: #0D1624;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-viewport svg { width: 100%; height: 100%; }
.demo-label-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 15, 23, 0.82);
  color: #E2ECFA;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  pointer-events: none;
}
.demo-phase-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 85, 204, 0.9);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  pointer-events: none;
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.demo-stage-dark .demo-controls { background: #142238; border-color: var(--line-dark); }
.demo-btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-progress-track {
  flex: 1;
  min-width: 100px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.demo-stage-dark .demo-progress-track { background: rgba(255, 255, 255, 0.16); }
.demo-progress-bar { height: 100%; width: 0%; background: var(--grad-brand); }
.demo-details { padding: 20px; }
.output-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink);
}

/* Editorial Media Frame */
.editorial-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.editorial-photo img { width: 100%; object-fit: cover; }
.editorial-photo figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Product Gallery & Lightbox */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-visual {
  aspect-ratio: 4 / 3;
  background: #F3F6FB;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Location & Verified QR Code Panel */
.location-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.qr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-card img {
  width: 156px;
  height: 156px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Modals (Product Lightbox & Full-Screen Demo) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 23, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.modal-dialog.fs-wide { max-width: 1060px; background: var(--navy); color: var(--white); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-dialog.fs-wide .modal-head { border-bottom-color: var(--line-dark); }
.modal-body { padding: 20px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
input, select, textarea {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1px solid #C6D1E0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
.field-error { color: #B42318; font-size: 0.82rem; font-weight: 500; min-height: 18px; }
.notice-box {
  background: #F2F7FF;
  border: 1px solid #C5DCFF;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
}
.rfq-output {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
  display: none;
}
.rfq-output.visible { display: block; }
.rfq-output pre {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 12px 0;
  overflow-x: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9AA7B8; }

/* Footer */
.site-footer { background: var(--navy); color: #D7E1EE; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.footer-heading {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #C4D2E4; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: #9FB0C7;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  z-index: 400;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-grid, .explorer-shell, .cinematic-sticky, .location-panel { grid-template-columns: 1fr; }
  .cinematic-chapter { height: 260vh; }
  .cinematic-sticky { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-selector-list { max-height: 260px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid var(--line);
    z-index: 150;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 16px; background: var(--paper); margin-top: 4px; }
  .header-cta-desktop { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .capability-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-logo-box { width: 52px; height: 52px; }
  .brand-name { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinematic-chapter { min-height: auto !important; }
  .cinematic-sticky { position: static !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Scroll-Driven Logo Intro Hero (clearly visible text + exact unchanged logo) */
.logo-intro-runway {
  position: relative;
  height: 195vh;
  background: var(--navy);
  color: var(--white);
}
.logo-intro-sticky {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 24px 0;
}
.logo-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.logo-intro-frame {
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  width: min(100%, 360px);
  justify-self: center;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(22, 143, 229, 0.35);
  will-change: transform;
}
.logo-intro-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.logo-intro-rule {
  height: 4px;
  max-width: 140px;
  border-radius: 2px;
  background: var(--grad-brand);
  margin-bottom: 18px;
}
.logo-intro-progress {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #9ED3FF;
}
.logo-intro-track {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.logo-intro-fill { height: 100%; width: 0%; background: var(--grad-brand); }

/* Finished Job Inspection Scanline (Stage 3 extra motion) */
.stage-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, #38BDF8 35%, #FFFFFF 50%, #793DC9 65%, transparent 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

/* Persistent Side Floating "Request a Quote" Tab */
.side-rfq-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 14px 11px;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -4px 6px 20px rgba(9, 15, 23, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 0;
  text-decoration: none !important;
  transition: background-color 180ms ease, padding-right 180ms ease;
}
.side-rfq-tab:hover {
  background: var(--blue-hover);
  padding-right: 15px;
}

/* Combined Bottom Contact & Request a Quote Hub */
.bottom-contact-rfq {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

@media (max-width: 1024px) {
  .logo-intro-grid, .bottom-contact-rfq { grid-template-columns: 1fr; }
  .logo-intro-runway { height: 165vh; }
  .logo-intro-frame { width: min(100%, 240px); }
}
@media (max-width: 640px) {
  .side-rfq-tab {
    top: auto;
    bottom: 16px;
    right: 16px;
    transform: none;
    writing-mode: horizontal-tb;
    border-radius: 999px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-intro-runway { height: auto !important; }
  .logo-intro-sticky { position: static !important; height: auto !important; padding: 48px 0; }
}

/* Enhanced Mobile & Small-Screen Fit (320px - 860px) */
@media (max-width: 860px) {
  .header-inner { min-height: 64px; gap: 10px; }
  .main-nav { top: 67px; }
  .logo-intro-runway { height: 155svh; }
  .logo-intro-sticky {
    top: 67px;
    height: auto;
    min-height: calc(100svh - 67px);
    padding: 18px 0 24px;
  }
  .logo-intro-grid { gap: 18px; }
  .logo-intro-frame { order: -1; width: min(52vw, 180px); padding: 10px; border-radius: 14px; }
  .logo-intro-runway h1 { font-size: clamp(1.65rem, 6.4vw, 2.25rem); margin-bottom: 10px; }
  .logo-intro-runway .lead { font-size: 0.96rem; margin-bottom: 10px; }
  .logo-intro-runway .hero-actions { margin-top: 14px; gap: 8px; }
  .logo-intro-progress { margin-top: 14px; }

  .cinematic-chapter { height: 225svh; margin-top: 16px; }
  .cinematic-sticky {
    top: 67px;
    height: auto;
    min-height: calc(100svh - 67px);
    padding: 14px 0;
    gap: 14px;
  }
  .stage-steps { gap: 8px; margin-top: 12px; }
  .stage-step { padding: 8px 12px; }
  .stage-step strong { font-size: 0.88rem; }
  .stage-step span { font-size: 0.78rem; }
  .stage-hud-bar { left: 8px; right: 8px; bottom: 8px; padding: 5px 10px; font-size: 0.65rem; gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 70px; }
  .section { padding: 40px 0; }
  .container { padding: 0 14px; }
  .btn { white-space: normal; text-align: center; padding: 10px 16px; font-size: 0.88rem; }
  .card { padding: 18px; }
  .demo-controls { padding: 10px 12px; }
  .demo-btn-group { width: 100%; }
  .demo-btn-group .btn-sm { flex: 1 1 auto; padding: 7px 10px; font-size: 0.8rem; }
  .demo-details { padding: 14px; }
  .qr-card img { width: 136px; height: 136px; }
  .brand-logo-box { width: 44px; height: 44px; }
  .brand-name { font-size: 0.84rem; }
  .side-rfq-tab { font-size: 0.8rem; padding: 10px 15px; }
}

@media (max-width: 380px) {
  .brand-tag { display: none; }
}
