:root {
  --ink: #10251d;
  --ink-soft: #2d453b;
  --muted: #62756b;
  --paper: #f5f8f4;
  --paper-card: #ffffff;
  --line: #dbe6de;
  --line-soft: #e8f0ea;
  --green: #176b44;
  --green-dark: #0f5133;
  --green-light: #eaf5ee;
  --lime: #d9f36d;
  --lime-soft: #f4fae1;
  --orange: #f0a24b;
  --terminal-bg: #0c1813;
  --terminal-bar: #162a22;
  --shadow-sm: 0 4px 16px rgba(16, 37, 29, 0.05);
  --shadow-md: 0 16px 48px rgba(16, 37, 29, 0.08);
  --shadow-lg: 0 24px 80px rgba(16, 37, 29, 0.12);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

.site-noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(#176b4418 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.site-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand small {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(23, 107, 68, 0.2);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--green);
}

.language-switcher {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 20px;
  gap: 2px;
}

.language-switcher button {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.language-switcher button.active {
  background: var(--green);
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border: 1px solid rgba(23, 107, 68, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 68, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 107, 68, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(23, 107, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 107, 68, 0); }
}

h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title-suffix {
  color: var(--green);
  background: linear-gradient(135deg, var(--green), #25965f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(23, 107, 68, 0.25);
}

.button-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  background: #f0f4f0;
  border-color: #c0cfc4;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-item svg {
  color: var(--green);
}

/* Terminal Mockup */
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--mono);
}

.terminal-header {
  background: var(--terminal-bar);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  color: #9ab4a7;
  font-size: 12px;
  font-weight: 500;
}

.terminal-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #b0c7bc;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.terminal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.terminal-body {
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #e2f1e9;
  overflow-x: auto;
}

.t-prompt {
  color: #4ade80;
  font-weight: bold;
}

.t-cmd {
  color: #ffffff;
  font-weight: bold;
}

.t-info {
  color: #38bdf8;
}

.t-success {
  color: #4ade80;
}

.t-link {
  color: #d9f36d;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.t-muted {
  color: #71897c;
}

/* Sections */
.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}

.section-desc {
  color: var(--ink-soft);
  font-size: 16px;
}

/* Workflow Steps */
.workflow-section {
  padding: 72px 0 54px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(23, 107, 68, 0.35);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  font-family: var(--mono);
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.step-code {
  margin-top: 16px;
  background: #0f1d17;
  color: #a7f3d0;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Install Box */
.install-section {
  padding: 36px 0 64px;
}

.install-box {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.code-banner {
  background: var(--terminal-bg);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  font-family: var(--mono);
}

.code-banner code {
  color: #e2f1e9;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-button {
  background: var(--green);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

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

/* CLI Flags Table */
.cli-section {
  padding: 48px 0 64px;
}

.table-wrap {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

th {
  background: #edf3ee;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

td code {
  font-family: var(--mono);
  background: #f0f4f0;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-block;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 72px;
}

@media (max-width: 800px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  font-size: 14px;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--green);
}
