:root {
  --bg: #edf3fb;
  --surface: #ffffff;
  --surface-alt: #e7effb;
  --text: #142133;
  --muted: #5d6f85;
  --line: #d5e0ef;
  --line-strong: #bccbe1;
  --accent: #2c5fd8;
  --accent-strong: #204fbd;
  --accent-soft: #eef4ff;
  --shadow: 0 12px 30px rgba(25, 51, 95, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 36rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

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

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 1.25rem 0;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px rgba(44, 95, 216, 0.18);
}

.site-nav,
.footer-nav,
.meta-row,
.cta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.hero,
.feature-grid,
.resource-grid,
.support-grid {
  display: grid;
  gap: 1.2rem;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  align-items: center;
  padding: 3rem 0 2rem;
}

.page-main {
  padding-top: 1.2rem;
}

.page-hero {
  padding: 1rem 0 2rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  max-width: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.lead.narrow {
  max-width: 46rem;
}

.sublead {
  margin-top: 0.45rem;
}

.cta-row {
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.feature-card,
.resource-card,
.legal-card,
.support-card,
.support-note {
  padding: 1.5rem;
}

.hero-list,
.stack-list,
.legal-section ul {
  padding-left: 1.2rem;
}

.hero-list,
.stack-list {
  margin: 1rem 0 0;
}

.hero-list li,
.stack-list li,
.legal-section li,
.feature-card p,
.resource-card p,
.legal-section p,
.support-card p,
.support-note p,
.support-detail span,
.section-header p {
  color: var(--muted);
}

.hero-list li::marker,
.stack-list li::marker,
.legal-section li::marker {
  color: var(--accent);
}

.hero-card {
  background: rgba(255, 255, 255, 0.98);
}

.hero-card .meta-row {
  margin-top: 1rem;
}

.hero-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-card-logo {
  width: 4rem;
  height: 4rem;
  display: block;
  border-radius: 1.3rem;
  box-shadow: 0 18px 32px rgba(44, 95, 216, 0.18);
}

.hero-link-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-link-row {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.hero-link-row:hover,
.hero-link-row:focus-visible {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.content-section {
  padding: 1.35rem 0;
}

.section-header {
  max-width: 44rem;
  margin-bottom: 1.2rem;
}

.section-header h2,
.feature-card h2,
.support-card h2,
.support-note h2 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  margin-bottom: 0.65rem;
}

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

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

.feature-card,
.resource-card,
.support-card {
  min-height: 100%;
}

.resource-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.resource-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.resource-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.legal-card {
  display: grid;
  gap: 1.25rem;
}

.legal-section + .legal-section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.support-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.support-detail span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .hero,
  .feature-grid,
  .resource-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.75rem;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .feature-card,
  .resource-card,
  .legal-card,
  .support-card,
  .support-note {
    padding: 1.2rem;
  }

  .meta-chip {
    width: 100%;
    justify-content: center;
  }
}
