:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5c6962;
  --paper: #f7f4ed;
  --surface: #fffaf1;
  --line: rgba(23, 33, 28, 0.13);
  --sage: #597465;
  --sage-dark: #243d32;
  --clay: #bc6f45;
  --gold: #d8a84e;
  --aqua: #5d9690;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(35, 45, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

body::selection {
  background: rgba(216, 168, 78, 0.35);
}

body.contact-open {
  overflow: hidden;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 244, 237, 0.88);
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  z-index: 20;
}

.site-header.scrolled {
  background: rgba(247, 244, 237, 0.97);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(23, 33, 28, 0.08);
}

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

.brand-mark {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 33, 28, 0.12);
  display: block;
  flex: 0 0 auto;
  height: 40px;
  object-fit: cover;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  justify-content: center;
}

.site-nav a {
  color: rgba(23, 33, 28, 0.74);
  font-size: 14px;
  white-space: nowrap;
}

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

.header-action,
.primary-action,
.secondary-action {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.header-action,
.primary-action {
  background: var(--sage-dark);
  color: var(--white);
  cursor: pointer;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--white);
}

.hero {
  min-height: 96vh;
  overflow: hidden;
  padding: 148px clamp(20px, 7vw, 96px) 54px;
  position: relative;
}

.hero-media,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-media {
  background:
    linear-gradient(135deg, #657f71, #d5a75b 45%, #f3ead5),
    var(--paper);
}

.hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 240ms ease;
  width: 100%;
}

.hero-media.has-image img {
  opacity: 0.82;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.82), rgba(23, 33, 28, 0.42) 48%, rgba(23, 33, 28, 0.15)),
    linear-gradient(0deg, rgba(23, 33, 28, 0.44), transparent 44%);
}

.hero-content {
  color: var(--white);
  max-width: 840px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2cc7c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 760px;
}

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

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 58px 0 0;
  max-width: 760px;
  padding-top: 28px;
}

.hero-metrics div,
.hero-metrics dt,
.hero-metrics dd {
  margin: 0;
}

.hero-metrics dt {
  color: #f2cc7c;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.intro-band,
.workflow-band,
.pilot-section,
.site-footer {
  padding-left: clamp(20px, 7vw, 96px);
  padding-right: clamp(20px, 7vw, 96px);
}

.intro-band {
  background: var(--sage-dark);
  color: var(--white);
  padding-bottom: 32px;
  padding-top: 32px;
}

.intro-band p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.62;
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
}

.section {
  padding: 94px clamp(20px, 7vw, 96px);
}

.section-heading {
  max-width: 760px;
}

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

.capability-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 236px;
  padding: 28px;
  position: relative;
}

.capability-card::after {
  background: var(--aqua);
  bottom: 0;
  content: "";
  height: 4px;
  left: 28px;
  position: absolute;
  width: 54px;
}

.capability-card:nth-child(2)::after,
.capability-card:nth-child(5)::after {
  background: var(--clay);
}

.capability-card:nth-child(3)::after,
.capability-card:nth-child(6)::after {
  background: var(--gold);
}

.card-index {
  color: var(--clay);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 20px;
}

.capability-card p,
.feature-panel p,
.trust-grid p,
.pilot-section p {
  margin-bottom: 0;
}

.workflow-band {
  align-items: start;
  background: #e7e0d2;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1.16fr);
  padding-bottom: 86px;
  padding-top: 86px;
}

.workflow-list {
  counter-reset: workflow;
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-list li {
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(23, 33, 28, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px 1fr;
  padding: 22px;
}

.workflow-list span {
  color: var(--clay);
  font-weight: 850;
}

.workflow-list strong {
  font-size: 19px;
}

.workflow-list p {
  grid-column: 2;
  margin: -4px 0 0;
}

.montessori-section {
  background: var(--paper);
}

.montessori-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.feature-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
  padding: 30px;
}

.feature-panel.highlighted {
  background: var(--sage-dark);
  box-shadow: var(--shadow);
}

.feature-panel.highlighted h3,
.feature-panel.highlighted p {
  color: var(--white);
}

.trust-section {
  background: #fbf8f0;
}

.trust-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
}

.trust-grid div {
  border-left: 1px solid var(--line);
  min-height: 230px;
  padding: 24px;
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line);
}

.pilot-section {
  align-items: center;
  background: var(--sage-dark);
  color: var(--white);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 70px;
  padding-top: 70px;
}

.pilot-section .eyebrow {
  color: #f2cc7c;
}

.pilot-section h2 {
  max-width: 760px;
}

.pilot-section p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 780px;
}

.primary-action.light {
  background: var(--white);
  color: var(--sage-dark);
}

.qr-contact {
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  display: none;
  height: 168px;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  width: 168px;
}

.qr-contact.visible {
  display: flex;
}

.qr-contact img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.qr-fallback {
  align-items: center;
  border: 1px dashed rgba(36, 61, 50, 0.28);
  border-radius: 8px;
  color: var(--sage-dark);
  display: none;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: center;
  padding: 14px;
  text-align: center;
  width: 100%;
}

.qr-fallback span {
  font-weight: 800;
}

.qr-fallback small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qr-contact.missing img {
  display: none;
}

.qr-contact.missing .qr-fallback {
  display: flex;
}

.contact-popover {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 60;
}

.contact-popover.open {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.popover-backdrop {
  background: rgba(18, 25, 20, 0.58);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.popover-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-width: 360px;
  padding: 34px;
  position: relative;
  text-align: center;
  width: min(100%, 360px);
  z-index: 1;
}

.popover-panel h2 {
  font-size: 28px;
}

.popover-panel p {
  margin-bottom: 22px;
}

.popover-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
}

.site-footer {
  align-items: center;
  background: #121914;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 86px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: #f2cc7c;
}

.footer-contact {
  background: transparent;
  border: 0;
  color: #f2cc7c;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .capability-grid,
  .montessori-layout,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-band,
  .pilot-section {
    grid-template-columns: 1fr;
  }

  .qr-contact {
    height: 152px;
    width: 152px;
  }

  .trust-grid div:nth-child(2) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .header-action {
    display: inline-flex;
    font-size: 13px;
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: 700px;
    padding: 112px 18px 38px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(23, 33, 28, 0.88), rgba(23, 33, 28, 0.58)),
      linear-gradient(0deg, rgba(23, 33, 28, 0.54), transparent 42%);
  }

  .hero-metrics,
  .capability-grid,
  .montessori-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 18px;
    margin-top: 40px;
  }

  .section,
  .workflow-band {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
  }

  .workflow-list p {
    grid-column: 1;
  }

  .trust-grid div,
  .trust-grid div:last-child,
  .trust-grid div:nth-child(2) {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .popover-panel {
    padding: 30px 22px;
  }
}
