:root {
  color-scheme: dark;
  --ink: #f4f5f7;
  --muted: #a3a7b0;
  --quiet: #777d88;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 70, 88, .28);
  --panel: rgba(17, 19, 24, .78);
  --panel-strong: rgba(25, 25, 31, .92);
  --red: #ff4658;
  --red-dark: #b5162d;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 70, 88, .16), transparent 31rem),
    radial-gradient(circle at 10% 28%, rgba(63, 84, 120, .14), transparent 28rem),
    #08090b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(255, 70, 88, .72);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 9, 11, .74);
  backdrop-filter: blur(18px);
}

.nav-shell,
.page-shell,
.site-footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand-lockup { display: block; width: 154px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }

.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a { color: rgba(244, 245, 247, .7); font-size: 13px; text-decoration: none; }
.top-nav a:hover { color: #fff; }
.top-nav a.active { color: #fff; }
.top-cta { padding: 9px 16px; color: #08090b !important; border-radius: 999px; background: #f3f4f6; font-weight: 700; }
.top-cta:hover { color: #fff !important; background: var(--red); }

.page-shell { padding: 88px 0 112px; }
.page-shell > section { animation: section-rise .72s cubic-bezier(.22, 1, .36, 1) both; }
.page-shell > section:nth-child(2) { animation-delay: .06s; }
.page-shell > section:nth-child(3) { animation-delay: .12s; }
.page-shell > section:nth-child(4) { animation-delay: .18s; }
.page-shell > section:nth-child(5) { animation-delay: .24s; }
.page-shell > section:nth-child(6) { animation-delay: .3s; }
@keyframes section-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero { max-width: 760px; padding: 36px 0 70px; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.055em; line-height: 1.02; }
.hero h1 span { color: var(--red); }
.hero-lede { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 18px; }
.boundary-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 13px; color: #d6d8de; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 70, 88, .06); font-size: 12px; }
.boundary-note::before { width: 6px; height: 6px; border-radius: 50%; background: var(--red); content: ""; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.text-button { color: #d6d8de; font-size: 13px; font-weight: 700; text-decoration: none; }
.text-button:hover { color: var(--red); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: var(--quiet); font-size: 11px; }
.hero-facts span { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-facts strong { color: #e7e8eb; font-size: 12px; letter-spacing: .08em; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }
.section-kicker { margin: 0 0 8px !important; color: var(--red) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.feature-section, .directory-section, .category-section, .method-section { margin-top: 78px; }
.insights-feature-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 16px; }
.featured-card { display: flex; min-height: 360px; flex-direction: column; padding: 30px; border: 1px solid rgba(255, 70, 88, .34); border-radius: 18px; background: radial-gradient(circle at 82% 8%, rgba(255, 70, 88, .2), transparent 18rem), linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .018)); box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.featured-card h3 { max-width: 620px; margin: 58px 0 16px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; line-height: 1.12; }
.featured-card p { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; }
.featured-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 34px; color: var(--quiet); font-size: 11px; }
.featured-bottom a { color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.latest-rail { display: flex; min-height: 360px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; color: #f4f5f7; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.rail-heading a { color: var(--red); font-size: 11px; text-decoration: none; }
.latest-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; color: var(--muted); border-bottom: 1px solid var(--line); text-decoration: none; }
.latest-link:hover { color: #fff; }
.latest-link small { display: block; margin-bottom: 5px; color: var(--red); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.latest-link strong { display: block; color: #e8e9ed; font-size: 15px; }
.latest-link > span:last-child { color: var(--red); font-size: 16px; }
.rail-note { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--quiet); font-size: 11px; line-height: 1.6; }
.rail-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--red); }

.category-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.category-pill { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; color: inherit; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.category-pill:hover { transform: translateY(-2px); border-color: rgba(255, 70, 88, .4); background: rgba(255, 70, 88, .08); }
.category-pill > span { color: var(--red); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.category-pill strong { font-size: 14px; }
.category-pill small { color: var(--quiet); font-size: 11px; }

.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 14px; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-filter { min-height: 36px; padding: 7px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); font: inherit; font-size: 12px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.topic-filter:hover { color: #fff; border-color: rgba(255, 70, 88, .4); transform: translateY(-1px); }
.topic-filter.is-active { color: #fff; border-color: rgba(255, 70, 88, .48); background: var(--red); }
.topic-filter span { margin-left: 4px; color: inherit; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; opacity: .75; }
.article-search { display: flex; min-width: min(290px, 100%); align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.article-search input { width: 100%; min-height: 38px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }
.article-search input::placeholder { color: var(--quiet); }
.article-search > span:last-child { color: var(--red); font-size: 20px; line-height: 1; }
.directory-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--quiet); font-size: 11px; }
.directory-status span:first-child { color: #f0f1f3; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 700; }
.article-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.directory-card { display: flex; min-height: 288px; flex-direction: column; padding: 22px; color: inherit; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)); text-decoration: none; transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease; }
.directory-card:hover { transform: translateY(-4px); border-color: rgba(255, 70, 88, .48); background: linear-gradient(145deg, rgba(255, 70, 88, .12), rgba(255, 255, 255, .03)); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.directory-card[hidden] { display: none; }
.directory-card h3 { margin: 24px 0 12px; font-size: 20px; letter-spacing: -.035em; line-height: 1.3; }
.directory-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.directory-card .card-link { margin-top: auto; padding-top: 22px; }
.directory-empty { padding: 42px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; text-align: center; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.method-card { min-height: 168px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)); }
.method-number { display: block; margin-bottom: 28px; color: var(--red); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.method-card strong { display: block; font-size: 16px; }
.method-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.cta-band { margin-top: 78px; padding: 42px; border: 1px solid rgba(255, 70, 88, .28); border-radius: 18px; background: linear-gradient(120deg, rgba(255, 70, 88, .13), rgba(255, 255, 255, .035)); text-align: center; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.045em; }
.cta-band > p:not(.section-kicker) { max-width: 560px; margin: 14px auto 24px; color: var(--muted); font-size: 14px; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card { display: flex; min-height: 300px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)); box-shadow: 0 18px 60px rgba(0, 0, 0, .16); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(255, 70, 88, .46); background: linear-gradient(145deg, rgba(255, 70, 88, .11), rgba(255, 255, 255, .03)); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 11px; }
.card-tag { color: #ff9aa4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-card h3 { margin: 28px 0 12px; font-size: 22px; letter-spacing: -.035em; line-height: 1.25; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; color: var(--red); font-size: 13px; font-weight: 700; }
.updates-list { margin-top: 22px; border-top: 1px solid var(--line); }
.update-row { display: grid; grid-template-columns: 112px 106px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 72px; padding: 16px 4px; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease, background .2s ease, padding .2s ease; }
.update-row:hover { padding-right: 12px; padding-left: 12px; color: #fff; background: rgba(255, 70, 88, .055); }
.update-date { color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .04em; }
.update-type { color: #ff9aa4; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.update-row strong { font-size: 14px; font-weight: 600; }
.update-arrow { color: var(--red); font-size: 17px; transition: transform .2s ease; }
.update-row:hover .update-arrow { transform: translate(3px, -3px); }

.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 72px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.trust-item { padding: 24px; background: rgba(17, 19, 24, .78); }
.trust-item strong { display: block; margin-bottom: 6px; font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 12px; }

.article-shell { max-width: 820px; margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; color: var(--quiet); font-size: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.article-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 6vw, 62px); letter-spacing: -.055em; line-height: 1.08; }
.article-summary { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; color: var(--quiet); font-size: 12px; }
.article-content { padding-top: 42px; }
.article-content h2 { margin: 48px 0 14px; font-size: 26px; letter-spacing: -.035em; line-height: 1.25; }
.article-content h3 { margin: 32px 0 10px; font-size: 18px; }
.article-content p { margin: 0 0 18px; color: #c8cbd2; font-size: 16px; }
.article-content ul,
.article-content ol { margin: 0 0 22px; padding-left: 24px; color: #c8cbd2; }
.article-content li { margin: 8px 0; }
.article-content strong { color: #fff; }
.formula { margin: 24px 0; padding: 18px 20px; overflow-x: auto; color: #ffb0b8; border-left: 3px solid var(--red); background: rgba(255, 70, 88, .08); font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; white-space: nowrap; }
.callout { margin: 28px 0; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 14px; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 58px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-footer a { color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); background: rgba(4, 5, 7, .72); }
.site-footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding: 34px 0; }
.footer-brand { display: flex; max-width: 330px; flex-direction: column; gap: 10px; }
.footer-brand .brand-lockup { width: 140px; }
.footer-brand small, .footer-links a, .footer-note { color: var(--quiet); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 860px) {
  .top-nav { gap: 14px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; }
  .trust-strip { grid-template-columns: 1fr; }
  .insights-feature-grid { grid-template-columns: 1fr; }
  .category-strip, .method-grid { grid-template-columns: 1fr; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .article-search { width: min(100%, 360px); }
  .article-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-row { grid-template-columns: 104px 92px minmax(0, 1fr) auto; gap: 12px; }
}

@media (max-width: 640px) {
  .nav-shell, .page-shell, .site-footer-inner { width: min(100% - 32px, var(--max)); }
  .nav-shell { min-height: 64px; }
  .brand-lockup { width: 132px; }
  .top-nav a:not(.top-cta) { display: none; }
  .page-shell { padding: 52px 0 76px; }
  .hero { padding: 20px 0 48px; }
  .hero h1 { font-size: clamp(38px, 13vw, 54px); }
  .hero-lede, .article-summary { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .article-card { padding: 20px; }
  .directory-toolbar { margin-top: 22px; }
  .topic-filters { gap: 6px; }
  .topic-filter { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .article-directory { grid-template-columns: 1fr; }
  .directory-card { min-height: 0; padding: 20px; }
  .directory-status { align-items: flex-start; flex-direction: column; gap: 4px; }
  .article-header h1 { font-size: clamp(34px, 11vw, 48px); }
  .article-content p { font-size: 15px; }
  .featured-card { min-height: 330px; padding: 22px; }
  .featured-card h3 { margin-top: 42px; font-size: 31px; }
  .featured-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  .category-pill { grid-template-columns: auto 1fr; }
  .category-pill small { grid-column: 2; }
  .update-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; }
  .update-type { grid-column: 1; grid-row: 2; }
  .update-row strong { grid-column: 1 / -1; grid-row: 3; }
  .update-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cta-band { padding: 32px 20px; }
  .article-footer, .site-footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-shell > section { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
