:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-card: #ffffff;
  --border: #e2e8f2;
  --text: #0f172a;
  --muted: #5c6b85;
  --body: #3f4c63;
  --accent: #2563eb;
  --accent-2: #0891b2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 16px 44px rgba(37, 99, 235, .16);
  --radius: 16px;
  --container: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; font-size: .82rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); font-size: .94rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 11px; background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-glow {
  position: absolute; inset: -35% 25% auto -12%; height: 640px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .16), transparent 70%),
              radial-gradient(closest-side, rgba(8, 145, 178, .12), transparent 70%);
  background-position: 20% 30%, 80% 10%; background-repeat: no-repeat;
  filter: blur(10px); pointer-events: none;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 700; color: var(--accent); margin-bottom: .9rem;
}
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--muted); max-width: 62ch; margin-top: 1.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.9rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: flex; width: 100%; margin-top: 1rem; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 2.8rem 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-stats span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-sub { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-single { max-width: 420px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.app-card:hover, .trip-card:hover { border-color: rgba(37, 99, 235, .45); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card p { color: var(--muted); margin-bottom: .9rem; }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2);
  border: 1px solid rgba(8, 145, 178, .3); background: rgba(8, 145, 178, .07);
  padding: 4px 11px; border-radius: 999px; margin-bottom: .9rem;
}
.stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 .5rem; }
.stack li {
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
  border: 1px solid var(--border); background: var(--bg-soft); border-radius: 7px; padding: 3px 9px;
}
.card-link { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .9rem; }

/* ---------- Travel ---------- */
.region + .region { margin-top: 2.4rem; }
.region-title {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 1rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--border);
}
.region-count {
  font-size: .72rem; letter-spacing: 0; font-weight: 700;
  color: var(--accent); background: rgba(37, 99, 235, .09);
  border-radius: 999px; padding: 2px 9px;
}

.flag-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.flag-chip {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
  font-size: .93rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.flag-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .4); }
.flag-chip .flag {
  width: 28px; height: 21px; flex: none; border-radius: 3px;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1);
}
.flag-chip em {
  display: block; font-style: normal; font-weight: 500;
  font-size: .78rem; color: var(--muted);
}

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); }
.about-card h3 { margin-bottom: 1rem; }
.facts { margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 600; font-size: .88rem; text-align: right; color: var(--text); }

.cta-section { border-top: 1px solid var(--border); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Legal page ---------- */
.page-hero { padding: clamp(52px, 8vw, 90px) 0 34px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.page-hero .meta { color: var(--muted); font-size: .87rem; margin: 0; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 92px; padding: 22px; }
.legal-toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .8rem; }
.legal-toc ol { margin: 0; padding-left: 1.15rem; }
.legal-toc li { margin-bottom: .45rem; color: var(--muted); }
.legal-toc a { color: var(--muted); font-size: .88rem; }
.legal-toc a:hover { color: var(--accent); }

.legal { max-width: 78ch; }
.legal h2 { font-size: 1.42rem; margin: 2.4rem 0 .8rem; padding-top: .4rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.03rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--body); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.legal li { margin-bottom: .5rem; }
.legal .note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; }

.callout {
  background: #eff5ff;
  border: 1px solid #cfe0fb;
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 2rem; color: var(--body);
}
.callout strong { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 440px; font-size: .92rem; background: #fff; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.legal-table th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td { color: var(--body); }

.contact-box { border: 1px solid var(--border); background: var(--bg-soft); border-radius: 12px; padding: 20px 24px; }
.contact-box p { margin: 0 0 .35rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 44px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand { font-weight: 700; margin: 0 0 .3rem; color: var(--text); }
.footer-note { color: var(--muted); font-size: .9rem; max-width: 42ch; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 20px;
    transform: translateY(-140%); transition: transform .28s ease; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 14px; }
  .hero-stats { gap: 24px; }
  .hero-stats li { min-width: 40%; }
  .grid-single { max-width: none; }
}

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