:root {
  --ink: #121417;
  --muted: #68717d;
  --paper: #f7f3ea;
  --panel: #fffaf1;
  --stone: #d9ceb9;
  --line: rgba(18, 20, 23, 0.12);
  --gold: #c69a43;
  --green: #294b42;
  --green-soft: #dbe7df;
  --clay: #8f4d38;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 20, 23, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 5%, rgba(198, 154, 67, 0.20), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(41, 75, 66, 0.16), transparent 26%),
    linear-gradient(135deg, #fbf8f0 0%, #eee6d5 100%);
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(198, 154, 67, 0.55);
  outline-offset: 3px;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 24px;
  flex-shrink: 0;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--green);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(41, 75, 66, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 38px;
  align-items: center;
  padding: 54px 0 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.section h1 {
  font-size: clamp(52px, 7vw, 92px);
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero p {
  margin: 26px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 680px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 18px 40px rgba(41, 75, 66, 0.24);
}

.secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.cta-panel .secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border-color: rgba(247, 243, 234, 0.22);
}

.demo-card {
  position: relative;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 154, 67, 0.16), transparent 42%);
  pointer-events: none;
}

.demo-inner {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.search-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  font-weight: 800;
}

.search-box span:first-child {
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 750;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

button.chip {
  border: 0;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

a.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip.active,
.chip:hover {
  background: var(--green);
  color: var(--paper);
  transform: translateY(-1px);
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f0eadf;
  margin-bottom: 16px;
}

.toggle span {
  text-align: center;
  padding: 11px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.toggle .active {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 10px 18px rgba(41, 75, 66, 0.18);
}

[data-lens-panel][hidden] {
  display: none;
}

[data-path-summary],
[data-result-summary] {
  line-height: 1.4;
}

.answer {
  border-radius: 20px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  padding: 18px;
}

.answer h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.path-line {
  height: 46px;
  width: 2px;
  background: linear-gradient(var(--stone), var(--gold));
  margin: 12px auto;
  border-radius: 999px;
}

.section {
  padding: 66px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.045em;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 16px 0 0;
}

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

.tile {
  background: rgba(255, 250, 241, 0.74);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  min-height: 210px;
  box-shadow: 0 14px 34px rgba(18, 20, 23, 0.07);
}

.tile .actions {
  margin-top: 24px;
}

.tile-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: var(--paper);
  font-weight: 900;
  margin-bottom: 28px;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lens-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.8);
  box-shadow: 0 14px 34px rgba(18, 20, 23, 0.07);
}

.lens-card.dark {
  background: var(--green);
  color: var(--paper);
}

.lens-card.dark p,
.lens-card.dark li {
  color: rgba(247, 243, 234, 0.78);
}

.lens-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.lens-card p,
.lens-card li {
  color: var(--muted);
  line-height: 1.55;
}

ul {
  padding-left: 19px;
  margin-bottom: 0;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  padding: 13px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--green);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.topic:hover {
  background: var(--green-soft);
  transform: translateY(-1px);
}

.cta-panel {
  text-align: center;
  border-radius: 34px;
  background: var(--ink);
  color: var(--paper);
  padding: 58px 24px;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 780px;
  margin: 0 auto;
}

.cta-panel p {
  color: rgba(247, 243, 234, 0.72);
  max-width: 640px;
  margin: 20px auto 30px;
  font-size: 18px;
  line-height: 1.55;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

footer {
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

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

  nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 48px 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 22px, 1180px);
  }

  h1,
  .section h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .section h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .demo-card,
  .demo-inner,
  .lens-card,
  .tile,
  .cta-panel {
    border-radius: 22px;
  }

  .search-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .chip,
  .topic {
    width: 100%;
    justify-content: center;
  }

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