:root {
  color-scheme: light;
  --ink: #16211b;
  --muted: #5b6862;
  --line: #d9e2dc;
  --surface: #ffffff;
  --soft: #f3f7f0;
  --green: #2f7d45;
  --green-dark: #1f5d35;
  --mint: #d7f2dd;
  --cyan: #d8eff2;
  --amber: #f4d37a;
  --plum: #5c5270;
  --shadow: 0 18px 48px rgba(35, 58, 44, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans TC", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  background: #fbfdf9;
  letter-spacing: 0;
}

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

code,
kbd,
pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(251, 253, 249, 0.92);
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-icon {
  width: 34px;
  height: 34px;
}

.topnav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.topnav a {
  padding: 8px 0;
}

.topnav a:hover {
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  min-height: calc(100vh - 68px);
  padding: 72px max(28px, calc((100vw - var(--max)) / 2)) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 16%, rgba(216, 239, 242, 0.86), transparent 30%),
    linear-gradient(135deg, #f8fbf1 0%, #eef6ea 46%, #f9fbf7 100%);
}

.hero-bg {
  position: absolute;
  inset: auto 2vw -120px auto;
  width: min(460px, 45vw);
  aspect-ratio: 1;
  background: url("./assets/broccoli-icon.png") center / contain no-repeat;
  opacity: 0.1;
  filter: saturate(0.9);
}

.hero-inner,
.hero-demo {
  position: relative;
  z-index: 1;
  align-self: center;
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(58px, 8vw, 106px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #35443b;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover {
  background: #fff;
}

.version-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.version-strip div {
  padding: 14px 18px 14px 0;
}

.version-strip dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.version-strip dd {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.demo-window {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 226, 220, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.traffic {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8ddd9;
}

.traffic span:nth-child(1) {
  background: #e6765f;
}

.traffic span:nth-child(2) {
  background: #e6c85f;
}

.traffic span:nth-child(3) {
  background: #72b874;
}

.input-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-height: 70px;
  padding: 18px;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 780;
  line-height: 1.25;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ascii {
  color: var(--green-dark);
}

.caret {
  width: 3px;
  height: 38px;
  background: var(--green);
  animation: blink 1.15s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.reading-line {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.candidate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.candidate.active {
  background: var(--mint);
  border-color: #a8dcb5;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.quick-facts div {
  padding: 22px;
  background: #fff;
}

.quick-facts strong {
  display: block;
  margin-bottom: 6px;
}

.quick-facts span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

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

.feature {
  min-height: 228px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature p {
  color: var(--muted);
  line-height: 1.7;
}

.status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 760;
}

.status.done {
  background: var(--mint);
  color: var(--green-dark);
}

.status.partial {
  background: var(--cyan);
  color: #255e66;
}

.status.base {
  background: #eeeaf4;
  color: var(--plum);
}

.status.planned {
  background: #fff0c4;
  color: #73560b;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

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

.shortcut {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 7px;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 9px;
  color: #1c2a22;
  background: #eef3ed;
  border: 1px solid #cfd9d2;
  border-bottom-width: 2px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 760;
}

.shortcut p,
.install-band p,
.source-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.install-band {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 42px;
  align-items: start;
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.install-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.install-steps li::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

pre {
  min-height: 156px;
  margin: 0;
  padding: 22px;
  color: #eaf7ec;
  background: #172019;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.72;
  white-space: pre-wrap;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 42px;
  align-items: start;
}

.source-links {
  display: grid;
  gap: 10px;
}

.source-links a {
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 760;
}

.source-links a:hover {
  border-color: #9bc9a5;
  color: var(--green-dark);
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  min-height: 128px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.roadmap-list span {
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 96px auto 0;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .install-band,
  .source-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .demo-window {
    margin-left: 0;
  }

  .feature-grid,
  .terminal-grid,
  .roadmap-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-facts {
    margin: 0 28px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }

  .hero {
    padding: 54px 20px 40px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .version-strip,
  .quick-facts,
  .feature-grid,
  .terminal-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .version-strip div {
    padding-right: 0;
  }

  .quick-facts {
    margin: 0 20px;
  }

  .section {
    padding: 72px 20px 0;
  }

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

  .input-line {
    font-size: 29px;
  }

  .footer {
    flex-direction: column;
    margin-top: 72px;
    padding: 22px 20px;
  }
}
