:root {
  --night: #071112;
  --deep: #09292a;
  --petrol: #0b4544;
  --rust: #d24b0d;
  --ivory: #f6ecd2;
  --muted: #aab4af;
  --line: rgba(246, 236, 210, 0.14);
  --green: #49dd79;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: white;
  background:
    radial-gradient(circle at 70% 10%, rgba(16, 91, 87, 0.25), transparent 36rem),
    var(--night);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  width: min(1180px, calc(100% - 48px));
  height: 100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 54px; height: 54px; border-radius: 13px; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 21px; letter-spacing: -0.04em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.public-link { color: var(--ivory); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-link span { color: var(--rust); margin-left: 6px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 720px;
  margin: auto;
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: 1fr 410px;
  align-items: center;
  gap: 100px;
}
.eyebrow { color: var(--rust); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero h1 {
  margin: 26px 0 36px;
  font-size: clamp(66px, 8vw, 112px);
  line-height: .84;
  letter-spacing: -.07em;
}
.hero h1 em { color: var(--ivory); font-style: normal; font-weight: 400; }
.lead { max-width: 600px; color: #c3cbc7; font-size: 19px; line-height: 1.65; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 44px; }
.future-button {
  padding: 17px 28px;
  border: 1px solid rgba(246,236,210,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #89928f;
  font-weight: 800;
}
.actions a { border-bottom: 1px solid var(--rust); padding: 9px 0; font-size: 13px; font-weight: 800; }

.status-card {
  position: relative;
  min-height: 460px;
  padding: 35px;
  border: 1px solid rgba(210, 75, 13, .55);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(11, 69, 68, .78), rgba(4, 15, 16, .94));
  box-shadow: 0 35px 100px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.status-card::after {
  content: "";
  position: absolute;
  width: 230px; height: 230px; right: -100px; bottom: -110px;
  border: 45px solid rgba(210,75,13,.12); border-radius: 50%;
}
.status-head { display: flex; align-items: center; gap: 12px; }
.status-head p { color: var(--ivory); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: #9da5a1; box-shadow: 0 0 0 6px rgba(157,165,161,.1); }
.pulse.online { background: var(--green); box-shadow: 0 0 18px var(--green), 0 0 0 6px rgba(73,221,121,.12); }
.pulse.offline { background: #ff874d; box-shadow: 0 0 18px rgba(255,135,77,.5); }
.route-line { height: 120px; display: flex; align-items: center; padding: 0 8px; }
.route-line i { flex: 1; height: 3px; margin: 0 10px; background: repeating-linear-gradient(90deg,var(--rust) 0 12px,transparent 12px 22px); }
.route-start { width: 22px; height: 22px; border: 6px solid var(--green); border-radius: 50%; }
.route-finish { color: var(--ivory); font-size: 32px; line-height: 1; }
.status-card dl { margin: 0; position: relative; z-index: 1; }
.status-card dl div { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); }
.status-card dt { color: var(--muted); }
.status-card dd { margin: 0; color: var(--ivory); font-weight: 800; }
.status-card small { display: block; margin-top: 22px; color: #82908b; }

.foundation { background: var(--ivory); color: var(--night); padding: 130px max(24px, calc((100vw - 1180px) / 2)); }
.section-title { display: grid; grid-template-columns: 210px 1fr 330px; gap: 60px; align-items: end; }
.section-title h2 { margin: 0; color: var(--deep); font-size: clamp(46px, 6vw, 78px); line-height: .95; letter-spacing: -.06em; }
.section-title > p:last-child { color: #54605c; line-height: 1.7; }
.cards { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(7,17,18,.2); }
.cards article { min-height: 390px; padding: 34px; border-right: 1px solid rgba(7,17,18,.18); position: relative; }
.cards article:last-child { border-right: 0; }
.cards article > span { color: #8d9691; font-size: 12px; }
.cards .icon { width: 62px; height: 62px; margin: 55px 0 38px; border-radius: 18px; display: grid; place-items: center; color: var(--rust); background: rgba(210,75,13,.09); font-size: 30px; font-weight: 900; }
.cards .state { color: #717d77; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.cards .ready .state { color: #14723c; }
.cards h3 { margin: 14px 0; color: var(--deep); font-size: 26px; letter-spacing: -.03em; }
.cards article > p:last-child { color: #58615e; line-height: 1.65; }

.promise { width: min(1180px, calc(100% - 48px)); margin: auto; min-height: 540px; padding: 110px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: center; }
.promise h2 { margin: 25px 0 0; font-size: clamp(48px, 6.5vw, 82px); line-height: .95; letter-spacing: -.06em; }
.promise h2 span { color: var(--ivory); font-weight: 400; }
.promise > p { color: #aeb9b4; font-size: 18px; line-height: 1.75; border-left: 2px solid var(--rust); padding-left: 30px; }
footer { min-height: 95px; border-top: 1px solid var(--line); width: min(1180px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; gap: 40px; color: #84908b; font-size: 11px; letter-spacing: .1em; }
footer span { color: var(--ivory); font-weight: 900; }
footer a { margin-left: auto; }

@media (max-width: 850px) {
  .topbar, .hero, .promise, footer { width: calc(100% - 36px); }
  .topbar { height: 82px; }
  .public-link { font-size: 0; }
  .public-link span { font-size: 20px; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding: 75px 0 85px; }
  .hero h1 { font-size: 65px; }
  .status-card { min-height: 410px; }
  .section-title { grid-template-columns: 1fr; gap: 25px; }
  .foundation { padding-top: 90px; padding-bottom: 90px; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: 320px; border-right: 0; border-bottom: 1px solid rgba(7,17,18,.18); padding-left: 0; padding-right: 0; }
  .cards .icon { margin-top: 38px; }
  .promise { grid-template-columns: 1fr; gap: 55px; min-height: auto; padding: 90px 0; }
  footer { flex-wrap: wrap; gap: 12px 22px; padding: 28px 0; }
  footer a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[hidden]{display:none!important}button{cursor:pointer}
.public-head,.public-footer{width:min(1180px,calc(100% - 48px));margin:auto;display:flex;align-items:center;justify-content:space-between}
.public-head{height:100px;border-bottom:1px solid var(--line)}
.public-head>a:last-child{font-size:12px;font-weight:800;text-transform:uppercase}
.welcome-grid{width:min(1180px,calc(100% - 48px));min-height:calc(100vh - 190px);margin:auto;padding:70px 0;display:grid;grid-template-columns:1fr 410px;gap:90px;align-items:center}
.welcome-copy h1{margin:20px 0 32px;font-size:clamp(58px,7vw,100px);line-height:.9;letter-spacing:-.07em}
.welcome-copy h1 em{color:var(--ivory);font-style:normal;font-weight:400}
.welcome-copy>p:not(.eyebrow){max-width:620px;color:#c1cbc6;font-size:18px;line-height:1.7}
.primary,.secondary,.danger{padding:15px 23px;border:0;border-radius:999px;font-weight:800}
.primary{color:#fff;background:#d54a0b}.primary span{margin-left:20px}.welcome-copy .primary{margin-top:28px}
.secondary{border:1px solid #ccd2cc;color:#0a2020;background:#fff}.danger{color:#fff;background:#cc3c35}
.road-card{padding:34px;border:1px solid #d54a0b88;border-radius:32px;background:linear-gradient(145deg,#0b4544dd,#040f10f5)}
.online-row{display:flex;gap:12px;align-items:center;color:var(--ivory);font-size:12px;font-weight:900}.online-row i{width:11px;height:11px;border-radius:50%;background:#9aa3a0}.online-row i.online{background:var(--green);box-shadow:0 0 15px var(--green)}
.route{height:115px;display:flex;align-items:center}.route b{width:22px;height:22px;border:6px solid var(--green);border-radius:50%}.route span{height:3px;flex:1;margin:0 10px;background:repeating-linear-gradient(90deg,#d54a0b 0 12px,transparent 12px 22px)}.route strong{font-size:32px}
.road-card dl{margin:0}.road-card dl div{display:flex;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line)}.road-card dt{color:var(--muted)}.road-card dd{margin:0;color:var(--ivory);font-weight:800}.road-card>small{display:block;margin-top:20px;color:#83918c}.public-footer{height:90px;border-top:1px solid var(--line);color:#84908b;font-size:11px}
.login-dialog{width:min(510px,calc(100% - 30px));padding:0;border:1px solid #ffffff20;border-radius:30px;color:#fff;background:#102324}.login-dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}.login-dialog form{position:relative;padding:42px}.login-dialog img{width:64px;border-radius:17px;margin-bottom:26px}.login-dialog h2{margin:0 0 12px;font-size:36px}.login-dialog form>p{color:#abb7b2}.login-dialog label{display:block;margin:20px 0 8px;font-size:12px;font-weight:800}.login-dialog input{width:100%;padding:15px;border:1px solid #ffffff22;border-radius:13px;outline:0;color:#fff;background:#071112}.login-dialog input:focus{border-color:#d54a0b}.login-dialog .primary{width:100%}.login-dialog form>small{display:block;margin-top:17px;color:#82908b}.close{position:absolute;right:24px;top:20px;border:0;color:#b2bcb7;background:transparent;font-size:30px}.form-error{min-height:18px;color:#ff8e72!important}
.portal{min-height:100vh;color:#0a2020;background:#eef0e9}.sidebar{position:fixed;z-index:10;inset:0 auto 0 0;width:260px;padding:28px 24px;display:flex;flex-direction:column;color:#fff;background:linear-gradient(#071112,#092a2a)}.app-brand{padding:0 8px 30px;border-bottom:1px solid var(--line)}.sidebar nav{display:grid;gap:7px;margin-top:34px}.sidebar nav a{padding:14px 17px;display:flex;gap:15px;border-radius:13px;color:#a7b3ae;font-weight:700}.sidebar nav a.active,.sidebar nav a:hover{color:#fff;background:#ffffff14}.side-foot{margin-top:auto;padding:20px 8px 0;border-top:1px solid var(--line)}.side-foot p{overflow:hidden;text-overflow:ellipsis;color:#a8b2ae;font-size:12px}.side-foot button{padding:0;border:0;color:#f26320;background:transparent;font-weight:800}.mobile-head{display:none}
.workspace{min-height:100vh;margin-left:260px;padding:55px clamp(28px,5vw,80px) 100px}.view{max-width:1260px;margin:auto}.page-head,.detail-head{margin-bottom:38px;display:flex;justify-content:space-between;align-items:end}.page-head h1,.detail-head h1{margin:0;color:#0a2020;font-size:clamp(42px,5vw,68px);line-height:1;letter-spacing:-.065em}.page-head>div>p:last-child,.detail-head>div>p:last-child{color:#65716d}
.metrics{margin-bottom:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px}.metrics article{padding:25px;border:1px solid #d8ddd6;border-radius:20px;background:#fff}.metrics small{color:#71807a}.metrics strong{display:block;margin:18px 0 8px;font-size:28px}.metrics span{color:#9aa39f;font-size:12px}
.panel,.trip-list{border:1px solid #d8ddd6;border-radius:23px;background:#fff;box-shadow:0 10px 35px #142e2b0a}.panel-head{padding:27px 29px;display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #e8ebe6}.panel-head h2{margin:0}.panel-head a{color:#d54a0b;font-weight:800}.panel .trip-list{border:0;border-radius:0 0 22px 22px}
.trip-row{width:100%;padding:20px 25px;display:grid;grid-template-columns:43px 1fr auto 18px;gap:16px;align-items:center;text-align:left;border:0;border-bottom:1px solid #e9ece7;background:#fff}.trip-row>b{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#d54a0b;font-size:23px}.trip-row>span{display:flex;flex-direction:column;gap:5px}.trip-row small{color:#81908a}.trip-meta{text-align:right}.trip-meta strong{color:#d54a0b}.trip-row i{color:#95a09b;font-size:24px}.search{margin-bottom:18px;padding:0 20px;display:flex;gap:12px;align-items:center;border:1px solid #d8ddd6;border-radius:15px;background:#fff}.search input{width:100%;padding:17px 0;border:0;outline:0}.empty,.loading{padding:45px;text-align:center;color:#7e8b85}
.back{padding:0;margin-bottom:25px;border:0;color:#d54a0b;background:transparent;font-weight:800}.detail-actions{display:flex;gap:10px}.detail-metrics{margin-bottom:18px;display:grid;grid-template-columns:repeat(3,1fr);border-radius:20px;color:#fff;background:linear-gradient(110deg,#0a2b2b,#0c4644)}.detail-metrics div{padding:23px 28px;border-right:1px solid var(--line)}.detail-metrics small{display:block;color:#aab8b3}.detail-grid{margin-bottom:18px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-card{padding:27px}.detail-card dl{margin:0}.detail-card dl div{padding:14px 0;display:flex;justify-content:space-between;border-bottom:1px solid #e7eae5}.detail-card dt,.detail-card small{color:#7d8984}.detail-card dd{margin:0;font-weight:700}
.stops-card{margin-bottom:18px}.stops{margin:0;padding:8px 28px 25px;list-style:none}.stops li{padding:20px 0;display:grid;grid-template-columns:40px 1fr;gap:15px;border-bottom:1px solid #e8ebe6}.stops li>b{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#d54a0b}.stops p{margin:5px 0;color:#77847e}.stops small{color:#9aa49f}.notes{padding:27px}
.device-list{display:grid;gap:13px}.device-card{padding:22px 25px;display:grid;grid-template-columns:54px 1fr auto;gap:18px;align-items:center;border:1px solid #d8ddd6;border-radius:19px;background:#fff}.device-card>b{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;color:#d54a0b;background:#fff0e8;font-size:28px}.device-card p{margin:5px 0;color:#687670}.device-card small{color:#97a19d}.device-card>span{padding:7px 10px;border-radius:999px;color:#17753e;background:#e5f8eb;font-size:10px;font-weight:900}.device-card>button{border:0;color:#d33e36;background:transparent;font-weight:800}
.account-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:17px}.profile-card,.account-card{padding:30px;border:1px solid #d8ddd6;border-radius:22px;background:#fff}.profile-card{grid-row:span 2;display:flex;gap:22px;align-items:center}.profile-card img{width:95px;border-radius:25px}.profile-card h2{margin:7px 0}.account-card strong{display:block;margin:10px 0;font-size:21px}.account-card p,.profile-card p{color:#6d7974;line-height:1.6}.account-card a{color:#d54a0b;font-weight:800}
.toast{position:fixed;z-index:99;right:25px;top:25px;padding:14px 18px;border-radius:13px;opacity:0;transform:translateY(-20px);color:#fff;background:#183d32;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#7a2925}
@media(max-width:950px){.welcome-grid{grid-template-columns:1fr;gap:45px}.road-card{max-width:520px}.metrics{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.detail-head{align-items:start;gap:24px;flex-direction:column}}
@media(max-width:720px){
  .public-head,.public-footer,.welcome-grid{width:calc(100% - 32px)}.welcome-copy h1{font-size:54px}.login-dialog form{padding:34px 25px}
  .sidebar{width:min(300px,84vw);transform:translateX(-105%);transition:.22s}.sidebar.open{transform:none}
  .mobile-head{height:72px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:#071112}.mobile-head button{border:0;color:#fff;background:transparent;font-size:25px}.mobile-head img{width:36px;border-radius:10px}
  .workspace{margin:0;padding:34px 16px 80px}.page-head{align-items:start;gap:14px}.page-head h1,.detail-head h1{font-size:42px}.metrics{gap:9px}.metrics article{padding:17px}
  .trip-row{grid-template-columns:38px 1fr 16px;padding:17px 14px}.trip-meta{grid-column:2;text-align:left}.trip-row i{grid-row:1/3;grid-column:3}
  .detail-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.detail-metrics,.detail-grid{grid-template-columns:1fr}
  .device-card{grid-template-columns:48px 1fr}.device-card>span,.device-card>button{grid-column:2;justify-self:start}
  .account-grid{grid-template-columns:1fr}.profile-card{grid-row:auto}.profile-card img{width:70px}
}
@media print{.sidebar,.mobile-head,.back,.detail-actions,.toast{display:none!important}.portal{background:#fff}.workspace{margin:0;padding:0}.view{display:none!important}.view[data-page=trip]{display:block!important}.panel{box-shadow:none}}
.cloud-ok{color:#17753e!important;font-weight:800}.cloud-warn{color:#b14524!important;font-weight:800}
