:root {
  --bg: #0c111b;
  --bg-elev: #121826;
  --surface: #1a1f2e;
  --surface-2: #222a3d;
  --line: #2c364c;
  --wall: #3d4a63;
  --text: #eceff1;
  --muted: #9aa8b8;
  --accent: #42a5f5;
  --accent-2: #7ad4ff;
  --goal: #4caf50;
  --repel: #ef5350;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --font: "Outfit", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans Arabic",
    system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(66, 165, 245, 0.16), transparent 55%),
    radial-gradient(900px 400px at 0% 20%, rgba(76, 175, 80, 0.08), transparent 50%),
    linear-gradient(180deg, #0c111b 0%, #101726 40%, #0c111b 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(66, 165, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 165, 245, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(12, 17, 27, 0.78);
  border-bottom: 1px solid rgba(66, 165, 245, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(66, 165, 245, 0.35), 0 0 18px rgba(66, 165, 245, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  text-decoration: none;
}

.lang-select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa8b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff, #7ad4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #5bb6ff, #2b8de8);
  color: #071018;
  box-shadow: 0 10px 24px rgba(66, 165, 245, 0.35);
}

.btn-ghost {
  background: rgba(26, 31, 46, 0.7);
  color: var(--text);
  border-color: var(--line);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(420px, 100%);
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 80px rgba(66, 165, 245, 0.22);
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.28), transparent 70%);
  z-index: -1;
  filter: blur(12px);
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px auto 56px;
  text-align: center;
}

.stat {
  background: rgba(26, 31, 46, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-2);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: 20px 0 64px;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section .lead {
  margin-bottom: 28px;
}

.steps,
.features {
  display: grid;
  gap: 16px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(34, 42, 61, 0.8), rgba(26, 31, 46, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 100%;
}

.card .icon {
  width: fit-content;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  margin-bottom: 14px;
  background: rgba(66, 165, 245, 0.12);
  color: var(--accent-2);
}

.card.pull .icon { background: rgba(66, 165, 245, 0.16); color: var(--accent); }
.card.push .icon { background: rgba(239, 83, 80, 0.16); color: var(--repel); }
.card.goal .icon { background: rgba(76, 175, 80, 0.16); color: var(--goal); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.download {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  min-height: 280px;
  display: grid;
  align-items: end;
}

.download img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.download .overlay {
  position: relative;
  padding: 36px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 20, 0.92));
}

.download h2,
.download p {
  max-width: 46ch;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-page {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 28px;
}

.legal-page section {
  background: rgba(26, 31, 46, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-page ul {
  padding-inline-start: 1.2em;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .steps,
  .features,
  .stats {
    grid-template-columns: 1fr;
  }

  .nav .hide-sm {
    display: none;
  }

  .hero {
    padding-top: 28px;
    text-align: start;
  }
}

html[dir="rtl"] .lang-select {
  background-position: left 10px center;
  padding: 8px 12px 8px 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
