/* ---------------------------------------------------
   The Bot Station — tokens
--------------------------------------------------- */
:root{
  --bg: #06141C;
  --bg-alt: #0A1E27;
  --surface: #0F2833;
  --surface-2: #123240;
  --line: rgba(196, 232, 230, 0.12);

  --text: #EAF6F4;
  --text-dim: #9FC2C0;
  --text-faint: #6C8E8C;

  --teal: #2DE0C2;
  --teal-dim: #1B7F6E;
  --cyan: #4FD1FF;
  --mint: #A8FFE8;

  --grad-brand: linear-gradient(135deg, var(--teal), var(--cyan));
  --ink: #06141C;
  --header-bg: rgba(6, 20, 28, 0.75);
  --track-card: rgba(15, 40, 51, 0.88);
  --stop-label-bg: rgba(10, 30, 39, 0.88);
  --terminal-bg: #071319;
  --modal-scrim: rgba(4, 12, 16, 0.72);

  --horizon-a: #1EE6C4;
  --horizon-b: #0F6E63;
  --rail-outer-a: #2A5D63;
  --rail-outer-b: #5EEAD4;
  --rail-outer-c: #1B3B44;
  --rail-inner-a: #173338;
  --rail-inner-b: #4FD1FF;
  --rail-inner-c: #0E2429;
  --rail-sleeper: #0B2126;
  --pod-lead: #7CFFE4;
  --pod-trail: #4FD1FF;
  --platform-glow: #2DE0C2;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --wrap: 1180px;

  color-scheme: dark;
}

html[data-theme="day"]{
  --bg: #F3E9D7;
  --bg-alt: #E8DCC4;
  --surface: #F8F1E3;
  --surface-2: #EDE3CF;
  --line: rgba(72, 60, 42, 0.13);

  --text: #2C322E;
  --text-dim: #5C574E;
  --text-faint: #7A7368;

  --teal: #157A68;
  --teal-dim: #3D8A78;
  --cyan: #1E7388;
  --mint: #2A6E5E;

  --grad-brand: linear-gradient(135deg, #1A9A7A, #2A8AA0);
  --ink: #1C2A28;
  --header-bg: rgba(243, 233, 215, 0.9);
  --track-card: rgba(248, 241, 227, 0.96);
  --stop-label-bg: rgba(248, 241, 227, 0.96);
  --terminal-bg: #2A3834;
  --modal-scrim: rgba(52, 44, 32, 0.38);

  --horizon-a: #D2C4A4;
  --horizon-b: #C0B090;
  --rail-outer-a: #5A7A6E;
  --rail-outer-b: #1A8A70;
  --rail-outer-c: #6A7A64;
  --rail-inner-a: #6A7A6E;
  --rail-inner-b: #1E7388;
  --rail-inner-c: #6E766C;
  --rail-sleeper: #D6C8B0;
  --pod-lead: #157A68;
  --pod-trail: #1E7388;
  --platform-glow: #157A68;

  color-scheme: light;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

main, .site-footer{ position: relative; z-index: 1; }

.station-fx{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.station-fx canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.platform-mist{
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -8%;
  height: 42vh;
  max-height: 420px;
}
.platform-mist span{
  position: absolute;
  bottom: 0;
  height: 100%;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.7;
  background: radial-gradient(ellipse at center, rgba(45, 224, 194, 0.14) 0%, rgba(15, 40, 51, 0.1) 42%, transparent 72%);
  animation: mistDrift 32s ease-in-out infinite alternate;
}
.platform-mist span:nth-child(1){
  left: -8%;
  width: 58%;
  animation-duration: 36s;
}
.platform-mist span:nth-child(2){
  left: 28%;
  width: 50%;
  opacity: 0.5;
  animation-duration: 28s;
  animation-delay: -8s;
  background: radial-gradient(ellipse at center, rgba(79, 209, 255, 0.1) 0%, transparent 70%);
}
.platform-mist span:nth-child(3){
  right: -6%;
  left: auto;
  width: 46%;
  opacity: 0.45;
  animation-duration: 40s;
  animation-delay: -16s;
}
@keyframes mistDrift{
  from{ transform: translateX(-6%) translateY(4%); }
  to{ transform: translateX(7%) translateY(-3%); }
}
html[data-theme="day"] .platform-mist span{
  background: radial-gradient(ellipse at center, rgba(255, 248, 232, 0.42) 0%, rgba(232, 214, 176, 0.18) 48%, transparent 74%);
}
html[data-theme="day"] .platform-mist span:nth-child(2){
  background: radial-gradient(ellipse at center, rgba(255, 250, 238, 0.32) 0%, transparent 70%);
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--text-dim); }

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.6em;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: var(--ink); padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus{ left: 0; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-primary{
  background: var(--grad-brand);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(45, 224, 194, 0.55);
}
.btn-primary:hover{ box-shadow: 0 12px 28px -8px rgba(79, 209, 255, 0.55); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }
.btn-wide{ width: 100%; }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.brand{
  display:flex; align-items:center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.brand-mark{ color: var(--teal); display:flex; }
.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{ color: var(--text-dim); font-size: 0.96rem; }
.main-nav a:hover{ color: var(--text); }
.nav-cta{
  color: var(--ink) !important;
  background: var(--grad-brand);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 40px; height: 40px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--text); display:block; }
.mobile-nav{ display:none; flex-direction:column; padding: 8px 28px 20px; }
.mobile-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }

/* ---------------------------------------------------
   Hero + oval track
--------------------------------------------------- */
.hero{
  padding: 76px 0 28px;
  overflow: visible;
}
.hero-copy{ max-width: 720px; }
.hero-copy h1{
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}
.hero-sub{ font-size: 1.08rem; max-width: 52ch; }
.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.track-bleed{
  width: 100%;
  margin-top: 28px;
}
.track-stage{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "loop" "table";
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.track-loop{
  grid-area: loop;
  position: relative;
  width: 100%;
  height: clamp(260px, 42vw, 540px);
  overflow: visible;
}
.track-glow, .track-svg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.track-stops{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.stop{
  position: absolute;
  left: 0; top: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  z-index: 2;
  will-change: transform;
}
.stop-ring{
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  pointer-events: none;
}
.stop.is-active .stop-ring{
  opacity: 0.7;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse{
  0%{ transform: translate(-50%,-50%) scale(0.6); opacity: 0.7; }
  100%{ transform: translate(-50%,-50%) scale(2.1); opacity: 0; }
}
.stop-dot{
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(45,224,194,0.55);
  box-shadow: 0 0 0 4px rgba(45,224,194,0.08);
  transition: transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.stop.is-soon .stop-dot{
  border-style: dashed;
  border-color: rgba(159,194,192,0.45);
  background: transparent;
}
.stop.is-active .stop-dot{
  width: 18px; height: 18px;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(45,224,194,0.16), 0 0 18px rgba(79,209,255,0.55);
}
.stop:hover .stop-dot, .stop:focus-visible .stop-dot{ transform: scale(1.2); }
.stop-label{
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--stop-label-bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.stop.label-up .stop-label{
  top: auto;
  bottom: calc(100% + 6px);
}
.stop.is-active .stop-label,
.stop:hover .stop-label,
.stop:focus-visible .stop-label{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.track-board{
  grid-area: loop;
  place-self: center;
  position: relative;
  z-index: 3;
  width: min(400px, 46%);
  background: var(--track-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 26px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.65);
  overflow: hidden;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.track-board-progress{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: rgba(45,224,194,0.12);
}
.track-board-progress span{
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-brand);
  transform-origin: left center;
}
.track-board.is-playing .track-board-progress span{
  animation: boardFill 4.8s linear forwards;
}
@keyframes boardFill{
  from{ width: 0; }
  to{ width: 100%; }
}
.track-board-eyebrow{
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.track-board-tag{
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.track-board h3{
  font-size: 1.45rem;
  margin-bottom: 0.35em;
}
.track-board p#boardDesc{
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.track-board .btn{ width: 100%; }

.track-timetable-wrap{
  grid-area: table;
  padding: 6px 20px 8px;
  text-align: center;
}
.track-hint{
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.track-timetable{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.track-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.track-chip:hover, .track-chip:focus-visible{
  border-color: var(--teal);
  color: var(--text);
  transform: translateY(-1px);
}
.track-chip.is-active{
  background: var(--grad-brand);
  color: var(--ink);
  border-color: transparent;
}
.track-chip.is-soon:not(.is-active){
  border-style: dashed;
}
.track-chip-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint);
}
.track-chip.is-active .track-chip-dot{
  background: var(--ink);
  box-shadow: none;
}
.track-chip:not(.is-soon) .track-chip-dot{
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.track-chip.is-active:not(.is-soon) .track-chip-dot{
  background: var(--ink);
  box-shadow: none;
}

/* ---------------------------------------------------
   How it works
--------------------------------------------------- */
.how{ padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.how-index{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.how-step h3{ font-size: 1.15rem; margin-bottom: 0.4em; }
.how-step p{ font-size: 0.96rem; }

/* ---------------------------------------------------
   Products
--------------------------------------------------- */
.products{ padding: 90px 0; }
.products h2{ font-size: clamp(1.8rem, 3.4vw, 2.4rem); max-width: 20ch; }

.product-cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.product-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px;
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.product-card-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 22px;
}
.product-tag{
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 0.9rem;
}
.status-pill{
  display:inline-flex; align-items:center; gap:7px;
  font-size: 0.8rem; color: var(--text-faint);
}
.status-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.product-card h3{ font-size: 1.4rem; }
.feature-list{ list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.feature-list li{
  color: var(--text-dim);
  font-size: 0.94rem;
  padding-left: 22px;
  position: relative;
}
.feature-list li::before{
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: rotate(45deg);
}

/* ---------------------------------------------------
   Custom build
--------------------------------------------------- */
.custom{ padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.custom-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.custom-copy h2{ font-size: clamp(1.8rem, 3.2vw, 2.3rem); max-width: 16ch; }
.custom-lead{ max-width: 48ch; font-size: 1.02rem; }
.custom-features{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 28px 0 32px;
}
.custom-feature h4{ font-size: 1.02rem; margin-bottom: 0.3em; color: var(--mint); }
.custom-feature p{ font-size: 0.92rem; margin-bottom: 0; }
.micro-note{ font-size: 0.85rem; color: var(--text-faint); margin-top: 12px; margin-bottom: 0; }

.terminal{
  background: var(--terminal-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.terminal-bar{
  display:flex; gap: 7px;
  padding: 14px 16px;
  background: var(--surface-2);
}
.terminal-bar span{ width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.terminal-body{ padding: 24px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88rem; }
.terminal-body p{ margin: 0 0 12px; color: var(--text-dim); }
.terminal-body .prompt{ color: var(--cyan); margin-right: 8px; }
.terminal-body .ok{ color: var(--teal); }
.terminal-body .dim{ color: var(--text-faint); margin-top: 18px; }
.terminal-body .live{ color: var(--teal); }

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact{ padding: 90px 0; }
.contact-inner{ max-width: 640px; }
.contact-lead{ font-size: 1.02rem; }
.contact-form{ margin-top: 30px; display: grid; gap: 18px; }
.field{ display: grid; gap: 8px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label{ font-size: 0.9rem; color: var(--text-dim); }
input, select, textarea{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
input:focus, select:focus, textarea:focus{
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,224,194,0.18);
}
textarea{ resize: vertical; }
.hidden-field{ position: absolute; left: -9999px; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer{ border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.brand-footer{ font-size: 1rem; }
.footer-tag{ font-size: 0.9rem; margin-top: 10px; }
.site-footer h5{ font-family: var(--font-display); font-size: 0.85rem; color: var(--text-faint); margin: 0 0 14px; font-weight: 500; }
.site-footer > .footer-grid > div > a{ display:block; color: var(--text-dim); font-size: 0.92rem; padding: 5px 0; }
.site-footer > .footer-grid > div > a:hover{ color: var(--teal); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------
   Modal
--------------------------------------------------- */
.modal-backdrop{
  position: fixed; inset: 0;
  background: var(--modal-scrim);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop[hidden]{ display: none; }
.modal{
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px 32px 32px;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn{
  from{ opacity: 0; transform: translateY(10px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close{
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.modal-close:hover{ color: var(--text); border-color: var(--teal); }
.modal-tag{ color: var(--cyan); font-family: var(--font-display); font-size: 0.88rem; }
.modal h3{ font-size: 1.4rem; margin-top: 8px; }
.modal p{ font-size: 0.98rem; margin-bottom: 24px; }

/* ---------------------------------------------------
   Service board — floating NIGHT / DAY flap
--------------------------------------------------- */
.service-board{
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 176px;
  padding: 14px 12px 11px;
  background: linear-gradient(180deg, #163038 0%, #0C1C22 100%);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 16px;
  box-shadow:
    0 18px 40px -16px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-display);
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, transform 0.18s ease;
}
.service-board:hover{ transform: translateY(-2px); }
.service-board:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(45, 224, 194, 0.35),
    0 18px 40px -16px rgba(0,0,0,0.72);
}
.service-rivet{
  position: absolute;
  top: 10px; left: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9bb, #3a4a4e);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.4);
}
.service-rivet-right{ left: auto; right: 10px; }
.service-board-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 8px;
}
.service-board-kicker{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.service-lamp{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.service-status{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0 2px;
  border-radius: 8px;
  background: #0E1A20;
  border: 1px solid rgba(124, 255, 228, 0.18);
}
.service-status span{
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.status-night{ color: #7CFFE4; }
.status-day{ display: none; color: #2C322E; }
html[data-theme="day"] .status-night{ display: none; }
html[data-theme="day"] .status-day{ display: block; }
.service-board-hint{
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.01em;
}
.hint-day{ display: none; }
html[data-theme="day"] .hint-night{ display: none; }
html[data-theme="day"] .hint-day{ display: inline; }

html[data-theme="day"] .service-board{
  background: linear-gradient(180deg, #EFE2C8 0%, #E4D4B4 100%);
  border-color: rgba(80, 64, 40, 0.18);
  box-shadow:
    0 18px 40px -16px rgba(80, 50, 20, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
html[data-theme="day"] .service-board:focus-visible{
  box-shadow:
    0 0 0 3px rgba(21, 122, 104, 0.28),
    0 18px 40px -16px rgba(80, 50, 20, 0.22);
}
html[data-theme="day"] .service-rivet{
  background: radial-gradient(circle at 35% 30%, #f4ead8, #8a7450);
}
html[data-theme="day"] .service-lamp{
  background: #C4842A;
  box-shadow: 0 0 10px rgba(196, 132, 42, 0.65);
}
html[data-theme="day"] .service-status{
  background: #F8F1E3;
  border-color: rgba(72, 60, 42, 0.16);
}
html[data-theme="day"] .btn-primary{
  box-shadow: 0 8px 24px -8px rgba(26, 154, 122, 0.35);
}
html[data-theme="day"] .track-board{
  box-shadow: 0 24px 50px -28px rgba(80, 50, 20, 0.22);
}
html[data-theme="day"] .stop-dot{
  border-color: rgba(21, 122, 104, 0.45);
}
html[data-theme="day"] input,
html[data-theme="day"] select,
html[data-theme="day"] textarea{
  color: var(--text);
}

.footer-bottom{ padding-right: 200px; }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 860px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-nav.open{ display:flex; }
  .how-grid{ grid-template-columns: 1fr; gap: 40px; }
  .product-cards{ grid-template-columns: 1fr; }
  .custom-grid{ grid-template-columns: 1fr; }
  .custom-features{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .track-stage{ grid-template-areas: "board" "loop" "table"; }
  .track-board{
    grid-area: board;
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 0 auto 4px;
    place-self: center;
  }
  .track-loop{ height: clamp(210px, 58vw, 340px); }
  .stop-label{ display: none; }
  .contact{ padding-bottom: 130px; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-right: 0;
    padding-bottom: 108px;
  }
  .track-board{ padding: 22px 20px 18px; width: calc(100% - 24px); }
  .track-board h3{ font-size: 1.25rem; }
  .track-hint{ padding: 0 12px; }
  .service-board{ width: 152px; padding: 12px 10px 10px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .stop-ring{ animation: none; opacity: 0.3; }
  .track-svg animateMotion{ display: none; }
  .track-board-progress span,
  .track-board.is-playing .track-board-progress span{ animation: none !important; width: 100%; }
  .btn, .modal, .service-board{ animation: none !important; }
  .station-fx{ display: none; }
  .platform-mist span{ animation: none; }
}
