:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --text: #e8eef7;
  --muted: #93a4bd;
  --line: rgba(232, 238, 247, 0.12);
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --sand: #f4efe6;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", "Helvetica Neue", Arial, 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 600px at 10% -10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0e1628 45%, #0b1220 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Top */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn:hover,
.lang-wrap.open .lang-btn {
  border-color: rgba(45, 212, 191, 0.45);
  background: var(--teal-soft);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  max-height: min(60vh, 360px);
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-wrap.open .lang-menu {
  display: grid;
}

.lang-option {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: var(--teal-soft);
  color: var(--teal);
}

/* Geo banner */
.geo {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.08));
}

.geo.hidden {
  display: none;
}

.geo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.geo p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.geo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  font-weight: 750;
  max-width: 12ch;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #5eead4, var(--teal));
  color: #042f2e;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(45, 212, 191, 0.4);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.16), transparent 40%),
    linear-gradient(20deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg-elev);
  min-height: 320px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.35), transparent 55%);
  pointer-events: none;
}

.panel-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.panel-stack {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chip strong {
  font-weight: 650;
}

.chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 56px 0;
}

.section-head {
  max-width: 54ch;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: rgba(18, 26, 43, 0.72);
  min-height: 160px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.license {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.license-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.08), transparent 40%),
    var(--bg-elev);
}

.license-box .note {
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}

.footer-brand:hover {
  opacity: 1;
  color: var(--teal);
}

.footer-brand img {
  height: 16px;
  width: auto;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .nav .hide-sm {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }
}
