:root {
  --green: #087b6b;
  --green-dark: #075b50;
  --green-soft: #e9f5f1;
  --mint: #d7efe7;
  --ink: #132d2a;
  --text: #415b57;
  --border: #dce8e4;
  --off-white: #fbfcf9;
  --card: #ffffff;
  --shadow: 0 16px 48px rgba(12, 63, 55, .10);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.85;
  overflow-x: hidden;
}

body[data-theme="dark"] {
  --green: #35c5b0;
  --green-dark: #d8fff8;
  --green-soft: #123c35;
  --mint: #10231f;
  --ink: #f6fffc;
  --text: #c5d4d0;
  --border: #263b37;
  --off-white: #050807;
  --card: #0b1513;
  --shadow: 0 20px 52px rgba(0,0,0,.36);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1160px, calc(100% - 42px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  inset-inline-start: 20px;
  top: -60px;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,252,249,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,232,228,.8);
}
body[data-theme="dark"] .site-header {
  background: rgba(5,8,7,.94);
  border-bottom-color: var(--border);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  white-space: nowrap;
}
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8,123,107,.13);
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; font-size: 1.22rem; line-height: 1.1; color: var(--green-dark); }
.brand small { display: block; font-size: .72rem; color: var(--text); line-height: 1.3; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
  font-weight: 700;
}
.main-nav a:hover { color: var(--green); }

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

.language-dropdown { position: relative; z-index: 80; }
.language-button,
.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .16s ease;
}
.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-menu button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  padding: 9px 12px;
  border-radius: 11px;
  font-weight: 800;
}
.language-menu button.active,
.language-menu button:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.hero {
  overflow: hidden;
  padding: 78px 0 88px;
  background:
    radial-gradient(circle at 78% 14%, #d9f2ea 0, transparent 33%),
    linear-gradient(180deg,#fbfcf9 0%,#f5f9f6 100%);
}
body[data-theme="dark"] .hero {
  background: #050807;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  align-items: center;
  min-height: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: .94rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 4px;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 4.8vw, 4rem);
  line-height: 1.25;
  letter-spacing: -.055em;
  max-width: 720px;
}
.hero p {
  color: var(--text);
  font-size: 1.08rem;
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}
.hero-badges span {
  background: var(--card);
  color: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(18,45,42,.04);
}

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

.btn {
  min-height: 54px;
  padding: 12px 27px;
  border-radius: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}
.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 25px rgba(8,123,107,.20);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--green-dark); }
body[data-theme="dark"] .btn-primary {
  color: #061b18;
}
.btn-secondary {
  background: var(--card);
  color: var(--green-dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--green); transform: translateY(-1px); }

.hero-visual {
  position: relative;
  height: 520px;
  isolation: isolate;
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(.2px);
}
.orb-a {
  width: 430px;
  height: 430px;
  inset: 42px 8% auto auto;
  background: linear-gradient(145deg, var(--mint), #f8fffc);
  z-index: -2;
}
.orb-b {
  width: 190px;
  height: 190px;
  left: 8%;
  bottom: 36px;
  background: rgba(8,123,107,.10);
  z-index: -3;
}
body[data-theme="dark"] .orb-a {
  background: #0b1513;
  border: 1px solid var(--border);
}
body[data-theme="dark"] .orb-b { background: rgba(53,197,176,.12); }

.large-logo {
  position: absolute;
  width: 190px;
  height: 190px;
  object-fit: contain;
  top: 160px;
  right: 50%;
  transform: translateX(50%);
  filter: drop-shadow(0 24px 34px rgba(18,45,42,.14));
  border-radius: 42px;
}
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 17px;
  font-weight: 900;
  color: var(--ink);
}
.floating-card img { width: 54px; height: 54px; object-fit: contain; }
.telegram-float { top: 72px; right: 16%; }
.rubika-float { bottom: 78px; left: 6%; }

.social-section {
  padding: 92px 0;
  background: var(--card);
}
body[data-theme="dark"] .social-section { background: #050807; }

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.4;
  margin-bottom: 11px;
}
.section-heading p { color: var(--text); margin-bottom: 0; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
.social-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 22px;
  align-items: center;
  min-height: 248px;
  box-shadow: 0 12px 32px rgba(12,63,55,.05);
  transition: .2s ease;
}
body[data-theme="dark"] .social-card {
  background: #0b1513;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.social-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  inset-inline-end: -74px;
  bottom: -100px;
  background: rgba(8,123,107,.08);
}
.social-card.telegram::after { background: rgba(34,158,217,.10); }
.social-card.rubika::after { background: rgba(8,123,107,.10); }

.icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid var(--border);
}
.icon-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.platform-label {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--green);
  font-weight: 900;
  font-size: .85rem;
}
.social-card h3 {
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.social-card p {
  color: var(--text);
  direction: ltr;
  text-align: start;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.card-button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 13px;
  padding: 9px 18px;
  font-weight: 900;
}
body[data-theme="dark"] .card-button { color: #061b18; }

.contact-strip {
  padding: 0 0 86px;
  background: var(--card);
}
body[data-theme="dark"] .contact-strip { background: #050807; }
.contact-inner {
  border-radius: 30px;
  background: var(--green);
  color: #fff;
  padding: 42px 52px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
body[data-theme="dark"] .contact-inner {
  background: #0b1513;
  border: 1px solid var(--border);
}
.contact-inner h2 { font-size: 1.5rem; margin-bottom: 4px; }
.contact-inner p { margin-bottom: 0; color: #d6eee8; }
.contact-inner .btn-primary {
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
  color: var(--text);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
}
.footer strong { color: var(--ink); font-size: 1.08rem; }
.footer p { margin: 4px 0 0; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 800;
}
.footer nav a:hover { color: var(--green); }

html[dir="ltr"] .hero h1,
html[dir="ltr"] .section-heading h2 {
  letter-spacing: -.035em;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { height: 390px; max-width: 600px; width: 100%; margin: 0 auto; }
  .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: 100%; padding-inline: 15px; }
  .nav {
    min-height: 66px;
    gap: 8px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .brand strong { font-size: 1rem; }
  .brand small { display: none; }
  .header-actions { gap: 6px; }
  .language-button,
  .theme-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .language-current,
  .theme-label { display: none; }
  .language-menu { min-width: 132px; }
  .hero { padding: 38px 0 54px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.45rem); }
  .hero p { font-size: .96rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-visual { height: 318px; }
  .orb-a {
    width: 270px;
    height: 270px;
    inset: 32px 50%;
    transform: translateX(50%);
  }
  .large-logo {
    width: 118px;
    height: 118px;
    top: 112px;
  }
  .floating-card {
    min-width: 172px;
    padding: 12px;
    border-radius: 18px;
    font-size: .9rem;
  }
  .floating-card img { width: 40px; height: 40px; }
  .telegram-float { top: 36px; right: 7px; }
  .rubika-float { bottom: 42px; left: 7px; }
  .social-section { padding: 62px 0; }
  .social-card {
    grid-template-columns: 1fr;
    text-align: center;
    place-items: center;
    padding: 24px 18px;
    min-height: auto;
  }
  .social-card p { text-align: center; }
  .card-button { width: 100%; }
  .contact-strip { padding-bottom: 54px; }
  .contact-inner {
    padding: 28px 18px;
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .brand strong { font-size: .92rem; }
  .brand-mark { width: 34px; height: 34px; }
}


/* V6: move Telegram/Rubika cards into the hero visual area and stack vertically */
.hero-visual {
  height: auto;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-social-stack {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  position: relative;
}

.hero-social-stack::before {
  content: "";
  position: absolute;
  inset: -54px -34px;
  border-radius: 42px;
  background: radial-gradient(circle at 70% 20%, rgba(8,123,107,.16), transparent 38%),
              linear-gradient(145deg, rgba(215,239,231,.72), rgba(255,255,255,.28));
  z-index: -1;
  filter: blur(.2px);
}

body[data-theme="dark"] .hero-social-stack::before {
  background: #0b1513;
  border: 1px solid var(--border);
}

.hero-social-card {
  min-height: 188px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

body[data-theme="dark"] .hero-social-card {
  background: #0b1513;
}

.hero-social-card .card-button {
  grid-column: 2;
  align-self: start;
}

.hero-social-card .icon-wrap {
  width: 86px;
  height: 86px;
}

.hero-social-card .icon-wrap img {
  width: 62px;
  height: 62px;
}

/* The old decorative hero elements are no longer used. */
.orb,
.large-logo,
.floating-card {
  display: none !important;
}

.social-section {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-visual {
    min-height: auto;
    height: auto;
    max-width: 100%;
    margin-top: 34px;
  }

  .hero-social-stack {
    width: 100%;
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .hero-social-stack::before {
    inset: -24px -8px;
    border-radius: 30px;
  }

  .hero-social-card {
    grid-template-columns: 68px minmax(0,1fr);
    text-align: start;
    place-items: initial;
    min-height: auto;
    gap: 14px;
    padding: 18px;
  }

  .hero-social-card .icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .hero-social-card .icon-wrap img {
    width: 48px;
    height: 48px;
  }

  .hero-social-card .card-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-social-card p {
    text-align: start;
    margin-bottom: 12px;
  }
}
