/* Base reset & tokens (DJ Logistics brand: uses public/branding.json colors) */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f9fafb;
    background: #0b1018;
    /* colors.background */
    -webkit-font-smoothing: antialiased;
}

:root {
    /* Mapped from public/branding.json */
    --bg-main: #0b1018;
    /* colors.background */
    --bg-elevated: #111827;
    /* colors.sidebar */
    --bg-muted: rgba(17, 24, 39, 0.94);
    --border-subtle: rgba(31, 41, 51, 0.7);
    /* colors.border */
    --accent: #547792;
    /* colors.primary */
    --accent-soft: rgba(84, 119, 146, 0.22);
    --accent-strong: #213448;
    /* colors.primary_dark */
    --text-main: #f9fafb;
    /* colors.text_primary */
    --text-soft: #9ca3af;
    /* colors.text_secondary */
    --text-softer: rgba(148, 163, 184, 0.85);
    --danger: #f97373;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
    --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.4);
    --transition-fast: 160ms ease-out;
    --transition-med: 220ms ease;
}

.page-shell {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(84, 119, 146, 0.25) 0, transparent 50%), radial-gradient(circle at 80% 0%, rgba(148, 180, 193, 0.18) 0, transparent 55%), linear-gradient(to bottom, #111827 0%, #0b1018 45%, #020617 100%);
    color: var(--text-main);
}

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

a:hover {
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section.muted {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #000000);
}

.section-header {
    max-width: 640px;
    margin: 0 auto 2.75rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2.25rem;
    letter-spacing: -0.04em;
    margin: 0.35rem 0 0.75rem;
}

.section-subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--accent);
}

.muted-text {
    color: var(--text-soft);
}

.muted-text.small {
    font-size: 0.84rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(22px);
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.96), rgba(15, 23, 42, 0.9), transparent);
    border-bottom: 1px solid rgba(250, 204, 21, 0.35);
}

.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 0, rgba(250, 204, 21, 0.5), #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.75), 0 18px 35px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.96rem;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: transform var(--transition-med), opacity var(--transition-med);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
}

.nav-links a {
    color: var(--text-soft);
    padding: 0.3rem 0;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent), var(--accent-strong));
    transition: width var(--transition-med);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.7);
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), rgba(0, 0, 0, 0.96));
    color: var(--text-main) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
}

.nav-cta::after {
    display: none;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-med), color var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-med);
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(120deg, #facc15, #eab308);
    color: #0b1120;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.btn.ghost {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(250, 204, 21, 0.35);
    color: var(--text-main);
}

.btn.ghost:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95);
}

.btn.small {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
}

.btn.full-width {
    width: 100%;
}

/* Hero */

.hero {
    padding: 4.5rem 0 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: flex-start;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 3.1vw + 1.8rem, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
    margin: 0.5rem 0 1rem;
}

.hero-accent {
    display: inline-block;
    background: linear-gradient(120deg, #facc15, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 1.75rem;
    color: var(--text-soft);
    font-size: 0.98rem;
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.hero-stats dt {
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: var(--text-soft);
}

.hero-visual {
    position: relative;
    padding-bottom: 5rem;
}

.hero-card {
    position: relative;
    padding: 1.5rem 1.5rem 1.6rem;
}

.glass {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), rgba(0, 0, 0, 0.96));
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
}

.hero-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.hero-card-sub {
    margin: 0.3rem 0 1.1rem;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.track-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.track-input-row {
    display: flex;
    gap: 0.55rem;
}

label {
    font-size: 0.8rem;
    color: var(--text-softer);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    font: inherit;
    outline: none;
    transition: border-color var(--transition-med), box-shadow var(--transition-med), background-color var(--transition-med), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-softer);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
    transform: translateY(-0.5px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-softer);
}

.form-hint.small {
    font-size: 0.75rem;
}

.hero-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.timeline-step .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    position: relative;
    overflow: hidden;
}

.timeline-step.active .dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.timeline-step .label {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.hero-floating-metrics {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
    pointer-events: none;
}

.floating-card {
    pointer-events: auto;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(250, 204, 21, 0.45);
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    box-shadow: var(--shadow-subtle);
    font-size: 0.76rem;
}

.floating-card .label {
    color: var(--text-soft);
}

.floating-card .value {
    font-weight: 500;
    color: var(--accent-strong);
}

/* Trust / logos */

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.logo-pill {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.78rem;
    color: var(--text-soft);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
}

.logo-pill-multiline {
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    line-height: 1.35;
    text-align: center;
}

/* Cards and grids */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.3rem 1.35rem;
    background: radial-gradient(circle at top left, rgba(24, 24, 27, 0.95), #020617);
    border: 1px solid rgba(250, 204, 21, 0.24);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background-position 280ms ease-out;
    background-size: 180% 180%;
    background-position: 0% 0%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.96);
    background-position: 100% 100%;
}

.card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: radial-gradient(circle at 20% 0, rgba(250, 204, 21, 0.4), rgba(0, 0, 0, 0.98));
}

.card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.84rem;
    color: var(--text-soft);
}

.card-list li::before {
    content: "•";
    margin-right: 0.4rem;
    color: var(--accent);
}

.card-link {
    margin-top: 0.7rem;
    display: inline-flex;
    font-size: 0.8rem;
    color: var(--accent);
}

.service-card {
    text-decoration: none;
}

.industries-grid .card {
    background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.98), #020617);
}

.resources-grid .card {
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.7rem;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

/* Split section */

.split-section {
    padding-top: 4rem;
}

.split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.split-panel {
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-subtle);
}

.split-panel h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.split-panel p {
    margin-top: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.feature-list li {
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
    margin-bottom: 0.45rem;
}

.feature-list li::before {
    content: "▹";
    color: var(--accent);
    margin-top: 0.05rem;
}

.track-result {
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.track-result.error {
    color: #f97373;
}

.track-result.success {
    color: var(--accent-strong);
}

/* Network */

.network-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.network-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.world-map-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    background: radial-gradient(circle at 20% 0, rgba(250, 204, 21, 0.22), rgba(0, 0, 0, 1));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
}

.orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    inset: 20% 10%;
}

.orbit-2 {
    inset: 30% 16%;
}

.orbit-3 {
    inset: 40% 22%;
}

.node {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent-strong);
    box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.22);
}

.node-1 {
    top: 30%;
    left: 24%;
}

.node-2 {
    top: 60%;
    left: 45%;
}

.node-3 {
    top: 40%;
    right: 18%;
}

.node-4 {
    bottom: 22%;
    right: 35%;
}

/* About / process */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.process-card {
    padding: 1.5rem 1.5rem 1.3rem;
}

.stepper {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.stepper li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}

.stepper li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.96);
}

.step-label {
    display: block;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

/* CTA section */

.cta-section {
    padding: 3.75rem 0 3.5rem;
}

.cta-inner {
    border-radius: 24px;
    padding: 1.8rem 1.7rem;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.2), rgba(0, 0, 0, 0.98));
    border: 1px solid rgba(250, 204, 21, 0.7);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-inner h2 {
    margin: 0.1rem 0 0.4rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* Footer */

.site-footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(250, 204, 21, 0.4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(15, 23, 42, 0.94));
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: 2rem;
    font-size: 0.85rem;
}

.footer-column h4 {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.35rem;
}

.footer-column a {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.contact-list a {
    word-break: break-all;
}

.footer-bottom {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.footer-bottom-links a {
    color: var(--text-soft);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Footer bottom badges row (between copyright and links) */

.footer-bottom-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(250, 204, 21, 0.35);
    transition: border-color var(--transition-med), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.footer-badge:hover {
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.footer-badge img {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Generic layout for inner pages */

.page-hero {
    padding: 4rem 0 2.5rem;
}

.page-hero h1 {
    margin: 0.2rem 0 0.5rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.breadcrumbs {
    font-size: 0.78rem;
    color: var(--text-softer);
}

.breadcrumbs a {
    color: var(--text-softer);
}

.breadcrumbs span {
    margin: 0 0.25rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.page-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-subtle);
}

.page-card h2 {
    margin-top: 0;
}

.content-block h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.content-block p {
    margin-bottom: 0.9rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin: 1rem 0;
}

/* Tracking page */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tracking-hero .section-subtitle {
    margin-bottom: 1.25rem;
}

.tracking-search {
    max-width: 760px;
}

.tracking-search-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.tracking-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 200px;
}

.tracking-field-grow {
    flex: 1;
    min-width: 220px;
}

.tracking-field label {
    color: #f9fafb;
    font-size: 0.82rem;
    font-weight: 500;
}

.tracking-search-row input,
.tracking-search-row select {
    width: 100%;
    min-height: 48px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #facc15;
    opacity: 1;
    caret-color: #0f172a;
}

.tracking-search-row input::placeholder {
    color: #64748b;
}

.tracking-search-row select option {
    background: #ffffff;
    color: #0f172a;
}

.tracking-section {
    padding-top: 2rem;
}

.tracking-empty {
    margin-bottom: 2rem;
}

.tracking-empty-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.tracking-empty-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tracking-empty-card .muted-text {
    margin-bottom: 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.tracking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tracking-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.65rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.tracking-summary-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tracking-summary-item div {
    min-width: 0;
}

.tracking-summary-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-softer);
    margin-bottom: 0.2rem;
}

.tracking-summary-value {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    word-break: break-word;
}

.tracking-progress {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 1.1rem 0.6rem 0.9rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.tracking-progress::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #facc15;
    border-radius: 999px;
}

.tracking-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-softer);
}

.tracking-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #facc15;
    background: #0b1018;
    box-shadow: 0 0 0 4px #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
}

.tracking-step.done .tracking-step-icon,
.tracking-step.active .tracking-step-icon {
    background: #facc15;
    color: #0b1018;
}

.tracking-step.active .tracking-step-icon {
    animation: radio-pop 1.35s ease-out infinite;
}

.tracking-step.done .tracking-step-label,
.tracking-step.active .tracking-step-label {
    color: var(--text-main);
}

.tracking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.tracking-timeline-title {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--text-main);
}

.tracking-timeline-list {
    position: relative;
    padding-left: 1.6rem;
    border-left: 3px solid #facc15;
}

.tracking-event {
    position: relative;
    padding-bottom: 1.25rem;
}

.tracking-event:last-child {
    padding-bottom: 0;
}

.tracking-event-dot {
    position: absolute;
    left: -1.6rem;
    top: 0.85rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #facc15;
    background: #0b1018;
    box-shadow: 0 0 0 4px #0b1018;
}

.tracking-event-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #facc15;
}

.tracking-event.current .tracking-event-dot {
    background: #facc15;
    animation: radio-pop 1.35s ease-out infinite;
}

.tracking-event-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.tracking-event.current .tracking-event-card {
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.08);
}

.tracking-event-title {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.tracking-event-place {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.tracking-event-time {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-softer);
}

.tracking-map-wrap {
    position: sticky;
    top: 6rem;
}

.tracking-map {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.tracking-map-route {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tracking-map-origin,
.tracking-map-dest {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

.tracking-map-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.tracking-map p {
    margin: 0.75rem 0 0;
}

.shipment-card {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(250, 204, 21, 0.28);
}

.shipment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.shipment-head h2 {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.shipment-route {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(84, 119, 146, 0.25);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.45);
    white-space: nowrap;
}

.status-pill.delivered {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.55);
}

.status-pill.failed {
    background: rgba(249, 115, 115, 0.15);
    color: #fecaca;
    border-color: rgba(249, 115, 115, 0.55);
}

.tracking-now {
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.28);
    color: var(--text-main);
    font-size: 0.9rem;
}

.tracking-step.failed .tracking-step-icon {
    border-color: #f97373;
    background: #f97373;
    color: #0b1018;
    animation: radio-pop 1.35s ease-out infinite;
}

@keyframes radio-pop {
    0% {
        box-shadow: 0 0 0 4px #0f172a, 0 0 0 0 rgba(250, 204, 21, 0.7);
    }
    70% {
        box-shadow: 0 0 0 4px #0f172a, 0 0 0 12px rgba(250, 204, 21, 0);
    }
    100% {
        box-shadow: 0 0 0 4px #0f172a, 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

.tracking-facts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tracking-fact {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.tracking-fact span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-softer);
    margin-bottom: 0.25rem;
}

.tracking-fact strong {
    font-weight: 500;
    font-size: 0.92rem;
}

.tracking-fact a {
    color: #facc15;
}

.tracking-loader {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.tracking-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(250, 204, 21, 0.25);
    border-top-color: #facc15;
    animation: tracking-spin 0.7s linear infinite;
}

@keyframes tracking-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .tracking-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tracking-progress {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .tracking-progress::before {
        display: none;
    }
    .tracking-step {
        flex: 0 0 auto;
        min-width: 80px;
    }
    .tracking-grid {
        grid-template-columns: 1fr;
    }
    .tracking-map-wrap {
        position: static;
    }
}

@media (max-width: 600px) {
    .tracking-summary {
        grid-template-columns: 1fr;
    }
    .tracking-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tracking-field,
    .tracking-field-grow,
    .tracking-search-row select {
        width: 100%;
        min-width: 0;
    }
    .shipment-head {
        flex-direction: column;
    }
}

.inline-link {
    font-size: 0.88rem;
    color: var(--accent);
}

.inline-link:hover {
    text-decoration: underline;
}

/* Forms layout for quote & contact */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.field-group {
    margin-bottom: 0.75rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pill-toggle {
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.96);
    transition: background-color var(--transition-med), border-color var(--transition-med), color var(--transition-med), box-shadow var(--transition-fast);
}

.pill-toggle input {
    width: auto;
    accent-color: var(--accent);
}

.pill-toggle.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.5);
}

/* Simple table style (for resources) */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.table th,
.table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Animations: reveal on scroll */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease-out, transform 520ms ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page-specific smaller tweaks */

.legal-content h2 {
    font-size: 1.1rem;
    margin-top: 1.3rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

/* Auth pages: Login & Sign up */

.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 2.25rem;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), rgba(0, 0, 0, 0.98));
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.auth-card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.auth-card .auth-subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.auth-message {
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

.auth-message.error {
    color: #f97373;
}

.auth-message.success {
    color: #4ade80;
}

.auth-form .field-group {
    margin-bottom: 1rem;
}

.auth-form .field-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-softer);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
}

.auth-form .btn.primary.full-width {
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.auth-links a {
    color: var(--text-soft);
}

.auth-links a:hover {
    color: var(--accent);
}

/* Responsive */

@media (max-width: 960px) {
    .hero-inner,
    .trust-grid,
    .card-grid,
    .split-inner,
    .network-grid,
    .about-grid,
    .page-grid,
    .form-grid,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-inner {
        gap: 2.75rem;
    }
    .hero-visual {
        order: -1;
        padding-bottom: 0;
    }
    .hero-floating-metrics {
        position: static;
        margin-top: 1rem;
        align-items: flex-start;
    }
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-inner {
        gap: 1.4rem;
    }
    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding-inline: 1rem;
    }
    .brand-tagline {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }
    body.nav-open {
        overflow: hidden;
    }
    .nav-links {
        position: absolute;
        inset: 100% 0 auto 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 0.75rem 1.3rem 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        transform-origin: top;
        transform: scaleY(0.85);
        opacity: 0;
        pointer-events: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a,
    .nav-cta {
        display: block;
        width: 100%;
        padding: 0.65rem 0;
        min-height: 44px;
    }
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .section {
        padding: 3.5rem 0;
        padding-inline: 0;
    }
    .container {
        padding-inline: 1.25rem;
    }
    .page-grid,
    .form-grid {
        gap: 1.6rem;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .btn {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 3.5rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .track-input-row {
        flex-direction: column;
    }
    .hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }
    .cta-inner {
        padding-inline: 1.2rem;
    }
    .section-header h2 {
        font-size: 1.65rem;
    }
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}