:root {
  --navy: #0b1026;
  --purple: #2b1b54;
  --sky: #4cc9f0;
  --blue: #277da1;
  --green: #06d6a0;
  --pink: #f15bb5;
  --yellow: #ffd166;
  --text: #1c2340;
  --muted: #535b7a;
  --background: #f6f8fd;
  --card: #ffffff;
  --border: #e1e6f2;
  --link: #1c6b8c;
  --radius: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === Header === */

.site-header {
  color: #fff;
  background: radial-gradient(circle at 20% 0%, var(--purple), var(--navy) 70%);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dfe7ff;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--yellow);
}

/* === Hero (home) === */

.hero {
  padding-top: 28px;
  padding-bottom: 56px;
  text-align: center;
}

.hero-icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 22px 0 10px;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.hero p {
  max-width: 34em;
  margin: 0 auto;
  color: #dfe7ff;
  font-size: 1.15rem;
}

.page-title {
  padding-top: 18px;
  padding-bottom: 40px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.2;
}

/* === Content === */

main {
  padding-top: 36px;
  padding-bottom: 48px;
}

.card {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.card p {
  margin: 0 0 12px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.card li + li {
  margin-top: 6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.feature h2 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.badge-plus { background: #c9f5e8; }
.badge-minus { background: #fcd9ee; }
.badge-star { background: #fff0c7; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 #d9a93a;
}

.button.secondary {
  background: #dcebff;
  box-shadow: 0 4px 0 #a9c2e6;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Footer === */

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}

.site-footer ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 420px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    padding: 18px;
  }

  .hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }
}
