:root {
  --ink: #081626;
  --ink-2: #10283d;
  --navy: #0b2f4e;
  --teal: #0f766e;
  --green: #49b93f;
  --green-2: #7ed321;
  --sky: #eef7f5;
  --line: #dfe8e6;
  --muted: #657786;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 22, 38, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(8, 22, 38, 0.06);
}

.nav-wrap {
  min-height: 82px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 215px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #32495a;
}

.main-nav a:hover { color: var(--teal); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--green));
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.2);
}

.btn-secondary {
  border-color: #c8d7d4;
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  border-color: transparent;
  color: var(--ink);
}

.btn-lg { min-height: 52px; padding: 0 24px; }

.btn-full { width: 100%; }

.hero {
  padding: 94px 0 80px;
  background:
    radial-gradient(circle at 75% 20%, rgba(126, 211, 33, 0.12), transparent 22%),
    radial-gradient(circle at 65% 40%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--teal);
}

.eyebrow.light { color: #87e3cf; }

h1, h2, h3 { line-height: 1.05; margin: 0; }

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 30px;
  font-size: 20px;
  color: #526878;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: #70828f;
}

.dashboard-shell {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background: #071a2b;
  color: white;
  box-shadow: 0 34px 80px rgba(8, 22, 38, 0.24);
  border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.small-label { color: #9fb6c7; font-size: 12px; }
.dash-title { margin-top: 2px; font-size: 18px; font-weight: 800; }

.live-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
}

.live-pill span {
  display: inline-block;
  width: 8px; height: 8px; margin-right: 7px;
  border-radius: 50%; background: var(--green-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-card span { display: block; color: #9fb6c7; font-size: 12px; }
.metric-card strong { display: block; margin: 7px 0 2px; font-size: 26px; }
.metric-card small { color: #87a0b3; }

.map-panel {
  position: relative;
  height: 300px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 65% 35%, rgba(73,185,63,0.28), transparent 18%),
    linear-gradient(145deg, #0b2f4e, #0a253c 58%, #061825);
}

.map-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.route-line {
  position: absolute;
  width: 290px;
  height: 110px;
  border: 4px solid rgba(126,211,33,0.8);
  border-color: rgba(126,211,33,0.85) transparent transparent transparent;
  border-radius: 50%;
  transform: rotate(-14deg);
}
.route-one { left: 70px; top: 120px; }
.route-two { left: 230px; top: 80px; transform: rotate(18deg); border-color: rgba(16,185,129,.75) transparent transparent transparent; }

.station, .truck {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.station {
  padding: 9px 10px;
  background: white;
  color: var(--ink);
  min-width: 78px;
}
.station b { display:block; font-size: 14px; }
.station span { font-size: 10px; color: #71808c; }
.station-a { left: 55%; top: 18%; }
.station-b { left: 21%; top: 55%; }

.truck {
  padding: 7px 9px;
  background: #173f5d;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 900;
}
.truck-a { right: 18%; bottom: 22%; }
.truck-b { left: 42%; bottom: 12%; }
.truck-c { left: 14%; top: 22%; }

.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.insight-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}

.insight-card strong { display:block; font-size: 12px; }
.insight-card small { color: #9fb6c7; }
.insight-dot {
  width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--green-2);
}

.logo-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logo-strip p {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  font-weight: 800;
  color: #506475;
}

.section { padding: 96px 0; }
.section.alt { background: #f5f9f8; }
.section.dark { background: #071a2b; color: white; }

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section h2 {
  font-size: clamp(38px, 4.8vw, 58px);
  letter-spacing: -0.035em;
}

.section-heading p, .lead {
  margin: 18px 0 0;
  color: #5f7382;
  font-size: 18px;
}

.light-text { color: #b4c6d2; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 30px rgba(8,22,38,.04);
}

.feature-card .icon {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items:center; justify-content:center;
  border-radius: 10px;
  background: #e8f6f2;
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
}

.feature-card h3 { margin-top: 20px; font-size: 21px; }
.feature-card p { margin-bottom: 0; color: #637684; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.solution-list { display: grid; gap: 14px; }

.solution-item {
  padding: 20px 0;
  border-bottom: 1px solid #d6e2df;
}
.solution-item span { font-size: 19px; font-weight: 900; }
.solution-item p { margin: 4px 0 0; color: #617685; }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.integration-card {
  padding: 22px;
  border-radius: 15px;
  background: #f7faf9;
  border: 1px solid var(--line);
}
.integration-card strong { display:block; font-size: 16px; }
.integration-card span { color: #6b7f8c; font-size: 14px; }

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: #8ce8d1;
  font-weight: 900;
}

.demo-section { background: linear-gradient(180deg, #f8fbfa, #fff); }

.demo-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.form-card, .login-card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #31495a;
}

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #cad7d4;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}

.form-note {
  margin: 12px 0 0;
  color: #7b8c98;
  font-size: 12px;
}

.form-note code {
  color: var(--teal);
  font-weight: 800;
}

.form-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--teal);
  min-height: 20px;
}

.contact-section { padding-top: 40px; }

.contact-card {
  padding: 34px;
  border-radius: 22px;
  background: #eef7f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card h2 { font-size: clamp(30px, 3.7vw, 46px); max-width: 760px; }

.site-footer {
  padding: 64px 0 26px;
  background: #061522;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand img {
  width: 210px;
  height: 64px;
  object-fit: contain;
  object-position: left;
  filter: brightness(1.2);
  background: white;
  border-radius: 12px;
  padding: 4px 8px;
}

.footer-grid strong { display:block; margin-bottom: 13px; }
.footer-grid a { display:block; margin: 8px 0; color: #9fb4c3; font-size: 14px; }
.footer-grid a:hover { color: white; }
.footer-brand p { color: #8ea5b5; }

.copyright {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7990a0;
  font-size: 13px;
}

.menu-toggle {
  display:none;
  border:0;
  background: transparent;
  padding: 8px;
}
.menu-toggle span {
  display:block; width:24px; height:2px; background:var(--ink); margin:5px 0;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 20%, rgba(126,211,33,.12), transparent 25%),
    linear-gradient(145deg, #f7fbfa, #edf6f4);
}

.login-shell {
  width: min(100% - 36px, 470px);
  margin: 0 auto;
  padding: 54px 0;
}

.login-brand {
  display:block;
  width: 220px;
  margin: 0 auto 28px;
}
.login-brand img {
  width: 220px;
  height: 90px;
  object-fit: contain;
}

.login-card h1 {
  margin-top: 4px;
  font-size: 36px;
  letter-spacing: -0.035em;
}
.login-card > p { color: #6b7d8a; }

.login-options {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 2px 0 18px;
  font-size: 13px;
}
.checkbox {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-weight: 700;
}
.checkbox input { width:auto; margin:0; }
.login-options a { color:var(--teal); font-weight:800; }

.login-footer {
  text-align:center;
  margin-top:24px;
  color:#617684;
  font-weight:700;
}

@media (max-width: 980px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .main-nav, .nav-actions {
    display:none;
    grid-column: 1 / -1;
    width:100%;
  }
  .main-nav.open {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding: 14px 0;
  }
  .main-nav.open a {
    width:100%;
    padding: 12px 0;
    border-bottom:1px solid var(--line);
  }
  .nav-actions.open {
    display:flex;
    padding-bottom:18px;
  }
  .menu-toggle { display:block; }
  .hero-grid, .split, .demo-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .feature-grid, .integration-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding: 62px 0; }
  .hero h1 { font-size: 44px; }
  .hero-text { font-size: 18px; }
  .metric-grid, .insight-row, .feature-grid, .integration-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .map-panel { height: 250px; }
  .section { padding: 72px 0; }
  .contact-card {
    align-items:flex-start;
    flex-direction:column;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
