:root {
  color-scheme: light;
  --green: #04aa6d;
  --green-dark: #059862;
  --green-soft: #eafaf1;
  --ink: #202124;
  --muted: #5f6368;
  --line: #d7dbe1;
  --panel: #ffffff;
  --panel-soft: #f8f9fa;
  --note: #fff7d6;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar-width: 255px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

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

img {
  max-width: 100%;
  display: block;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: #eef3f7;
  color: #0f5132;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: #fff;
}

.header-row-primary {
  justify-content: space-between;
  border-bottom: 1px solid #eceff3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--ink);
  font-size: 0.95rem;
}

.utility-nav a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 360px);
}

.search {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  flex: 1 1 auto;
}

.search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd6de;
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  font: inherit;
}

.search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.is-active {
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.12);
  transform: translateY(-1px);
}

.button-fill {
  background: var(--green);
  color: white;
}

.button-fill:hover {
  background: var(--green-dark);
}

.button-ghost {
  background: #f3f4f6;
  color: var(--ink);
  border-color: #e2e5ea;
}

.search-form .button-ghost {
  min-width: 74px;
  padding-inline: 14px;
}

.category-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: #282a35;
  color: white;
  padding: 0 14px;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  padding: 13px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.category-nav a.active {
  background: var(--green);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16);
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 106px);
}

.sidebar {
  position: sticky;
  top: 106px;
  height: calc(100vh - 106px);
  overflow: auto;
  border-right: 1px solid #eceff3;
  background: #f8f9fa;
}

.sidebar-card {
  padding: 22px 18px 14px;
  border-bottom: 1px solid #e6eaef;
}

.sidebar-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lesson-nav {
  display: grid;
  padding: 8px 0 14px;
}

.nav-group {
  margin: 10px 18px 6px;
  color: #7d8590;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lesson-nav a {
  padding: 8px 18px;
  color: var(--ink);
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.lesson-nav a:hover {
  background: #edf8f2;
  color: #000;
}

.lesson-nav a.active {
  background: #d9f4e8;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--green);
}

.lesson-nav a.active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.utility-nav a.active {
  color: var(--green-dark);
  font-weight: 700;
}

.product-cta.is-active {
  border-color: rgba(4, 170, 109, 0.35);
}

.content {
  background: #fff;
}

.content-page {
  max-width: 1420px;
  padding: 26px 24px 60px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main [id] {
  scroll-margin-top: 132px;
}

.right-rail {
  position: sticky;
  top: 122px;
  display: grid;
  gap: 14px;
  align-self: start;
}

.intro-panel,
.tutorial-card,
.note-panel,
.panel,
.roadmap-section,
.faq-panel,
.join-panel,
.rail-card,
.info-card,
.roadmap-card {
  background: var(--panel);
  border: 1px solid #eef1f4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.intro-copy h1,
.section-heading h2,
.tutorial-copy h2,
.note-panel h2,
.panel-header h2,
.faq-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.intro-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.04;
  max-width: 14ch;
}

.lede {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card {
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
  border: 1px solid #e4ece8;
  padding: 18px;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #32404d;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-live {
  background: #e5f8ef;
  color: #0f7d4f;
}

.pill-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-logo {
  width: 100%;
  max-width: 330px;
  margin: 18px auto 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-grid article,
.note-grid article,
.info-card,
.roadmap-card,
.playbook-step,
.faq-list article {
  border-radius: var(--radius);
  border: 1px solid #e4e8ed;
  background: #fcfdfe;
}

.stat-grid article {
  padding: 14px 12px;
}

.stat-grid span,
.roadmap-card span,
.playbook-step span {
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.tutorial-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  overflow: hidden;
}

.tutorial-mark {
  padding: 30px 20px;
  background: linear-gradient(180deg, #04aa6d 0%, #059862 100%);
  color: #fff;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.tutorial-mark span {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.tutorial-mark strong {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.tutorial-copy {
  padding: 26px 24px;
}

.tutorial-copy p {
  margin: 14px 0 0;
  color: var(--ink);
  line-height: 1.7;
  max-width: 70ch;
}

.link-button {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 800;
}

.note-panel {
  margin-top: 24px;
  padding: 28px;
  background: var(--note);
  border-color: #f0e2a1;
}

.note-panel p {
  margin: 14px 0 0;
  line-height: 1.75;
}

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

.note-grid article {
  padding: 18px;
}

.note-grid h3,
.panel h3,
.faq-list h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.layout-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

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

.agent-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid #e4e8ed;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow);
}

.agent-card h3,
.agent-card h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.agent-card h2 {
  font-size: 1.85rem;
  line-height: 1.05;
}

.agent-card h3 {
  font-size: 1.02rem;
}

.agent-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.agent-card code {
  display: inline-flex;
  margin-top: 14px;
  padding: 0.45rem 0.65rem;
  word-break: break-word;
}

.agent-card-highlight {
  background: linear-gradient(180deg, #e6f8ef 0%, #ffffff 100%);
  border-color: #cdeedd;
}

.panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dde2e7;
  background: #f6f8fa;
  color: #42505c;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-green {
  background: #e5f8ef;
  color: #0f7d4f;
  border-color: #cdeedd;
}

.trend-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.trend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fbfd;
  border: 1px solid #e7edf2;
}

.trend-list strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.trend-list span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.playbook-steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.playbook-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.playbook-step span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6f8ef;
  color: #0f7d4f;
  font-weight: 800;
}

.playbook-step p {
  margin: 0;
  line-height: 1.5;
}

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

.info-card {
  padding: 20px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.roadmap-section,
.faq-panel {
  margin-top: 24px;
  padding: 26px;
}

.roadmap-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.roadmap-card {
  padding: 18px;
}

.roadmap-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  margin-top: 18px;
}

.faq-list article {
  padding: 18px;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.join-panel {
  margin-top: 24px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.join-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-size: 2rem;
}

.join-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rail-card {
  padding: 20px;
}

.rail-card h2,
.rail-card h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.rail-card h2 {
  font-size: 1.7rem;
}

.rail-card h3 {
  font-size: 1.05rem;
}

.rail-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.scan-summary {
  margin-top: 10px !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.rail-card code {
  display: block;
  margin-top: 10px;
  padding: 0.65rem 0.7rem;
  word-break: break-word;
}

.rail-card-highlight {
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

.rail-card.is-active {
  border-color: rgba(4, 170, 109, 0.28);
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.08), var(--shadow);
}

.active-section {
  box-shadow: 0 0 0 2px rgba(4, 170, 109, 0.06), var(--shadow);
}

.rail-list,
.mini-stack {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rail-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbfd;
  border: 1px solid #e7edf2;
}

.rail-list strong,
.mini-stack strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.rail-list span,
.mini-stack span {
  color: var(--muted);
  font-size: 0.84rem;
}

.preset-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7edf2;
  background: #f8fbfd;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.preset-button:hover {
  transform: translateY(-1px);
  border-color: #cfe7db;
  background: #f3fbf6;
}

.preset-button strong {
  margin-top: 4px;
}

.analysis-meter {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.analysis-row {
  display: grid;
  gap: 6px;
}

.analysis-row > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.analysis-track {
  height: 10px;
  border-radius: 999px;
  background: #e7edf2;
  overflow: hidden;
}

.analysis-track i {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #4bcf95);
}

.scan-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.scan-modal.is-open {
  display: flex;
}

.scan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 22, 0.52);
  backdrop-filter: blur(8px);
}

.scan-modal-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #e3e7eb;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.scan-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.scan-modal-header h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.scan-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.scan-modal-summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.scan-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.scan-modal-grid article {
  padding: 14px;
  border-radius: 16px;
  background: #f8fbfd;
  border: 1px solid #e7edf2;
}

.scan-modal-grid span,
.scan-modal-progress span {
  color: var(--muted);
  font-size: 0.84rem;
}

.scan-modal-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.scan-modal-progress {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.scan-modal-bar {
  height: 12px;
  border-radius: 999px;
  background: #e7edf2;
  overflow: hidden;
}

.scan-modal-bar i {
  display: block;
  height: 100%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #4bcf95, #79d7ff);
  transition: width 220ms ease;
}

.scan-modal-ideas {
  margin-top: 20px;
}

.scan-modal-ideas h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.footer {
  padding: 24px 18px 38px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  border-top: 1px solid #eceff3;
}

.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d7dbe1;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  background: var(--green-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #eceff3;
  }

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

  .content-page {
    max-width: 100%;
  }

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

  .right-rail {
    position: static;
  }

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

@media (max-width: 860px) {
  .header-row-primary {
    flex-wrap: wrap;
    justify-content: center;
  }

  .utility-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-form {
    width: 100%;
  }

  .search {
    min-width: min(100%, 260px);
    flex: 1 1 260px;
  }

  .category-nav {
    padding-inline: 8px;
  }

  .category-nav a {
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .intro-panel,
  .tutorial-card,
  .layout-grid,
  .agent-grid,
  .cards-grid,
  .roadmap-grid,
  .note-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .right-rail {
    position: static;
  }

  .intro-panel {
    padding: 22px;
  }

  .tutorial-mark {
    padding-block: 22px;
  }

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

  .join-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .tutorial-mark {
    padding: 22px 16px;
  }
}

@media (max-width: 600px) {
  .content-page {
    padding-inline: 14px;
  }

  .intro-copy h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .scan-modal {
    padding: 14px;
  }

  .scan-modal-panel {
    padding: 18px;
    border-radius: 22px;
  }

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