:root {
  --bg: #06131d;
  --card: #0b1b27cc;
  --card2: #101d28e8;
  --line: rgba(255, 255, 255, 0.22);
  --white: #fff;
  --muted: #c9d2dc;
  --accent: #20c6b0;
  --blue: #34a8ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
}
body {
  overflow: hidden;
}

.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 5vw 24px;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 18, 0.58), rgba(4, 12, 18, 0.88)),
    url("assets/bg.jpg") top/cover no-repeat;
  z-index: -3;
}
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 14%,
      rgba(77, 169, 255, 0.16),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      rgba(3, 9, 14, 0.72),
      transparent 45%,
      rgba(3, 9, 14, 0.6)
    );
  z-index: -2;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.2;
}
.brand-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand h2 {
  font-size: 30px;
  letter-spacing: 4px;
  font-weight: 800;
}
.brand p {
  font-size: 15px;
  color: #e9eef4;
  font-weight: 300;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}
.hero h1 {
  font-size: clamp(42px, 4.7vw, 72px);
  font-weight: 900;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}
.hero h3 {
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 500;
  color: #d8e0e8;
  margin-top: 12px;
}
.divider {
  width: 118px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 99px;
  margin: 24px auto 22px;
}
.hero p {
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  color: #fff;
}

.cards {
  width: min(1700px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 55px;
  direction: rtl;
}

.card {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(18, 33, 46, 0.9),
    rgba(7, 18, 28, 0.86)
  );
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 34px 20px 26px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: 0.28s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 168, 255, 0.7);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(52, 168, 255, 0.18),
    transparent 44%
  );
  opacity: 0;
  transition: 0.28s;
}
.card:hover::before {
  opacity: 1;
}
.logo {
  max-width: 150px;
  max-height: 92px;
  object-fit: contain;
  z-index: 1;
}
.name {
  font-size: 24px;
  font-weight: 800;
  z-index: 1;
  text-align: center;
  margin-top: 8px;
}
.car {
  width: 112%;
  max-width: 310px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.45));
}
.arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(52, 168, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5dc5ff;
  font-size: 25px;
  z-index: 1;
  line-height: 1;
}

.footer {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  direction: ltr;
  text-align: center;
}
/* .support {
  display: n;
} */
.support a {
  color: rgb(0, 167, 250);
  text-decoration: none;
}
.hamburger {
  display: none;
  position: absolute;
  left: 22px;
  top: 32px;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 100;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .page {
    min-height: 100svh;
    justify-content: flex-start;
    padding: 32px 18px 22px;
  }
  .page::before {
    background:
      linear-gradient(180deg, rgba(4, 12, 18, 0.45), rgba(4, 12, 18, 0.96) 42%),
      url("assets/bg.jpg") center top/auto cover 50vh no-repeat,
      linear-gradient(#07131d, #07131d);
  }
  body {
    overflow: auto;
  }
  .hamburger {
    display: flex;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
  }

  /* تغییر شکل به X وقتی منو بازه */
  .hamburger.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }

  .brand {
    margin-bottom: 28px;
  }
  .brand-logo {
    width: 68px;
    height: 68px;
  }
  .brand h2 {
    font-size: 25px;
    letter-spacing: 3px;
  }
  .brand p {
    font-size: 13px;
  }
  .hero {
    margin-bottom: 18px;
    width: 100%;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1.35;
  }
  .hero h3 {
    font-size: 24px;
    margin-top: 4px;
  }
  .divider {
    width: 86px;
    height: 4px;
    margin: 18px auto;
  }
  .hero p {
    font-size: 21px;
    line-height: 1.8;
  }
  .cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 560px;
  }
  #rayen {
    order: 0;
  }
  #arta {
    order: 1;
  }
  #ilia {
    order: 2;
  }
  #ista {
    order: 3;
  }

  .card {
    order: 10;
    min-height: 150px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 4fr 2fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding: 16px 18px;
    column-gap: 8px;
  }
  .logo {
    grid-column: 3;
    grid-row: 1;
    max-width: 118px;
    max-height: 66px;
    justify-self: center;
  }
  .name {
    grid-column: 3;
    grid-row: 2;
    font-size: 19px;
    margin: 0;
    align-self: start;
    text-align: center;
    text-wrap: nowrap;
    width: 100%;
  }
  .car {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: 230px;
    justify-self: center;
  }
  .arrow {
    grid-column: 0;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    font-size: 24px;
    justify-self: end;
    color: var(--accent);
    border-color: var(--accent);
  }
  .support {
    display: block;
    text-align: center;
    margin: 34px 0 18px;
    color: #bfc9d3;
    font-size: 16px;
  }
  .support b {
    color: var(--accent);
  }
  .footer {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    padding-bottom: 10px;
  }
}

@media (max-width: 1390px) {
  .hero h1 {
    font-size: 37px;
  }
  .hero h3 {
    font-size: 20px;
  }
  .hero p {
    font-size: 18px;
  }
  .card {
    min-height: 135px;
  }
  .name {
    font-size: 17px;
    text-wrap: nowrap;
  }
  .car {
    max-width: 195px;
  }
}
