:root {
  --navy-950: #0a1c30;
  --navy-900: #0f2b46;
  --navy-800: #15385a;
  --navy-700: #1d4a73;
  --steel-500: #4a7a99;
  --amber-500: #e2a33b;
  --amber-600: #cc8a1f;
  --ink: #16202b;
  --slate-600: #5b6b7a;
  --slate-400: #8b9aa8;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --line: #e6eaef;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 43, 70, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 43, 70, 0.12);
  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-fa);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); line-height: 1.7; }

/* Language toggle visibility */
html[lang="fa"] .lang-en { display: none; }
html[lang="en"] .lang-fa { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--amber-500);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
  position: relative;
}

.main-nav a:hover { color: var(--navy-900); }

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

.phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.phone-pill:hover { background: var(--navy-800); }

.lang-switch {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.lang-switch:hover { background: #eef1f5; border-color: var(--slate-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,28,48,0.88) 0%, rgba(10,28,48,0.80) 45%, rgba(10,28,48,0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 90px;
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  background: rgba(226, 163, 59, 0.16);
  border: 1px solid rgba(226, 163, 59, 0.4);
  color: var(--amber-500);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.3;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.1rem;
  color: #d4dce4;
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; margin-top: 8px; }

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--amber-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.hero-stats {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 20px;
}

.stat { text-align: center; }
.stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber-500);
  font-family: 'Inter', sans-serif;
}
.stat .label {
  display: block;
  font-size: 0.82rem;
  color: #c4ced8;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
  color: var(--amber-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
html[lang="fa"] .section-kicker { text-transform: none; }

.section-head h2, .split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--navy-950);
  margin: 0 0 16px;
  line-height: 1.4;
}

.section-desc { color: var(--slate-600); font-size: 1.05rem; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse { direction: ltr; }
.split-reverse .split-text,
.split-reverse .split-media { direction: inherit; }
html[dir="rtl"] .split-reverse { direction: ltr; }
html[dir="ltr"] .split-reverse { direction: rtl; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-text p { color: var(--slate-600); margin: 0 0 16px; }

.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--amber-500);
  color: var(--navy-950);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card-featured {
  position: relative;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 1px var(--amber-500), var(--shadow-sm);
}

.product-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.product-media { aspect-ratio: 16/10; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-media img { transform: scale(1.06); }

.product-card h3 { font-size: 1.15rem; font-weight: 700; margin: 20px 20px 8px; color: var(--navy-950); }
.product-card p { font-size: 0.92rem; color: var(--slate-600); margin: 0 20px 20px; }

.product-card-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.product-card-cta h3 { margin: 0 0 10px; color: #fff; }
.product-card-cta p { margin: 0 0 20px; color: #c4ced8; }
.product-card-cta:hover { transform: none; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: transparent; box-shadow: var(--shadow-md); }

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--amber-500);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; color: var(--navy-950); }
.feature-card p { font-size: 0.92rem; color: var(--slate-600); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(226, 163, 59, 0.16);
  color: var(--amber-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.85rem; font-weight: 600; color: #9fb0bf; margin: 0 0 4px; }
.contact-item a, .contact-item p { font-size: 1rem; font-weight: 500; margin: 0; color: #fff; }
.contact-item a:hover { color: var(--amber-500); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #9fb0bf;
  padding: 56px 0 28px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { color: #fff; }
.footer-tagline { font-size: 0.92rem; max-width: 460px; margin: 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.footer-nav a { font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; width: 100%; }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse { direction: inherit; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    inset-inline: 0;
    background: #fff;
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero-content { padding-top: 70px; padding-bottom: 60px; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .header-inner { height: 68px; }
  .phone-pill span:not(.lang-fa):not(.lang-en) { display: none; }
  .contact-info { padding: 28px; }
}
