/* ═══════════════════════════════════════════════════
   ابر توسعه — Abar Tawseeh ICT
   Theme: navy + cyan (inspired by theme.jpg)
   ═══════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --navy:        #001a33;
  --navy-mid:    #002855;
  --navy-deep:   #000d1a;
  --blue:        #0a4d8c;
  --cyan:        #00c6ff;
  --cyan-soft:   #4fc3f7;
  --cyan-glow:   rgba(0, 198, 255, 0.45);
  --cyan-lt:     #e8f7ff;
  --white:       #ffffff;
  --bg:          #f0f6fb;
  --bg-alt:      #e4eef7;
  --surface:     #ffffff;
  --text:        #0b1a2b;
  --muted:       #5a6f86;
  --border:      #d4e3f0;
  --danger:      #e53935;
  --success:     #22c55e;
  --font:        'Vazirmatn', sans-serif;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 12px 40px rgba(0, 26, 51, 0.12);
  --shadow-cyan: 0 0 0 1px rgba(0, 198, 255, 0.25),
                 0 8px 32px rgba(0, 198, 255, 0.18);
}

/* ─── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ─── Shared Bits ───────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.4px;
  background: var(--cyan-lt);
  border: 1px solid rgba(0, 198, 255, 0.35);
  padding: 6px 14px;
  border-radius: 100px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 8vw;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.phone-reveal {
  transform: translateY(60px) scale(0.96);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 26, 51, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--navy-mid);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.btn-guide { align-self: center; height: fit-content; }

.btn-row,
.dl-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dl-row { width: 100%; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 14px 18px 14px 16px;
  border-radius: 14px;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  text-align: right;
}

.dl-btn:hover  { opacity: 0.94; transform: translateY(-2px); }
.dl-btn:active { transform: scale(0.98); }

.dl-btn-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-btn-icon svg { width: 22px; height: 22px; }

.dl-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dl-btn-copy strong {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}

.dl-btn-copy span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}

.dl-btn-copy .dl-file {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.dl-android {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 26, 51, 0.3);
}

.dl-android .dl-btn-icon { background: rgba(0, 198, 255, 0.18); }

.dl-ios {
  background: #111827;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.35);
}

.dl-ios .dl-btn-icon { background: rgba(255, 255, 255, 0.12); }

.dl-windows {
  background: linear-gradient(135deg, var(--blue), var(--navy-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(10, 77, 140, 0.35);
}

.dl-windows .dl-btn-icon { background: rgba(255, 255, 255, 0.14); }

/* ─── Phone Frame ───────────────────────────────── */
.phone-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: clamp(280px, 34vw, 460px);
}

.phone-shell-wide {
  width: clamp(320px, 48vw, 620px);
}

.screen {
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
}

.screen-dual img {
  border-radius: 16px;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(0, 198, 255, 0.2),
    0 24px 64px rgba(0, 26, 51, 0.22);
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 10vw;
  gap: 6vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(0, 198, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(10, 77, 140, 0.22), transparent 50%),
    linear-gradient(165deg, #001a33 0%, #002855 42%, #0a4d8c 100%);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(0, 198, 255, 0.08) 50%, transparent 60%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.015) 48px,
      rgba(255, 255, 255, 0.015) 49px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  border-radius: 50%;
  right: -12%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero .chip {
  color: var(--cyan);
  background: rgba(0, 198, 255, 0.12);
  border-color: rgba(0, 198, 255, 0.4);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-brand .brand-fa {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff 20%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-brand .brand-en {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1.2px;
  direction: ltr;
  unicode-bidi: isolate;
}

.hero h1 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
}

.hero .sub {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  max-width: 520px;
}

.hero .phone-col { position: relative; z-index: 1; }

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 198, 255, 0.1);
}

/* ─── Install Guide ─────────────────────────────── */
.install-guide {
  padding: 72px 8vw 88px;
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.install-guide-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.install-guide-header h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
}

.install-guide-header p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

.install-arrow-down {
  display: flex;
  justify-content: center;
  margin: 8px auto 24px;
  color: var(--cyan);
  opacity: 0.8;
}

.install-arrow-down svg {
  width: 32px;
  height: 32px;
}

.install-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  direction: rtl;
}

.install-visual-card {
  position: relative;
  width: 100%;
  min-width: 0;
}

.install-guide-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.install-guide-wrap .install-visual-title {
  width: 100%;
  margin-bottom: 0;
  position: relative;
  justify-content: center;
  align-items: flex-start;
  padding: 0 44px;
}

.install-visual-title > span {
  position: absolute !important;
  left: 2px !important;
  top: 0 !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 40, 85, 0.3);
}

.guide-title-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.guide-connector-gap {
  flex: 0 0 auto;
  width: 2px;
  height: 24px;
  background: repeating-linear-gradient(
    to bottom,
    var(--cyan) 0,
    var(--cyan) 5px,
    transparent 5px,
    transparent 9px
  );
  position: relative;
  z-index: 11;
  margin-top: 2px;
  transform: translateY(-4px);
}

.guide-connector-gap::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

.install-visual-title {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 2px;
  min-width: 0;
}

.install-visual-title strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.guide-label { display: inline-block; }

.install-shot {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid rgba(0, 40, 85, 0.1);
  box-shadow: var(--shadow), var(--shadow-cyan);
  isolation: isolate;
}

.install-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.install-shot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.focus-box {
  position: absolute;
  border: 2.5px solid var(--cyan);
  box-shadow:
    0 0 0 9999px rgba(0, 26, 51, 0.4),
    0 0 18px var(--cyan),
    inset 0 0 12px rgba(0, 198, 255, 0.35);
  animation: pulseGlow 2s infinite alternate ease-in-out;
  transform: translateX(-50%);
  left: 50%;
}

.pointer-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--cyan) 0,
    var(--cyan) 5px,
    transparent 5px,
    transparent 9px
  );
  transform: translateX(-50%);
  z-index: 11;
  pointer-events: none;
}

.pointer-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.shot-1-focus {
  top: 60%;
  width: 38%;
  height: 5.5%;
  border-radius: 8px;
}

.shot-1-line { height: 60.5%; }

.shot-2-focus {
  top: 62%;
  width: 65%;
  height: 5%;
  border-radius: 8px;
}

.shot-2-line { height: 63%; }

@keyframes pulseGlow {
  0% {
    opacity: 0.9;
    box-shadow:
      0 0 0 9999px rgba(0, 26, 51, 0.32),
      0 0 10px var(--cyan);
  }
  100% {
    opacity: 1;
    box-shadow:
      0 0 0 9999px rgba(0, 26, 51, 0.48),
      0 0 22px var(--cyan);
  }
}

.install-note {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e8f7ff, #f0f8ff);
  border: 1px solid rgba(0, 198, 255, 0.35);
  border-radius: 12px;
  font-size: 13px;
  color: var(--navy-mid);
  line-height: 1.7;
  text-align: center;
}

/* ─── Testimonials ──────────────────────────────── */
.quote-band {
  position: relative;
  padding: 88px 8vw 72px;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
  overflow: hidden;
}

.quote-band-title {
  text-align: center;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quote-band-title h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  color: var(--navy);
}

.quote-band-title p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: 22px 22px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #d7e2ec;
  border-right: 3px solid var(--navy-mid);
  box-shadow: 0 6px 20px rgba(0, 26, 51, 0.05);
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-card:hover {
  border-color: #b9c9d8;
  border-right-color: var(--navy);
  box-shadow: 0 10px 28px rgba(0, 26, 51, 0.08);
}

.quote-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
}

.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quote-meta strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.quote-meta span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.quote-stars {
  display: flex;
  gap: 2px;
  color: #c9a227;
  font-size: 12px;
  letter-spacing: 1px;
}

.quote-card-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.85;
  color: #243447;
  flex: 1;
}

/* ─── Features ──────────────────────────────────── */
.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  padding: 100px 10vw;
  min-height: 80vh;
  background: var(--white);
}

.feature.alt {
  background: var(--bg);
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1 1 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.2px;
  background: var(--cyan-lt);
  padding: 5px 12px;
  border-radius: 8px;
  width: fit-content;
  border: 1px solid rgba(0, 198, 255, 0.25);
}

.feature h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.feature p {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--muted);
  line-height: 1.85;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-mid);
  background: var(--cyan-lt);
  padding: 6px 14px;
  border-radius: 8px;
  width: fit-content;
  border: 1px solid rgba(0, 198, 255, 0.2);
}

/* ─── Stats ─────────────────────────────────────── */
.stats-band {
  padding: 80px 10vw;
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(0, 198, 255, 0.12), transparent 70%),
    linear-gradient(135deg, var(--navy-deep), var(--navy), var(--navy-mid));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 32px;
}

.stat-item:last-child { border-left: none; }

.stat-val {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}

.stat-val span { color: var(--cyan); }

.stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-align: center;
}

/* ─── CTA ───────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 120px 10vw;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(0, 198, 255, 0.1), transparent 55%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  overflow: hidden;
}

.cta-text {
  flex: 1 1 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-text h2 {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--navy);
}

.cta-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .hero,
  .feature,
  .feature.alt,
  .cta-section {
    flex-direction: column;
    padding: 60px 6vw;
    min-height: auto;
    gap: 48px;
  }

  .hero-text,
  .cta-text {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .hero-brand { align-items: center; }

  .hero h1,
  .hero .sub,
  .cta-text h2,
  .cta-text p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .btn-row,
  .dl-row {
    width: 100%;
    justify-content: center;
  }

  .dl-btn {
    width: 100%;
    max-width: 360px;
    justify-content: flex-start;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .feature.alt { flex-direction: column; }

  .phone-shell { width: clamp(260px, 88vw, 400px); }
  .phone-shell-wide { width: clamp(280px, 94vw, 560px); }

  .stats-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-item {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 0 28px;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .quote-band { padding: 60px 6vw 52px; }
  .quotes-grid { grid-template-columns: 1fr; }

  .install-guide-header h2 { max-width: 320px; font-size: 22px; }
  .install-guide-header p { max-width: 320px; }

  .install-visual-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 34px;
  }

  .install-visual-title {
    position: relative;
    justify-content: center;
    padding: 0 44px;
    text-align: center;
    align-items: flex-start;
  }

  .guide-title-col {
    align-items: center;
    width: 100%;
  }

  .install-visual-title strong {
    font-size: 13px;
    line-height: 1.7;
  }

  .install-visual-title > span {
    position: absolute;
    left: 0;
    top: 0;
  }
}
