@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap');

:root {
  --bg: #07111f;
  --bg-soft: #0a1727;
  --surface: rgba(255,255,255,.055);
  --surface-strong: rgba(255,255,255,.085);
  --border: rgba(255,255,255,.105);
  --text: #f5f8fb;
  --muted: #9eb0c4;
  --soft: #c8d5e3;
  --accent: #5eead4;
  --accent-2: #67e8f9;
  --accent-deep: #0f766e;
  --shadow: 0 24px 60px rgba(0,0,0,.28);
  --max: 1180px;
}

:root[data-theme="light"] {
  --bg: #f5f8fb;
  --bg-soft: #eef4f8;
  --surface: rgba(255,255,255,.88);
  --surface-strong: #ffffff;
  --border: rgba(7,17,31,.10);
  --text: #07111f;
  --muted: #607286;
  --soft: #334155;
  --accent: #0f9f91;
  --accent-2: #0891b2;
  --accent-deep: #0f766e;
  --shadow: 0 24px 60px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 5%, rgba(94,234,212,.12), transparent 24rem),
    radial-gradient(circle at 90% 15%, rgba(103,232,249,.09), transparent 22rem),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: color .2s ease, background .2s ease;
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto 0;
  min-height: 64px;
  padding: 10px 12px 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: sticky; top: 12px; z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0,0,0,.13);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 11px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #06201f; font-weight: 900; }
.brand-dot { color: var(--accent); }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
.top-nav a:hover { color: var(--text); }
.theme-toggle { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; }

.hero { padding: 112px 0 84px; text-align: center; }
.eyebrow { width: fit-content; margin: 0 auto 22px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--soft); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); }
.hero h1 { max-width: 900px; margin: 0 auto; font-family: Manrope, Inter, sans-serif; font-size: clamp(3rem, 8vw, 6.3rem); line-height: .97; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 720px; margin: 28px auto 34px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.13rem); line-height: 1.75; }

.hero-search { max-width: 700px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 11px 9px 18px; border: 1px solid var(--border); background: var(--surface-strong); border-radius: 18px; box-shadow: var(--shadow); text-align: left; }
.hero-search > span { color: var(--accent); font-size: 1.35rem; }
.hero-search input { min-width: 0; width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1rem; }
.hero-search input::placeholder, .directory-search input::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
kbd { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .75rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border-radius: 13px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.button.primary { background: var(--accent); color: #06201f; }
.button.primary:hover { transform: translateY(-1px); }
.button.secondary { border: 1px solid var(--border); background: var(--surface); color: var(--soft); }

.trust-strip { max-width: 720px; margin: 54px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip div { padding: 18px 12px; }
.trust-strip div + div { border-left: 1px solid var(--border); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: 1.08rem; }
.trust-strip span { margin-top: 5px; color: var(--muted); font-size: .76rem; }

.featured, .directory, .how { padding: 72px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 28px; }
.section-heading.compact { align-items: end; }
.section-heading h2 { margin: 4px 0 0; font-family: Manrope, Inter, sans-serif; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; font-size: .92rem; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.featured-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-decoration: none; transition: .18s ease; }
.featured-card:hover { transform: translateY(-2px); background: var(--surface-strong); border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
.featured-name { font-weight: 700; font-size: .9rem; }
.featured-arrow { color: var(--accent); }

.directory-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; }
.directory-search { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; }
.directory-search span { color: var(--accent); font-size: 1.15rem; }
.directory-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
#sortSelect { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px; padding: 0 14px; outline: none; }
#sortSelect option { background: var(--bg); color: var(--text); }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 8px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 650; }
.filter-chip.active { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }

.results-meta { min-height: 44px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; }
#clearFilters { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 700; }

.courier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.courier-card { min-height: 302px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, var(--surface-strong), var(--surface)); transition: .2s ease; }
.courier-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); box-shadow: 0 20px 45px rgba(0,0,0,.12); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.provider-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-weight: 900; letter-spacing: -.05em; font-size: .78rem; }
.provider-icon.small { width: 38px; height: 38px; border-radius: 11px; font-size: .7rem; }
.type-pill { padding: 7px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .68rem; font-weight: 700; }
.courier-card h3 { margin: 20px 0 4px; font-size: 1.05rem; letter-spacing: -.02em; }
.region { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 650; }
.description { margin: 14px 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.provider-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--border); text-decoration: none; color: var(--soft); font-size: .82rem; font-weight: 700; }
.provider-link span { color: var(--accent); }

.empty-state { margin: 20px 0; padding: 50px 20px; text-align: center; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); }
.empty-state h3 { color: var(--text); }
.empty-icon { font-size: 2rem; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.steps article > span { color: var(--accent); font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: .8rem; }
.steps h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .85rem; }

.notice { margin-top: 35px; margin-bottom: 72px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.notice-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--accent); font-weight: 800; }
.notice h2 { margin: 1px 0 7px; font-size: 1rem; }
.notice p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .78rem; }

.site-footer { padding: 28px 0 42px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.footer-brand { color: var(--text); }
.footer-brand .brand-mark { width: 30px; border-radius: 9px; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .featured-grid, .courier-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell, .site-header { width: min(calc(100% - 24px), var(--max)); }
  .site-header { top: 8px; margin-top: 8px; min-height: 58px; }
  .top-nav a { display: none; }
  .hero { padding: 84px 0 58px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero-copy { margin-top: 22px; }
  .hero-search { padding-left: 14px; }
  kbd { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--border); }
  .featured, .directory, .how { padding: 52px 0; }
  .featured-grid, .courier-grid, .steps { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr; }
  #sortSelect { min-height: 50px; }
  .courier-card { min-height: 280px; }
  .notice { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
