:root {
  --bg: #080f1b;
  --bg-2: #0b1526;
  --panel: #0f1b2e;
  --panel-2: #122139;
  --line: #22314a;
  --line-soft: rgba(34, 49, 74, 0.65);
  --text: #eaf1fb;
  --muted: #93a6c1;
  --gold: #e8a33d;
  --gold-soft: rgba(232, 163, 61, 0.14);
  --teal: #5ed3b8;
  --teal-soft: rgba(94, 211, 184, 0.12);
  --red: #ef6a6a;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1200px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(94, 211, 184, 0.11), transparent 62%),
    radial-gradient(760px 480px at 8% 0%, rgba(232, 163, 61, 0.10), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--gold);
  color: #08111f;
}

a { color: inherit; }

img { max-width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 15, 27, 0.74);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(232, 163, 61, 0.18), rgba(94, 211, 184, 0.08));
  border: 1px solid rgba(232, 163, 61, 0.28);
  box-shadow: inset 0 0 22px rgba(232, 163, 61, 0.08);
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.brand-text small {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--gold);
  color: #08111f;
  box-shadow: 0 10px 30px rgba(232, 163, 61, 0.18);
}

.btn-primary:hover {
  background: #f0b24f;
  box-shadow: 0 14px 36px rgba(232, 163, 61, 0.26);
}

.btn-ghost {
  background: rgba(15, 27, 46, 0.6);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: #385276; background: rgba(18, 33, 57, 0.85); }

.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 24px 46px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(54px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -3px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 20%, #cfdcf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.8px;
}

.lead {
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.hero-stats div { display: flex; flex-direction: column; gap: 1px; }

.hero-stats b {
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

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

.hero-visual { position: relative; }

.poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1526;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 9, 17, 0.72) 100%);
  pointer-events: none;
}

.poster img { display: block; width: 100%; height: auto; }

.play {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 163, 61, 0.95);
  color: #08111f;
  text-decoration: none;
  box-shadow: 0 0 0 12px rgba(232, 163, 61, 0.14), 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.play:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 16px rgba(232, 163, 61, 0.18), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.play svg { margin-inline-start: 3px; }

.poster-caption {
  position: absolute;
  z-index: 2;
  inset-inline: 18px;
  bottom: 14px;
  font-size: 12px;
  color: rgba(234, 241, 251, 0.82);
  text-align: center;
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.25;
  letter-spacing: -1.2px;
  font-weight: 900;
}

h2 span { color: var(--gold); }

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}

h3 { margin: 0; font-size: 18px; line-height: 1.4; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(18, 33, 57, 0.88), rgba(15, 27, 46, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #31486b;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.num {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pillar .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(94, 211, 184, 0.18);
  margin-bottom: 12px;
}

.pillar .icon svg { width: 24px; height: 24px; }

/* ---------- quote ---------- */
.quote {
  margin: 28px 0 0;
  padding: 24px 28px;
  border-inline-start: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.08), transparent 70%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #c6d3e6;
  font-size: 15.5px;
  line-height: 2;
}

/* ---------- flow ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 26px;
}

.flow-side {
  background: rgba(15, 27, 46, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.flow-side.accent {
  border-color: rgba(94, 211, 184, 0.28);
  background: linear-gradient(180deg, rgba(94, 211, 184, 0.08), rgba(15, 27, 46, 0.82));
}

.flow-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.flow-side.accent .flow-label { color: var(--teal); }

.flow-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.flow-side li { padding: 3px 0; }

.flow-side li::before {
  content: "•";
  color: var(--gold);
  margin-inline-end: 8px;
}

.flow-side.accent li::before { color: var(--teal); }

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 28px;
  font-weight: 300;
}

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

.layer {
  position: relative;
  background: rgba(15, 27, 46, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px 20px;
  overflow: hidden;
}

.layer::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.8;
}

.layer-no {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.layer h3 { font-size: 17px; }

.layer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ---------- video ---------- */
.video-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.shots {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 18px;
}

.shots figure,
.wide-shot {
  margin: 0;
  background: rgba(15, 27, 46, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.shots img,
.wide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption,
.wide-shot figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}

.wide-shot { margin-top: 16px; }

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  background: rgba(15, 27, 46, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
}

.metric b {
  display: block;
  font-size: 25px;
  line-height: 1.25;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.metric span { font-size: 11.5px; color: var(--muted); }

/* ---------- documents ---------- */
.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 27, 46, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.doc:hover { border-color: #31486b; transform: translateY(-2px); }

.doc-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(232, 163, 61, 0.2);
}

.doc-body { flex: 1 1 auto; min-width: 0; }

.doc-body h3 { font-size: 15px; }

.doc-body p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
  padding: 54px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(232, 163, 61, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(18, 33, 57, 0.88), rgba(11, 21, 38, 0.92));
}

.contact h2 { margin-bottom: 10px; }

.contact p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
  padding: 34px 24px 40px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand { margin-bottom: 4px; }

.footer-inner p { margin: 0; }

.fine {
  max-width: 720px;
  color: #6f829d;
  font-size: 11.5px;
  line-height: 1.9;
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 54px; }
  .hero-visual { max-width: 680px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .grid.three { grid-template-columns: 1fr; }
  .layers { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); font-size: 22px; }
  .section { padding: 62px 20px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 11px 16px; gap: 12px; }
  .brand-text { font-size: 15px; }
  .brand-text small { font-size: 8.5px; }
  .nav .btn-sm { padding: 8px 12px; font-size: 11.5px; }
  .hero { padding: 40px 16px 30px; }
  h1 { letter-spacing: -2px; }
  .lead { font-size: 15px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 21px; }
  .grid.four { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .doc { flex-wrap: wrap; }
  .doc .btn { width: 100%; }
  .quote { padding: 18px 20px; font-size: 14px; }
  .contact { padding: 38px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .doc { transition: none; }
}
