/* =============================================================
   ReQ — Complete e-Bike Drive System
   ============================================================= */

:root {
  /* Colors */
  --color-graphite: #1b1e22;
  --color-graphite-light: #262a2f;
  --color-lightgray: #f2f3f5;
  --color-gray: #c7ccd1;
  --color-teal: #2f9d94;
  --color-teal-dark: #1f6f6a;
  --color-teal-soft: #e6f3f2;
  --color-text-dark: #1b1e22;
  --color-text-light: #f7f9fa;
  --color-text-muted: #6b7280;

  /* Type */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Roboto', sans-serif;  
  --font-alt: 'Roboto', sans-serif;  
  --font-mono: 'Orbitron', monospace;

  /* Layout */
  --gap: 1px;
  --container-width: 100%; /*1280px;*/
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-lightgray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: var(--gap);
  padding: 32px;
}
.container.mosaic{
  padding: 0px;
}
.container.controller-grid {
  margin-top: -64px;
}

.section { padding: 0px 0; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-lead {
  max-width: 1280px;
  color: var(--color-text-muted);
  font-size: 1.5rem;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1rem;
  color: var(--color-teal-dark);
  margin: 0 0 .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-teal { background: var(--color-teal); color: #fff; }
.btn-teal:hover { background: var(--color-teal-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-text-light); border: 1.5px solid currentColor; }
.detail-section .btn-outline,
.app-section .btn-outline { color: var(--color-text-dark); }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(27, 30, 34, .0);
  transition: background .25s ease, box-shadow .25s ease;
}
.navbar.scrolled {
  background: rgba(27, 30, 34, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: .02em;
}
.nav-menu {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-link {
  color: var(--color-text-light);
  font-size: .92rem;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s ease;
}
.nav-link:hover { opacity: 1; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--color-graphite);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,30,34,.55) 0%, rgba(27,30,34,.72) 55%, rgba(27,30,34,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--color-text-light);
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: .4em;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(247,249,250,.85);
  max-width: 600px;
  margin: 0 auto 2em;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(247,249,250,.6);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--color-text-light);
  border-radius: 2px;
  animation: scroll-cue 1.6s infinite;
}
@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   SYSTEM / BIKE DIAGRAM
   ============================================================= */
.system-section { background: var(--color-lightgray); }
.bike-stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
.bike-diagram {
  border-radius: 0px;
  padding: 24px;
}
.bike-svg { width: 100%; height: auto; }
.svg-label {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--color-text-dark);
  font-weight: 700;
}
.hotspot { cursor: pointer; }
.hotspot circle, .hotspot rect { transition: filter .2s ease, transform .2s ease; transform-origin: center; }
.hotspot:hover circle, .hotspot:hover rect,
.hotspot:focus-visible circle, .hotspot:focus-visible rect,
.hotspot.active circle, .hotspot.active rect {
  filter: drop-shadow(0 0 6px rgba(47,157,148,.7));
}
.hotspot:focus-visible { outline: none; }

.bike-panel {
  background: var(--color-graphite);
  color: var(--color-text-light);
  border-radius: 5px;
  padding: 36px;
  min-height: 280px;
}
.bike-panel-hint {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-teal);
  margin-bottom: .6em;
}
.bike-panel h3 { color: #fff; }
.bike-panel p { color: rgba(247,249,250,.8); }
.bike-panel-specs { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bike-panel-specs li {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--color-teal);
  border-left: 2px solid var(--color-teal);
  padding-left: 10px;
}

/* =============================================================
   MOSAIC FEATURE GRID
   ============================================================= */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.mosaic-specs { margin-top: 32px; }

.box {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  min-height: var(--row-height, 260px);
  display: flex;
  color: var(--color-text-light);
}
.box-span-3 { grid-column: span 3; }
.box-span-4 { grid-column: span 4; }
.box-span-6 { grid-column: span 6; }
.box-span-8 { grid-column: span 8; }
.box-span-12 { grid-column: span 12; }

.box-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.box-content h3 { font-size: 1.3rem; margin-bottom: .3em; }
.box-content p { font-size: 1.2rem; margin-bottom: 0; max-width: 46ch; }
.box-content p:not(:first-child) { color: rgba(255,255,255,.85); }

.box-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.box-number small { font-size: 1.1rem; font-weight: 600; margin-left: 4px; }
.box-tag {
  font-family: var(--font-mono);
  font-size: .85rem;
  opacity: .7;
  letter-spacing: .1em;
}

/* backgrounds */
.box-solid-teal { background: var(--color-teal); }
.box-solid-graphite { background: var(--color-graphite); }
.box-solid-lightgray { background: var(--color-lightgray); }
.box-solid-gray { background: var(--color-gray); }
.box-dark-text, .box-dark-text .box-content p:not(:first-child) { color: var(--color-text-dark); }
.box-dark-text .box-number { color: var(--color-teal-dark); }

.box-gif {
  margin: 10px;
}
.box-img .box-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.box-img .box-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,30,34,.15) 0%, rgba(27,30,34,.8) 100%);
}

/* corner alignment of text content within the box */
.box-corner-tl .box-content { justify-content: flex-start; margin-top: 0; text-align: left; }
.box-corner-tr .box-content { justify-content: flex-start; text-align: right; align-items: flex-end; margin-left: auto; }
.box-corner-bl .box-content { justify-content: flex-end; text-align: left; }
.box-corner-br .box-content { justify-content: flex-end; text-align: right; align-items: flex-end; margin-left: auto; }

/* =============================================================
   DETAIL SECTIONS (Motor / Battery)
   ============================================================= */
.detail-section { background: var(--color-graphite-light); color: var(--color-text-light); }
.detail-section-alt { background: var(--color-graphite); }
.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail-grid-reverse { grid-template-columns: 1fr 1.3fr; }
.detail-grid-reverse .detail-stats { order: 1; }
.detail-grid-reverse .detail-copy { order: 2; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  color: rgba(247,249,250,.85);
  font-size: .98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-teal);
}
.detail-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 24px 28px;
}
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--color-teal);
  display: block;
  line-height: 1;
}
.stat-number small { font-size: 1rem; margin-left: 4px; color: rgba(255,255,255,.7); }
.stat-label { font-size: .9rem; color: rgba(247,249,250,.7); }

/* =============================================================
   CONTROLLER
   ============================================================= */
.controller-section { background: var(--color-lightgray); }
.controller-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  /*margin-top: 40px;*/
}
.controller-card {
  background: #fff;
  border-radius: 1px;
  padding: 32px;
  /*margin: 10px;*/
}
/*.controller-card { color: var(--color-text-muted); }*/
.controller-card-teal { background: var(--color-teal); color: var(--color-text-light); }
.controller-card-gray { background: var(--color-gray); color: var(--color-text-dark); }
.controller-card-graphite { background: var(--color-graphite); color: var(--color-text-light); }
.controller-card h3 { font-size: 1.15rem; }

.boost-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.boost-row { display: grid; grid-template-columns: 140px auto; gap: 4px 16px; align-items: center; }
.boost-label { font-weight: 600; font-size: .92rem; }
.boost-levels { display: flex; gap: 4px; }
.boost-levels i { width: 16px; height: 8px; border-radius: 4px; background: var(--color-teal-soft); }
.boost-levels i:nth-child(-n+3) { background: var(--color-teal); }
.boost-desc { grid-column: 1 / -1; font-size: .85rem; color: var(--color-text-muted); }

/* =============================================================
   APP
   ============================================================= */
.app-section { background: var(--color-lightgray); color: var(--color-text-dark); }
.app-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.app-feature { margin-bottom: 28px; }
.app-visual img {
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* =============================================================
   SPECS
   ============================================================= */
.specs-section { background: var(--color-lightgray); }
.specs-table-wrap {
  margin-top: 32px;
  background: #fff;
  border: 1px solid rgba(27, 30, 34, .08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 30, 34, .04);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th,
.specs-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(27, 30, 34, .08);
}
.specs-table thead th {
  background: var(--color-graphite);
  color: var(--color-text-light);
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.specs-table tbody th {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-dark);
}
.specs-table tbody td {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-teal-dark);
  font-weight: 700;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}
.specs-footnote {
  padding: 18px 24px 24px;
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
}

/* =============================================================
   CONTACT / FOOTER
   ============================================================= */
.contact-section { background: var(--color-teal); color: #fff; text-align: center; }
.contact-section .section-lead { color: rgba(255,255,255,.9); margin: 0 auto 28px; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }

.footer { background: var(--color-graphite); color: rgba(247,249,250,.6); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer .logo { color: rgba(247,249,250,.85); }
.footer p { margin: 0; font-size: .85rem; }

/* =============================================================
   CONTACT MODAL
   ============================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }

.modal-box {
  background: var(--color-graphite-light);
  color: var(--color-text-light);
  border-radius: 12px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.modal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: .25em;
}
.modal-intro { color: rgba(247,249,250,.65); margin-bottom: 1.5em; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(247,249,250,.6);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
}
.modal-close:hover { color: #fff; }

.form-group { display: flex; flex-direction: column; margin-bottom: 1.2em; }
.form-group label {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(247,249,250,.7);
  margin-bottom: .45em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.char-counter { font-size: .8rem; color: var(--color-text-muted); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
  background: var(--color-graphite);
  border: 1px solid rgba(247,249,250,.15);
  border-radius: 8px;
  color: var(--color-text-light);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #e05c5c; }

.field-error { color: #e05c5c; font-size: .8rem; margin-top: .3em; min-height: 1em; }

.form-actions { margin-top: .5em; }
.form-actions .btn { width: 100%; text-align: center; }

.form-status {
  margin-top: 1em;
  font-size: .9rem;
  min-height: 1.4em;
  text-align: center;
}
.form-status.success { color: #4caf7d; }
.form-status.error   { color: #e05c5c; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .bike-stage,
  .detail-grid,
  .detail-grid-reverse,
  .app-grid { grid-template-columns: 1fr; }
  .detail-grid-reverse .detail-stats,
  .detail-grid-reverse .detail-copy { order: initial; }
  .controller-grid { grid-template-columns: 1fr; }
  .box-span-3, .box-span-4, .box-span-6, .box-span-8 { grid-column: span 12; }
}

@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(27,30,34,.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero-bg { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .section { padding: 0px 0; }
  .boost-row { grid-template-columns: 1fr; }
}
