:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --panel: #ffffff;
  --panel-soft: #fbfbf8;
  --text: #1f2420;
  --muted: #677067;
  --line: #d8ddd4;
  --line-strong: #c4ccc1;
  --brand: #19483d;
  --brand-soft: #e8f0ed;
  --shadow: 0 14px 40px rgba(21, 31, 23, 0.06);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(124, 149, 134, 0.12), transparent 20%),
    linear-gradient(180deg, #f7f8f4 0%, #f1f4ef 100%);
  color: var(--text);
  font: 400 14px/1.65 "IBM Plex Sans", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.site-header,
.hero,
.surface-card,
.panel-card,
.mindmap-shell,
.faq-card,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 12px 14px;
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong,
.eyebrow,
.card-index,
.card-label,
.site-footer p:first-child {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 12px;
}

.brand-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

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

.main-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 12px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.text-link:hover {
  color: var(--brand);
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-ghost,
.mini-button {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.demo-banner {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-soft);
  font-size: 12px;
  color: #355449;
}

.demo-banner strong {
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.hero h1,
.section-heading h2,
.info-card h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10em;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.hero-text {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  margin: 22px 0 24px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-stats div,
.info-card,
.surface-card,
.panel-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.hero-stats div {
  padding: 13px 14px;
}

.hero-stats dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  padding: 16px;
}

.info-card.soft {
  background: #f8faf7;
}

.info-card h2 {
  margin-top: 8px;
  font-size: 30px;
}

.card-label,
.card-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.compact-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li {
  margin-bottom: 6px;
}

.section {
  padding-top: 54px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 12em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.card-grid,
.split-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.surface-card,
.panel-card,
.faq-card {
  padding: 18px;
}

.surface-card h3,
.faq-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.surface-card p,
.panel-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.mindmap-shell {
  padding: 18px;
  border-radius: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mindmap-svg {
  display: block;
}

.mindmap-svg .node rect {
  fill: #fbfbf8;
  stroke-width: 1.1;
}

.mindmap-svg .node text {
  fill: #1f2420;
  font-size: 11px;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
}

.mindmap-svg .c-blue rect { stroke: #5a87d9; }
.mindmap-svg .c-teal rect { stroke: #4f927d; }
.mindmap-svg .c-purple rect { stroke: #8877d9; }
.mindmap-svg .c-coral rect { stroke: #c97e55; }
.mindmap-svg .c-amber rect { stroke: #c29b45; }
.mindmap-svg .c-green rect { stroke: #73974f; }
.mindmap-svg .c-pink rect { stroke: #c06d8a; }
.mindmap-svg .c-red rect { stroke: #d26e6e; }

.mindmap-hint {
  fill: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mindmap-panel {
  margin-top: 8px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mindmap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mindmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mindmap-title {
  font-size: 13px;
  font-weight: 600;
}

.mindmap-count {
  color: var(--muted);
  font-size: 11px;
}

.mindmap-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.mindmap-item {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: #fafbf8;
  font-size: 12px;
  color: #455047;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding: 16px 18px;
  border-radius: 20px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  max-width: 520px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero,
  .card-grid.four,
  .card-grid.three,
  .split-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    padding-top: 10px;
  }

  .site-header,
  .hero,
  .mindmap-shell,
  .site-footer {
    border-radius: 18px;
  }

  .site-header,
  .hero,
  .mindmap-shell,
  .site-footer {
    padding: 16px;
  }

  .main-nav,
  .header-actions,
  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .card-grid.four,
  .card-grid.three,
  .split-grid,
  .faq-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 16vw, 3.6rem);
  }

  .section {
    padding-top: 42px;
  }

  .site-footer {
    flex-direction: column;
  }
}
