:root {
    --navy: #071422;
    --navy-2: #0b1d30;
    --ink: #10243a;
    --foam: #f4f1ea;
    --sand: #e8e0d4;
    --paper: #fbfaf6;
    --teal: #1a9b8e;
    --teal-2: #12756b;
    --amber: #e8a317;
    --amber-2: #c4840e;
    --white: #ffffff;
    --muted: #6b7c8d;
    --line: rgba(255,255,255,.1);
    --line-dark: rgba(16,36,58,.12);
    --danger: #c0362c;
    --ok: #1f8a4c;
    --shadow: 0 20px 50px rgba(7,20,34,.18);
    --radius: 18px;
    --font: "Instrument Sans", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link {
    position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

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

.topbar {
    background: #050f1a;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    letter-spacing: .04em;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #e8a317; text-decoration: none; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(7,20,34,.92);
    backdrop-filter: blur(16px);
    color: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; gap: 28px;
    min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { color: #d7e6ef; display: flex; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.brand-copy em { font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
    text-decoration: none; color: rgba(255,255,255,.78);
    font-size: 14px; font-weight: 500;
}
.nav a:hover, .nav a.is-active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px; text-decoration: none;
    border: 1px solid transparent; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: .2s ease;
}
.btn-amber { background: var(--amber); color: #1a1203; }
.btn-amber:hover { background: #f0b53a; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0d243c; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-outline { background: transparent; border-color: var(--line-dark); color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-wide { width: 100%; }

.nav-toggle {
    display: none; width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 9px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: #fff; }

/* Hero */
.hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(7,20,34,.2), rgba(7,20,34,.78)),
        linear-gradient(90deg, rgba(7,20,34,.55), rgba(7,20,34,.15)),
        url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    color: #fff;
    min-height: 88vh;
    display: flex; align-items: flex-end;
    padding: 80px 0 72px;
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--amber);
    margin-bottom: 18px;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02; font-weight: 400; margin: 0 0 18px;
    max-width: 16ch;
}
.hero p.lead { max-width: 38ch; font-size: 18px; color: rgba(255,255,255,.82); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }

.track-card {
    background: rgba(255,255,255,.96);
    color: var(--ink);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 720px;
}
.track-card label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.track-card input {
    width: 100%; border: 1px solid var(--line-dark); border-radius: 12px;
    padding: 12px 14px; background: #fff;
}
.track-hint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker {
    color: var(--teal-2); letter-spacing: .16em; text-transform: uppercase;
    font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 12px;
}
.muted { color: var(--muted); }

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

.card {
    background: #fff; border: 1px solid var(--line-dark);
    border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 10px 0 8px; font-size: 18px; }
.card p { margin: 0; color: #415060; }
.card .icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: #eef6f4; color: var(--teal-2);
}
.card a.more { display: inline-block; margin-top: 16px; color: var(--teal-2); font-weight: 600; text-decoration: none; font-size: 14px; }

.band { background: var(--navy); color: #fff; }
.band .kicker { color: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.stat span { color: rgba(255,255,255,.65); font-size: 14px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split-visual {
    min-height: 420px; border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(7,20,34,.05), rgba(7,20,34,.35)),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.lanes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--line-dark); border-radius: 999px;
    padding: 8px 12px; font-size: 13px; background: #fff;
}

.testimonial { font-family: var(--serif); font-size: 26px; line-height: 1.35; margin: 0 0 16px; }
.who { font-size: 14px; color: var(--muted); }

.cta-band {
    background:
        linear-gradient(120deg, rgba(7,20,34,.88), rgba(18,117,107,.55)),
        url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=80") center/cover;
    color: #fff; border-radius: 28px; padding: 56px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
}

.page-hero {
    background: var(--navy); color: #fff; padding: 72px 0 56px;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); margin: 0 0 10px; font-weight: 400; }
.page-hero p { max-width: 52ch; color: rgba(255,255,255,.75); margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input, select, textarea {
    border: 1px solid var(--line-dark); border-radius: 12px;
    padding: 12px 13px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.help { font-weight: 400; color: var(--muted); font-size: 12px; }

.alert {
    padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px;
}
.alert-ok { background: #e8f6ee; color: #145c32; }
.alert-err { background: #fdecea; color: #8a221c; }
.alert-info { background: #eef4fb; color: #1d3b5c; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative; padding: 0 0 28px 28px;
    border-left: 2px solid #d7e0e8;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 0 4px #e7f4f2;
}
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline strong { display: block; }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #eef4fb; color: #1d3b5c;
}
.status.delivered { background: #e8f6ee; color: #145c32; }
.status.in_transit, .status.out_for_delivery, .status.at_facility { background: #e7f4f2; color: #0f5d55; }
.status.exception, .status.cancelled { background: #fdecea; color: #8a221c; }
.status.customs { background: #f8efd8; color: #7a5a10; }

.quote-result {
    background: var(--navy); color: #fff; border-radius: 20px; padding: 24px;
}
.quote-result b { font-family: var(--serif); font-size: 40px; font-weight: 400; }

.faq details {
    background: #fff; border: 1px solid var(--line-dark);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: #415060; }

.site-footer {
    background: #050f1a; color: rgba(255,255,255,.78); padding: 64px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 32px; }
.footer-lead { color: rgba(255,255,255,.62); max-width: 36ch; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { display: block; text-decoration: none; color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
}

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
table.data th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f6f3ed; }

/* Admin */
.admin-body { background: #eef1f4; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
    background: var(--navy); color: #fff; padding: 22px 16px;
    position: sticky; top: 0; height: 100vh;
}
.admin-side nav a {
    display: block; color: rgba(255,255,255,.75); text-decoration: none;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 4px; font-size: 14px;
}
.admin-side nav a:hover, .admin-side nav a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line-dark); }
.kpi b { display: block; font-size: 28px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 32px; }

@media (max-width: 960px) {
    .nav { display: none; position: absolute; top: 110px; left: 20px; right: 20px; background: #0b1d30; padding: 16px; border-radius: 16px; flex-direction: column; }
    .nav.is-open { display: flex; }
    .nav-toggle { display: flex; }
    .grid-3, .grid-4, .grid-2, .stats, .split, .form-grid, .footer-grid, .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-side { position: relative; height: auto; }
    .cta-band, .track-card { grid-template-columns: 1fr; padding: 24px; display: block; }
    .track-card .btn { width: 100%; margin-top: 10px; }
    .hide-sm { display: none !important; }
    .hero { min-height: auto; padding-top: 64px; }
}

.track-live {
    background: linear-gradient(160deg, #071422, #0d3a3a);
    color: #fff;
    border-radius: 22px;
    padding: 26px 26px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.track-live h2 { font-family: var(--serif); font-size: 36px; margin: 4px 0 0; }
.track-live-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.track-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
.track-step { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.track-step i {
    display: block; height: 4px; border-radius: 99px; background: rgba(255,255,255,.15); margin-bottom: 8px;
}
.track-step.is-done { color: #fff; }
.track-step.is-done i { background: #1a9b8e; }
.track-step.is-now { color: #e8a317; }
.track-step.is-now i { background: #e8a317; }
.track-map {
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    margin-bottom: 8px;
}
@media (max-width: 720px) {
    .track-steps { grid-template-columns: repeat(3, 1fr); }
    .track-live h2 { font-size: 28px; }
    .track-map { height: 280px; }
}
