/* SwiftCargo Logistics -- site design system.
   Ported 1:1 from the Flutter app's theme.dart / ui/depth.dart so the public
   site keeps the exact same look, without shipping a 700KB+ app runtime just
   to paint a marketing page. */

:root {
  --ink: #0B2545;
  --ink2: #123A67;
  --paper: #F7F8FA;
  --signal: #FF6A00;
  --signal-dim: #FFC299;
  --cyan: #0EA5E9;
  --muted: #8B93A1;
  --muted-on-paper: #5B6472;
  --line: #E1E5EC;
  --success: #16A34A;
  --danger: #D24545;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --fast: 170ms;
  --base: 320ms;
  --slow: 620ms;
  --glide: cubic-bezier(0.16, 1.0, 0.30, 1.0);
  --springy: cubic-bezier(0.34, 1.26, 0.64, 1.0);

  --gutter: 18px;
  --content-max: 1120px;
  --section-gap: 56px;
}

@media (min-width: 600px) { :root { --gutter: 28px; --section-gap: 56px; } }
@media (min-width: 905px) { :root { --gutter: 40px; --content-max: 1120px; --section-gap: 76px; } }
@media (min-width: 1440px) { :root { --gutter: 56px; --content-max: 1240px; --section-gap: 88px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-gap { height: var(--section-gap); }

/* ---------- shadows (two-layer contact + ambient, matches Depth.lift) ---------- */
.shadow-1 { box-shadow: 0 2.5px 7px rgba(11,37,69,.07), 0 7px 36px rgba(11,37,69,.068); }
.shadow-2 { box-shadow: 0 4px 11px rgba(11,37,69,.085), 0 12px 58px rgba(11,37,69,.096); }
.shadow-3 { box-shadow: 0 5.5px 16px rgba(11,37,69,.11), 0 15px 80px rgba(11,37,69,.124); }
.shadow-4 { box-shadow: 0 7px 19px rgba(11,37,69,.125), 0 18px 100px rgba(11,37,69,.152); }
.glow-signal { box-shadow: 0 10px 26px -6px rgba(255,106,0,.34); }
.glow-cyan { box-shadow: 0 10px 26px -6px rgba(14,165,233,.34); }
.glow-success { box-shadow: 0 10px 26px -6px rgba(22,163,74,.34); }

/* ---------- surfaces ---------- */
.surface {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid rgba(225,229,236,.9);
}
.ink-surface {
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 90%, white), var(--ink) 55%, color-mix(in srgb, var(--ink) 78%, black));
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.ink-surface::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  pointer-events: none;
}

/* Soft coloured light blobs -- GlowField equivalent */
.glow-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; filter: blur(70px); z-index: 0; }
.glow-blob { position: absolute; border-radius: 50%; }

/* Frosted glass panel -- GlassPanel equivalent */
.glass-panel {
  position: relative;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.16);
  padding: 22px;
}

/* ---------- section heading ---------- */
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eyebrow .bar { width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 82%, white), var(--signal)); }
.eyebrow span { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--signal); text-transform: uppercase; }
.heading-title { font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -0.6px; margin: 0; color: var(--ink); }
@media (min-width: 900px) { .heading-title { font-size: 30px; } }
.heading-title.on-dark { color: #fff; }
.heading-sub { max-width: 560px; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted-on-paper); }
.heading-sub.on-dark { color: rgba(255,255,255,.62); }

/* ---------- buttons ---------- */
.btn-depth, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-sm);
  padding: 16px 22px;
  font-size: 13.5px; font-weight: 700;
  transition: transform var(--fast) var(--springy), box-shadow var(--base) var(--glide), opacity var(--fast);
  white-space: nowrap;
}
.btn-depth {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 82%, white), var(--signal));
  box-shadow: 0 10px 26px -6px rgba(255,106,0,.6);
}
.btn-depth:hover { transform: scale(1.03); box-shadow: 0 14px 34px -6px rgba(255,106,0,.75); }
.btn-depth:active { transform: scale(.96); }
.btn-depth[disabled] { opacity: .62; pointer-events: none; }
.btn-depth.compact { padding: 14px 18px; }
.btn-depth.expand { width: 100%; }

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.50); }
.btn-ghost.on-paper { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 2.5px 7px rgba(11,37,69,.07), 0 7px 36px rgba(11,37,69,.068); }
.btn-ghost.on-paper:hover { background: var(--paper); border-color: rgba(255,106,0,.5); }
.btn-ghost.expand { width: 100%; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- pill / badge ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2.5px 7px rgba(11,37,69,.07), 0 7px 36px rgba(11,37,69,.068);
}
.badge-pill .dot { color: var(--success); font-weight: 800; }

/* ---------- tilt cards (TiltCard equivalent) ---------- */
.tilt-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: transform var(--fast) var(--glide), box-shadow var(--base) var(--glide), border-color var(--base);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.tilt-card:hover { border-color: rgba(255,106,0,.45); }

/* ---------- reveal-on-scroll (Reveal equivalent) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity var(--slow) var(--glide), transform var(--slow) var(--glide);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 93%, white), var(--ink));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--base) var(--glide), border-color var(--base);
}
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.14); box-shadow: 0 7px 19px rgba(0,0,0,.125), 0 18px 100px rgba(0,0,0,.152); }
.site-header-row { display: flex; align-items: center; height: 66px; padding: 0 var(--gutter); gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-name { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; white-space: nowrap; }
.site-nav { display: none; margin-left: 34px; gap: 4px; }
@media (min-width: 905px) { .site-nav { display: flex; margin-left: auto; } }
.site-nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62);
  border: 1px solid transparent;
  transition: background var(--base) var(--glide), color var(--base), border-color var(--base);
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a.active { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,106,0,.55); box-shadow: 0 10px 26px -6px rgba(255,106,0,.34); }
.site-nav svg { width: 16px; height: 16px; }

.mobile-nav { display: flex; gap: 4px; padding: 0 10px 8px; height: 42px; align-items: center; }
@media (min-width: 905px) { .mobile-nav { display: none; } }
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; border-radius: 10px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.62);
}
.mobile-nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 800; border: 1px solid rgba(255,106,0,.55); }
.mobile-nav svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); }
.footer-cols { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 905px) { .footer-cols { flex-direction: row; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 16px; }
.footer-tagline { max-width: 340px; color: rgba(255,255,255,.5); font-size: 12.5px; line-height: 1.6; margin: 0; }
.footer-col-title { color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; margin: 0 0 12px; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-rule { border: none; border-top: 1px solid rgba(255,255,255,.14); margin: 26px 0 14px; }
.footer-copy { color: rgba(255,255,255,.35); font-size: 11px; margin: 0; }

/* ---------- inputs ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--muted-on-paper); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 65%, white);
  font-size: 14px; font-weight: 600; color: var(--ink); font-family: inherit;
  transition: border-color var(--fast), background var(--fast);
}
.field textarea { font-weight: 500; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); border-width: 1.6px; background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(91,100,114,.55); font-weight: 400; }
.field-row { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 380px) { .field-row.pair { flex-direction: row; gap: 12px; } .field-row.pair .field { flex: 1; } }

/* dark inputs (hero track panel, quick-track aside) */
.field-dark input { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: #fff; }
.field-dark input::placeholder { color: rgba(255,255,255,.45); }
.field-dark input:focus { border-color: var(--signal); background: rgba(255,255,255,.10); }

.error-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF5F5; border: 1px solid #F6C9C9; border-radius: var(--r-md);
  padding: 16px; color: #8F2C2C; font-size: 13px; line-height: 1.5;
  box-shadow: 0 5px 15px -3px rgba(220,38,38,.15);
}
.error-box svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--danger); }

/* ---------- pulse dot (live status) ---------- */
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; position: relative; flex-shrink: 0; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: inherit; opacity: .35; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1.5); opacity: .12; } }

/* ---------- utility ---------- */
.text-muted { color: var(--muted-on-paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
