:root,
[data-theme="light"] {
  --ink: #071428;
  --ink-soft: #31465f;
  --paper: #eef5fb;
  --paper-2: #e3eef7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --brand: #062b63;
  --brand-deep: #021743;
  --accent: #0f8a9a;
  --accent-bright: #2bb7c9;
  --line: rgba(6, 43, 99, 0.12);
  --shadow: 0 22px 50px rgba(2, 23, 67, 0.14);
  --hero-text: #f5fbff;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --mesh-a: rgba(43, 183, 201, 0.28);
  --mesh-b: rgba(6, 43, 99, 0.18);
  --header-bg: rgba(238, 245, 251, 0.72);
  --footer-text: #31465f;
  --contact-grad: linear-gradient(135deg, #021743, #062b63 55%, #0c6f7d);
  --achieve-bg: #021743;
  --font-fa: "Vazirmatn", "Tahoma", sans-serif;
  --font-en: "Manrope", "Segoe UI", sans-serif;
  --header-h: 74px;
  --radius: 18px;
}

[data-theme="dark"] {
  --ink: #e8f1ff;
  --ink-soft: #b7c7dc;
  --paper: #07111f;
  --paper-2: #0c1a2e;
  --surface: rgba(14, 28, 48, 0.72);
  --surface-strong: rgba(16, 32, 54, 0.92);
  --brand: #8ec8e8;
  --brand-deep: #d7ebf7;
  --accent: #2bb7c9;
  --accent-bright: #57c9d7;
  --line: rgba(142, 200, 232, 0.16);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  --hero-text: #f5fbff;
  --chip-bg: rgba(12, 26, 46, 0.75);
  --mesh-a: rgba(43, 183, 201, 0.22);
  --mesh-b: rgba(70, 120, 220, 0.18);
  --header-bg: rgba(7, 17, 31, 0.72);
  --footer-text: #b7c7dc;
  --contact-grad: linear-gradient(135deg, #081527, #0d2744 55%, #0d5562);
  --achieve-bg: #0a1830;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-fa);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

html[lang="en"] body { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { max-width: 100%; display: block; }

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% -10%, var(--mesh-a), transparent 60%),
    radial-gradient(800px 480px at 90% 10%, var(--mesh-b), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 43, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 43, 99, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  opacity: 0.7;
}

[data-theme="dark"] .bg-mesh {
  background-image:
    linear-gradient(rgba(142, 200, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 232, 0.05) 1px, transparent 1px);
}

.bg-aurora {
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}

.bg-aurora--a {
  top: -10%;
  inset-inline-start: -8%;
  background: var(--mesh-a);
}

.bg-aurora--b {
  bottom: 5%;
  inset-inline-end: -10%;
  background: var(--mesh-b);
  animation-delay: -5s;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.header-inner,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-inner {
  height: 100%;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-bright), #062b63);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-name {
  font-size: 1.25rem;
  color: var(--brand-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.93rem;
}

.nav a:hover { color: var(--brand); }

.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #062b63;
  color: #fff !important;
}

[data-theme="dark"] .nav-cta {
  background: var(--accent);
  color: #042033 !important;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
  transition: 0.2s ease;
}

.chip-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 183, 201, 0.45);
}

.chip-icon { font-size: 1rem; line-height: 1; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(2, 23, 67, 0.92), rgba(8, 70, 90, 0.78));
  color: var(--hero-text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-brand {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.4;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: rgba(245, 251, 255, 0.86);
  max-width: 40ch;
}

.hero-actions,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-pills {
  margin-top: 1.2rem;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.86rem;
}

.hero-panel .panel-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--brand-deep);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mini-tile {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(6, 43, 99, 0.06);
  border: 1px solid var(--line);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}

[data-theme="dark"] .mini-tile {
  background: rgba(142, 200, 232, 0.08);
}

.panel-flow {
  margin: 1rem 0 0.7rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  font-size: 1.15rem;
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-bright);
  color: #042033;
  box-shadow: 0 10px 24px rgba(43, 183, 201, 0.28);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}

.section { padding: 5rem 0; position: relative; z-index: 1; }

.section-alt {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

.section-head { max-width: 680px; margin-bottom: 2rem; }

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-weight: 700;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--brand-deep);
  line-height: 1.35;
}

.section-copy p,
.section-head p,
.feature p,
.core-card p,
.module p,
.why-card p {
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.stat-panel,
.feature,
.core-card,
.module,
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.stat-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-deep);
}

.feature-grid,
.core-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature,
.core-card,
.why-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  transition: 0.25s ease;
}

.feature:hover,
.core-card:hover,
.why-card:hover,
.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.icon-badge.lg {
  width: 50px;
  height: 50px;
  font-size: 1.45rem;
}

.feature h3,
.core-card h3,
.module h3,
.why-card h3 {
  margin: 0 0 0.45rem;
  color: var(--brand-deep);
  font-size: 1.08rem;
}

.core-index {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-weight: 800;
}

.module-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.module {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  transition: 0.25s ease;
}

.module-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.why-grid { grid-template-columns: repeat(4, 1fr); }

.why-card span {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.achieve-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.achieve {
  min-height: 160px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--achieve-bg);
  color: #eef7ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.achieve::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(43, 183, 201, 0.2);
  top: -45px;
  inset-inline-end: -35px;
}

.achieve-ico,
.achieve strong,
.achieve span { position: relative; }

.achieve-ico { font-size: 1.5rem; margin-bottom: 0.4rem; }
.achieve span { color: rgba(238, 247, 255, 0.75); font-size: 0.92rem; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.6rem;
  border-radius: 28px;
  background: var(--contact-grad);
  color: #f4fbff;
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-panel .eyebrow { color: #fff; }
.contact-panel p { color: rgba(244, 251, 255, 0.84); }

.contact-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.45rem;
}

.site-link {
  color: var(--accent-bright);
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-bright);
}

.form-note { margin: 0; color: #9be7f0; }

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.page-article {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.page-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.rich-content img,
.rich-content video {
  max-width: 100%;
  border-radius: 14px;
  margin: 0.8rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  color: var(--footer-text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -20px, 0) scale(1.08); }
}

@media (max-width: 980px) {
  .hero-layout,
  .split,
  .feature-grid,
  .core-grid,
  .module-list,
  .why-grid,
  .achieve-row,
  .contact-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 6px);
    inset-inline: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0.8rem; border-radius: 10px; }
  .nav-cta { text-align: center; }

  .hero-layout,
  .split,
  .feature-grid,
  .core-grid,
  .module-list,
  .why-grid,
  .achieve-row,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .chip-btn span:not(.chip-icon) {
    display: none;
  }

  .section { padding: 3.5rem 0; }
}
