:root {
  /* Zenlytic palette */
  --teal-900: #09493d;
  --teal-700: #0d6152;
  --sage: #7cb77f;
  --cream: #ffedb2;
  --cream-soft: #fff8e1;

  --ink: #101010;
  --ink-2: #282626;
  --muted: #5a5a5a;
  --rule: #e5e5e0;
  --bg: #e6dfce;
  --bg-grid: rgba(40, 38, 38, 0.11);
  --bg-code: #f3f2ec;
  --bg-code-dark: #0f1a17;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 1px 1px 12px rgba(115, 115, 115, 0.1);
  --shadow-lg: 0 10px 30px -10px rgba(9, 73, 61, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--bg-grid) 0,
      var(--bg-grid) 0.5px,
      transparent 0.5px,
      transparent 22px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--bg-grid) 0,
      var(--bg-grid) 0.5px,
      transparent 0.5px,
      transparent 22px
    );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 55% at 50% 40%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 65%,
    rgba(0, 0, 0, 0.08) 82%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 60% 55% at 50% 40%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 65%,
    rgba(0, 0, 0, 0.08) 82%,
    rgba(0, 0, 0, 0) 100%
  );
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 64px;
}

main {
  max-width: 720px;
  margin: 0;
  padding: 40px 0 96px;
}

/* Hero ---------------------------------------------------------- */

.hero-wrap {
  margin: 0;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.hero {
  min-width: 0;
}

.hero-demo {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hero-demo-trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-demo-trigger:hover {
  transform: translateY(-2px);
}

.hero-demo-trigger:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.hero-demo-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(9, 25, 22, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(124, 183, 127, 0.35);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

/* Modal ---------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal.is-open {
  opacity: 1;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(9, 20, 17, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.modal-inner {
  position: relative;
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-inner img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 20, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.12s ease, transform 0.12s ease;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(9, 20, 17, 0.9);
  transform: scale(1.05);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .page {
    padding: 0 32px;
  }
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 32px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 0 20px;
  }
}


.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--teal-900);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.wordmark .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--teal-900);
  color: var(--cream);
  font-size: 16px;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero-subheading {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 24px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 24px;
}

/* Intro body ----------------------------------------------------- */

.intro-body {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
}

.wikilink {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wikilink .wl-brackets {
  color: var(--sage);
  font-weight: 700;
}

.wikilink .wl-inner {
  border-bottom: 1px dashed var(--teal-700);
  padding-bottom: 1px;
}


.hero-github {
  margin: 0;
}

.hero-github a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--teal-900);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.12s ease, transform 0.12s ease;
}

.hero-github a:hover {
  background: var(--teal-700);
  color: var(--cream);
  transform: translateY(-1px);
}

.hero-github svg {
  flex-shrink: 0;
}

/* Typography ----------------------------------------------------- */

h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 32px 0 12px;
  color: var(--ink-2);
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--teal-900);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-700);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-code);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink-2);
}

/* Quote card ----------------------------------------------------- */

.quote-card {
  margin: 20px 0 24px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
}

.quote-card code {
  background: var(--bg-code);
  font-style: normal;
  padding: 1px 6px;
}

/* Install section ------------------------------------------------ */

.install {
  margin-top: 8px;
  display: grid;
  gap: 20px;
}

.install-card {
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.install-label {
  margin: 2px 2px 6px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.install-sublabel {
  margin: 0 2px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Terminal code block -------------------------------------------- */

.terminal {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1411;
  border: 1px solid rgba(124, 183, 127, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 40px -20px rgba(0, 0, 0, 0.45);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #0a1713;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-chrome .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3) inset;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-label {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.terminal-chrome .copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease,
    background 0.12s ease;
}

.terminal-chrome .copy-btn:hover {
  color: var(--cream);
  border-color: rgba(255, 237, 178, 0.35);
  background: rgba(255, 237, 178, 0.05);
}

.terminal-chrome .copy-btn.copied {
  color: #2dd76b;
  border-color: rgba(45, 215, 107, 0.45);
  background: rgba(45, 215, 107, 0.07);
}

.terminal-chrome .copy-btn svg {
  opacity: 0.85;
}

.terminal pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: #e6f1ec;
}

.terminal-compact pre {
  padding: 14px 20px;
  font-size: 13px;
}

.terminal code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.terminal .prompt {
  color: var(--sage);
  user-select: none;
  margin-right: 10px;
  font-weight: 700;
}

/* Lists ---------------------------------------------------------- */

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.tick-list li {
  position: relative;
  padding: 4px 0 4px 24px;
}

.tick-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--sage);
  font-family: var(--font-mono);
  font-weight: 700;
}

.feature-list,
.type-list {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list > div,
.type-list > div {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.feature-list dt,
.type-list dt {
  display: inline;
  font-weight: 700;
  color: var(--teal-900);
  margin-right: 6px;
}

.type-list dt {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.feature-list dd,
.type-list dd {
  display: inline;
  margin: 0;
  color: var(--ink-2);
}

.steps {
  padding-left: 0;
  counter-reset: step;
  list-style: none;
  margin: 0 0 16px;
}

.steps li {
  position: relative;
  padding: 6px 0 6px 36px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* CLI table ------------------------------------------------------ */

.cli-table {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.cli-table > div {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-size: 14px;
}

.cli-table > div:last-child {
  border-bottom: none;
}

.cli-table code {
  background: transparent;
  padding: 0;
  color: var(--teal-900);
  font-weight: 500;
  font-size: 13px;
}

.cli-table span {
  color: var(--muted);
}

/* Footer --------------------------------------------------------- */

footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-links span {
  color: var(--rule);
}

.colophon {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Mobile --------------------------------------------------------- */

@media (max-width: 560px) {
  main {
    padding: 48px 20px 64px;
  }

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

  .lede {
    font-size: 17px;
  }

  h2 {
    font-size: 22px;
  }

  .install-primary {
    padding: 20px 18px 18px;
  }

  .cli-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .code-block {
    font-size: 13px;
  }
}
