:root{
  --bg0:#070A12;
  --bg1:#0B1226;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.14);
  --accent:#ff3a3a;
  --accent2:#ff7a3a;
  --good:#38d27a;
  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --r: 20px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 25% 20%, rgba(255,58,58,.22), transparent 60%),
    radial-gradient(900px 700px at 85% 18%, rgba(56,210,122,.20), transparent 60%),
    radial-gradient(900px 700px at 35% 85%, rgba(88,105,255,.20), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

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

.topbar{
  position: sticky;
  top:0;
  z-index:20;
  background: rgba(7,10,18,.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.topbar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing:.2px;
}

.brand__dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,58,58,.95));
  box-shadow: 0 0 18px rgba(255,58,58,.35);
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

.nav a{
  padding: 6px 8px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
}

.nav__cta{
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

.nav__cta:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
}

.nav__cta:active{
  transform: translateY(1px);
}

.heroBar{
  position:relative;
  overflow:hidden;
}

.heroBar::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 18% 35%, rgba(255,58,58,.22), transparent 60%),
    radial-gradient(700px 420px at 82% 25%, rgba(56,210,122,.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0));
  pointer-events:none;
}

.heroBar::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,58,58,.95), rgba(255,255,255,0));
  opacity: .85;
  pointer-events:none;
}

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

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:start;
  margin-top: 10px;
}

.hero__title{
  margin:0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.6px;
}
.hero__titleAccent{
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.85), rgba(255,58,58,.95));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.hero__copy{
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 54ch;
}

.delay{
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,58,58,.18);
  border: 1px solid rgba(255,58,58,.5);
  color: #ff6b6b;
}

.cta{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  min-width: 160px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  text-decoration:none !important;
}

.btn:hover{ border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.10); }

.btn--primary{
  border: 1px solid rgba(255,58,58,.45);
  background: linear-gradient(180deg, rgba(255,58,58,.22), rgba(255,58,58,.10));
}

.btn--primary:hover{
  border-color: rgba(255,58,58,.65);
}

.btn[aria-disabled="true"]{
  opacity:.72;
  cursor:not-allowed;
  pointer-events:none;
}

.nav__highlight{
  font-weight:700;
  color:#fff;
  position:relative;
}

.nav__highlight::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,#ff3a3a,transparent);
  opacity:.7;
}

.mini{
  margin-top: 12px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

.badges{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.badge{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 45px rgba(0,0,0,.30);
}

.badge__t{
  font-weight: 800;
  letter-spacing: .2px;
}
.badge__d{
  margin-top: 4px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

.card{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}

.device{
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(600px 420px at 50% -10%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  padding: 14px;
  position:relative;
}

.device::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  opacity:.55;
  pointer-events:none;
}

.device__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
  padding: 0 6px;
}

.device__speaker{
  width: 90px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.device__dots{
  display:flex;
  gap: 6px;
}
.device__dots span{
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

.device__bottom{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 12px;
}
.device__bottom span{
  width: 40px; height: 5px; border-radius: 99px;
  background: rgba(255,255,255,.12);
}
.device__pill{
  width: 90px; height: 10px; border-radius: 99px;
  background: rgba(255,255,255,.12);
}
.device__lights{ display:flex; gap:7px; }
.device__lights span{
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.14);
}

.page{ margin-top: 8px; }
.page__title{
  margin:0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.4px;
}
.page__lead{
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  max-width: 70ch;
}

.board{
  padding: 14px;
}
.board__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
  color: rgba(255,255,255,.86);
  font-weight:700;
}
.board__chip{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56,210,122,.35);
  background: rgba(56,210,122,.12);
  color: rgba(220,255,235,.92);
}

.board__rows{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

@keyframes rowIn{
  to{ transform: translateY(0); opacity: 1; }
}

html, body { overflow-x: hidden; }
.wrap { overflow-x: hidden; }
.device, .hero__preview { max-width: 100%; }

@media (max-width: 820px){
  .hero{ grid-template-columns: 1fr; }
  .hero__preview{ width: 100%; }
  .device{ width: 100%; }
}

@media (max-width: 820px){
  .board{ padding: 8px; }

  .row{
    grid-template-columns: 5ch minmax(0,1fr) 9ch max-content;
    gap: 0;
    padding: 6px 6px;
    border-radius: 12px;
  }

  .row__line{
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
  }

  .row__to{
    padding: 0 6px;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.10;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    border-left: 1px solid rgba(255,255,255,.08);
  }

  .row__time{
    padding: 0 6px;
    font-size: 13px;
    gap: 4px;
    justify-content: flex-end;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.08);
  }

  .delay{
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1.15;
  }

  .row__plat{
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 10px;
    gap: 4px;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
  }

  .row__plat span{
    font-size: 12px;
  }
}

.row{
  display:grid;
  grid-template-columns: 60px minmax(0, 1fr) 96px 96px;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  transform: translateY(6px);
  opacity: 0;
  animation: rowIn .45s ease forwards;
}

.row__to{
  min-width: 0;
  color: rgba(255,255,255,.86);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.row__time{
  text-align:right;
  letter-spacing: .5px;
  color: rgba(255,255,255,.78);
  font-variant-numeric: tabular-nums;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  overflow:hidden;
}

.row__plat{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  white-space:nowrap;
}
.row__plat span{
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.stationSelect{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.stationSelect option{
  color: black;
}

.board__footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top: 10px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

.note{
  margin-top: 12px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  text-align:center;
}

.split{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cardPad{ padding: 18px; }

.card h2{
  margin:0;
  font-size: 18px;
  letter-spacing: -.2px;
}
.card ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.76);
}
.card li{ margin: 8px 0; }

.footer{
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap: 14px;
  color: rgba(255,255,255,.70);
}
.footer__brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.footer__meta{ margin-top: 6px; color: rgba(255,255,255,.55); font-size: 13px; }
.footer__right{ display:flex; gap: 12px; align-items:flex-start; }

@media (max-width: 480px){

  .row{
    /* line | destination | time(+delay) | platform */
    grid-template-columns: 44px minmax(0,1fr) 9ch max-content;
    gap: 6px;
    padding: 8px 8px;
  }

  .row__line{
    font-size: 13px;
  }

  /* Destination gets vertical space instead of horizontal squeeze */
  .row__to{
    white-space: normal;
    overflow: hidden;
    line-height: 1.15;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* Time column always wide enough for 22:37 +22 */
  .row__time{
    justify-content: flex-end;
    white-space: nowrap;
    font-size: 13px;
    gap: 4px;
  }

  /* Smaller delay chip */
  .delay{
    font-size: 11px;
    padding: 1px 5px;
  }

  /* Platform pill stays compact */
@media (max-width: 820px){

  /* Platform column: square, compact, no "P" */
  .row__plat{
    padding: 4px 6px;
    border-radius: 0;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    font-weight: 800;
    min-width: 3ch;
    justify-content: center;
  }

  /* Hide the small "P" label */
  .row__plat span{
    display: none;
  }
}
