:root {
  --navy: #061525;
  --navy-2: #0a1d36;
  --navy-3: #102848;
  --ink: #102033;
  --paper: #f3f7fc;
  --paper-2: #ffffff;
  --gold: #1e74e8;
  --gold-2: #4da6ff;
  --blue: #1e74e8;
  --blue-2: #4da6ff;
  --muted: #8b95a8;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(16, 32, 51, 0.1);
  --shadow: 0 24px 60px rgba(6, 21, 37, 0.28);
  --radius: 22px;
  --header: 52px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--navy);
  color: #e8edf6;
  line-height: 1.9;
  font-size: 16px;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 80;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(30, 116, 232, 0.32), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(77, 166, 255, 0.16), transparent 50%),
    var(--navy);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  backdrop-filter: blur(18px);
  background: rgba(6, 21, 37, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 21, 37, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
}

.brand strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
}

.brand small {
  color: var(--gold-2);
  font-size: 11px;
  line-height: 1.15;
}

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

.site-nav ul {
  display: flex;
  gap: 6px;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d5dceb;
  font-size: 14px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 1.5px;
  background: #fff;
  transition: 0.25s;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-toggle.is-open span:nth-child(2) { opacity: 0; }

.nav-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

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

.btn-gold {
  background: linear-gradient(180deg, #4da6ff, #1e74e8);
  color: #fff;
}

.header-cta {
  min-height: 32px;
  padding-inline: 14px;
  font-size: 13px;
}

.phone {
  direction: ltr;
  unicode-bidi: isolate;
}

.btn-ghost {
  border-color: var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  padding: 48px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 20%, var(--gold-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 62ch;
  color: #c5cedd;
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta b {
  display: block;
  font-size: 28px;
  color: #fff;
}

.hero-meta span {
  color: var(--muted);
  font-size: 13px;
}

.orb {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orb-ring,
.orb-track {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-ring:nth-child(1),
.orb-track:nth-child(4) {
  inset: 6%;
}

.orb-ring:nth-child(2),
.orb-track:nth-child(5) {
  inset: 16%;
}

.orb-ring:nth-child(3),
.orb-track:nth-child(6) {
  inset: 26%;
}

.orb-ring {
  border: 1px solid rgba(77, 166, 255, 0.35);
}

.orb-ring:nth-child(2) {
  border-color: rgba(122, 167, 255, 0.4);
}

.orb-ring:nth-child(3) {
  border-style: dashed;
}

.orb-track {
  animation: spin 14s linear infinite;
}

.orb-track:nth-child(5) {
  animation: spin-reverse 10s linear infinite;
}

.orb-track:nth-child(6) {
  animation: spin 7s linear infinite;
  animation-delay: -2.4s;
}

.orb-track .dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(77, 166, 255, 0.16);
}

.orb-track:nth-child(5) .dot {
  background: var(--blue);
}

.orb-track:nth-child(6) .dot {
  background: var(--blue-2);
}

.orb-core {
  position: absolute;
  inset: 34%;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.orb-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(120deg); }
  to { transform: rotate(-240deg); }
}

.section {
  padding: 84px 0;
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-paper .kicker,
.section-paper .tag {
  color: var(--blue);
}

.section-paper .kicker::before {
  background: var(--blue);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2,
.page-hero h1,
.product-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.section-paper .section-head p,
.section-paper .muted {
  color: #5d6677;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 166, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.card.span-6 { grid-column: span 6; }
.card.span-4 { grid-column: span 4; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }

.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 12px;
}

.card {
  position: relative;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
}

.card p {
  margin: 0 0 16px;
  color: #c2cad8;
}

.card-link {
  color: var(--gold-2);
  font-weight: 600;
}

.paper-card {
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.paper-card p {
  color: #4d5668;
}

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

.quote {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.8;
  margin: 0;
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(16, 24, 38, 0.05);
}

.stat b {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
}

.clients {
  overflow: hidden;
}

.logo-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.logo-marquee:hover {
  animation-play-state: paused;
}

.logo-card {
  width: 180px;
  height: 110px;
  background: #fff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 16px;
}

.logo-card img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

@keyframes marquee {
  to { transform: translateX(50%); }
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(30, 116, 232, 0.22), rgba(77, 166, 255, 0.12)),
    var(--navy-2);
  border: 1px solid var(--line);
}

.page-hero,
.product-hero {
  padding: 56px 0 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: #d7deea;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid,
.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-inline-start: 22px;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.variant {
  margin-bottom: 16px;
}

.project-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.project-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #c8d0de;
}

.map-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  background: #d7deea;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #2a3344;
  text-align: center;
  font-weight: 600;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-card a {
  color: var(--gold-2);
  font-weight: 700;
  font-size: 22px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  background: #04101d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.footer-brand p,
.site-footer li,
.footer-bar {
  color: var(--muted);
  font-size: 14px;
}

.site-footer h2,
.site-footer h3 {
  margin: 12px 0;
  font-size: 18px;
  color: #fff;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.footer-bar {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .manifesto,
  .footer-grid,
  .contact-grid,
  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .feature-list,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .card.span-6,
  .card.span-4,
  .card.span-8,
  .card.span-12 {
    grid-column: span 6;
  }

  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .cta-band,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    z-index: 30;
    padding: 16px 20px 24px;
    background: #061525;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav ul {
    flex-direction: column;
  }

  .header-cta {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding-top: 24px;
  }

  .product-grid,
  .feature-list,
  .stat-row,
  .bento {
    grid-template-columns: 1fr;
  }

  .card.span-6,
  .card.span-4,
  .card.span-8,
  .card.span-12 {
    grid-column: span 1;
  }

  .hero-meta {
    gap: 16px;
  }

  .orb {
    width: 280px;
  }
}

.crumbs {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  opacity: 0.45;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs [aria-current="page"] {
  color: #d7deea;
}

.footer-contact {
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-ring,
  .orb-track,
  .logo-marquee,
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
