:root {
  --ink: #071018;
  --navy: #0b1a2b;
  --deep: #10253c;
  --panel: #143049;
  --card: #ffffff;
  --paper: #f3f6f9;
  --muted: #5d6e80;
  --line: #dce6ef;
  --text: #122033;
  --accent: #0f9aa8;
  --accent-2: #13c4c9;
  --gold: #d4a017;
  --gold-soft: #f3e2b0;
  --f5: #e35b12;
  --cisco: #049fd9;
  --ok: #0f8a5f;
  --shadow: 0 18px 50px rgba(8, 22, 38, 0.12);
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(15, 154, 168, 0.35);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand span {
  display: block;
  color: #9db0c3;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d5e2ee;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

.header-cta {
  background: linear-gradient(135deg, #efb84a, var(--gold));
  color: #2b1c00;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(19, 196, 201, 0.22), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(212, 160, 23, 0.16), transparent 26%),
    linear-gradient(180deg, var(--ink), var(--navy) 62%, #0e2438);
  color: #fff;
  padding: 72px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #b8d8e0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.25;
}

.hero p {
  max-width: 58ch;
  color: #c5d5e4;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #042328;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat b {
  display: block;
  font-size: 1.15rem;
}

.stat span {
  color: #9bb0c3;
  font-size: 0.82rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.mini-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

a.mini-product:hover b {
  color: #fff;
}

.mini-product:first-of-type {
  border-top: 0;
}

.mini-product span {
  color: #9bb0c3;
  font-size: 0.84rem;
}

.mini-product b {
  color: var(--gold-soft);
}

.section {
  padding: 28px 0 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.filter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 37, 60, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(8, 22, 38, 0.16);
}

.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.device {
  min-height: 210px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(19, 196, 201, 0.16), transparent 30%),
    linear-gradient(180deg, #10253c, #0b1a2b);
  display: grid;
  place-items: center;
}

.card-photo {
  min-height: 220px;
  padding: 18px;
  background: #fff;
  display: grid;
  place-items: center;
}

.card-photo img,
.product-gallery img,
.related-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.card.featured .card-photo {
  min-height: 100%;
}

.card-photo-empty {
  min-height: 180px;
  width: 100%;
  display: grid;
  place-items: center;
  background: #eef3f7;
  color: #5d6e80;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-text {
  margin: 0;
  color: #3d5164;
  font-size: 0.95rem;
}

.btn-ghost.dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact h2 {
  margin-top: 0;
}

.contact-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.contact-way {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact-way small {
  color: var(--muted);
}

.contact-way strong {
  font-size: 1.15rem;
  direction: ltr;
  text-align: right;
}

.product-gallery img + img {
  margin-top: 12px;
}

.card.featured .device {
  min-height: 100%;
}

.rack {
  width: min(100%, 340px);
  background: #0a1522;
  border: 2px solid #31485e;
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.rack-bar {
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1b3148, #27425c);
  margin-bottom: 8px;
  position: relative;
}

.rack-bar::after {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 3px;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: var(--accent-2);
  box-shadow: 38px 0 0 #49d17c, 52px 0 0 #d4a017;
}

.ports {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.port {
  height: 10px;
  border-radius: 2px;
  background: #20364c;
}

.slots {
  display: grid;
  gap: 6px;
}

.slot {
  height: 28px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #16293b 0 8px, #1c3348 8px 10px);
  border: 1px solid #2d4660;
}

.slot.filled {
  background: linear-gradient(90deg, #1e3a4d, #e35b12 70%, #ff8a3d);
}

.blade {
  width: min(100%, 280px);
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(180deg, #22384d, #152433);
  border: 1px solid #3b5670;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.blade strong {
  color: #f4f8fc;
  letter-spacing: 0.04em;
}

.blade .handle {
  width: 10px;
  height: 64px;
  border-radius: 3px;
  background: #e35b12;
}

.blade .chips {
  display: flex;
  gap: 6px;
}

.chip-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #49d17c;
  box-shadow: 14px 0 0 #d4a017, 28px 0 0 #049fd9;
}

.psu,
.fan {
  width: min(100%, 230px);
  height: 110px;
  border-radius: 12px;
  background: #172838;
  border: 1px solid #3b5670;
  display: grid;
  place-items: center;
  color: #d7e6f2;
  font-weight: 700;
}

.fan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fan-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #7ea0bb;
  background:
    conic-gradient(from 20deg, #1b3148, #8fb4cc, #1b3148);
}

.card-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4f8;
  color: #466078;
}

.tag.cisco { background: #e6f6fd; color: #04658b; }
.tag.f5 { background: #ffece3; color: #b03d08; }
.tag.gold { background: #fff4d6; color: #8a6508; }

.card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.5;
}

.model {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.specs {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3d5164;
  font-size: 0.92rem;
}

.specs li {
  position: relative;
  padding-inline-start: 14px;
}

.specs li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price-row {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.price {
  display: flex;
  flex-direction: column;
}

.price small {
  color: var(--muted);
  font-size: 0.78rem;
}

.price b {
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.ask {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ask:focus-visible,
.filter:focus-visible,
.btn:focus-visible,
.header-cta:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--ok);
  font-weight: 700;
  min-height: 1.4em;
}

.site-footer {
  background: var(--ink);
  color: #c5d5e4;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 24, 0.58);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
}

.modal-card h3 {
  margin: 0 0 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .card.featured,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .contact-ways,
  .product-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .price-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.crumbs a:hover {
  color: var(--navy);
}

.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-bottom: 32px;
}

.product-gallery {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-gallery img {
  max-height: 360px;
}

.product-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-buy {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-buy h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
}

.lead {
  color: #314556;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 22px;
}

.facts div {
  background: var(--paper);
  border-radius: 14px;
  padding: 10px 12px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.facts dd {
  margin: 0;
  font-weight: 800;
}

.official-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
}

.prose,
.faq {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  text-align: start;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 700;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq details:first-of-type {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.related-card span {
  display: block;
  color: var(--muted);
}

@media (max-width: 980px) {
  .product-hero,
  .related-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}
