:root {
  --bg: #f7f8f6;
  --ink: #14201b;
  --muted: #607068;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(20, 32, 27, 0.13);
  --green: #2f9e6d;
  --green-dark: #13694b;
  --amber: #c88c2a;
  --coral: #e06f55;
  --graphite: #26302c;
  --shadow: 0 20px 60px rgba(30, 45, 37, 0.13);
  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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 28, 23, 0.66);
  color: #f8fff9;
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.badges,
.example-tabs,
.cta-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 760;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #dff8eb;
  font-weight: 860;
}

.nav-links {
  gap: 18px;
  color: rgba(248, 255, 249, 0.82);
  font-size: 14px;
}

.nav-links a:hover,
.header-action:hover,
.secondary-action:hover {
  color: #ffffff;
}

.header-action {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #f8fff9;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 88px;
  color: #f9fff9;
  background:
    linear-gradient(120deg, rgba(16, 30, 25, 0.92), rgba(19, 105, 75, 0.68) 46%, rgba(248, 248, 240, 0.14)),
    #13251f;
}

.hero-canvas,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  opacity: 0.95;
}

.hero-scrim {
  background:
    radial-gradient(circle at 74% 38%, rgba(47, 158, 109, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(8, 18, 15, 0.86), rgba(8, 18, 15, 0.38) 55%, rgba(8, 18, 15, 0.12));
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(248, 255, 249, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

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

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
}

.primary-action {
  background: #f7fff8;
  color: #123128;
  box-shadow: 0 14px 30px rgba(8, 16, 13, 0.2);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #f8fff9;
}

.badges {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.badges span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(248, 255, 249, 0.9);
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-self: end;
  padding-bottom: 10px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.metric-value {
  display: block;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 850;
}

.metric-label {
  display: block;
  margin-top: 5px;
  color: rgba(248, 255, 249, 0.76);
  font-size: 13px;
}

.section,
.intro-band,
.cta-band {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-band {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.cta-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.cta-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.module-card,
.example-shell,
.stack-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(25, 40, 34, 0.06);
}

.module-card {
  min-height: 190px;
  padding: 18px;
}

.module-code {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(47, 158, 109, 0.13);
  color: var(--green-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.module-card h3,
.example-copy h3 {
  margin: 16px 0 8px;
  color: var(--graphite);
  font-size: 18px;
}

.module-card p,
.example-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.examples-section {
  background: #ffffff;
}

.example-tabs {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  background: #f7f8f6;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
}

.tab-button.is-active {
  border-color: rgba(47, 158, 109, 0.5);
  background: #eaf7f0;
  color: var(--green-dark);
}

.example-shell {
  overflow: hidden;
}

.example-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 22px;
}

.example-panel[hidden] {
  display: none;
}

.example-copy {
  align-self: center;
}

.example-copy h3 {
  margin-top: 0;
  font-size: 22px;
}

pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: #111c17;
  color: #eefcf2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

code {
  display: block;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.62;
  white-space: pre;
}

.stack-section {
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0), rgba(220, 238, 229, 0.42)),
    var(--bg);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack-item {
  min-height: 84px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  font-weight: 760;
}

.stack-item img,
.stack-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.stack-dot {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1d3027;
  color: #eaf7f0;
  font-size: 14px;
  font-weight: 850;
}

.cta-band {
  background: #15251f;
  color: #f8fff9;
}

.cta-inner {
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2 {
  color: #f8fff9;
}

.cta-inner p {
  margin-top: 12px;
  color: rgba(248, 255, 249, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 58px;
  }

  .hero-panel,
  .intro-grid,
  .example-panel,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .intro-band,
  .cta-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .cta-inner,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  code {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 160px;
  }

  .header-action {
    padding-inline: 10px;
  }

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