:root {
  --bg: #02070f;
  --text: #f7f7fb;
  --muted: #8090ad;
  --border: #d7dbe2;
  --purple: #bd35e7;
  --purple-hover: #c74bf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

.site-header {
  width: 100%;
  padding: 18px 6.2% 0;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
}

.nav a {
  color: #7f8ba5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav a:hover,
.nav a.active {
  color: #c43af0;
}

.container {
  width: min(1386px, calc(100% - 12.4%));
  margin: 0 auto;
}

.hero {
  padding: 22px 0 58px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 4vw, 61px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.hero h2 {
  margin: 11px 0 34px;
  font-size: clamp(34px, 2.4vw, 40px);
  line-height: 1.1;
  font-weight: 700;
}

.hero p {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 15px;
}

.primary-btn,
.select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s ease, transform .2s ease;
}

.primary-btn:hover,
.select-btn:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
}

.primary-btn {
  min-width: 195px;
  min-height: 44px;
  padding: 0 25px;
  font-size: 19px;
}

.divider {
  height: 1px;
  background: #737982;
  opacity: .7;
  margin-bottom: 30px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 18px;
  padding-bottom: 40px;
}

.card {
  min-height: 190px;
  padding: 24px 22px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card h3 {
  margin: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
}

.card p {
  width: 100%;
  margin: 24px 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-btn {
  min-width: 116px;
  min-height: 43px;
  padding: 0 22px;
  margin-top: auto;
  font-size: 19px;
}

/* Keep the layout close to the reference on medium screens. */
@media (max-width: 900px) {
  .site-header {
    padding: 18px 30px 0;
  }

  .container {
    width: calc(100% - 60px);
  }

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

/* Mobile: one card/button per row. */
@media (max-width: 600px) {
  .site-header {
    padding: 18px 30px 0;
  }

  .nav {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 60px);
  }

  .hero {
    padding: 25px 0 58px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.2px;
  }

  .hero h2 {
    font-size: 29px;
    margin: 9px 0 29px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .primary-btn {
    width: 196px;
  }

  .divider {
    margin-bottom: 30px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card {
    width: 100%;
    min-height: 265px;
    padding: 24px 18px 11px;
    border-radius: 10px;
  }

  .card h3 {
    font-size: 23px;
    min-height: 54px;
  }

  .card p {
    max-width: 300px;
    margin: 23px 0 26px;
    font-size: 15px;
  }

  .select-btn {
    width: 116px;
  }
}

@media (max-width: 380px) {
  .site-header,
  .container {
    width: calc(100% - 36px);
    padding-left: 0;
    padding-right: 0;
  }

  .nav {
    gap: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 27px;
  }
}
