:root {
  --ink: #182e27;
  --muted: #4f5854;
  --paper: #fcfcfb;
  --line: #dbe2d9;
  --lime: #d7f57b;
  --green: #2f5846;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #557f29;
  outline-offset: 5px;
}

.wrap {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}

h1, h2, h3 {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 600;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
}

h3 {
  font-size: 23px;
  font-weight: 600;
}

p {
  color: var(--muted);
}

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(252, 252, 251, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .2s, border-color .2s;
}

.button:hover {
  background: #e9efdf;
  transform: translateY(-2px);
}

.nav-cta {
  font-size: 14px;
  padding: 11px 18px;
}

.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.primary:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.menu-toggle {
  display: none;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 200;
}

.skip:focus {
  top: 15px;
}

/* Hero Section */
.hero {
  padding-top: 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 55px;
  align-items: center;
}

.eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: 21px;
  color: var(--green);
}

.tagline {
  font-size: 16px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: #4f7040;
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  margin: 26px 0;
  max-width: 51ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.text-link {
  font-size: 16px;
  text-underline-offset: 5px;
}

/* Network Architecture Diagram */
.network {
  background: #f3f5f3;
  border: 1px solid #d8e0d2;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(24, 46, 39, 0.05);
}

.diagram-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.diagram-top > span:first-child {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
}

.illustrative {
  color: #63705e;
  font-size: 14px;
}

.source-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 7px;
}

.source-node strong,
.source-node div > span {
  display: block;
}

.source-node strong {
  font-size: 16px;
}

.source-node div > span {
  font-size: 14px;
  color: var(--muted);
}

.node-icon {
  font-size: 28px;
}

.source-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.connector {
  height: 27px;
  width: 1px;
  background: #91a77f;
  margin: auto;
}

.hub {
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 22px;
}

.hub-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grid-symbol {
  color: var(--lime);
  font-size: 32px;
}

.hub-heading strong {
  font-size: 26px;
  letter-spacing: -.04em;
}

.hub-tags {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 15px;
  padding-top: 15px;
  font-size: 14px;
  color: #dfebd4;
}

.tree-svg {
  display: block;
  width: calc(100% - 10px);
  margin: 0 auto;
  height: 44px;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 0;
}

.destinations > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  padding: 16px 8px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.destinations > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.destination-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.destinations strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.destinations small {
  display: block;
  font-size: 13px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.return-path {
  font-size: 14px;
  text-align: center;
  border: 1px dashed #b4c2a7;
  border-radius: 5px;
  margin-top: 20px;
  padding: 10px;
}

.return-path > span {
  margin-right: 8px;
}

.audience-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-block: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0;
}

.audience-strip > span:first-child {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
  max-width: 180px;
}

.audience-strip p {
  font-size: 16px;
  color: var(--ink);
}

/* Sections & Headings */
.section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-heading {
  margin-bottom: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.steps article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.step-number {
  font-size: 14px;
  color: var(--green);
  display: inline-block;
  border: 1px solid #cbd8c3;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 34px;
  margin-bottom: 24px;
}

.steps h3 {
  margin-bottom: 16px;
}

.steps p {
  font-size: 16px;
}

/* Capabilities Grid */
.capabilities {
  background: #f3f4f2;
  border-block: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #dbe2d5;
  border: 1px solid #dbe2d5;
}

.capability-grid article {
  background: #fff;
  padding: 28px 23px;
}

.feature-icon {
  display: flex;
  align-items: center;
  color: var(--green);
  margin-bottom: 24px;
}

.capability-grid h3 {
  font-size: 21px;
  margin-bottom: 15px;
  line-height: 1.25;
}

.capability-grid p {
  font-size: 16px;
}

.technology {
  display: block;
  font-size: 14px;
  margin-top: 20px;
  color: var(--green);
}

/* Use Case Table */
.use-case-table {
  overflow-x: auto;
}

.use-case-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}

.use-case-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.use-case-table th,
.use-case-table td {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  width: 33.33%;
}

.use-case-table thead {
  background: #edf0ec;
}

.use-case-table tbody th {
  font-weight: 500;
}

.use-case-table td {
  color: var(--muted);
}

.fit-note {
  font-size: 16px;
  margin-top: 25px;
  max-width: 85ch;
}

/* Deployment Options */
.deployment {
  background: var(--ink);
  color: #f5f8ee;
}

.deployment .eyebrow {
  color: var(--lime);
}

.deployment p {
  color: #d1ded5;
}

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.deployment-grid article {
  border: 1px solid #3c5e4e;
  border-radius: 8px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
}

.pill {
  display: inline-block;
  color: var(--lime);
  border: 1px solid #64784d;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 14px;
  margin-bottom: 26px;
}

.deployment-grid h3 {
  font-size: 29px;
  margin-bottom: 18px;
}

.deployment-grid ul {
  padding-left: 20px;
  margin-top: 25px;
  color: #e2ede0;
  font-size: 16px;
}

.deployment-grid li {
  margin-bottom: 10px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq details:first-child {
  padding-top: 0;
}

.faq summary {
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.faq summary::after {
  content: '+';
  color: var(--green);
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  font-size: 16px;
  margin-top: 18px;
}

/* Contact / Next Step */
.contact {
  background: #edf0ec;
  padding: 70px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact p {
  max-width: 53ch;
  margin: 24px 0 30px;
}

.discussion-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}

.discussion-panel .eyebrow {
  font-size: 14px;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.discussion-panel h3 {
  font-size: 26px;
}

.discussion-panel ul {
  list-style: none;
  margin-top: 24px;
}

.discussion-panel li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.discussion-panel li > span {
  font-size: 14px;
  color: var(--green);
  padding-top: 2px;
}

.discussion-panel strong {
  font-size: 16px;
  font-weight: 600;
}

.discussion-panel li p {
  font-size: 16px;
  margin: 5px 0 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-left p {
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--ink);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .network {
    padding: 22px;
  }
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .capability-grid > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .audience-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .audience-strip > span:first-child {
    max-width: none;
    width: 100%;
  }
  .section-heading,
  .faq,
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .brand {
    font-size: 20px;
  }
  .menu-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    width: 100%;
    padding-top: 14px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links a.active::after {
    display: none;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-grid,
  .section-heading,
  .deployment-grid,
  .faq,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(34px, 8.5vw, 50px);
  }
  .hero .lead {
    margin: 20px 0;
  }
  .network {
    margin-top: 8px;
    padding: 18px;
  }
  .destinations {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tree-svg {
    display: none;
  }
  .audience-strip {
    margin-top: 40px;
    gap: 10px 16px;
  }
  .audience-strip > span:not(:first-child) {
    display: none;
  }
  .audience-strip p {
    width: 100%;
  }
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .deployment-grid article,
  .discussion-panel {
    padding: 24px;
  }
  .contact {
    padding: 50px 0;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .use-case-table table,
  .use-case-table thead,
  .use-case-table tbody,
  .use-case-table th,
  .use-case-table td,
  .use-case-table tr {
    display: block;
    width: 100%;
  }
  .use-case-table thead {
    display: none;
  }
  .use-case-table tbody tr {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
  }
  .use-case-table th,
  .use-case-table td {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
  }
  .use-case-table td:last-child {
    border-bottom: none;
  }
  .use-case-table tbody th::before {
    content: 'Situation: ';
    font-weight: 600;
    color: var(--green);
  }
  .use-case-table td:nth-of-type(1)::before {
    content: 'Requirement: ';
    font-weight: 600;
    color: var(--ink);
    display: block;
  }
  .use-case-table td:nth-of-type(2)::before {
    content: 'KnowGrid Approach: ';
    font-weight: 600;
    color: var(--green);
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
