/* =========================================
   BUILD MART LANDING — style.css
   ========================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- THEME TOKENS ---------- */
:root {
  --bg:         #FAF6EF;
  --surface:    #FFFFFF;
  --surface-2:  #F2EADD;
  --cream:      #F6EFE3;
  --ink:        #211B13;
  --muted:      #6B6051;
  --faint:      #9C9082;
  --amber:      #D9821A;
  --amber-deep: #B96A0E;
  --amber-soft: #FBEBD3;
  --line:       rgba(31,26,20,.10);
  --line-soft:  rgba(31,26,20,.07);
  --nav-bg:     rgba(250,246,239,.90);
  --dl-bg:      #1E1712;
  --dl-text:    #F5F0E8;
  --dl-muted:   rgba(245,240,232,.70);
  --dl-line:    rgba(255,255,255,.16);
  --dl-store:   rgba(255,255,255,.08);
  --dl-num:     #fff;
  --r:          18px;
  --maxw:       1240px;
  --lat:        "Space Grotesk", sans-serif;
}

html[data-theme="dark"] {
  --bg:         #14110D;
  --surface:    #1C1813;
  --surface-2:  #241F18;
  --cream:      #1C1813;
  --ink:        #F4EFE6;
  --muted:      #A99C88;
  --faint:      #6E6453;
  --amber:      #F4A93C;
  --amber-deep: #E0892B;
  --amber-soft: rgba(244,169,60,.12);
  --line:       rgba(244,169,60,.14);
  --line-soft:  rgba(255,255,255,.07);
  --nav-bg:     rgba(20,17,13,.88);
  --dl-bg:      #1A1612;
  --dl-text:    #F4EFE6;
  --dl-muted:   #A99C88;
  --dl-line:    rgba(244,169,60,.18);
  --dl-store:   rgba(0,0,0,.35);
  --dl-num:     #F4EFE6;
}

/* ---------- SMOOTH TRANSITIONS ---------- */
body,
header,
footer,
.cat,
.acard,
.feat,
.quote,
.stat,
.dl,
.qa summary {
  transition: background-color .35s ease, border-color .3s ease, color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
::selection { background: var(--amber-soft); color: var(--amber-deep); }
html[data-theme="dark"] ::selection { background: rgba(244,169,60,.28); color: #FFE9C4; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
body {
  font-family: "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--lat); line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section.block { padding: 92px 0; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  font-family: var(--lat);
  direction: ltr;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--amber);
  flex-shrink: 0;
}
.center .eyebrow { justify-content: center; }

/* ---------- SECTION HEAD ---------- */
.head { max-width: 680px; margin-bottom: 52px; }
.head h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 16px 0 14px;
}
.head p { color: var(--muted); font-size: 18px; }
.center { margin-inline: auto; text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .22s, box-shadow .22s, background .22s, border-color .22s, color .22s;
  white-space: nowrap;
}
.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(217,130,26,.5);
}
html[data-theme="dark"] .btn-amber {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #1B1305;
}
.btn-amber:hover {
  background: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(217,130,26,.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
  background: var(--amber-soft);
}

/* ---------- PLACEHOLDER IMAGES ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background:
    repeating-linear-gradient(135deg, rgba(185,106,14,.06) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, var(--surface-2), var(--cream));
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: background .35s;
}
html[data-theme="dark"] .ph {
  background:
    repeating-linear-gradient(135deg, rgba(244,169,60,.05) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.ph span {
  font-family: var(--lat);
  direction: ltr;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 14px;
  font-weight: 500;
}

/* =========================================
   ANIMATIONS
   ========================================= */

/* Scroll-triggered reveal
   Runs as a one-shot keyframe animation (not a transition) so it never
   competes with the hover transitions defined on the same elements. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(30px); }
}
.reveal { opacity: 0; }
.reveal.visible {
  opacity: 1;
  animation: reveal-in .7s cubic-bezier(.22,1,.36,1) backwards;
}

/* Stagger — categories (6) */
.cats .cat:nth-child(1) { animation-delay: .04s }
.cats .cat:nth-child(2) { animation-delay: .10s }
.cats .cat:nth-child(3) { animation-delay: .16s }
.cats .cat:nth-child(4) { animation-delay: .22s }
.cats .cat:nth-child(5) { animation-delay: .28s }
.cats .cat:nth-child(6) { animation-delay: .34s }

/* Stagger — steps (4) */
.steps .step:nth-child(1) { animation-delay: .05s }
.steps .step:nth-child(2) { animation-delay: .13s }
.steps .step:nth-child(3) { animation-delay: .21s }
.steps .step:nth-child(4) { animation-delay: .29s }

/* Stagger — audience cards (3) */
.aud .acard:nth-child(1) { animation-delay: .06s }
.aud .acard:nth-child(2) { animation-delay: .14s }
.aud .acard:nth-child(3) { animation-delay: .22s }

/* Stagger — features (6) */
.feats .feat:nth-child(1) { animation-delay: .04s }
.feats .feat:nth-child(2) { animation-delay: .10s }
.feats .feat:nth-child(3) { animation-delay: .16s }
.feats .feat:nth-child(4) { animation-delay: .22s }
.feats .feat:nth-child(5) { animation-delay: .28s }
.feats .feat:nth-child(6) { animation-delay: .34s }

/* Stagger — quotes (3) */
.quotes .quote:nth-child(1) { animation-delay: .06s }
.quotes .quote:nth-child(2) { animation-delay: .14s }
.quotes .quote:nth-child(3) { animation-delay: .22s }

/* Stagger — FAQ (4) */
.faq .qa:nth-child(1) { animation-delay: .04s }
.faq .qa:nth-child(2) { animation-delay: .10s }
.faq .qa:nth-child(3) { animation-delay: .16s }
.faq .qa:nth-child(4) { animation-delay: .22s }

/* Hero entrance */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-text > * {
  animation: hero-in .8s cubic-bezier(.22,1,.36,1) both;
}
.hero-text .eyebrow    { animation-delay: .05s }
.hero-text h1          { animation-delay: .14s }
.hero-text .lead       { animation-delay: .24s }
.hero-text .hero-cta   { animation-delay: .33s }
.hero-text .trust      { animation-delay: .41s }

/* Hero visual float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-visual { animation: float 7s ease-in-out infinite; }

/* Badge pulse ring */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(217,130,26,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(217,130,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,130,26,0); }
}
.hero-visual .badge { animation: pulse-ring 3.2s ease-out 1.2s infinite; }
html[data-theme="dark"] .hero-visual .badge {
  animation: pulse-ring 3.2s ease-out 1.2s infinite;
}

/* Theme button spin */
@keyframes spin-once {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  to   { transform: rotate(360deg) scale(1); }
}
.spin { animation: spin-once .5s cubic-bezier(.22,1,.36,1) !important; }

/* CTA button glow — one settle pulse after the hero lands, then rests */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 10px 26px -12px rgba(217,130,26,.5); }
  50%       { box-shadow: 0 10px 40px -8px rgba(217,130,26,.8); }
}
.hero-cta .btn-amber { animation: hero-in .8s cubic-bezier(.22,1,.36,1) .33s both, glow-pulse 2.4s ease-in-out 1.3s 1; }

/* Hero keyword — amber marker sweeps in behind «المصدر» after the headline lands */
@keyframes mark-sweep {
  to { background-size: 100% 100%; }
}
.hero h1 em {
  background: linear-gradient(to top, var(--amber-soft) 0 34%, transparent 34%) no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  animation: mark-sweep .65s cubic-bezier(.22,1,.36,1) 1s forwards;
  padding-inline: .04em;
  margin-inline: -.04em;
}
html[dir="rtl"] .hero h1 em { background-position: 100% 0; }

/* Amber button sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn-amber::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.32) 50%, transparent 58%);
  transform: translateX(-140%);
  pointer-events: none;
}
.btn-amber:hover::after { transform: translateX(140%); transition: transform .65s ease; }

/* =========================================
   NAV
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-soft);
}
header.scrolled { box-shadow: 0 6px 28px -14px rgba(0,0,0,.22); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
  direction: ltr;
  font-family: var(--lat);
  flex-shrink: 0;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--amber);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .3s, transform .25s;
}
html[data-theme="dark"] .brand .mark { color: #1B1305; }
.brand:hover .mark { transform: rotate(-6deg) scale(1.08); }
.brand b { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a { position: relative; padding-block: 6px; transition: color .2s; }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
html[dir="ltr"] .nav-links a::after { transform-origin: 0 50%; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.nav-controls { display: flex; align-items: center; gap: 8px; }

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  font-family: var(--lat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--amber); color: #fff; }
html[data-theme="dark"] .lang-btn.active { color: #1B1305; }

/* Theme Toggle */
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.theme-btn:hover { border-color: var(--amber); color: var(--amber); transform: rotate(20deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 86px 0 68px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(1100px 520px at 78% -10%, rgba(217,130,26,.11), transparent 62%);
  pointer-events: none;
}
html[data-theme="dark"] .hero::before {
  background: radial-gradient(1100px 520px at 78% -8%, rgba(244,169,60,.17), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.025em;
  margin: 20px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.72;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.trust {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 14px;
}
.trust div { display: flex; align-items: center; gap: 8px; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* Hero visual */
.hero-visual { position: relative; height: 480px; }
.hero-visual .ph.main {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 32px 64px -36px rgba(31,26,20,.4);
}
html[data-theme="dark"] .hero-visual .ph.main { box-shadow: 0 32px 64px -36px rgba(0,0,0,.65); }
.hero-visual .badge {
  position: absolute;
  bottom: -20px;
  inset-inline-end: -16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 24px 56px -28px rgba(0,0,0,.28);
}
.hero-visual .badge .big {
  font-family: var(--lat);
  font-weight: 700;
  font-size: 30px;
  color: var(--amber);
  line-height: 1;
  direction: ltr;
}
.hero-visual .badge small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* =========================================
   STATS
   ========================================= */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
}
.stat { padding: 40px 28px; text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24%;
  height: 52%;
  width: 1px;
  background: var(--line-soft);
}
.stat .num {
  font-family: var(--lat);
  direction: ltr;
  font-size: 44px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* =========================================
   CATEGORIES
   ========================================= */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
}
.cat:hover {
  border-color: var(--amber);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(31,26,20,.25);
}
html[data-theme="dark"] .cat:hover { box-shadow: 0 24px 48px -24px rgba(0,0,0,.5); }
.cat .img { height: 155px; border-radius: 0; }
.cat .body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.cat .body b { font-size: 17px; font-weight: 700; }
.cat .arrow { color: var(--amber); font-size: 20px; transition: transform .2s; }
.cat:hover .arrow { transform: translateX(-4px); }
html[lang="en"] .cat:hover .arrow { transform: translateX(4px); }

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; }
.step .n {
  font-family: var(--lat);
  direction: ltr;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--amber);
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform .25s, box-shadow .25s;
}
html[data-theme="dark"] .step .n { color: #1B1305; }
.step:hover .n { transform: scale(1.08); box-shadow: 0 8px 20px -8px rgba(217,130,26,.5); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 9px; }
.step p  { color: var(--muted); font-size: 15px; }
.step::before {
  content: "";
  position: absolute;
  top: 19px;
  inset-inline-start: 52px;
  inset-inline-end: -10px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .9s cubic-bezier(.22,1,.36,1) .5s;
}
html[dir="ltr"] .step::before { transform-origin: 0 50%; }
.step.visible::before { transform: scaleX(1); }
.step:last-child::before { display: none; }

/* =========================================
   AUDIENCE
   ========================================= */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acard {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 36px 30px;
}
.acard:hover {
  border-color: var(--amber);
  transform: translateY(-5px);
  box-shadow: 0 28px 52px -30px rgba(31,26,20,.24);
}
html[data-theme="dark"] .acard:hover { box-shadow: 0 28px 52px -30px rgba(0,0,0,.5); }
.acard .tag {
  font-family: var(--lat);
  direction: ltr;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.acard h3 { font-size: 25px; font-weight: 800; margin: 14px 0 12px; }
.acard p  { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.acard ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.acard li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.acard li::before { content: "✓"; color: var(--amber); font-weight: 700; flex: none; margin-top: 1px; }
.acard a.lnk {
  color: var(--amber);
  font-weight: 700;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  transition: gap .2s, color .2s;
}
.acard a.lnk:hover { gap: 12px; color: var(--amber-deep); }

/* =========================================
   FEATURES
   ========================================= */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.feat { background: var(--bg); padding: 34px 30px; }
.feat .ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--amber-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 22px;
  margin-bottom: 18px;
  transition: background .25s, border-color .25s, transform .25s;
}
.feat:hover .ic { background: var(--amber); color: #fff; transform: scale(1.1) rotate(-4deg); }
html[data-theme="dark"] .feat:hover .ic { color: #1B1305; }
.feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.feat p  { color: var(--muted); font-size: 15px; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 30px;
}
.quote:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -20px rgba(31,26,20,.2);
}
.quote .stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 16px; font-size: 15px; }
.quote p { font-size: 16px; margin-bottom: 22px; line-height: 1.78; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.quote .who b { display: block; font-size: 15px; }
.quote .who small { color: var(--faint); font-size: 13px; }

/* =========================================
   DOWNLOAD CTA
   ========================================= */
.dl {
  background: var(--dl-bg);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.dl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 360px at 86% 16%, rgba(217,130,26,.22), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .dl::before {
  background: radial-gradient(680px 360px at 86% 16%, rgba(244,169,60,.17), transparent 60%);
}
.dl-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.dl-text {
  padding: 64px 0;
  padding-inline-start: 56px;
  color: var(--dl-text);
}
.dl-text .eyebrow { color: var(--amber); }
.dl-text h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 14px 0 16px;
  line-height: 1.16;
  color: #fff;
}
html[data-theme="dark"] .dl-text h2 { color: var(--dl-text); }
.dl-text p { color: var(--dl-muted); font-size: 18px; max-width: 440px; margin-bottom: 30px; }
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dl-store);
  border: 1px solid var(--dl-line);
  border-radius: 14px;
  padding: 12px 20px;
  color: var(--dl-num);
  transition: background .2s, border-color .2s;
}
.store:hover { background: rgba(255,255,255,.14); border-color: var(--amber); }
.store .si {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--amber);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
}
html[data-theme="dark"] .store .si { color: #1B1305; }
.store small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-family: var(--lat);
  direction: ltr;
  letter-spacing: .04em;
}
html[data-theme="dark"] .store small { color: var(--muted); }
.store b { font-size: 15px; font-family: var(--lat); direction: ltr; }
.dl-visual { position: relative; height: 430px; align-self: end; }
.dl-visual .ph {
  position: absolute;
  bottom: 0;
  inset-inline-start: 8%;
  width: 62%;
  height: 100%;
  border-radius: 30px 30px 0 0;
  background: rgba(255,255,255,.07);
}
.dl-visual .ph span { color: rgba(255,255,255,.4); }

/* =========================================
   FAQ
   ========================================= */
.faq { max-width: 820px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  text-align: start;
  font-size: 18px;
  font-weight: 700;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--amber); }
.qa .ic {
  color: var(--amber);
  font-size: 24px;
  flex: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  line-height: 1;
  width: 24px;
  text-align: center;
  font-style: normal;
}
.qa[open] .ic { transform: rotate(45deg); }
/* Height is driven by script.js (details hides closed content entirely,
   so a pure-CSS max-height transition never gets a frame to animate). */
.qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
  color: var(--muted);
  font-size: 16px;
}
.qa .ans p {
  padding: 0 4px 26px;
  line-height: 1.78;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.qa[open]:not(.closing) .ans p { opacity: 1; transform: none; transition-delay: .12s; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 32px;
  margin-top: 10px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 290px; margin: 16px 0 22px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 600;
}
.foot-social a:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: 18px;
  font-family: var(--lat);
  direction: ltr;
  font-weight: 600;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 13px;
  transition: color .2s, padding-inline-start .2s;
}
.foot-col a:hover { color: var(--amber); padding-inline-start: 5px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  color: var(--faint);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
/* =========================================
   REAL IMAGES
   ========================================= */

/* Hero visual background image */
.hero-visual .ph.main {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.38) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}

/* Category image containers */
.cat .img {
  height: 155px;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  background: var(--surface-2);
}
.cat .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease, opacity .5s ease;
}
.cat:hover .img img { transform: scale(1.06); filter: brightness(1.07) saturate(1.05); }

/* Photos fade in once loaded; the surface behind them covers slow/failed loads.
   Hidden only when JS is running (html.js), so no-JS still shows images. */
html.js .cat .img img:not(.loaded),
html.js .quote .who .av:not(.loaded) { opacity: 0; }
.quote .who .av { transition: opacity .5s ease; }

/* App download visual */
.dl-visual .ph {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
  background-position: center top;
}

/* Testimonial avatars */
.quote .who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
  background: var(--surface-2);
}

/* =========================================
   MOBILE MENU
   ========================================= */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--amber); color: var(--amber); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: var(--bg);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 32px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.mobile-menu.open {
  transform: none;
  opacity: 1;
}
.mobile-menu a {
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  display: block;
  transition: color .2s, padding-inline-start .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--amber); padding-inline-start: 6px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 300px; animation: none; }
  .hero-visual .badge { bottom: 12px; inset-inline-end: 12px; }
  .cats  { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .aud   { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-text { padding: 48px 32px; }
  .dl-visual { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
}

@media (max-width: 520px) {
  /* keep brand + controls + menu button on one line; the download CTA
     stays available inside the mobile menu */
  .nav-cta .btn-amber { display: none; }
  .mobile-menu { top: 64px; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  section.block { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .nav { height: 64px; }
  .nav-controls { gap: 6px; }
  .lang-btn { padding: 4px 9px; }
  .theme-btn { width: 32px; height: 32px; }
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
