/* ========================================
   Reset & Variables
   ======================================== */

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

:root {
  --black: #0a0a0a;
  --zinc-900: #171717;
  --zinc-800: #262626;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --white: #ffffff;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--zinc-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* ========================================
   Navigation — fixed, frosted glass
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 24px;
  font-weight: 1000;
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, var(--font-sans);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo-icon {
  height: 1.8em;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--zinc-500);
  transition: color 0.15s;
}

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

.btn-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 8px 16px;
  border-radius: 0;
  transition: opacity 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ========================================
   Main content container
   ======================================== */

.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 96px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding-bottom: 80px;
}

/* Two-column hero layout */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 52px;
}

.hero-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  padding: 10px;
  border: 1px solid #e4e4e7;
  background: #fff;
  box-sizing: content-box;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 680px) {
  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }
  .hero-photo {
    width: 100%;
    height: 260px;
  }
}

.hero-heading {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--black);
}

.hero-sub {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--zinc-500);
  max-width: 600px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--zinc-600);
  background: transparent;
  padding: 8px 16px;
  border: 1px solid var(--zinc-200);
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--black);
  border-color: var(--zinc-400);
}

/* ========================================
   Value Props — 2x2 grid
   ======================================== */

.value-props {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}

.value-card {
  /* no visual card, just content */
}

.value-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--zinc-400);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--zinc-500);
  line-height: 1.6;
}

/* ========================================
   How it works — Steps
   ======================================== */

.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.section-heading {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--black);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--zinc-500);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
}

.steps {
  margin-top: 48px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.step-row:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--zinc-600);
  line-height: 1.6;
}

.step-text code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--zinc-900);
  background: var(--zinc-100);
  padding: 2px 6px;
}

.step-link {
  color: var(--zinc-900);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--zinc-300);
  transition: text-decoration-color 0.15s;
}

.step-link:hover {
  text-decoration-color: var(--zinc-600);
}

/* ========================================
   Code block (dark)
   ======================================== */

.code-section {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.install-block {
  background: #141414;
  overflow: hidden;
  margin-top: 32px;
}

.install-tabs {
  display: flex;
  border-bottom: 1px solid var(--zinc-700);
}

.install-tab {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  color: var(--zinc-500);
  background: transparent;
  transition: color 0.15s, background 0.15s;
}

.install-tab.active {
  color: var(--white);
  background: var(--zinc-800);
}

.install-tab:hover:not(.active) {
  color: var(--zinc-400);
}

.code-body {
  position: relative;
  padding: 20px 24px;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
}

.code-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #e4e4e7;
  white-space: pre;
}

.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}

.code-copy .copy-icon {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.code-copy:hover .copy-icon {
  opacity: 0.8;
}

.code-kw { color: #c084fc; }
.code-fn { color: #60a5fa; }
.code-str { color: #86efac; }
.code-key { color: #e4e4e7; }
.code-num { color: #fbbf24; }
.code-cmt { color: #71717a; font-style: italic; }

/* ========================================
   Products grid
   ======================================== */

.products-section {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.product-card {
  overflow: hidden;
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--zinc-100);
}

.product-info {
  padding: 12px 0 0;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.product-meta {
  font-size: 14px;
  color: var(--zinc-500);
  margin-top: 2px;
}

/* ========================================
   Built for agents section
   ======================================== */

.agents-section {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.agent-item {
  padding: 0;
}

.agent-file {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--zinc-900);
  background: var(--zinc-100);
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 8px;
}

.agent-desc {
  font-size: 15px;
  color: var(--zinc-500);
  line-height: 1.6;
}

/* ========================================
   FAQ section
   ======================================== */

.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--zinc-200);
}

.faq-heading {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--black);
  margin-bottom: 48px;
}

.faq-item {
  margin-bottom: 40px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
}

.faq-answer {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--zinc-600);
  line-height: 28px;
}

.faq-answer a {
  color: var(--zinc-900);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--zinc-300);
  transition: text-decoration-color 0.15s;
}

.faq-answer a:hover {
  text-decoration-color: var(--zinc-600);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  border-top: 1px solid var(--zinc-200);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--zinc-500);
}

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

.footer-links a {
  color: var(--zinc-500);
  font-size: 14px;
  transition: color 0.15s;
}

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

/* ========================================
   Mobile
   ======================================== */

@media (max-width: 640px) {
  .nav {
    padding: 0 16px;
  }

  .nav-right {
    gap: 12px;
  }

  .main {
    padding: 120px 16px 64px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-heading {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.8px;
  }

  .hero-sub {
    font-size: 17px;
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .value-props,
  .how-section,
  .code-section,
  .products-section,
  .agents-section,
  .faq-section {
    padding: 56px 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .steps {
    margin-top: 32px;
  }

  .step-text {
    font-size: 16px;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .code-body code {
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .faq-item {
    margin-bottom: 32px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer {
    font-size: 16px;
    line-height: 26px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
