/* GeoQuiz landing — shared styles */
:root {
  --indigo: #4F46E5;
  --indigo-600: #4338CA;
  --indigo-50: #EEEEF8;
  --indigo-100: #E0E0F4;
  --navy: #0F1633;
  --navy-2: #1B2347;
  --ink: #0F1633;
  --ink-2: #2A3157;
  --muted: #6B7390;
  --line: #E5E7F0;
  --bg: #F6F6FB;
  --white: #FFFFFF;
  --orange: #FF7A2F;
  --orange-soft: #FFE9D8;
  --teal: #15B6B0;
  --teal-soft: #D8F3F1;
  --green: #16C172;
  --pink: #E94A8C;
  --yellow: #F5C518;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15,22,51,.04), 0 2px 8px rgba(15,22,51,.04);
  --shadow: 0 4px 16px rgba(15,22,51,.06), 0 24px 60px -20px rgba(79,70,229,.18);
  --shadow-lg: 0 30px 80px -30px rgba(15,22,51,.35), 0 12px 40px -20px rgba(79,70,229,.25);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--navy);
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -6px rgba(79,70,229,.4);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--indigo); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: var(--indigo); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 22px; height: 22px;
  background: white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--navy);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.h1 .accent {
  background: linear-gradient(120deg, #4F46E5 0%, #7C72FF 50%, #15B6B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 540px;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Custom App Store-style button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: #0F1633;
  color: white;
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px -10px rgba(15,22,51,.5);
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(15,22,51,.6); }
.btn-store .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.btn-store .ic svg { width: 28px; height: 28px; }
.btn-store .txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .txt small { font-size: 11px; opacity: .8; letter-spacing: .02em; font-weight: 500; }
.btn-store .txt span { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  background: white;
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.hero-meta .dot-sep { width: 4px; height: 4px; background: #C8CCDB; border-radius: 99px; display: inline-block; }

/* Phone mockup */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.phone-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.phone-bg .blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.phone-bg .blob.b1 { background: #C7C2FF; top: 6%; left: 8%; }
.phone-bg .blob.b2 { background: #BCEEEB; bottom: 4%; right: 0; opacity: .6; }
.phone-bg .blob.b3 { background: #FFD7B5; top: 38%; right: 30%; width: 280px; height: 280px; opacity: .5; }

.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  aspect-ratio: 1179 / 2556;
  background: #0F1633;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 0 0 1.5px #2A3157 inset,
    0 40px 80px -30px rgba(15,22,51,.45),
    0 18px 40px -18px rgba(79,70,229,.4);
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.phone:hover { transform: rotate(-2deg) translateY(-6px); }
.phone .notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #0F1633;
  border-radius: 999px;
  z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #F6F6FB;
  position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-side {
  position: absolute;
  width: 220px;
  aspect-ratio: 1179 / 2556;
  border-radius: 36px;
  background: #0F1633;
  padding: 8px;
  box-shadow:
    0 0 0 1.2px #2A3157 inset,
    0 30px 60px -22px rgba(15,22,51,.4);
  z-index: 0;
}
.phone-side .screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #F6F6FB;
}
.phone-side img { width: 100%; height: 100%; object-fit: cover; }
.phone-side.left { left: -8%; top: 8%; transform: rotate(-12deg); }
.phone-side.right { right: -6%; bottom: 4%; transform: rotate(10deg); }

@media (max-width: 920px) {
  .phone-stage { min-height: 540px; }
  .phone { width: 250px; }
  .phone-side { width: 180px; }
  .phone-side.left { left: 0%; top: 10%; }
  .phone-side.right { right: 0%; bottom: 6%; }
}
@media (max-width: 520px) {
  .phone { width: 220px; }
  .phone-side.left, .phone-side.right { display: none; }
}

/* Floating chip badges around hero */
.float-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
}
.float-chip .icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
}
.float-chip.c1 { top: 14%; left: -6%; transform: rotate(-4deg); }
.float-chip.c1 .icon { background: var(--orange-soft); color: var(--orange); }
.float-chip.c2 { bottom: 18%; right: -10%; transform: rotate(5deg); }
.float-chip.c2 .icon { background: var(--teal-soft); color: var(--teal); }
.float-chip.c3 { top: 50%; left: -14%; transform: rotate(-2deg); }
.float-chip.c3 .icon { background: #EEE9FF; color: var(--indigo); }

@media (max-width: 920px) {
  .float-chip.c1 { left: 4%; }
  .float-chip.c2 { right: 4%; }
  .float-chip.c3 { left: 4%; top: 60%; }
}
@media (max-width: 520px) {
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .float-chip.c3 { display: none; }
}

/* ====== SECTION SHARED ====== */
.section {
  padding: 100px 0;
}
.section.alt { background: var(--bg); }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.08;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ====== FEATURES ====== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }

.feat {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-1 .feat-icon { background: var(--indigo-50); color: var(--indigo); }
.feat-2 .feat-icon { background: var(--orange-soft); color: var(--orange); }
.feat-3 .feat-icon { background: var(--teal-soft); color: var(--teal); }
.feat-4 .feat-icon { background: #EAFAF1; color: var(--green); }

.feat h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.feat p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ====== STATS ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 28px 24px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: left;
}
.stat-num {
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy);
  line-height: 1;
}
.stat-num .plus { color: var(--indigo); }
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ====== LANGUAGES CARD ====== */
.lang-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .lang-card { padding: 28px; } }
.lang-head { margin-bottom: 24px; }
.lang-head h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--navy);
}
.lang-head p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.lang .flag { font-size: 16px; line-height: 1; }

/* ====== FINAL CTA ====== */
.cta-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(124,114,255,.55), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgba(21,182,176,.4), transparent 60%),
    linear-gradient(135deg, #2A2F70 0%, #1A1F4F 100%);
  color: white;
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .cta-card { grid-template-columns: 1fr; padding: 40px; gap: 32px; } }

.cta-card .h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.cta-card p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 460px;
}
.cta-card .btn-store { background: white; color: var(--navy); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.cta-card .btn-store:hover { background: #F6F6FB; }

.cta-card.cta-card--center {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 72px 64px;
}
.cta-card--center .cta-inner { max-width: 640px; margin: 0 auto; }
.cta-card--center p { margin-left: auto; margin-right: auto; }
.cta-card--center .cta-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
@media (max-width: 880px) {
  .cta-card.cta-card--center { padding: 48px 28px; }
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

/* Decoration dots */
.dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .8;
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.foot-about { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 14px; max-width: 320px; }
.foot-col h5 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.foot-col a, .foot-col span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.foot-col a:hover { color: var(--indigo); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ====== SCROLL ANIMATIONS ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { transition: none; }
}

/* ====== LEGAL PAGES ====== */
.legal {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.022em;
  margin: 0 0 8px;
  color: var(--navy);
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
  letter-spacing: -.01em;
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.legal p, .legal li {
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 16px;
  text-wrap: pretty;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal .back:hover { color: var(--indigo); }

/* ====== SUPPORT PAGE ====== */
.support-hero {
  padding: 72px 0 24px;
}
.support-hero .container { max-width: 820px; }
.support-hero .eyebrow { margin-bottom: 18px; }
.support-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.06;
  color: var(--navy);
  margin: 0 0 18px;
  text-wrap: balance;
}
.support-hero p.lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.support-section { padding: 32px 0; }
.support-section .container { max-width: 820px; }
.support-section + .support-section { padding-top: 8px; }
.support-section.tail { padding-bottom: 96px; }

.support-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .support-card { padding: 24px; border-radius: 24px; } }

.support-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 12px;
}
.support-card > p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 18px;
}
.support-card > p:last-child { margin-bottom: 0; }

.email-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
}
.email-row:hover { background: #E4E4F4; }

.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.support-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.support-list li .li-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--indigo-50);
  color: var(--indigo);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.support-list li strong { color: var(--navy); }

.support-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .support-grid-2 { grid-template-columns: 1fr; } }

.support-mini {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.support-mini h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.005em;
}
.support-mini p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.useful-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
@media (max-width: 720px) { .useful-links { grid-template-columns: 1fr; } }
.useful-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.useful-link:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.useful-link svg { color: var(--muted); }
.useful-link:hover svg { color: var(--indigo); }
