/* ===== MTD Express — styles.css ===== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-deep: #072c91;
  --navy: #0b152c;
  --gold: #e1951f;
  --gold-soft: #ffd37a;

  --background: #d3d3d3;
  --foreground: #000000;

  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.3);
  --muted-foreground: #333333;

  --primary: #e1951f;
  --primary-foreground: #ffffff;

  --gradient-hero:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 102, 201, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(31, 63, 150, 0.25), transparent 60%),
    linear-gradient(180deg, #d3d3d3, #c4c4c4);
  --gradient-gold: linear-gradient(135deg, #ffd37a, #e1951f);
  --shadow-gold: 0 20px 60px -20px rgba(225, 149, 31, 0.45);
  --shadow-card: 0 10px 40px -15px rgba(0, 0, 0, 0.5);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(13, 24, 56, 0.12);
}

.font-mono { font-family: var(--font-mono); }

/* ===== Nav ===== */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-inner-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.nav-bar {
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(230, 235, 245, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(13, 24, 56, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  position: relative;
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-glow {
  pointer-events: none;
  position: absolute;
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31, 63, 150, 0.35), transparent 65%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 180ms ease-out;
}

.nav-links a {
  font-size: 0.875rem;
  color: #1a1a1a;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--navy-deep);
  text-shadow: 0 0 12px rgba(56, 102, 201, 0.5), 0 0 24px rgba(56, 102, 201, 0.3);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions a.signin {
  font-size: 0.875rem;
  color: #1a1a1a;
}
.nav-actions a.signin:hover { color: var(--navy-deep); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--navy-deep);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: filter 0.2s ease;
  border: none;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  background: transparent;
  color: var(--foreground);
}
.btn-outline:hover { background: var(--card); }

.menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  border-radius: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.875rem; color: var(--muted-foreground); }
.mobile-menu a:hover { color: var(--foreground); }

@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(13, 24, 56, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 24, 56, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 700px;
  width: 700px;
  overflow: hidden;
  z-index: 0;
}

.hero-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.2;
  filter: blur(1px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 7fr 5fr; }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

.pulse-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--navy);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 700;
}

@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.hero p.lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 32rem;
}

.hero-stats .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.hero-stats .stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.hero-card-wrap { position: relative; }

.hero-card-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, rgba(31, 63, 150, 0.2), transparent);
  filter: blur(40px);
}

.hero-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.hero-card .eyebrow {
  font-size: 0.75rem;
  color: var(--navy);
}

.hero-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.hero-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-card .actions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-card .actions .btn-primary,
.hero-card .actions .btn-outline {
  justify-content: center;
  padding: 0.9rem 1.5rem;
}
.hero-card .actions .btn-primary { box-shadow: var(--shadow-gold); }

/* Truck strip */
.truck-strip {
  position: relative;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 24, 56, 0.06);
  padding: 1rem 0;
  overflow: hidden;
}

.truck-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: truck-move 25s linear infinite;
}

@keyframes truck-move {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(110%); }
}

.truck-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.truck-item .icon { color: var(--navy); }
.truck-item .arrow { color: var(--navy); }

/* ===== Live Stats ===== */
.live-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 24, 56, 0.06);
}

.live-stats-grid {
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) { .live-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.stat-icon {
  border-radius: 0.5rem;
  background: rgba(31, 63, 150, 0.1);
  border: 1px solid rgba(31, 63, 150, 0.2);
  padding: 0.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-row .stat-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); }
.stat-row .stat-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* ===== Section generic ===== */
section { padding: 6rem 0; }
section.bordered { border-top: 1px solid var(--border); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: 2.25rem;
  font-weight: 700;
}
@media (min-width: 640px) { .section-head h2 { font-size: 3rem; } }

/* ===== Tracking ===== */
.tracking { text-align: center; }
.tracking .section-head { max-width: 56rem; margin: 0 auto; }
.tracking p.lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.track-form {
  margin-top: 2.5rem;
  border-radius: 1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.track-form .input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0 0.75rem;
}

.track-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--foreground);
}
.track-form input::placeholder { color: var(--muted-foreground); }

.track-form button {
  border-radius: 0.75rem;
  background: var(--gradient-gold);
  color: var(--navy-deep);
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: filter 0.2s ease;
}
.track-form button:hover { filter: brightness(1.08); }

.track-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #f0a;
  display: none;
}
.track-error.show { display: block; color: #e88; }

.track-steps {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .track-steps { grid-template-columns: repeat(3, 1fr); } }

.track-step {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.track-step.active {
  border-color: rgba(31, 63, 150, 0.5);
  background: rgba(31, 63, 150, 0.06);
}

.track-step .step-icon {
  color: var(--muted-foreground);
  width: 24px;
  height: 24px;
}
.track-step.done .step-icon, .track-step.active .step-icon { color: var(--navy); }

.track-step .step-label { margin-top: 0.75rem; font-weight: 600; }
.track-step .step-time { font-size: 0.75rem; color: var(--muted-foreground); font-family: var(--font-mono); margin-top: 0.25rem; }

/* ===== Services ===== */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.services-head h2 { max-width: 42rem; }

.services-head .explore-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.services-head .explore-link:hover { color: var(--foreground); }

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 63, 150, 0.4);
  background: var(--card);
  box-shadow: 0 20px 40px -20px rgba(31, 63, 150, 0.35);
}

.service-icon {
  border-radius: 0.75rem;
  background: rgba(31, 63, 150, 0.1);
  border: 1px solid rgba(31, 63, 150, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background-color 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover .service-icon { background: rgba(31, 63, 150, 0.2); transform: scale(1.05); }

.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.service-card .learn-more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--navy);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover .learn-more { opacity: 1; transform: translateX(0); }

/* ===== Why ===== */
.why-grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-grid > div:first-child p.lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
}

.why-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-item {
  display: flex;
  gap: 1rem;
}

.why-icon {
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(31, 63, 150, 0.1);
  border: 1px solid rgba(31, 63, 150, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.why-item h3 { font-weight: 700; font-size: 1rem; }
.why-item p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.api-card-wrap { position: relative; }

.api-card-glow {
  position: absolute;
  inset: -1.5rem;
  background: linear-gradient(135deg, rgba(31, 63, 150, 0.2), transparent);
  filter: blur(60px);
}

.api-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
}

.api-card pre {
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
}

.api-card .comment { color: var(--muted-foreground); }
.api-card .kw { color: var(--navy); }
.api-card .status {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--navy);
}

/* ===== CTA ===== */
.cta-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 3rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) { .cta-box { padding: 4rem; } }

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 63, 150, 0.15), transparent 50%, rgba(31, 63, 150, 0.05));
}

.cta-mark-img {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  height: 320px;
  width: 320px;
  object-fit: contain;
  opacity: 0.1;
}

.cta-box h2 { position: relative; font-size: 2.25rem; font-weight: 700; }
@media (min-width: 640px) { .cta-box h2 { font-size: 3rem; } }

.cta-box p {
  position: relative;
  margin-top: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-actions .btn-primary, .cta-actions .btn-outline {
  padding: 0.75rem 1.5rem;
}
.cta-actions .btn-primary { box-shadow: var(--shadow-gold); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted-foreground); max-width: 24rem; }

.footer-col h4 { font-weight: 600; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--foreground); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .truck-track, .pulse-dot { animation: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}