:root {
  color-scheme: light;
  --ink: #18201c;
  --muted: #5f6a62;
  --line: #dfe6df;
  --paper: #f7faf5;
  --white: #ffffff;
  --accent: #f6c944;
  --accent-strong: #d49800;
  --green: #2e7d59;
  --terminal: #20242d;
  --terminal-text: #edf4ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #111;
  background: var(--accent);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) 56px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.install-command {
  max-width: 720px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid #2b3039;
  border-radius: 8px;
  background: var(--terminal);
  box-shadow: 0 24px 60px rgba(30, 37, 31, 0.16);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #cbd5cc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.copy-button {
  min-width: 64px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--terminal-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

code {
  color: var(--terminal-text);
  font: 700 15px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 800;
}

.primary-button {
  color: #151515;
  background: var(--accent);
}

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

.product-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 420px);
  min-height: 560px;
  padding: 16px;
  border: 1px solid #cbd7cc;
  border-radius: 28px;
  background: #eef5ed;
  box-shadow: 0 30px 80px rgba(31, 50, 36, 0.18);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #26a269;
}

.chat {
  display: grid;
  gap: 12px;
  padding: 18px 0;
}

.bubble {
  max-width: 84%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
}

.bubble.user {
  justify-self: end;
  color: #151515;
  background: var(--accent);
}

.bubble.bot {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--white);
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

.section-link {
  margin: 22px 0 0;
  color: var(--green);
  font-weight: 800;
}

.section-link a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid p,
.split p {
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-strong);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #151515;
  background: var(--accent);
}

.guide-hero {
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 64px) clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.guide-hero h1 {
  max-width: 940px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.guide-stats div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.guide-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
}

.guide-stats span {
  color: var(--muted);
  line-height: 1.4;
}

.guide-section {
  padding: clamp(44px, 7vw, 78px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.guide-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.guide-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.5fr) minmax(116px, 0.5fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.guide-row:first-child {
  border-top: 0;
}

.guide-head {
  color: var(--muted);
  background: #eef4ed;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-row > span:first-child {
  font-weight: 800;
}

.guide-row code {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--terminal-text);
  background: var(--terminal);
  white-space: normal;
}

.status-pass,
.status-manual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pass {
  color: #0c5133;
  background: #dff3e8;
}

.status-manual {
  color: #6a4700;
  background: #fff2bf;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

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

  .hero {
    min-height: auto;
  }

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

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

  .guide-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-head {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .phone-shell {
    min-height: 0;
  }

  .guide-stats {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
