:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --bg-soft: #eceee7;
  --panel: #ffffff;
  --panel-2: #fdfcf7;
  --ink: #18211d;
  --muted: #637069;
  --line: #dce2da;
  --green: #1f7a5a;
  --green-dark: #155a42;
  --blue: #2f5b8f;
  --red: #b03a2e;
  --amber: #94611d;
  --shadow: 0 18px 55px rgba(40, 52, 44, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 218, 0.72);
  background: rgba(247, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.nav-links,
.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a,
.ghost-link {
  color: var(--muted);
  font-size: 14px;
}

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

.primary-link,
.secondary-link {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-link {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(24, 33, 29, 0.18);
}

.primary-link:hover {
  background: #2b3731;
}

.secondary-link {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.secondary-link:hover {
  border-color: #a9b4ab;
}

.large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.hero-cta {
  max-width: 100%;
  min-height: 52px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  padding: 86px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
}

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

.hero h1,
.section-heading h2,
.split-copy h2,
.cta-band h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 700px;
  font-size: 48px;
  font-weight: 820;
}

.nowrap {
  white-space: nowrap;
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-promise {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 820;
  line-height: 1;
}

.hero-metrics dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  margin: 0;
  padding: 12px;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e1e6df;
}

.hero-visual figcaption {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.excel-visual {
  background: #fdfcf7;
}

.platform-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 30px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-strip span {
  min-height: 48px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #33413a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 720;
}

.section,
.split-section,
.signup-panel,
.cta-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section.compact {
  padding-top: 56px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-copy h2,
.cta-band h2 {
  font-size: 40px;
  font-weight: 800;
}

.section-heading p:last-child,
.split-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.feature-card,
.capability-grid article,
.admin-grid article {
  min-height: 230px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-card:nth-child(2),
.admin-grid article:nth-child(2) {
  background: #f9fbfd;
}

.feature-card:nth-child(3),
.admin-grid article:nth-child(3) {
  background: #fffaf2;
}

.card-kicker,
.admin-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3,
.capability-grid h3,
.admin-grid h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.feature-card p,
.capability-grid p,
.admin-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.split-section {
  padding: 76px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.signup-panel {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 38px;
  border: 1px solid #d7ded5;
  border-radius: 8px;
  background: #eef2eb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.signup-panel h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.signup-panel p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.signup-box {
  min-height: 240px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #dce3da;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.signup-box strong {
  color: var(--green);
  font-size: 14px;
}

.signup-box span {
  margin-top: 12px;
  font-size: 42px;
  line-height: 1;
  font-weight: 820;
}

.signup-box p {
  margin: 16px 0 22px;
  font-size: 14px;
  line-height: 1.65;
}

.signup-box .primary-link {
  width: 100%;
  margin-top: auto;
}

.split-copy {
  max-width: 580px;
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #35413b;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.api-panel {
  border-radius: 8px;
  background: #18211d;
  color: #dfe8df;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-bar {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9b44c;
  box-shadow: 20px 0 #dc675b, 40px 0 #64b486;
}

.panel-bar strong {
  margin-left: 42px;
  font-size: 13px;
  color: #f3f7f2;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

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

.pricing-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.pricing-card:nth-child(2) {
  background: #f6f9fc;
}

.pricing-card:nth-child(3) {
  background: #fffaf2;
}

.pricing-card:nth-child(4) {
  background: #f7fbf8;
}

.pricing-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.pricing-card strong {
  display: block;
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.18;
}

.pricing-card p,
.pricing-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.pricing-note {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid #dce3da;
  background: #eef2eb;
}

.pricing-note strong {
  display: block;
  font-size: 17px;
}

.risk-board {
  display: grid;
  gap: 14px;
}

.risk-item {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(40, 52, 44, 0.08);
}

.risk-item span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.risk-item.high span {
  color: var(--red);
  background: #fff0ec;
}

.risk-item.medium span {
  color: var(--amber);
  background: #fff6e7;
}

.risk-item.normal span {
  color: var(--green);
  background: #eaf5ef;
}

.risk-item strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

.risk-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.mini-stats div {
  min-height: 98px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  font-size: 18px;
}

.mini-stats span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cta-band {
  margin-top: 30px;
  margin-bottom: 70px;
  padding: 38px;
  border: 1px solid #d7ded5;
  border-radius: 8px;
  background: #eef2eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

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

  .hero,
  .split-section,
  .split-section.reverse,
  .signup-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    gap: 38px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .platform-strip,
  .workflow-grid,
  .pricing-grid,
  .capability-grid,
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-shell,
  .hero,
  .platform-strip,
  .section,
  .split-section,
  .cta-band,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions .ghost-link,
  .nav-actions .primary-link {
    flex: 1;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.14;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-strip,
  .workflow-grid,
  .pricing-grid,
  .capability-grid,
  .admin-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-metrics div {
    min-height: 72px;
    padding: 12px;
  }

  .hero-metrics dt {
    font-size: 24px;
  }

  .hero-metrics dd {
    margin-top: 7px;
    font-size: 12px;
  }

  .hero-visual {
    padding: 8px;
  }

  .section,
  .split-section {
    padding: 56px 0;
  }

  .signup-panel {
    width: min(100% - 28px, 1180px);
    padding: 28px;
  }

  .section-heading h2,
  .split-copy h2,
  .signup-panel h2,
  .cta-band h2 {
    font-size: 31px;
    line-height: 1.16;
  }

  .feature-card,
  .capability-grid article,
  .admin-grid article {
    min-height: auto;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}
