:root {
  --bg: #f6f5ec;
  --bg-alt: #f0efe4;
  --panel: #ffffff;
  --ink: #263524;
  --muted: #6c7566;
  --line: rgba(38, 53, 36, 0.10);
  --moss: #61814a;
  --moss-deep: #43602f;
  --blossom: #d98fac;
  --lavender: #9d8fc9;
  --terminal-bg: #1c261b;
  --terminal-text: #d7e0cd;
  --terminal-dim: #7a8a72;

  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Nav lives in nav.css — shared with the mdbook pages under /docs/. */

/* Buttons */

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background-color: var(--moss);
  color: #fbfbf3;
}

.btn--primary:hover {
  background-color: var(--moss-deep);
}

.btn--secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  border-color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 640px;
  padding: 64px 32px;
  box-sizing: border-box;
  background-image:
    linear-gradient(180deg, rgba(246, 245, 236, 0.35) 0%, rgba(246, 245, 236, 0.55) 55%, var(--bg) 100%),
    var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
}

.hero__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__text {
  max-width: 620px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 18px;
}

.hero__headline {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}

.hero__subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero__mascot {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  transform: scaleX(-1);
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 30px rgba(38, 53, 36, 0.18));
}

/* Product sections */

.product {
  width: 100%;
  padding: 96px 32px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
}

.product__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 72px;
}

.product__inner--reverse {
  flex-direction: row-reverse;
}

.product__text {
  display: flex;
  flex-direction: column;
  width: 440px;
  flex-shrink: 0;
  gap: 16px;
}

.product__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.product__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--section-accent);
  flex-shrink: 0;
}

.product__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.product__description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 4px;
}

.cli-block {
  display: flex;
  flex-direction: column;
  background-color: var(--terminal-bg);
  border-radius: 12px;
  padding: 18px 22px;
}

.cli-block__line {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--section-accent, var(--moss));
  white-space: pre-wrap;
  word-break: break-word;
}

/* Terminal mockup */

.terminal {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  background-color: var(--terminal-bg);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(28, 38, 27, 0.45);
  overflow: hidden;
}

.terminal--wide {
  width: 620px;
  max-width: 100%;
  flex: none;
  margin: 0 auto;
}

.terminal--full {
  width: 900px;
  max-width: 100%;
  flex: none;
  margin: 0 auto;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background-color: rgba(255, 255, 255, 0.03);
}

.terminal__dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--terminal-dim);
  opacity: 0.5;
}

.terminal__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--terminal-dim);
  padding-left: 6px;
}

.terminal__body {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 26px;
  gap: 3px;
  overflow-x: auto;
  text-align: left;
}

.terminal__body--media {
  padding: 0;
  gap: 0;
}

.terminal__media {
  display: block;
  width: 100%;
  height: auto;
}

.term-line {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line--command {
  color: var(--section-accent, var(--moss));
}

.term-line--output {
  color: var(--terminal-text);
}

.term-line--dim {
  color: var(--terminal-dim);
}

/* Getting started */

.getting-started {
  width: 100%;
  padding: 100px 32px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

.section-paragraph {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 32px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
}

.site-footer__license,
.site-footer__github {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding: 56px 20px;
  }

  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__headline {
    font-size: 38px;
  }

  .hero__mascot {
    width: 130px;
  }

  .product {
    padding: 56px 20px;
  }

  .product__inner,
  .product__inner--reverse {
    flex-direction: column;
    gap: 32px;
  }

  .product__text {
    width: 100%;
  }

  .terminal--wide {
    width: 100%;
  }

  .getting-started {
    padding: 64px 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
