:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --night: #0f1720;
  --coral: #ef725d;
  --teal: #0f8a83;
  --amber: #c1842d;
  --plum: #7257a8;
  --shadow: 0 20px 45px rgba(15, 23, 32, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 231, .82);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--night);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #364152;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--coral);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 92px));
  isolation: isolate;
  color: white;
  background: var(--night);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("assets/hero-district.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 32, .88) 0%, rgba(15, 23, 32, .64) 42%, rgba(15, 23, 32, .22) 100%),
    linear-gradient(0deg, rgba(15, 23, 32, .64) 0%, rgba(15, 23, 32, .08) 42%);
}

.hero-inner {
  display: flex;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 74px 0 84px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #72e1d6;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: #72e1d6;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: #ffffff;
  color: var(--night);
  font-weight: 850;
  box-shadow: 0 15px 32px rgba(0, 0, 0, .22);
}

.button.secondary {
  background: rgba(15, 23, 32, .22);
  color: white;
  box-shadow: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  margin-top: 44px;
}

.metric {
  border-left: 3px solid rgba(255, 255, 255, .34);
  padding-left: 14px;
}

.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

main {
  background: var(--soft);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.topic-card,
.update-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(15, 23, 32, .06);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dfe5ea;
}

.feature-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff0ed;
  color: #b73f2f;
  font-size: 12px;
  font-weight: 850;
}

.feature-card:nth-child(2) .tag {
  background: #e9fbf8;
  color: #08736c;
}

.feature-card:nth-child(3) .tag {
  background: #f4efff;
  color: #60429a;
}

.feature-card h3,
.topic-card h3,
.update-item h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.feature-card p,
.topic-card p,
.update-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.topics-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topics-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
  gap: 34px;
  align-items: start;
}

.spotlight {
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
  color: white;
  box-shadow: var(--shadow);
}

.spotlight img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spotlight-body {
  padding: 24px;
}

.spotlight-body p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
}

.topic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.topic-card {
  min-height: 172px;
  padding: 22px;
}

.topic-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e9fbf8;
  color: var(--teal);
  font-weight: 900;
}

.topic-card:nth-child(2) .topic-number {
  background: #fff4df;
  color: var(--amber);
}

.topic-card:nth-child(3) .topic-number {
  background: #f4efff;
  color: var(--plum);
}

.topic-card:nth-child(4) .topic-number {
  background: #fff0ed;
  color: var(--coral);
}

.updates {
  display: grid;
  gap: 14px;
}

.update-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 22px;
}

.update-item time {
  color: var(--teal);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night);
  color: rgba(255, 255, 255, .72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 82px 0 88px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .topics-layout,
  .topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding: 68px 0 74px;
  }

  .hero-metrics,
  .update-item {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .feature-card,
  .topic-card,
  .update-item {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .button:hover,
  .feature-card:hover,
  .topic-card:hover,
  .update-item:hover {
    transform: translateY(-2px);
  }

  .feature-card:hover,
  .topic-card:hover,
  .update-item:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 32, .1);
  }
}
