:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-wash: #effaf7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #101114;
  --muted: #5f6673;
  --muted-strong: #3f4652;
  --line: rgba(16, 17, 20, 0.09);
  --line-strong: rgba(16, 17, 20, 0.15);
  --accent: #0f9f82;
  --accent-strong: #08735e;
  --accent-soft: #e5f8f3;
  --blue: #2563eb;
  --blue-soft: #edf4ff;
  --warning-soft: #fff7e6;
  --warning-text: #7a4b00;
  --danger-soft: #fff1f1;
  --danger-text: #8a1f1f;
  --shadow: 0 20px 60px rgba(20, 31, 50, 0.08);
  --shadow-small: 0 12px 30px rgba(20, 31, 50, 0.06);
  --ring: 0 0 0 3px rgba(15, 159, 130, 0.2);
  --radius: 22px;
  --radius-sm: 14px;
  --content: 1160px;
  --article: 880px;
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(15, 159, 130, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(16, 17, 20, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 17, 20, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 58%);
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  transition: transform 160ms ease;
}

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

.container {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.article-container {
  width: min(100% - 2rem, var(--article));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #101114;
  box-shadow: 0 0 0 1px rgba(16, 17, 20, 0.08), 0 8px 18px rgba(16, 17, 20, 0.14);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 520;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-links .nav-cta {
  background: #101114;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(16, 17, 20, 0.08);
}

.nav-links .nav-cta:hover {
  background: #24262b;
  color: #ffffff;
}

.hero {
  padding: clamp(4.5rem, 8vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(15, 159, 130, 0.2);
  border-radius: 999px;
  background: rgba(229, 248, 243, 0.78);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1,
.display-title {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.65rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 650;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 590;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.04);
}

.button.primary {
  border-color: #101114;
  background: #101114;
  color: #ffffff;
}

.button.primary:hover {
  background: #24262b;
  color: #ffffff;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
}

.hero-panel {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.92rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

.dot.green { background: #2ecf91; }
.dot.yellow { background: #f3bd35; }
.dot.red { background: #f36c6c; }

.panel-body {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.bridge-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.node {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.node strong {
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.node span,
.muted {
  color: var(--muted);
}

.arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.check-list,
.plain-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.72), rgba(255,255,255,0.92));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: clamp(1.2rem, 2.8vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset;
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 159, 130, 0.14);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-weight: 700;
}

.callout {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 159, 130, 0.18);
  border-radius: 18px;
  background: var(--accent-soft);
  color: #0b4e42;
}

.callout.warning {
  border-color: rgba(122, 75, 0, 0.18);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.callout.danger {
  border-color: rgba(138, 31, 31, 0.16);
  background: var(--danger-soft);
  color: var(--danger-text);
}

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

.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.13rem;
}

.article-shell {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.article-card {
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-small);
}

.article-card h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  padding-top: 0.25rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.article-card p,
.article-card li {
  color: var(--muted-strong);
}

.article-card ul,
.article-card ol {
  padding-left: 1.3rem;
}

.article-card li + li {
  margin-top: 0.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.toc strong {
  display: block;
  margin-bottom: 0.55rem;
}

.toc ol {
  columns: 2;
  gap: 2rem;
  margin: 0;
  padding-left: 1.25rem;
}

.kbd,
code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.contact-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.contact-card a {
  font-family: var(--font-mono);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.footer-links a:hover {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(15, 159, 130, 0.13), transparent 24rem),
      var(--bg);
  }

  .container,
  .article-container {
    width: min(100% - 1.1rem, var(--content));
  }

  .nav {
    align-items: flex-start;
    min-height: auto;
    padding: 0.8rem 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0 0.7rem;
  }

  .hero {
    padding-top: 3rem;
  }

  h1,
  .display-title,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .bridge-flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
