:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --surface: #11131a;
  --surface-strong: #171a23;
  --border: #2b303c;
  --text: #f3f4f6;
  --muted: #b3bac7;
  --quiet: #939cab;
  --blue: #6ea8ff;
  --green: #58d68d;
  --amber: #ffc65c;
  --focus: #93c5fd;
  --measure: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(59, 130, 246, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 35%, rgba(168, 85, 247, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

::selection {
  background: #245fae;
  color: #fff;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a8ccff;
}

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

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav ul,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

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

main {
  padding-block: 72px 24px;
}

.hero {
  max-width: 880px;
  margin-bottom: 56px;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  margin: 0 0 20px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  margin: 64px 0 18px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 30px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p,
li {
  color: var(--muted);
}

p {
  max-width: var(--measure);
  margin: 0 0 16px;
}

strong {
  color: var(--text);
}

.lede {
  max-width: 65ch;
  color: #d4d8e0;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

.meta {
  margin-bottom: 28px;
  color: var(--quiet);
  font-size: 0.88rem;
}

.section-intro {
  max-width: 68ch;
  font-size: 1.05rem;
}

.product-list,
.featured-list,
.principle-list {
  display: grid;
  gap: 1px;
  margin-block: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

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

.product,
.featured-item,
.principle {
  min-width: 0;
  background: rgba(17, 19, 26, 0.96);
}

.product {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.product:hover,
.featured-item:hover {
  background: var(--surface-strong);
  color: inherit;
}

.product-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.product-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-tools .product-mark,
.product-tools .action {
  color: var(--blue);
}

.product-saas .product-mark,
.product-saas .action {
  color: var(--green);
}

.product-future .product-mark,
.product-future .action {
  color: var(--amber);
}

.product h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.product p {
  margin-bottom: 26px;
  font-size: 0.94rem;
}

.action {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
}

.action::after {
  content: " →";
}

.editorial-note {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 44px;
  align-items: start;
  margin-top: 64px;
  padding-block: 42px;
  border-block: 1px solid var(--border);
}

.editorial-note h2 {
  margin-top: 0;
}

.checklist {
  margin: 0;
  padding: 22px 22px 22px 44px;
  border-radius: 12px;
  background: var(--surface);
}

.checklist li {
  margin-bottom: 11px;
  padding-inline-start: 4px;
}

.checklist li:last-child {
  margin-bottom: 0;
}

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

.featured-item {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 25px;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.featured-tag {
  margin-bottom: 24px;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-item h3 {
  margin: 0 0 10px;
}

.featured-item p {
  margin: 0;
  font-size: 0.9rem;
}

.reading-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-block: 30px;
}

.reading-path h3 {
  margin-top: 0;
}

.article,
.policy-page {
  max-width: 820px;
}

.article h1,
.policy-page h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 4rem);
}

.article ul,
.article ol,
.policy-page ul {
  max-width: 68ch;
  padding-inline-start: 24px;
}

.article li,
.policy-page li {
  margin-bottom: 10px;
}

.article blockquote {
  max-width: 66ch;
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.article blockquote p {
  margin: 0;
  color: #d4d8e0;
}

.evidence-table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.evidence-table th,
.evidence-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.evidence-table th {
  color: var(--text);
}

.evidence-table td {
  color: var(--muted);
}

.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid #385580;
  border-radius: 12px;
  background: #0e1929;
}

.callout p:last-child {
  margin-bottom: 0;
}

.contact-box {
  max-width: 620px;
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding-block: 28px 42px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.82rem;
}

.footer-nav {
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-list,
  .featured-list,
  .reading-path,
  .editorial-note {
    grid-template-columns: 1fr;
  }

  .product {
    min-height: 0;
  }

  .product-mark {
    margin-bottom: 24px;
  }

  .featured-item {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1100px);
  }

  main {
    padding-top: 50px;
  }

  .site-nav ul {
    gap: 8px 14px;
  }

  h2 {
    margin-top: 50px;
  }

  .editorial-note {
    gap: 20px;
  }

  .evidence-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
