:root {
  --bg: #0b1020;
  --bg-soft: #121a31;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: #ffffff;
  --text: #eaf0ff;
  --text-dark: #122033;
  --muted: #aab7d1;
  --primary: #4f7cff;
  --primary-dark: #2d5ff5;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(95, 230, 197, 0.12), transparent 25%),
    linear-gradient(180deg, #09101f 0%, #10192e 100%);
  color: var(--text);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

.lang-hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Tahoma, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(95, 230, 197, 0.12), transparent 25%),
    linear-gradient(180deg, #09101f 0%, #10192e 100%);
  color: var(--text);
  line-height: 1.7;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 22, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #73a2ff);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(79, 124, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  min-width: 64px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px auto;
  border-radius: 20px;
}

.hero {
  padding: 88px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.14);
  color: #bdd0ff;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
}

.hero-actions,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 14px 30px rgba(79, 124, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-card,
.feature-panel,
.card,
.app-card,
.content-box,
.support-card,
.cta-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 24px;
}

.hero-stat + .hero-stat {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stat strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-stat span {
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-heading h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 14px;
}

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

.cards-grid,
.apps-grid,
.support-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

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

.support-grid,
.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.app-card,
.support-card,
.content-box {
  padding: 26px;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(79, 124, 255, 0.14);
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3,
.app-card h2,
.content-box h2,
.support-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.card p,
.app-card p,
.content-box p,
.support-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.app-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(95, 230, 197, 0.12);
  color: #b9fff0;
  font-size: 12px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-panel {
  padding: 26px;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row:last-child {
  border-bottom: none;
}

.cta-section {
  padding-top: 20px;
  padding-bottom: 90px;
}

.cta-box {
  padding: 36px;
  text-align: center;
}

.cta-box h2 {
  margin-top: 0;
  font-size: clamp(28px, 5vw, 40px);
}

.cta-box p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 24px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 72px 0 22px;
}

.site-footer {
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-align: center;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand-text {
  text-align: right;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .app-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .feature-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-grid,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .cta-box {
  text-align: right;
}

html[dir="rtl"] .site-nav {
  direction: rtl;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .cards-grid,
  .apps-grid,
  .support-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(9, 16, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .app-actions {
    flex-direction: column;
  }

  .cta-box,
  .card,
  .app-card,
  .content-box,
  .support-card,
  .hero-card,
  .feature-panel {
    padding: 22px;
  }
}
