@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --background: #f6f9fc;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #102235;
  --muted: #6c7d8f;
  --line: rgba(15, 36, 56, 0.08);
  --shadow: 0 20px 55px rgba(31, 52, 73, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 184, 255, 0.10), transparent 24rem),
    radial-gradient(circle at 88% 78%, rgba(91, 184, 30, 0.10), transparent 24rem),
    linear-gradient(135deg, #f7fbff 0%, #f6faf7 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(4px);
}

body::before {
  top: -12rem;
  right: -10rem;
  width: 28rem;
  height: 28rem;
  background: linear-gradient(145deg, rgba(68, 221, 255, 0.12), rgba(31, 97, 255, 0.04));
}

body::after {
  bottom: -13rem;
  left: -10rem;
  width: 30rem;
  height: 30rem;
  background: linear-gradient(145deg, rgba(116, 206, 51, 0.11), rgba(13, 139, 72, 0.04));
}

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

.page-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 16px;
}

.hero {
  width: min(880px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 24px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-bottom: 8px;
  color: #486277;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero__badge::before {
  width: 7px;
  height: 7px;
  content: "";
  background: linear-gradient(135deg, #19b6ff, #74c92c);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(68, 173, 109, 0.09);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

.hero__description {
  max-width: 520px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.8;
}

.systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  --accent: #137ee9;
  --accent-soft: rgba(19, 126, 233, 0.12);
  position: relative;
  display: grid;
  min-height: 292px;
  overflow: hidden;
  isolation: isolate;
  padding: 18px;
  text-align: right;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(20, 39, 58, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.system-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 24%, white);
  box-shadow: 0 22px 48px rgba(20, 39, 58, 0.13);
}

.system-card:focus-visible {
  outline: 4px solid var(--accent-soft);
  outline-offset: 4px;
}

.system-card--nameto {
  --accent: #63b41f;
  --accent-soft: rgba(99, 180, 31, 0.14);
}

.system-card__glow {
  position: absolute;
  z-index: -1;
  top: -5rem;
  left: -4rem;
  width: 12rem;
  height: 12rem;
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform 300ms ease;
}

.system-card:hover .system-card__glow {
  transform: scale(1.12);
}

.system-card__visual {
  display: grid;
  height: 100px;
  place-items: center;
  margin-bottom: 4px;
}

.system-card__visual img {
  display: block;
  max-width: 112px;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(26, 51, 71, 0.13));
  transition: transform 260ms ease;
}

.system-card--nameto .system-card__visual img {
  max-width: 100px;
}

.system-card:hover .system-card__visual img {
  transform: translateY(-2px) scale(1.025);
}

.system-card__content {
  align-self: end;
}

.system-card__eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.system-card h2 {
  margin: 3px 0 2px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.system-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.system-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  min-height: 42px;
  padding: 0 14px;
  margin-top: 12px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 74%, #001a36));
  border-radius: 13px;
  box-shadow: 0 10px 20px var(--accent-soft);
}

.system-card__action span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.system-card:hover .system-card__action span {
  transform: translateX(-3px);
}

.hero__footer {
  margin: 16px 0 0;
  color: #8a98a6;
  font-size: 10px;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .page-shell {
    min-height: 100dvh;
    padding: 12px;
  }

  .hero {
    max-height: none;
    padding: 22px 14px 18px;
    border-radius: 23px;
  }

  .hero__description {
    margin-bottom: 16px;
  }

  .systems {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .system-card {
    min-height: 235px;
    padding: 16px;
  }

  .system-card__visual {
    height: 76px;
  }

  .system-card__visual img {
    max-width: 88px;
    max-height: 72px;
  }

  .system-card--nameto .system-card__visual img {
    max-width: 78px;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .hero {
    padding: 18px 24px;
  }

  .hero__badge {
    margin-bottom: 5px;
  }

  .hero__description {
    margin: 5px auto 14px;
  }

  .system-card {
    min-height: 250px;
  }

  .system-card__visual {
    height: 82px;
  }

  .system-card__visual img {
    max-width: 92px;
    max-height: 78px;
  }

  .system-card h2 {
    font-size: 22px;
  }

  .system-card__action {
    min-height: 38px;
    margin-top: 9px;
  }

  .hero__footer {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
