/* =========================================================
   LATAMX TRADE — Design system (tokens, base, components, pages)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: hsl(222 47% 6%);
  --bg-2: hsl(222 40% 9%);
  --surface: hsl(222 35% 12%);
  --surface-2: hsl(222 32% 16%);
  --border: hsl(222 25% 22% / .7);
  --text: hsl(210 40% 97%);
  --muted: hsl(215 20% 68%);
  --accent: hsl(152 78% 46%);
  --accent-2: hsl(172 80% 42%);
  --accent-ink: hsl(160 90% 6%);
  --up: hsl(152 78% 50%);
  --down: hsl(352 85% 62%);
  --gold: hsl(42 95% 60%);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-text: linear-gradient(120deg, hsl(152 90% 62%), hsl(185 90% 60%));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px hsl(0 0% 0% / .6);
  --font-en: 'Inter', system-ui, sans-serif;
  --font-head-en: 'Outfit', 'Inter', sans-serif;
  --font-ar: 'Cairo', system-ui, sans-serif;
  --font: var(--font-en);
  --font-head: var(--font-head-en);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] { --font: var(--font-ar); --font-head: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--muted); }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: hsl(152 78% 46% / .1); border: 1px solid hsl(152 78% 46% / .25);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 16px;
}
html[lang="ar"] .eyebrow, html[lang="ar"] .lang-title { letter-spacing: 0; text-transform: none; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.up { color: var(--up); } .down { color: var(--down); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
  border-radius: 99px; font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 8px 30px -8px hsl(152 78% 46% / .6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px -8px hsl(152 78% 46% / .75); }
.btn-ghost { border: 1px solid var(--border); background: hsl(0 0% 100% / .03); }
.btn-ghost:hover { background: hsl(0 0% 100% / .08); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px) saturate(1.4);
  background: hsl(222 47% 6% / .72); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head-en); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; }
.logo svg, .logo .logo-icon { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid hsl(152 78% 46% / .3); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: hsl(0 0% 100% / .06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 99px; font-weight: 600; font-size: .85rem; transition: .2s; white-space: nowrap;
}
.lang-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.burger span, .burger::before, .burger::after { content: ''; position: absolute; inset-inline: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger::before { top: 14px; } .burger span { top: 20px; } .burger::after { top: 26px; }
.burger.open::before { top: 20px; transform: rotate(45deg); } .burger.open::after { top: 20px; transform: rotate(-45deg); } .burger.open span { opacity: 0; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; direction: ltr; }
.ticker-track { display: flex; gap: 44px; width: max-content; padding: 11px 0; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.tick b { font-family: var(--font-head-en); }
.tick .px { color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero */
.hero { padding: clamp(50px, 8vw, 100px) 0 80px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(110px); z-index: 0; pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: hsl(152 78% 46% / .22); top: -140px; inset-inline-start: -120px; animation: float 12s ease-in-out infinite; }
.hero::after { width: 460px; height: 460px; background: hsl(200 90% 50% / .16); bottom: -120px; inset-inline-end: -80px; animation: float 15s ease-in-out infinite reverse; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero p.lead { font-size: 1.15rem; margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { font-size: .85rem; color: var(--muted); }
.hero-trust b { display: block; font-family: var(--font-head-en); font-size: 1.5rem; color: var(--text); }
.hero-visual { position: relative; }
.hero-visual img.main { border-radius: 32px; box-shadow: var(--shadow), 0 0 80px -20px hsl(152 78% 46% / .5); animation: float 9s ease-in-out infinite; }
.float-card {
  position: absolute; background: hsl(222 35% 14% / .8); backdrop-filter: blur(16px); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  direction: ltr;
}
.float-card.a { top: 8%; inset-inline-start: -6%; animation: float 7s ease-in-out infinite; }
.float-card.b { bottom: 10%; inset-inline-end: -4%; animation: float 8s ease-in-out infinite reverse; }
.float-card .meta small { display: block; color: var(--muted); font-size: .72rem; }
.float-card .meta b { font-family: var(--font-head-en); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Coin icon */
.coin {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .72rem;
  font-family: var(--font-head-en); color: #fff; flex-shrink: 0;
}

/* Cards / Markets */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; margin-bottom: 30px; flex-wrap: wrap; }
.tab { padding: 9px 22px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: .25s; }
.tab.active { background: var(--grad); color: var(--accent-ink); }
.tab:not(.active):hover { color: var(--text); }
.market-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mcard {
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; cursor: pointer; direction: ltr; text-align: left;
}
html[lang="ar"] .mcard { direction: rtl; text-align: right; }
.mcard:hover { transform: translateY(-6px); border-color: hsl(152 78% 46% / .5); box-shadow: 0 20px 40px -20px hsl(152 78% 46% / .4); }
.mcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mcard-top h4 { font-size: 1rem; font-family: var(--font-head-en); } .mcard-top small { color: var(--muted); font-size: .8rem; }
.mcard-px { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; direction: ltr; }
.mcard-px b { font-family: var(--font-head-en); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.chg { font-weight: 600; font-size: .88rem; padding: 3px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.chg.up { background: hsl(152 78% 46% / .12); } .chg.down { background: hsl(352 85% 62% / .12); }
.spark { width: 100%; height: 54px; display: block; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); height: 170px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.flash-up { animation: flashU .8s; } .flash-down { animation: flashD .8s; }
@keyframes flashU { 0% { color: var(--up); } } @keyframes flashD { 0% { color: var(--down); } }

/* Table */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; direction: ltr; }
table.mtable { width: 100%; border-collapse: collapse; min-width: 640px; }
.mtable th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.mtable td { padding: 14px 20px; border-bottom: 1px solid hsl(222 25% 22% / .4); font-variant-numeric: tabular-nums; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable tbody tr { cursor: pointer; transition: background .2s; }
.mtable tbody tr:hover { background: hsl(0 0% 100% / .04); }
.mtable .asset { display: flex; align-items: center; gap: 12px; }
.mtable .asset b { display: block; font-family: var(--font-head-en); } .mtable .asset small { color: var(--muted); }
.mtable .spark { width: 110px; height: 34px; }
.mtable td.num, .mtable th.num { text-align: right; }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: .35s var(--ease); position: relative; overflow: hidden;
}
.fcard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), hsl(152 78% 46% / .12), transparent 60%); opacity: 0; transition: .3s; }
.fcard:hover::before { opacity: 1; } .fcard:hover { transform: translateY(-6px); border-color: hsl(152 78% 46% / .4); }
.ficon { width: 54px; height: 54px; border-radius: 16px; background: hsl(152 78% 46% / .12); display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); }
.ficon svg { width: 26px; height: 26px; }
.fcard p { margin-top: 10px; font-size: .95rem; position: relative; }

/* Traders */
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .35s var(--ease); }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard-head { display: flex; align-items: center; gap: 14px; }
.tcard-head img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.tcard-head small { color: var(--muted); }
.tgain { font-family: var(--font-head-en); font-size: 2.2rem; font-weight: 800; margin: 20px 0 4px; direction: ltr; text-align: start; }
.tstats { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); margin-top: 14px; font-size: .85rem; color: var(--muted); }
.tstats b { color: var(--text); display: block; font-family: var(--font-head-en); }
.risk { display: flex; gap: 3px; margin-top: 4px; }
.risk i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface-2); } .risk i.on { background: var(--gold); }
.tcard .btn { width: 100%; margin-top: 8px; }

/* Stats band */
.stats-band { background: linear-gradient(135deg, hsl(152 78% 46% / .12), hsl(200 90% 50% / .08)); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-family: var(--font-head-en); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--radius); border: 1px dashed var(--border); position: relative; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: var(--accent-ink); font-weight: 800; font-family: var(--font-head-en); margin-bottom: 16px; }
.step p { margin-top: 8px; }

/* Education */
.ecard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s var(--ease); display: flex; flex-direction: column; }
.ecard:hover { transform: translateY(-6px); border-color: hsl(152 78% 46% / .4); }
.ecard-art { height: 130px; display: grid; place-items: center; font-size: 3rem; }
.ecard-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ecard-body .tag { font-size: .75rem; color: var(--accent); font-weight: 600; }
.ecard-body .more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: hsl(152 78% 46% / .45); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.02rem; text-align: start; }
.faq-q .pm { width: 28px; height: 28px; border-radius: 50%; background: hsl(152 78% 46% / .12); position: relative; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: .3s; }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; }

/* CTA */
.cta { text-align: center; padding: clamp(50px, 7vw, 90px) 24px; border-radius: 32px; background: radial-gradient(800px circle at 50% 0%, hsl(152 78% 46% / .25), transparent 60%), linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); }
.cta p { max-width: 560px; margin: 16px auto 30px; }

/* Page header */
.page-hero { padding: 70px 0 30px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 600px; height: 300px; background: hsl(152 78% 46% / .18); filter: blur(120px); top: -100px; left: 50%; transform: translateX(-50%); }
.page-hero > * { position: relative; }
.page-hero p { max-width: 620px; margin: 16px auto 0; font-size: 1.1rem; }

/* Prose */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; } .prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-inline-start: 22px; color: var(--muted); margin-bottom: 14px; display: grid; gap: 6px; }
.warn-box { background: hsl(42 95% 60% / .08); border: 1px solid hsl(42 95% 60% / .35); border-radius: var(--radius-sm); padding: 18px 22px; color: hsl(42 90% 78%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px hsl(152 78% 46% / .15); }
.field textarea { min-height: 130px; resize: vertical; }
.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 70px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: .95rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; } .footer li a { color: var(--muted); font-size: .92rem; transition: .2s; } .footer li a:hover { color: var(--accent); }
.footer .about p { margin-top: 14px; max-width: 320px; font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: .25s; }
.socials a:hover { color: var(--accent-ink); background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.risk-warning { margin-top: 44px; padding: 20px 24px; border-radius: var(--radius-sm); background: hsl(0 0% 100% / .03); border: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.risk-warning b { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 26px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: hsl(222 47% 4% / .75); backdrop-filter: blur(8px); padding: 20px; }
.modal.open { display: grid; animation: fade .25s; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; width: min(860px, 100%); padding: 28px; position: relative; box-shadow: var(--shadow); animation: pop .35s var(--ease); max-height: 92vh; overflow: auto; }
.modal-box.small { width: min(440px, 100%); text-align: center; }
.modal-box.lang-box { width: min(760px, 100%); padding: 38px 40px 42px; }
.lang-title {
  text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 30px;
}
.lang-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.lang-col { display: flex; flex-direction: column; gap: 4px; padding-inline: 26px; }
.lang-col:first-child { padding-inline-start: 0; }
.lang-col:last-child { padding-inline-end: 0; }
.lang-col + .lang-col { border-inline-start: 1px solid var(--border); }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: start;
  padding: 9px 12px; border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--text); transition: background .18s, color .18s;
}
.lang-opt:hover { background: hsl(0 0% 100% / .06); color: var(--accent); }
.lang-opt.active { background: hsl(152 78% 46% / .14); color: var(--accent); font-weight: 700; }
.lang-opt.active::after { content: '✓'; font-size: .9rem; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); font-size: 1.2rem; transition: .2s; }
.modal-close:hover { background: var(--down); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; padding-inline-end: 50px; direction: ltr; }
.chart-head .px { font-family: var(--font-head-en); font-size: 2rem; font-weight: 800; }
.ranges { display: flex; gap: 6px; }
.ranges button { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); font-size: .82rem; font-weight: 600; transition: .2s; }
.ranges button.active, .ranges button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#chart-box { height: 360px; direction: ltr; }
.chart-note { font-size: .75rem; margin-top: 10px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links { position: fixed; top: 72px; inset-inline: 0; flex-direction: column; background: var(--bg); padding: 16px 4%; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .4s var(--ease); z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { transform: scale(.85); }
  .float-card.a { inset-inline-start: 0; } .float-card.b { inset-inline-end: 0; }
  .hero-cta .btn { flex: 1; }
  .modal-box.lang-box { padding: 30px 22px; }
  .lang-cols { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .lang-col { padding-inline: 0; }
  .lang-col + .lang-col { border-inline-start: 0; }
}
@media (max-width: 440px) {
  .lang-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
