:root {
  --bg: #f7f4ed;
  --surface: #fffefb;
  --text: #1e2b2a;
  --muted: #526160;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #fb923c;
  --line: #d9e2de;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: radial-gradient(
    circle at 20% 10%,
    #fff6e8 0,
    var(--bg) 35%,
    #eef4f2 100%
  );
  min-height: 100vh;
  line-height: 1.5;
  padding: 26px;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.topbar {
  max-width: 1160px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.3rem;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.hero,
.strip,
.card,
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 78px 64px;
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 1.03;
}

h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.lead {
  margin: 18px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 11px;
  text-decoration: none;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.button-ghost:hover {
  background: #f6faf9;
}

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

.card {
  padding: 28px;
}

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

.strip {
  margin-top: 24px;
  padding: 34px;
}

ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cta {
  margin-top: 24px;
  padding: 34px;
}

.cta p {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 18px;
}

.footer {
  max-width: 1160px;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-top: 16px;
}

.doc + .doc {
  margin-top: 16px;
}

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

.doc code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
}

.doc pre {
  background: #f3f7f5;
  border: 1px solid #d4ded9;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

.toc-list {
  columns: 2;
  column-gap: 28px;
}

.toc-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--brand-strong);
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f7f5;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.55;
  z-index: 1;
  animation: drift 11s ease-in-out infinite alternate;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: #99f6e4;
  top: -80px;
  right: 6%;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: #fed7aa;
  bottom: 5%;
  left: -80px;
  animation-delay: 0.7s;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(18px);
  }
}

@media (max-width: 820px) {
  body {
    padding: 14px;
  }

  .hero {
    min-height: 0;
    padding: 42px 24px;
  }

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

  .strip {
    padding: 22px;
  }

  .cta {
    padding: 22px;
  }

  .doc {
    padding: 22px;
  }

  .toc-list {
    columns: 1;
  }
}
