:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --ink: #0a1628;
  --ink-2: #1e3a5f;
  --muted: #5a6a7a;
  --line: rgba(10, 22, 40, 0.08);
  --line-strong: rgba(10, 22, 40, 0.14);
  --accent: #e05a2b;
  --accent-light: #f0743e;
  --accent-deep: #c44a1a;
  --teal: #0d7377;
  --teal-light: #14919a;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.10);
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Mono", "Source Code Pro", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink-2);
}
.brand span:last-child { font-weight: 500; }

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.topnav a:hover, .topnav a.is-active {
  background: var(--surface-2);
  color: var(--ink);
}
.topnav a.auth-link-start { margin-left: 10px; }
.topnav a.nav-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 90, 43, 0.24);
}
.topnav a.nav-cta:hover,
.topnav a.nav-cta.is-active {
  background: var(--accent-light);
  color: #fff;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.lang-btn {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.lang-btn:hover { color: var(--ink); background: var(--surface-2); }
.lang-btn.is-active { color: #fff; background: var(--ink-2); }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 200ms, opacity 200ms;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 64px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}
.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 52ch;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 22px;
  max-width: 58ch;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 115, 119, 0.06);
  border: 1px solid rgba(13, 115, 119, 0.12);
}
.hero-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}
.badge-accent {
  background: rgba(224, 90, 43, 0.08);
  border-color: rgba(224, 90, 43, 0.18);
  color: var(--accent-deep);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px 24px; }

/* Forms */
input, select, button {
  font: inherit;
  color: inherit;
}
input, select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms, box-shadow 160ms;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.12);
}
label.field {
  display: grid;
  gap: 6px;
}
label.field > span {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.field-row {
  display: flex;
  gap: 10px;
}
.field-row input { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms, box-shadow 160ms, background 160ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 90, 43, 0.3);
}
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--line); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* Quick track card */
.quick-track { padding: 0 0 0; }
.quick-track .card-body { display: grid; gap: 14px; }
.support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.form-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-feedback.is-info {
  background: rgba(13, 115, 119, 0.08);
  border-color: rgba(13, 115, 119, 0.18);
  color: var(--ink-2);
}
.form-feedback.is-success {
  background: rgba(22, 101, 52, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
  color: #166534;
}
.form-feedback.is-error {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}
.field-error {
  display: block;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.4;
}
.is-hidden { display: none !important; }
input.has-error, select.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-header {
  max-width: 56ch;
  margin-bottom: 36px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Region cards */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.region-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, transform 200ms;
}
.region-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.region-flag {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.region-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.region-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.carrier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.carrier-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* Capability cards */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.cap-icon.orange { background: rgba(224, 90, 43, 0.1); }
.cap-icon.teal { background: rgba(13, 115, 119, 0.1); }
.cap-icon.blue { background: rgba(30, 58, 95, 0.08); }
.cap-card h3 { font-size: 1.05rem; }
.cap-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* CTA section */
.cta-section {
  background: var(--ink-2);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 24px 0 40px;
}
.cta-section h2 { color: #fff; margin-bottom: 8px; }
.cta-section p { color: rgba(255,255,255,0.7); margin: 0 0 24px; max-width: 52ch; }
.cta-section .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(224, 90, 43, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--ink); }

/* Track page */
.track-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.track-form-card .card-body {
  display: grid;
  gap: 14px;
}
.track-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gate-layout,
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.access-card .card-body,
.auth-form-card .card-body,
.auth-side-card .card-body {
  display: grid;
  gap: 16px;
}
.gate-copy {
  margin: 0;
  color: var(--muted);
}
.gate-list,
.auth-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-actions a:hover { text-decoration: none; }
.auth-state {
  display: grid;
  gap: 16px;
  padding: 8px 0 4px;
}
.auth-side-card .support-copy { font-size: 0.92rem; }

/* Result */
.result-card {
  min-height: 300px;
}
.result-card.is-empty {
  display: grid;
  place-items: center;
}
.empty-state {
  text-align: center;
  max-width: 36ch;
  padding: 32px;
}
.empty-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.result-header h3 { margin: 0; font-size: 1.2rem; }
.result-header .muted {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 4px 0 0;
}

.result-body { display: grid; gap: 18px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.metric-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 1rem;
  font-weight: 600;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.status-pill.status-pending { background: #fff8e6; border-color: #f0d78c; color: #8a6d0b; }
.status-pill.status-in_transit { background: #e6f4ff; border-color: #93c5fd; color: #1e5a8a; }
.status-pill.status-delivered { background: #e6f9f0; border-color: #86efac; color: #166534; }
.status-pill.status-exception { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.status-pill.status-out_for_delivery { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.status-pill.status-arrived_at_hub { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.mode-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 14px 0 0;
  padding-left: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-light), rgba(13, 115, 119, 0.2));
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding-left: 22px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 90, 43, 0.1);
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}
.timeline-title {
  margin: 6px 0 0;
  font-size: 0.96rem;
  font-weight: 600;
}
.timeline-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* History */
.history-section {
  margin-top: 16px;
  padding: 20px 24px;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.history-header h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 160ms;
}
.history-chip:hover { background: var(--line); }
.history-chip .meta {
  color: var(--muted);
  font-size: 0.76rem;
}
.history-empty {
  color: var(--muted);
  font-size: 0.86rem;
}
.sample-block {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.sample-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sample-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sample-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms, transform 120ms;
}
.sample-chip:hover {
  background: rgba(13, 115, 119, 0.08);
  transform: translateY(-1px);
}

/* Carriers page */
.carrier-region {
  margin-bottom: 40px;
}
.carrier-region-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.carrier-region h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.table-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.carrier-table {
  width: 100%;
  border-collapse: collapse;
}
.carrier-table th, .carrier-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.carrier-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-2);
}
.carrier-table td { color: var(--ink); }
.carrier-table tr:hover td { background: var(--surface-2); }
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.note-card h3 {
  margin-bottom: 8px;
}
.note-card p {
  margin: 0;
  color: var(--muted);
}

/* API page */
.api-section { margin-bottom: 40px; }
.api-section h3 { margin-bottom: 16px; }
.code-block {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
}
.code-block .key { color: #7dd3fc; }
.code-block .string { color: #86efac; }
.code-block .number { color: #fca5a5; }
.code-block .comment { color: #64748b; }
.api-fields {
  display: grid;
  gap: 12px;
}
.api-field {
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.api-field code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: rgba(10,22,40,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.api-field p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-card h3 { margin-bottom: 10px; }
.about-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.legal-prose {
  max-width: 760px;
}
.legal-prose h1 {
  margin-bottom: 18px;
}
.legal-prose h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.legal-prose p {
  margin: 0;
  color: var(--muted);
}
.legal-prose p + p {
  margin-top: 12px;
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

/* Utility */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .track-layout,
  .about-grid,
  .gate-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .region-grid,
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-toggle { display: flex; }
  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,251,252,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .topnav.is-open { display: flex; }
  .topnav a { padding: 12px 16px; }
  .topnav a.auth-link-start { margin-left: 0; }
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .hero { padding: 36px 0 32px; }
  .cta-section { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .summary-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .track-actions { flex-direction: column; }
  .track-actions .btn { width: 100%; }
  .auth-actions { flex-direction: column; }
  .auth-actions .btn { width: 100%; }
  .sample-list { flex-direction: column; }
  .sample-chip { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
  .carrier-table th, .carrier-table td { padding: 10px 12px; font-size: 0.86rem; }
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 180ms; }
.delay-4 { animation-delay: 240ms; }
