/* TravelScanning marketing site
 * Dark, glowing, modern. No frameworks. ~10KB un-minified.
 */

:root {
  --bg: #07091a;
  --bg-elev: #0d1230;
  --bg-card: rgba(255, 255, 255, 0.04);
  --ink: #f5f7ff;
  --ink-dim: #c3c9e0;
  --ink-mute: #9aa3c8;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --green: #34d399;
  --orange: #fb923c;
  --pink: #f472b6;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -20px rgba(8, 12, 40, 0.6);
  --grad: linear-gradient(135deg, var(--cyan), var(--purple));
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.22));
  --max: 1200px;
  /* On Apple we get SF Pro Rounded. Everywhere else we deliberately layer in
     non-Latin system fonts so Arabic/Hebrew/Chinese/Japanese/Korean/Hindi/Thai
     render in their native designs rather than a tofu fallback. */
  --font:
    ui-rounded, "SF Pro Rounded", "Avenir Next Rounded",
    -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui,
    "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew",
    "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR",
    "Noto Sans Devanagari", "Noto Sans Thai",
    "Helvetica Neue", Arial, sans-serif;
}

/* RTL niceties — keep flex direction normal but mirror the lang-switcher arrow. */
html[dir="rtl"] .lang-switcher {
  background-position: left 12px center;
  padding: 8px 14px 8px 32px;
}
html[dir="rtl"] .activity-grid li { direction: rtl; }

@media (prefers-color-scheme: light) {
  body[data-theme="auto"] {
    --bg: #fafbff;
    --bg-elev: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --ink: #0d1230;
    --ink-dim: #45507a;
    --ink-mute: #6c7596;
    --border: rgba(13, 18, 48, 0.08);
    --shadow: 0 20px 60px -20px rgba(13, 18, 48, 0.15);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 999; }

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

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

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-size: 17px; }
.primary-nav { display: flex; gap: 22px; }
.primary-nav a { color: var(--ink-dim); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.primary-nav a:hover { color: var(--ink); }
@media (max-width: 800px) { .primary-nav { display: none; } }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher — native <select> styled to match the site. */
.lang-switcher {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 32px 8px 14px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%239aa3c8' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 9px;
  transition: border-color .15s ease, background-color .15s ease;
}
.lang-switcher:hover { border-color: rgba(34, 211, 238, .35); }
.lang-switcher option { background: var(--bg-elev); color: var(--ink); }
@media (max-width: 540px) {
  .lang-switcher { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .15s ease;
}
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-primary {
  background: var(--grad);
  color: #06070f;
  border: none;
  box-shadow: 0 12px 30px -10px rgba(168, 85, 247, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -12px rgba(168, 85, 247, 0.65); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-card); }

/* ============ Hero ============ */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.aurora {
  position: absolute; inset: -10% -10% auto -10%; height: 720px; z-index: 0;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(34,211,238,.35), transparent 60%),
    radial-gradient(50% 70% at 80% 30%, rgba(168,85,247,.32), transparent 60%),
    radial-gradient(60% 80% at 50% 80%, rgba(244,114,182,.22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: aurora-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--ink-mute);
  border-radius: 14px; display: block; z-index: 2;
}
.scroll-cue::before {
  content: ""; display: block; width: 3px; height: 7px;
  background: var(--cyan); border-radius: 2px; margin: 6px auto 0;
  animation: scroll-bob 1.6s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50%      { transform: translateY(10px); opacity: 1; }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 48px;
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.eyebrow {
  display: inline-block; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--ink-dim);
  background: var(--bg-card);
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.025em; font-weight: 800; }
h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); margin: 0 0 24px; max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: var(--ink-mute); font-size: 14px; }
.trust-row strong { display: block; color: var(--ink); font-size: 22px; font-weight: 700; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  filter: drop-shadow(0 40px 80px rgba(34, 211, 238, .30));
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

/* ============ Sections / Cards ============ */
section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 800; }
.section-sub { color: var(--ink-dim); max-width: 60ch; margin: 0 0 40px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: opacity .25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, .35); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { color: var(--ink-dim); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #06070f;
}

/* ============ Activities ============ */
.activity-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .activity-grid { grid-template-columns: 1fr; } }
.activity-grid li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 2px; align-items: center;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 16px; padding: 16px 18px;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.activity-grid .ag-emoji { grid-row: 1 / 3; font-size: 30px; line-height: 1; }
.activity-grid b { font-size: 15px; font-weight: 700; color: var(--ink); }
.activity-grid em { font-style: normal; font-size: 12px; color: var(--ink-mute); }
.activity-grid li:hover {
  transform: translateY(-2px); border-color: rgba(34, 211, 238, .4);
  background: linear-gradient(135deg, rgba(34, 211, 238, .06), rgba(168, 85, 247, .06));
}

/* Section rhythm — alternate band backgrounds so the page doesn't read monotone. */
.how, .rewards {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(34, 211, 238, .06), transparent 70%),
    linear-gradient(180deg, transparent, rgba(168, 85, 247, .04) 50%, transparent);
}
.languages {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(168, 85, 247, .05), rgba(34, 211, 238, .04));
}

/* ============ How it works ============ */
.how-steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #06070f; font-weight: 800; margin-bottom: 10px;
}
.how-steps h3 { margin: 4px 0 6px; font-size: 18px; }
.how-steps p { color: var(--ink-dim); margin: 0; font-size: 15px; }

/* ============ Rewards ============ */
.tier-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); margin-bottom: 32px; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--bg-card);
}
.tier h3 { margin: 0 0 4px; font-size: 18px; }
.tier-pts { color: var(--ink-mute); font-size: 13px; margin: 0 0 12px; }
.tier ul { display: grid; gap: 6px; font-size: 14px; color: var(--ink-dim); }
.tier-bronze   { border-top: 3px solid #a16a4c; }
.tier-silver   { border-top: 3px solid #c5cad8; }
.tier-gold     { border-top: 3px solid #f6c453; }
.tier-platinum { border-top: 3px solid #22d3ee; }
.tier-diamond  { border-top: 3px solid #a855f7; }

.earn-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.earn-table th, .earn-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.earn-table th { background: rgba(255,255,255,.03); font-weight: 600; }
.earn-table tr:last-child td { border-bottom: 0; }

/* ============ Languages ============ */
.lang-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.lang-cloud span {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.02); color: var(--ink-dim); font-size: 14px;
}
.lang-cloud span:nth-child(3n) { color: var(--cyan); border-color: rgba(34,211,238,.3); }
.lang-cloud span:nth-child(5n) { color: var(--purple); border-color: rgba(168,85,247,.3); }
.lang-cloud span:nth-child(7n) { color: var(--green); border-color: rgba(52,211,153,.25); }

/* ============ Download CTA ============ */
.download-card {
  display: grid; gap: 32px; grid-template-columns: 1fr auto; align-items: center;
  background: linear-gradient(180deg, rgba(34,211,238,.10), rgba(168,85,247,.06));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow);
}
@media (max-width: 800px) { .download-card { grid-template-columns: 1fr; text-align: center; } .download-card img { margin: 0 auto; } }

/* ============ FAQ ============ */
.faq details {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); padding: 16px 18px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-mute); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-dim); margin: 10px 0 0; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 8px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.site-footer nav a { display: block; color: var(--ink-dim); padding: 6px 0; }
.site-footer nav a:hover { color: var(--ink); }
.footer-blurb { color: var(--ink-mute); max-width: 38ch; margin-top: 12px; }
.copy { text-align: center; color: var(--ink-mute); font-size: 13px; margin-top: 32px; }

/* ============ Focus states ============ */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

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