@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');
:root {
  font-family: 'DM Sans', sans-serif;
  color: #eaece6;
  background: #141817;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(
    ellipse at 57% 38%,
    #242a26 0%,
    #171b19 47%,
    #111513 100%
  );
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
#demoButton {
  display: none;
}
.app {
  max-width: 1510px;
  margin: auto;
  padding: 26px clamp(20px, 4vw, 68px) 20px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid #353c36;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand-mark {
  height: 43px;
  width: 43px;
  background: #ee3024;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-mark span {
  font-size: 15px;
  color: #ffd7c4;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 12px;
  letter-spacing: 0.17em;
}
.brand small {
  color: #87908a;
  font:
    10px 'Space Mono',
    monospace;
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.live-pill {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #cbd4c8;
  border: 1px solid #3a443c;
  border-radius: 30px;
  padding: 9px 13px;
  font:
    10px 'Space Mono',
    monospace;
  letter-spacing: 0.08em;
}
.pulse {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #b1cf84;
  box-shadow: 0 0 11px #a5cb83;
}
.pulse.offline {
  background: #f15a4b;
  box-shadow: 0 0 11px #f15a4b;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.15;
  }
}
.icon-button {
  height: 36px;
  width: 36px;
  border: 1px solid #3a443c;
  border-radius: 9px;
  background: #202622;
  color: #e2e8e0;
  font-size: 19px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(370px, 1.5fr) minmax(
      260px,
      0.96fr
    );
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  min-height: 715px;
}
.intro {
  align-self: start;
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin-top: 40px;
}
.eyebrow {
  font:
    10px 'Space Mono',
    monospace;
  color: #e88c75;
  letter-spacing: 0.18em;
}
.intro h1 {
  font-size: clamp(34px, 3.5vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.055em;
  margin: 23px 0;
}
.intro h1 em {
  font-style: normal;
  color: #f35a43;
}
.intro p {
  font-size: 14px;
  color: #aeb9ae;
  line-height: 1.8;
  max-width: 295px;
}
.device-stage {
  height: 820px;
  position: relative;
  top: -100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.stage-glow {
  position: absolute;
  width: 90%;
  height: 70%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #42443a55, transparent 67%);
  filter: blur(25px);
}
.device {
  zoom: 1.6;
  left: -80px;
  height: 535px;
  width: 335px;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(14px 22px 20px #0006);
}
.mast {
  position: absolute;
  left: 137px;
  top: 128px;
  width: 23px;
  height: 400px;
  background: linear-gradient(
    90deg,
    #bb180c 0%,
    #fc3b2b 34%,
    #e21d13 78%,
    #9e180e 100%
  );
  border-radius: 2px;
}
.mast-cap {
  position: absolute;
  left: 138px;
  top: 109px;
  width: 21px;
  height: 35px;
  background: linear-gradient(90deg, #e7e8dd, #fff, #d0d2ca);
  border-radius: 3px;
  z-index: 2;
}
.display-housing {
  position: absolute;
  left: 157px;
  top: 170px;
  width: 220px;
  height: 200px;
  background: linear-gradient(140deg, #ff382a, #e9281b 70%, #b81610);
  border-radius: 3px 5px 5px 2px;
  padding: 16px 13px 16px 13px;
  box-shadow:
    9px 12px 17px #0005,
    inset 0 1px 1px #ff8d7b66;
}
.housing-screw {
  position: absolute;
  height: 3px;
  width: 3px;
  background: #96251c;
  border-radius: 50%;
  right: 5px;
}
.screw-a {
  top: 5px;
}
.screw-b {
  bottom: 5px;
}
.display-glass {
  height: 100%;
  background: #030604;
  border: 3px solid #222520;
  box-shadow:
    inset 0 0 13px #000,
    inset 0 1px 0 #ffffff40,
    inset 0 0 0 1px #ffffff14,
    0 0 0 1px #fd5f4a33;
  padding: 6px 6px 5px;
  overflow: hidden;
  color: #f0f3bf;
  font-family: 'Space Mono', monospace;
  text-shadow: 0 0 6px #c7d88a66;
  position: relative;
}
.display-glass:before,
.display-glass:after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}
/* glass reflection: diagonal sheen plus a soft vignette */
.display-glass:before {
  background:
    linear-gradient(
      120deg,
      #ffffff2e 0%,
      #ffffff14 40%,
      transparent 41%
    ),
    radial-gradient(ellipse at 50% 50%, transparent 55%, #00000066 100%);
}
.display-glass:after {
  background: repeating-linear-gradient(
    0deg,
    #ffffff0a 0px,
    #ffffff0a 1px,
    transparent 1px,
    transparent 3px
  );
}
.screen-top,
.screen-bottom {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  font-size: 6.5px;
  letter-spacing: 0.02em;
}
.screen-top {
  padding-bottom: 4px;
  border-bottom: 1px solid #9fa77b55;
}
.screen-top span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 116px;
}
.departure-rows {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.departure-rows[data-count='3'] {
  gap: 10px;
}
.departure-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  gap: 3px;
  align-items: center;
  min-height: 17px;
}
.dep-line {
  font:
    700 15px 'DM Sans',
    sans-serif;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.dep-destination {
  font:
    700 8px 'DM Sans',
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-secondary {
  font-size: 5.4px;
  color: #a3aa83;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-min {
  font:
    800 18px 'DM Sans',
    sans-serif;
  text-align: right;
  white-space: nowrap;
}
.dep-min > span:not(.blink-boxes) {
  display: inline-block;
  width: 0.62em;
  text-align: center;
}
.screen-bottom {
  border-top: 1px solid #9fa77b55;
  padding-top: 3px;
  margin-top: 3px;
  color: #9fa77b;
  font-size: 5.5px;
}
.screen-bottom span {
  display: flex;
  align-items: center;
  gap: 3px;
}
#signalDot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #c2d6a0;
  border-radius: 50%;
}
.foot {
  position: absolute;
  bottom: 0px;
  height: 17px;
  background: #121615;
  border-radius: 3px;
}
.foot-back {
  left: 79px;
  width: 155px;
  transform: skewY(-13deg);
}
.foot-front {
  left: 55px;
  width: 215px;
  transform: skewY(9deg);
  box-shadow: 0 10px 10px #0005;
}
.settings {
  align-self: center;
  background: #1d2420e8;
  border: 1px solid #39443b;
  padding: 26px;
  border-radius: 13px;
  box-shadow: 0 20px 55px #070c0966;
  position: relative;
  z-index: 1;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 27px;
}
.panel-head h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin: 9px 0 0;
}
.panel-tag {
  font:
    9px 'Space Mono',
    monospace;
  border: 1px solid #48544c;
  color: #9da99e;
  padding: 6px;
  border-radius: 3px;
}
.settings label {
  display: block;
  font:
    10px 'Space Mono',
    monospace;
  letter-spacing: 0.07em;
  color: #b8c5b8;
  margin: 17px 0 9px;
}
.label-meta {
  color: #718175;
  float: right;
  font-size: 8px;
}
.settings input,
.settings select {
  width: 100%;
  height: 41px;
  border-radius: 5px;
  border: 1px solid #465248;
  background: #151c17;
  color: #eef2e8;
  outline: none;
  padding: 0 11px;
  font-size: 13px;
}
.settings input:focus,
.settings select:focus {
  border-color: #e96854;
  box-shadow: 0 0 0 2px #e9685422;
}
.settings input::placeholder {
  color: #79887d;
}
.help {
  color: #829286;
  font-size: 11px;
  line-height: 1.6;
  margin: 7px 0;
}
.setting-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.primary,
.secondary {
  height: 42px;
  width: 100%;
  border-radius: 5px;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 800;
}
.primary {
  background: #ee4231;
  border: 1px solid #ff5b48;
  color: white;
  margin-top: 23px;
}
.primary:hover {
  background: #ff5544;
}
.secondary {
  background: transparent;
  border: 1px solid #475449;
  color: #cbd6ca;
  margin-top: 10px;
}
.secondary:hover {
  background: #2b342d;
}
#connectButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-box {
  position: relative;
}
.stop-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 10px;
  background: #151c17;
  border: 1px solid #e96854;
  border-radius: 5px;
  box-shadow: 0 14px 30px #000a;
}
.stop-results[hidden] {
  display: none;
}
.stop-results .help {
  margin: 8px 0;
}
.stop-result:last-child {
  border-bottom: 0;
}
.stop-result {
  padding: 8px 0;
  border-bottom: 1px solid #354039;
}
.stop-result strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.stop-result .secondary {
  height: auto;
  width: auto;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
  font-weight: 600;
}
.divider {
  height: 1px;
  background: #354039;
  margin: 22px 0 18px;
}
.technical {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 0;
  font:
    9px 'Space Mono',
    monospace;
}
.technical span {
  color: #819087;
}
.technical strong {
  color: #b7c7b9;
  font-weight: 400;
  text-align: right;
}
.bottom-help {
  margin-top: 18px;
  display: none;
}
.page-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid #353c36;
  padding-top: 20px;
  color: #738077;
  font:
    9px 'Space Mono',
    monospace;
  letter-spacing: 0.07em;
}
.page-footer span:last-child {
  justify-self: end;
}
@media (max-width: 1200px) {
  .app {
    padding: 18px;
    overflow-x: clip;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
    align-items: start;
    gap: 20px;
    min-height: 0;
  }
  .intro {
    grid-column: 1;
    grid-row: 1;
    max-width: 560px;
    padding-top: 20px;
  }
  .device-stage {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .settings {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 35px;
  }
  .intro h1 {
    font-size: 43px;
  }
  .intro p {
    margin-bottom: 0;
  }
  .device-stage {
    height: 660px;
  }
  .device {
    zoom: 1.2;
    left: -80px;
    top: 40px;
  }
  .settings {
    margin-bottom: 34px;
  }
  .page-footer {
    font-size: 8px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand strong {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .device {
    zoom: 1;
  }
  .device-stage {
    height: 560px;
  }
  .intro {
    padding-top: 0;
  }
}

@media (max-width: 690px) {
  .workspace {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .intro,
  .device-stage,
  .settings {
    grid-column: auto;
    grid-row: auto;
  }
  .settings {
    margin-top: 0;
  }
  .device-stage {
    height: 520px;
    justify-content: center;
  }
  .device {
    zoom: 0.9;
  }
}
@media (min-width: 1201px) {
  .icon-button {
    display: none;
  }
}
@media (max-width: 1200px) {
  .settings.is-collapsed {
    display: none;
  }
  .intro {
    padding-top: 20px;
  }
}

.zoom-button {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #3a443c;
  border-radius: 30px;
  font:
    10px 'Space Mono',
    monospace;
  letter-spacing: 0.08em;
  background: transparent;
  color: #cbd4c8;
  cursor: pointer;
}
.zoom-button:hover {
  background: #202622;
}
.zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body.is-zoomed .zoom-backdrop {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}
body.is-zoomed .device {
  filter: none;
}
.display-housing {
  z-index: 60;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.is-zoomed .display-housing {
  transform: translate(var(--zoom-x, 0px), var(--zoom-y, 0px))
    scale(var(--zoom-s, 1));
}
.blink-boxes {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 1em;
}
.blink-boxes i {
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
  animation: fade-blink 1s ease-in-out infinite;
}
@keyframes fade-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.08;
  }
}
#screenStation {
  text-transform: uppercase;
}
@media (max-width: 1200px) {
  .zoom-button {
    width: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .zoom-button span {
    display: none;
  }
}
@media (max-width: 1200px) {
  .intro-2 {
    display: none;
  }
}
.fullscreen-button {
  height: 36px;
  width: 36px;
  display: none;
  place-items: center;
  border: 1px solid #3a443c;
  border-radius: 50%;
  background: transparent;
  color: #cbd4c8;
}
.fullscreen-button:hover {
  background: #202622;
}
@media (max-width: 1200px) {
  .fullscreen-button:not([hidden]) {
    display: grid;
  }
}
.ordernow > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ordernow svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}
.preorder-dialog {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 26px;
  background: #1d2420;
  color: #eef2e8;
  border: 1px solid #39443b;
  border-radius: 13px;
  box-shadow: 0 20px 55px #000a;
}
.preorder-dialog::backdrop {
  background: #000c;
}
.preorder-dialog h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin: 9px 0 8px;
}
.preorder-dialog label {
  display: block;
  margin: 16px 0 6px;
  font:
    9px 'Space Mono',
    monospace;
  letter-spacing: 0.12em;
  color: #9da99e;
}
.preorder-dialog input:not(.hp-field) {
  width: 100%;
  height: 41px;
  border-radius: 5px;
  border: 1px solid #465248;
  background: #151c17;
  color: #eef2e8;
  outline: none;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
}
.preorder-dialog input:focus {
  border-color: #e96854;
  box-shadow: 0 0 0 2px #e9685422;
}
.preorder-dialog .primary,
.preorder-dialog .secondary {
  height: 42px;
  width: 100%;
  border-radius: 5px;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 800;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.preorder-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 12px;
  color: #f2a79c;
}
.preorder-message.is-ok {
  color: #b1cf84;
}
.connect-dialog {
  text-align: center;
}
.connect-radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 22px auto 10px;
  color: #6aa6ff;
}
.connect-radar svg {
  position: relative;
  z-index: 1;
}
.connect-radar::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #6aa6ff22;
  border: 1px solid #6aa6ff88;
}
.connect-radar .ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #6aa6ff;
  opacity: 0;
  animation: radar 2.4s ease-out infinite;
}
.connect-radar .ring:nth-child(2) {
  animation-delay: 0.8s;
}
.connect-radar .ring:nth-child(3) {
  animation-delay: 1.6s;
}
.connect-radar.is-failed {
  color: #f15a4b;
}
.connect-radar.is-failed::before {
  background: #f15a4b22;
  border-color: #f15a4b88;
}
.connect-radar.is-failed .ring {
  animation: none;
}
@keyframes radar {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
.connect-message {
  min-height: 1.4em;
  margin: 8px 0 18px;
  font-size: 13px;
  color: #cbd4c8;
}
.connect-message.is-error {
  color: #f2a79c;
}
@media (prefers-reduced-motion: reduce) {
  .connect-radar .ring {
    animation: none;
    opacity: 0.35;
  }
}
