:root {
  --bg-0: #07080d;
  --bg-1: #0f1117;
  --bg-2: #1a1d2e;
  --border: #2d3148;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-grad: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, 'Segoe UI', Inter, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.bg-gradient {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 212, 255, 0.15), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(67, 56, 202, 0.08), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Topnav */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand svg { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4)); }
.navlinks { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.navlinks a { color: var(--text-muted); transition: color 0.2s; }
.navlinks a:hover { color: var(--text); }
.navlinks .cta-link {
  background: var(--accent-grad);
  color: #07080d; font-weight: 700;
  padding: 8px 16px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}
.navlinks .cta-link:hover { transform: translateY(-1px); color: #07080d; }

/* Language dropdown with flags */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lang-current:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }
.lang-current .flag { font-size: 16px; line-height: 1; }
.lang-current .caret { font-size: 10px; opacity: 0.7; margin-left: 2px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #14161e;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 60;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.lang-menu li:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu li.active { color: var(--accent); }
.lang-menu li .flag { font-size: 18px; line-height: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 0 48px;
  gap: 24px;
  overflow: hidden;
}
.hero-graph {
  position: relative;
  height: calc(100vh - 100px);
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(67, 56, 202, 0.18), transparent 70%);
  border: 1px solid var(--border);
}
.hero-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 13px;
}
.hero-graph canvas { display: block; }

.hero-overlay { padding: 32px 16px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent-grad);
  color: #07080d;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 212, 255, 0.35); color: #07080d; }
.btn-primary.big { font-size: 1.1rem; padding: 18px 36px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.18s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.counters { display: flex; gap: 32px; flex-wrap: wrap; }
.counter { display: flex; flex-direction: column; }
.counter .num { font-size: 1.8rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.counter .lbl { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
}
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}
.muted { color: var(--text-muted); text-align: center; margin-bottom: 32px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: rgba(26, 29, 46, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; font-weight: 800; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.feature {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

.big-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.big-counter {
  background: rgba(26, 29, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.big-counter .num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.big-counter .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; display: block; white-space: nowrap; }
.cta-center { text-align: center; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--bg-1);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a { color: var(--accent); }

/* Scroll-reveal animations — elements fade + slide in as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2 { transition-delay: 0.20s; }
.reveal.delay-3 { transition-delay: 0.30s; }
.reveal.delay-4 { transition-delay: 0.40s; }
.reveal.delay-5 { transition-delay: 0.50s; }
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-left.in-view { transform: translateX(0); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-right.in-view { transform: translateX(0); }
.reveal.scale-in { transform: scale(0.94); }
.reveal.scale-in.in-view { transform: scale(1); }

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

/* Section headings get a subtle slide-up too */
.section h2 { will-change: opacity, transform; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 24px; min-height: auto; }
  .hero-graph { height: 50vh; min-height: 320px; order: 2; }
  .hero-overlay { order: 1; padding: 24px 0; }
  .grid-3, .grid-2, .big-counters { grid-template-columns: 1fr; }
  .topnav { padding: 12px 20px; }
  .navlinks { gap: 14px; font-size: 13px; }
  .navlinks a:not(.cta-link) { display: none; }
  .section { padding: 64px 20px; }
}
