:root {
  --bg-main: #060b16;
  --bg-surface: #0d1526;
  --bg-surface-2: #121d33;
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(0, 229, 255, 0.38);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* پس‌زمینه */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  width: 460px;
  height: 460px;
  background: var(--accent-cyan);
  top: -120px;
  right: -120px;
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-blue);
  bottom: 5%;
  left: -140px;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #031120;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.35);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* هدر */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-en {
  font-size: 0.88em;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-right: 0.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  gap: 0.6rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

/* هیرو */
.hero {
  padding: 4.5rem 0 4rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.26);
  color: var(--accent-cyan);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.35;
  font-weight: 900;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 1.8rem;
  font-size: 1.04rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* کارت فنی هیرو */
.tech-card {
  background: linear-gradient(160deg, rgba(18, 29, 51, 0.95), rgba(10, 17, 32, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-weight: 600;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.tech-code {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.fiber-diagram {
  background: rgba(6, 11, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.node-core {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.beam {
  height: 28px;
  position: relative;
  display: flex;
  justify-content: center;
}

.beam-1::before {
  content: "";
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue));
}

.beam-2 {
  height: 14px;
  width: 72%;
  margin-inline: auto;
  border-top: 2px solid rgba(59, 130, 246, 0.55);
  border-inline: 2px solid rgba(59, 130, 246, 0.55);
  border-radius: 8px 8px 0 0;
}

.beam-3 {
  display: none;
}

.node-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.node-mini {
  padding: 0.55rem 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem;
}

.spec-row span {
  color: var(--text-muted);
}

.spec-row.highlight {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.spec-row.highlight strong {
  color: var(--accent-cyan);
  font-size: 0.96rem;
}

/* بخش‌های عمومی */
.section {
  padding: 4.5rem 0;
  scroll-margin-top: 86px;
}

.section-alt {
  background: rgba(13, 21, 38, 0.55);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* خدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.22rem;
}

.service-card > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-card li {
  position: relative;
  padding-right: 1.2rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.service-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* گالری تجهیزات */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.gallery-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #040812;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.04);
}

.gallery-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.gallery-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.gallery-body p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-muted);
}

/* استانداردها */
.standards-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.standards-info h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.standards-info > p {
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.check-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.check-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.check-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.audience-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.audience-box h4 {
  margin: 0 0 0.4rem;
  color: var(--accent-cyan);
  font-size: 1rem;
}

.audience-box p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* مراحل اجرا */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
}

.step-num {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* تماس و فرم */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.contact-card-main {
  background: linear-gradient(150deg, rgba(13, 21, 38, 0.95), rgba(18, 29, 51, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card-main h2 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
}

.contact-card-main > p {
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

.phone-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.28);
  margin-bottom: 1.25rem;
}

.phone-box small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.phone-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.phone-actions {
  display: flex;
  gap: 0.6rem;
}

.phone-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quick-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.lead-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.lead-form h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 11, 22, 0.85);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
}

.form-feedback {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #34d399;
  min-height: 1.4em;
}

/* فوتر */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-phone a {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* نوار موبایل */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  padding: 0.7rem 1rem;
  background: rgba(6, 11, 22, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 60;
}

/* اعلان */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* واکنش‌گرا */
@media (max-width: 960px) {
  .hero-grid,
  .standards-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .services-grid,
  .audience-cards,
  .process-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }

  .toast {
    bottom: 84px;
    left: 16px;
  }
}
