:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #607069;
  --line: #dce5df;
  --green: #25d366;
  --green-dark: #128c42;
  --mint: #dff7e8;
  --coral: #ff6b57;
  --blue: #3178c6;
  --gold: #f5b63d;
  --shadow: 0 22px 70px rgba(18, 50, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 211, 102, 0.1), transparent 36rem),
    linear-gradient(225deg, rgba(49, 120, 198, 0.08), transparent 34rem),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(220, 229, 223, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 40px rgba(28, 54, 40, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.hero-meta,
.system-top,
.session-panel {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  gap: 8px;
  color: #31423a;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: #eef6f1;
}

.nav-pill {
  color: #ffffff;
  background: var(--ink);
}

.nav-pill:hover {
  background: #24332d !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 42px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(18, 140, 66, 0.22);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.hero-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3b4f46;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-visual {
  width: 100%;
}

.system-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(220, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.system-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--blue), var(--gold), var(--coral));
}

.system-top {
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.system-top img {
  width: min(220px, 58%);
}

.status-dot {
  position: relative;
  padding: 8px 11px 8px 24px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-dot::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  transform: translateY(-50%);
}

.session-panel {
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qr-mark {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px 22px, var(--ink) 22px 34px, transparent 34px),
    linear-gradient(var(--ink) 12px, transparent 12px 22px, var(--ink) 22px 34px, transparent 34px),
    #ffffff;
  background-size: 36px 36px;
  border: 10px solid #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.flow-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-item,
.feature-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-item {
  padding: 14px;
}

.flow-item span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-item strong {
  display: block;
  margin: 6px 0;
}

.flow-item p,
.feature-card p,
.timeline-item p,
.quick-start p,
.plugins p,
.cta p,
.intro-band p {
  color: var(--muted);
  line-height: 1.58;
}

.flow-item p,
.feature-card p,
.timeline-item p,
.cta p {
  margin-bottom: 0;
}

.intro-band,
.section,
.workflow,
.quick-start,
.plugins,
.cta {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 36px;
  align-items: end;
  padding: 44px 0 72px;
  border-top: 1px solid var(--line);
}

.section,
.workflow {
  padding: 76px 0;
}

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

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

.feature-card {
  min-height: 230px;
  padding: 24px;
  box-shadow: 0 14px 46px rgba(33, 56, 43, 0.06);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  color: #215a95;
  background: #e4f0fc;
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  color: #8d5500;
  background: #fff0d1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-item {
  min-height: 230px;
  padding: 24px;
  border: 0;
  border-radius: 0;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
}

.quick-start,
.plugins {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: 34px;
  align-items: center;
  padding: 54px;
  border-radius: 8px;
  background: #17201c;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.quick-start p,
.plugins p {
  color: #c6d3cc;
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0d1511;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--coral);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  color: #e6fff0;
  font: 0.95rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(340px, 1.16fr);
  gap: 36px;
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stack-list strong {
  min-width: 170px;
}

.stack-list span {
  color: var(--muted);
  text-align: right;
}

.plugins {
  margin-top: 28px;
  background:
    linear-gradient(120deg, rgba(37, 211, 102, 0.2), transparent 46%),
    #173329;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.language-grid a {
  min-height: 74px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.language-grid a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 0 76px;
  text-align: center;
}

.cta h2,
.cta p {
  max-width: 720px;
}

.cta img {
  margin-bottom: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .intro-band,
  .quick-start,
  .split,
  .plugins {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-start,
  .plugins {
    padding: 34px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 24px, 1160px);
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero,
  .intro-band,
  .section,
  .workflow,
  .quick-start,
  .plugins,
  .cta,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: 2.82rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .flow-grid,
  .feature-grid,
  .timeline,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .quick-start,
  .plugins {
    padding: 26px;
  }

  .stack-list div,
  .site-footer {
    flex-direction: column;
  }

  .stack-list span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
