:root {
  --bg: #fafafa;
  --bg-dark: #0c0c12;
  --surface: #ffffff;
  --text: #18181f;
  --muted: #5c5c6f;
  --line: rgba(24, 24, 31, 0.08);
  --brand: #6366f1;
  --brand-2: #a855f7;
  --accent: #f97316;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(99, 102, 241, 0.12);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; flex: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.22);
}

.nav-main { display: flex; align-items: center; gap: 28px; }
.nav-main a {
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
}
.nav-main a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600;
}
.lang-switch a {
  padding: 6px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none;
}
.lang-switch a[aria-current="page"] {
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand);
}
.lang-switch span { color: var(--line); user-select: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(99, 102, 241, 0.4); }

.menu-toggle {
  display: none;
  background: none; border: none; padding: 8px; cursor: pointer;
}

.hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark);
  color: #f4f4f8;
  padding: 88px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99, 102, 241, 0.45), transparent),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(168, 85, 247, 0.35), transparent),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(249, 115, 22, 0.15), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #c4c4d4;
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0 0 32px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #a8a8b8;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats dt { font-size: 1.75rem; font-weight: 700; color: #fff; }
.hero-stats dd { margin: 4px 0 0; font-size: 0.88rem; color: #8888a0; }

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.hero-card {
  background: rgba(19, 19, 26, 0.9);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-card h3 { margin: 0 0 12px; font-size: 0.9rem; color: #9090a8; font-weight: 600; }
.tick-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}
.tick-row:last-child { border-bottom: 0; }
.tick-row .up { color: #4ade80; font-weight: 600; }
.tick-row .sym { font-weight: 600; color: #eee; }

section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, border-color 0.2s;
}
section.alt .feature { background: var(--bg); }
.feature:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.12));
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 10px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.market-pill {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}
section.alt .market-pill { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 10px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cta-band {
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(135deg, #13131a 0%, #1e1e2e 100%);
  color: #eee;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { margin: 0 0 28px; color: #9898a8; max-width: 520px; margin-inline: auto; }

.site-footer {
  padding: 48px 0 32px;
  background: #0a0a0f;
  color: #8888a0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer h4 { margin: 0 0 14px; color: #ccc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #8888a0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .features, .steps { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(250, 250, 250, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav-main { display: flex; }
  .nav-main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-main .btn { margin-top: 12px; width: 100%; }
  .lang-switch { margin-left: auto; }
}
