/* ==========================================================================
   KOREX — Marketing site
   Dark-forward premium fintech. Space Grotesk headings / Inter body.
   Signature gradient: green #22E06B -> teal #00D7D2 -> purple #5C137F.
   ========================================================================== */

:root {
  /* Brand colors */
  --green: #22E06B;
  --teal: #00D7D2;
  --purple: #5C137F;
  --purple-lift: #C77DE0;   /* readable purple for text-on-dark */
  --dark-green: #005635;
  --light: #E2E0E3;

  /* Backgrounds (3 tones for depth) */
  --bg: #050807;            /* base page */
  --bg-raised: #0A130F;     /* section band / cards */

  /* Text opacities on --light */
  --tx-100: rgba(226, 224, 227, 1);
  --tx-85: rgba(226, 224, 227, 0.85);
  --tx-70: rgba(226, 224, 227, 0.70);
  --tx-60: rgba(226, 224, 227, 0.60);
  --tx-50: rgba(226, 224, 227, 0.58);   /* min for WCAG AA on dark bg */

  /* Hairlines */
  --line-8: rgba(226, 224, 227, 0.08);
  --line-15: rgba(226, 224, 227, 0.15);
  --line-30: rgba(226, 224, 227, 0.30);

  /* Signature gradient */
  --grad: linear-gradient(135deg, #22E06B 0%, #00D7D2 55%, #5C137F 100%);

  /* Type */
  --font-head: "Space Grotesk", "Vazirmatn", system-ui, sans-serif;
  --font-body: "Inter", "Vazirmatn", system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --pad-x: 32px;
  --nav-h: 72px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* RTL: swap body font to Vazirmatn wholesale */
:lang(ar), :lang(ku) { --font-head: "Vazirmatn", sans-serif; --font-body: "Vazirmatn", sans-serif; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tx-85);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--tx-100); margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 200;
  background: var(--teal); color: #050807; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.accent { color: var(--green); }

.section { padding-block: 96px; }
.section__head { max-width: 640px; margin-inline: auto; text-align: center; }
.section__title { font-size: 40px; font-weight: 700; }
.section__lede { margin-top: 20px; color: var(--tx-70); font-size: 18px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding-inline: 32px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  cursor: pointer; border: none; transition: transform .16s ease-out, box-shadow .16s ease-out, filter .16s ease-out, border-color .16s ease-out, color .16s ease-out;
  white-space: nowrap;
}
.btn--sm { height: 44px; padding-inline: 22px; font-size: 15px; }
.btn--primary {
  background: var(--grad); color: #050807; font-weight: 700;
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 215, 210, 0.25); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--outline {
  background: transparent; color: var(--tx-100);
  border: 1.5px solid var(--line-30);
}
.btn--outline:hover { border-color: rgba(0, 215, 210, 0.6); color: var(--tx-100); }
.btn--disabled { opacity: .45; cursor: default; }
.btn--disabled:hover { transform: none; filter: none; box-shadow: none; border-color: var(--line-30); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 600; font-size: 15px;
}
.link-arrow i { transition: transform .16s ease-out; }
.link-arrow:hover i { transform: translateX(4px); }

/* focus-visible everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 19, 15, 0.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--line-8);
  transition: background .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { background: rgba(10, 19, 15, 0.92); box-shadow: 0 1px 0 rgba(226,224,227,0.06), 0 6px 20px rgba(0,0,0,0.35); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: auto; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--light); letter-spacing: .5px; }

.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a {
  position: relative; font-weight: 500; font-size: 15px; color: var(--tx-85); padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 100%; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: inline-start; transition: transform .14s ease;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__utils { display: flex; align-items: center; gap: 16px; }
.nav__login { display: none; font-weight: 500; font-size: 15px; color: var(--tx-85); }
.nav__login:hover { color: var(--tx-100); }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__login { display: inline; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  padding-block: 64px 64px;
}
.hero__glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(200px); pointer-events: none; }
.hero__glow--teal { width: 520px; height: 520px; background: rgba(0, 215, 210, 0.18); top: -120px; inset-inline-end: -120px; }
.hero__glow--purple { width: 520px; height: 520px; background: rgba(92, 19, 127, 0.15); bottom: -160px; inset-inline-start: -140px; }
.hero__copy, .hero__media { position: relative; z-index: 1; }

.hero__title { font-size: 36px; font-weight: 700; line-height: 1.12; letter-spacing: -0.5px; }
.hero__sub { margin-top: 20px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--tx-70); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__trust { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx-60); }
.stars { color: var(--green); letter-spacing: 2px; }

/* Phone mockup */
.phone {
  position: relative; width: 300px; max-width: 100%; margin-inline: auto;
  background: var(--bg-raised); border: 2px solid var(--line-15);
  border-radius: 42px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.phone--sm { width: 280px; }
.phone__notch { width: 120px; height: 22px; background: #050807; border-radius: 0 0 14px 14px; margin: 0 auto 12px; }
.phone__screen {
  background: linear-gradient(180deg, #08110D 0%, #050807 100%);
  border-radius: 30px; padding: 18px 16px; min-height: 460px;
}
.phone--sm .phone__screen { min-height: 380px; }
.phone__logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.phone__logo img { width: 30px; }
.phone__logo span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--light); }
.mockhead { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--tx-85); margin-bottom: 14px; }

/* Signal cards */
.sigcard { background: rgba(226,224,227,0.03); border: 1px solid var(--line-8); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.sigcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sigcard__pair { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--tx-100); }
.sigcard__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--tx-60); padding-block: 3px; }
.sigcard__row b { color: var(--tx-85); font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); }
.chip--buy { background: rgba(34,224,107,0.12); color: var(--green); border: 1px solid rgba(34,224,107,0.30); }
.chip--sell { background: rgba(92,19,127,0.15); color: var(--purple-lift); border: 1px solid rgba(92,19,127,0.35); }

.spark { margin-top: 8px; background: rgba(226,224,227,0.02); border: 1px solid var(--line-8); border-radius: var(--radius-md); padding: 10px; }

/* Feed posts */
.post { background: rgba(226,224,227,0.03); border: 1px solid var(--line-8); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 12px; }
.post__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-block; }
.avatar--a { background: linear-gradient(135deg, #22E06B, #00D7D2); }
.avatar--b { background: linear-gradient(135deg, #00D7D2, #5C137F); }
.post__name { font-size: 13px; font-weight: 600; color: var(--tx-100); }
.post__text { font-size: 13px; color: var(--tx-70); line-height: 1.5; }
.post__meta { margin-top: 8px; font-size: 12px; color: var(--tx-50); }
.verified { color: var(--teal); font-size: 12px; }

/* ==========================================================================
   STATS / TRUST STRIP
   ========================================================================== */
.stats { background: var(--bg-raised); border-block: 1px solid var(--line-8); }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding-block: 32px;
}
.stat { text-align: center; padding-block: 8px; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--tx-100); }
.stat__label { display: block; margin-top: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--tx-60); }

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { position: relative; }
  .stat + .stat::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 1px; background: var(--line-8); }
  .stat__num { font-size: 30px; }
}

/* ==========================================================================
   VALUE PROPS
   ========================================================================== */
.value { background: var(--bg); }
.value__grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
@media (min-width: 900px) { .value__grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line-8); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,215,210,0.12); border-color: rgba(0,215,210,0.30); }
.card__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.card__body { color: var(--tx-70); font-size: 15px; line-height: 1.6; }

.tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.tile--green { background: rgba(34,224,107,0.12); color: var(--green); }
.tile--teal { background: rgba(0,215,210,0.12); color: var(--teal); }
.tile--purple { background: rgba(92,19,127,0.20); color: var(--purple-lift); }

/* ==========================================================================
   FEATURE SHOWCASE
   ========================================================================== */
.features { background: var(--bg-raised); }
.feature {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  padding-block: 40px;
}
.feature + .feature { margin-top: 40px; border-block-start: 1px solid var(--line-8); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 60px; min-height: 520px; }
  .feature + .feature { margin-top: 0; border: none; }
  .feature--reverse .feature__text { order: 2; }
  .feature--reverse .feature__media { order: 1; }
}

.feature__tag { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.feature__tag span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,215,210,0.12); font-family: var(--font-head); font-weight: 700; }
.feature__title { font-size: 32px; font-weight: 700; }
.feature__body { margin-top: 16px; max-width: 460px; color: var(--tx-70); font-size: 16px; line-height: 1.7; }

.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-inline-start: 30px; font-size: 14px; color: var(--tx-85); }
.checklist li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset-inline-start: 0; top: 1px; color: var(--green); font-size: 13px;
}

.feature__media { position: relative; display: grid; place-items: center; }
.glow { position: absolute; z-index: 0; width: 70%; height: 70%; border-radius: 50%; filter: blur(70px); opacity: .30; pointer-events: none; }
.glow--teal { background: var(--teal); }
.glow--green { background: var(--green); }
.glow--purple { background: var(--purple); }
.feature__media .phone, .feature__media .browser { position: relative; z-index: 1; }

/* Browser frame */
.browser { width: 100%; max-width: 420px; background: var(--bg-raised); border: 1px solid var(--line-15); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.browser__bar { display: flex; gap: 8px; padding: 12px 14px; border-block-end: 1px solid var(--line-8); background: rgba(226,224,227,0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-15); }
.dot:nth-child(1) { background: rgba(255,95,86,.7); }
.dot:nth-child(2) { background: rgba(255,189,46,.7); }
.dot:nth-child(3) { background: rgba(39,201,63,.7); }
.browser__body { padding: 18px; }

.brokerrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-8); margin-bottom: 10px; }
.brokerrow__logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #050807; background: var(--grad); }
.brokerrow__info { flex: 1; display: flex; flex-direction: column; }
.brokerrow__info b { font-size: 14px; color: var(--tx-100); }
.brokerrow__info small { font-size: 12px; color: var(--tx-60); }
.rating { font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap; }
.rating i { color: var(--green); }

.calrow { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-block-end: 1px solid var(--line-8); font-size: 13px; }
.calrow:last-child { border-block-end: none; }
.cal__time { font-family: var(--font-head); font-weight: 600; color: var(--tx-85); min-width: 46px; }
.cal__event { color: var(--tx-70); }
.impact { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; min-width: 44px; text-align: center; }
.impact--high { background: rgba(92,19,127,0.18); color: var(--purple-lift); }
.impact--med { background: rgba(0,215,210,0.14); color: var(--teal); }
.impact--low { background: rgba(226,224,227,0.08); color: var(--tx-60); }

/* ==========================================================================
   FOR BROKERS / PARTNERS
   ========================================================================== */
.section--partners { padding-block: 0; margin-block: 64px; }
.partners {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, #0A130F 0%, #150A1C 100%);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}
/* gradient border via mask */
.partners::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl); padding: 1px;
  background: var(--grad); opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
@media (min-width: 900px) {
  .partners { grid-template-columns: 1.5fr 1fr; gap: 64px; padding: 80px; }
}

.partners__title { font-size: 32px; font-weight: 700; }
.partners__body { margin-top: 16px; max-width: 480px; color: var(--tx-70); font-size: 16px; line-height: 1.7; }
.partners__list { margin-top: 28px; display: grid; gap: 16px; }
.partners__list li { display: flex; gap: 14px; align-items: flex-start; }
.partners__list i { color: var(--teal); font-size: 20px; margin-top: 2px; width: 24px; text-align: center; }
.partners__list b { display: block; font-size: 15px; color: var(--tx-100); }
.partners__list span { display: block; font-size: 14px; color: var(--tx-60); }
.partners__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.pcard { background: var(--bg-raised); border: 1px solid var(--line-15); border-radius: var(--radius-lg); padding: 24px; }
.pcard__head { display: flex; align-items: center; gap: 12px; }
.pcard__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #050807; background: var(--grad); }
.pcard__head b { display: block; font-size: 16px; color: var(--tx-100); }
.pcard__head small { color: var(--tx-60); font-size: 13px; }
.pcard__rating { margin-top: 18px; color: var(--green); font-size: 14px; }
.pcard__rating span { color: var(--tx-60); margin-inline-start: 6px; }
.pcard__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(226,224,227,0.05); border: 1px solid var(--line-8); color: var(--tx-70); }

/* ==========================================================================
   DOWNLOAD CTA
   ========================================================================== */
.download { position: relative; overflow: hidden; background: var(--bg); text-align: center; }
.download__glow {
  position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 500px; max-width: 100%; border-radius: 50%; filter: blur(200px); pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(34,224,107,0.30), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(92,19,127,0.30), transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(0,215,210,0.30), transparent 60%);
}
.download__inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.download__title { font-size: 28px; font-weight: 700; }
.download__sub { margin-top: 16px; color: var(--tx-70); font-size: 16px; }

.badges { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; text-align: start;
  min-width: 180px; height: 56px; padding-inline: 20px; border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid var(--line-15); color: var(--tx-100);
  transition: transform .16s ease, border-color .16s ease;
}
.badge i { font-size: 26px; }
.badge__txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge__txt small { font-size: 11px; color: var(--tx-60); }
.badge__txt b { font-family: var(--font-head); font-size: 17px; }
.badge:not(.badge--disabled):hover { transform: translateY(-2px); border-color: rgba(0,215,210,0.5); }
.badge--disabled { opacity: .45; cursor: default; }

.qr { margin-top: 32px; display: inline-flex; flex-direction: column; align-items: center; }
.qr__img { width: 160px; height: 160px; border-radius: 12px; background: #fff; padding: 0; }
.qr__cap { margin-top: 12px; font-size: 13px; color: var(--tx-60); }
.download__micro { margin-top: 28px; font-size: 13px; color: var(--tx-50); }
.download__micro i { color: var(--teal); margin-inline-end: 6px; }

.download__title { font-size: 28px; }
@media (min-width: 768px) { .download__title { font-size: 40px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg-raised); border-block-start: 1px solid var(--line-8); padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer__tag { margin-top: 12px; color: var(--tx-60); font-size: 14px; }
.footer__social { margin-top: 16px; display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(226,224,227,0.05); border: 1px solid var(--line-8); color: var(--tx-70); font-size: 16px;
  transition: color .16s ease, border-color .16s ease;
}
.footer__social a:hover { color: var(--teal); border-color: rgba(0,215,210,0.4); }

.footer__col h4 { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--tx-85); margin-bottom: 16px; }
.footer__col a { display: block; padding-block: 6px; font-size: 14px; color: var(--tx-60); }
.footer__col a:hover { color: var(--tx-100); }

.footer__risk { margin-block: 32px; padding: 20px; border: 1px solid rgba(226,224,227,0.10); border-radius: var(--radius-md); background: var(--bg); max-width: 900px; }
.footer__risk p { font-size: 12px; line-height: 1.6; color: var(--tx-50); }
.footer__risk strong { color: var(--tx-70); }
.footer__risk em { color: var(--tx-50); }

.footer__bottom { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__copy { font-size: 13px; color: var(--tx-50); }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

.langswitch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(226,224,227,0.05); border: 1px solid var(--line-8); }
.langswitch button {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tx-60);
  transition: color .14s ease;
}
.langswitch button.is-active { color: var(--tx-100); }
.langswitch button.is-active::after {
  content: ""; position: absolute; inset-block-end: 2px; inset-inline: 14px; height: 2px; background: var(--grad);
}
.langswitch button:hover { color: var(--tx-85); }

/* ==========================================================================
   DESKTOP HERO / RESPONSIVE UPGRADES
   ========================================================================== */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; padding-block: 96px 64px; min-height: 780px; }
  .hero__title { font-size: 56px; line-height: 1.08; }
  .phone { width: 320px; }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; --nav-h: 60px; }
  .section { padding-block: 64px; }
  .section__title { font-size: 28px; }
  .feature__title { font-size: 24px; }
  .partners__title { font-size: 26px; }

  /* Touch targets: give footer/lang controls a comfortable tap height on mobile */
  .footer__col a { padding-block: 10px; }
  .langswitch button { padding-block: 12px; }
  .footer__social a { width: 44px; height: 44px; }
}

/* RTL: mirror directional glyphs */
[dir="rtl"] .link-arrow i,
[dir="rtl"] .checklist li::before { transform: scaleX(-1); }
[dir="rtl"] .checklist li::before { display: inline-block; }

/* ==========================================================================
   SCROLL REVEAL (progressive enhancement)
   Fail-safe: content is fully visible by default. The hidden/animated state
   ONLY applies once JS confirms it can reveal items (adds .reveal-on to <html>
   and observes each element). If JS or the observer ever fails, nothing hides.
   ========================================================================== */
[data-reveal] { transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .card:hover, .btn--primary:hover, .badge:hover { transform: none; }
  * { scroll-behavior: auto; }
}

/* ==========================================================================
   APP SHOWCASE — "See it in action" (real screenshots in phone frames)
   ========================================================================== */
.showcase { background: var(--bg); }
.showcase__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
  margin-top: 64px;
}
@media (min-width: 768px) { .showcase__grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }

.shot { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Photo phone frame — real device look, sized to the 1080x2400 screenshots */
.deviceframe {
  position: relative; width: 100%; max-width: 240px; margin-inline: auto;
  background: #0A130F; border: 2px solid var(--line-15);
  border-radius: 34px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.deviceframe::before {
  content: ""; position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 16px; background: #050807; border-radius: 0 0 12px 12px;
}
.deviceframe__screen {
  border-radius: 25px; overflow: hidden; background: #050807; display: block;
}
/* Image-driven height: the 1080x2400 screenshot sets a true ~19.5:9 (Pro Max-tall)
   frame, fits with no crop or distortion, and does NOT depend on aspect-ratio
   support (older / in-app webviews were collapsing it to a short, wide frame). */
.deviceframe__screen img { display: block; width: 100%; height: auto; }

.shot__cap { margin-top: 20px; }
.shot__cap b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--tx-100); }
.shot__cap span { display: block; margin-top: 4px; font-size: 13px; color: var(--tx-60); }

/* ==========================================================================
   FAQ — accessible accordion
   ========================================================================== */
.faq { background: var(--bg-raised); }
.faq__list { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq__item {
  background: var(--bg); border: 1px solid var(--line-8); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color .16s ease;
}
.faq__item[open] { border-color: rgba(0,215,210,0.30); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--tx-100);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal); }
.faq__q .faq__icon {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--teal); font-size: 14px; transition: transform .2s ease;
}
.faq__item[open] .faq__q .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; }
.faq__a p { color: var(--tx-70); font-size: 15px; line-height: 1.7; max-width: 680px; }
.faq__q:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: var(--radius-md); }

/* ==========================================================================
   LEGAL PAGES — long-form readable content
   ========================================================================== */
.legal-hero { position: relative; overflow: hidden; background: var(--bg); padding-block: 56px 0; }
.legal-hero__glow {
  position: absolute; z-index: 0; top: -160px; inset-inline-end: -120px;
  width: 460px; height: 460px; border-radius: 50%; filter: blur(200px); pointer-events: none;
  background: rgba(0,215,210,0.14);
}
.legal-hero .container { position: relative; z-index: 1; }
.legal-crumb { font-size: 13px; color: var(--tx-60); margin-bottom: 20px; }
.legal-crumb a { color: var(--teal); }
.legal-crumb a:hover { text-decoration: underline; }
.legal-title { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; }
@media (min-width: 768px) { .legal-title { font-size: 44px; } }
.legal-updated { margin-top: 16px; font-size: 14px; color: var(--tx-60); }

.legal-draft {
  margin-top: 24px; padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(199,125,224,0.35); border-radius: var(--radius-md);
  background: rgba(92,19,127,0.10); max-width: 820px;
}
.legal-draft i { color: var(--purple-lift); font-size: 18px; margin-top: 2px; flex: none; }
.legal-draft p { font-size: 13.5px; line-height: 1.6; color: var(--tx-70); }
.legal-draft strong { color: var(--tx-100); }

.legal { padding-block: 56px 96px; background: var(--bg); }
.legal__body { max-width: 820px; margin-inline: auto; }
.legal__lede { font-size: 18px; line-height: 1.7; color: var(--tx-85); margin-bottom: 8px; }
.legal__body section { padding-block: 24px; border-block-start: 1px solid var(--line-8); }
.legal__body section:first-of-type { border-block-start: none; }
.legal__body h2 {
  font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--tx-100);
  margin-bottom: 14px; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal__body p { font-size: 16px; line-height: 1.75; color: var(--tx-70); margin-bottom: 16px; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body p + p { margin-top: 0; }
.legal__body a { color: var(--teal); }
.legal__body a:hover { text-decoration: underline; }

/* On-page table of contents for the longer legal docs */
.legal-toc {
  max-width: 820px; margin: 0 auto 40px; padding: 24px;
  background: var(--bg-raised); border: 1px solid var(--line-8); border-radius: var(--radius-lg);
}
.legal-toc h2 { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--tx-85); margin: 0 0 16px; }
.legal-toc ol { margin: 0; padding: 0; counter-reset: toc; list-style: none; columns: 1; }
@media (min-width: 640px) { .legal-toc ol { columns: 2; column-gap: 32px; } }
.legal-toc li { break-inside: avoid; margin-bottom: 8px; }
.legal-toc a { font-size: 14px; color: var(--tx-70); }
.legal-toc a:hover { color: var(--teal); }

/* Back-to-home mini nav used on legal pages (no full site chrome needed) */
.legalnav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  background: rgba(10,19,15,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--line-8); }
.legalnav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legalnav__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--tx-85); }
.legalnav__back:hover { color: var(--tx-100); }
.legalnav__back i { color: var(--teal); }
[dir="rtl"] .legalnav__back i, [dir="rtl"] .legal-crumb i { transform: scaleX(-1); }
