:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #66727f;
  --line: #d9e0e7;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --green: #168a61;
  --coral: #e65f4f;
  --yellow: #f4b740;
  --graphite: #2e343b;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(217, 224, 231, 0.88);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 52, 59, 0.18);
}

.brand-mark i {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.9) 38%, rgba(251, 250, 247, 0.4) 66%, rgba(251, 250, 247, 0.1) 100%),
    url("developer-hero.png") center right / cover no-repeat;
}

.hero-inner,
.section-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 68px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 28px;
  color: #4c5966;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.08);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button i,
.meta-item i,
.card-link i,
.resource-link i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.quick-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -38px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.meta-item strong {
  display: block;
  line-height: 1.25;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: #f1f5f1;
}

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

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

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

.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card.accent-green {
  border-top: 5px solid var(--green);
}

.card.accent-coral {
  border-top: 5px solid var(--coral);
}

.card.accent-yellow {
  border-top: 5px solid var(--yellow);
}

.app-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eff7f2;
  color: var(--green);
}

.app-icon.coral {
  background: #fff1ee;
  color: var(--coral);
}

.app-icon.yellow {
  background: #fff7df;
  color: #9a6900;
}

.app-icon i {
  width: 24px;
  height: 24px;
}

.card p,
.page-copy p,
.policy-list li {
  color: var(--muted);
}

.card-link,
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--green);
  font-weight: 720;
  text-decoration: none;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.resource-link {
  min-height: 64px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.page-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
}

.page-copy {
  max-width: 760px;
}

.page-copy section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.page-copy section:first-child {
  padding-top: 0;
}

.policy-list {
  padding-left: 20px;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.side-panel a {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

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

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.9) 56%, rgba(251, 250, 247, 0.64) 100%),
      url("developer-hero.png") center bottom / cover no-repeat;
  }

  .hero-copy {
    padding: 52px 0 116px;
  }

  h1 {
    max-width: 9ch;
  }

  .quick-meta,
  .grid,
  .resource-list,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 520px) {
  .actions,
  .button {
    width: 100%;
  }

  .button {
    padding: 0 14px;
  }

  .section {
    padding: 58px 0;
  }

  .meta-item {
    min-height: 72px;
  }
}
