:root {
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --glass-shadow: rgba(0, 0, 0, 0.05);

  --primary: #4a6fa5;
  --primary-glow: rgba(74, 111, 165, 0.15);
  --secondary: #2d3748;
  --accent-pink: #d53f8c;

  --text-main: #1a202c;
  --text-muted: #718096;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --border-light: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(74, 111, 165, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.text-gradient {
  background: linear-gradient(135deg, #2d3748 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white {
  color: var(--primary);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.secondary-text {
  color: var(--text-muted);
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  background: rgba(255, 255, 255, 0.8);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav__icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #f7fafc, #ffffff);
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(230, 240, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 540px;
}

.badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #1a202c;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button--primary {
  background: var(--text-main);
  color: white;
  border: 1px solid transparent;
}

.button--primary:hover {
  background: #2d3748;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button--secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
}

.button--secondary:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

.button--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.button--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  gap: 0.5rem;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e2e8f0;
}

/* Hero Visual */
.hero__image-wrapper {
  position: relative;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  /* Soft shadow instead of heavy drop shadow */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.floating-card {
  position: absolute;
  padding: 1rem;
  border-radius: 12px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.9);
}

.card-1 {
  top: 10%;
  left: -20px;
  width: 240px;
}

.card-2 {
  bottom: 20%;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  animation-delay: 2s;
}

.card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red {
  background: #fc8181;
}

.yellow {
  background: #f6ad55;
}

.green {
  background: #68d391;
}

.code-font {
  font-family: 'Menlo', monospace;
  font-size: 0.8rem;
  color: #2d3748;
  margin: 0;
}

.code-result {
  font-family: 'Menlo', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.purple {
  color: var(--primary);
  font-weight: bold;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Separator / Agent Logos */
.brands-separator {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.brands-title {
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.agent-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.agent-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.agent-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.agent-badge {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #edf2f7;
  color: var(--text-muted);
}

/* Features */
.features {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: #fff;
}

.features__bg img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 2.5rem;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #edf2f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */
.light-section {
  padding: 6rem 0;
  background: #f7fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step-item {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: -30px;
  left: -10px;
  z-index: 0;
}

.step-content {
  position: relative;
  z-index: 1;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Terminal */
.centered-content {
  padding: 8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.terminal-showcase {
  width: 100%;
  max-width: 800px;
  background: #1a202c;
  /* Keep terminal dark for realism */
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Menlo', monospace;
  overflow: hidden;
  margin: 0 auto;
}

.terminal-header {
  background: #2d3748;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-title {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #a0aec0;
}

.terminal-window {
  padding: 2rem;
  color: #e2e8f0;
  font-size: 0.9rem;
}

/* Keep CLI colors somewhat consistent but readable on dark bg */
.code-line {
  margin-bottom: 0.5rem;
}

.prompt {
  color: #63b3ed;
  margin-right: 0.5rem;
}

.arg {
  color: #b794f4;
}

.str {
  color: #90cdf4;
}

.flag {
  color: #f6ad55;
}

.system {
  color: #718096;
  font-style: italic;
}

.success {
  color: #68d391;
}

.info {
  color: #63b3ed;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cli-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.cli-feature {
  text-align: center;
}

.cli-feature code {
  background: #edf2f7;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: var(--secondary);
  font-family: 'Menlo', monospace;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
}

.cli-feature p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Download */
.download-section {
  padding: 4rem 0 8rem;
  background: #fff;
}

.cta-box {
  padding: 4rem;
  text-align: center;
  border-radius: 24px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.glow-border {
  border: 1px solid rgba(74, 111, 165, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-text {
  font-size: 0.8rem;
  opacity: 0.6;
  color: var(--text-muted);
}

/* Documentation Section */
.docs-section {
  padding: 8rem 0;
  background: #f7fafc;
  border-top: 1px solid #edf2f7;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.docs-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.docs-card-wide {
  grid-column: 1 / -1;
}

.docs-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.docs-icon {
  width: 44px;
  height: 44px;
  background: #edf2f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.docs-card h3 {
  font-size: 1.2rem;
  color: #2d3748;
  margin: 0;
}

.docs-subheader {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem 0;
}

.docs-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.docs-row:last-child {
  border-bottom: none;
}

.docs-row kbd {
  background: #1a202c;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 85px;
  text-align: center;
  box-shadow: 0 2px 0 #0d1117;
}

.docs-row code {
  background: #edf2f7;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Menlo', monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.docs-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Agent Tags */
.agent-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}

.agent-tag.codex {
  background: #1a365d;
  color: white;
}

.agent-tag.claude {
  background: #d53f8c;
  color: white;
}

.agent-tag.gemini {
  background: #4285f4;
  color: white;
}

.agent-tag.mcp {
  background: #38a169;
  color: white;
}

/* Node Tags */
.node-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 70px;
  text-align: center;
  background: #edf2f7;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

/* CLI Columns */
.docs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.docs-column {
  min-width: 0;
}

/* Agent Flags */
.docs-flags {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.docs-flags-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.docs-flags code {
  background: #edf2f7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Menlo', monospace;
  font-size: 0.75rem;
  color: var(--secondary);
  border: 1px solid #e2e8f0;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Hamburger Menu Button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu .button {
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  color: white;
  /* Ensure button text is visible against dark background */
}

@media (max-width: 900px) {

  /* Navigation Mobile */
  .nav {
    padding: 1rem;
  }

  .nav__icon {
    width: 40px;
    height: 40px;
  }

  .nav__links {
    display: none !important;
  }

  .nav__download-desktop {
    display: none !important;
  }

  .nav__hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    text-align: center;
    min-width: 80px;
  }

  /* Floating cards hide on mobile */
  .floating-card {
    display: none;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }

  /* Features Mobile */
  .features {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* Steps Mobile */
  .steps-timeline {
    grid-template-columns: 1fr;
  }

  .step-number {
    font-size: 3rem;
    top: -15px;
  }

  /* Agent logos */
  .agent-logos {
    gap: 1.5rem;
  }

  /* Terminal Mobile */
  .centered-content {
    padding: 4rem 0;
  }

  .terminal-window {
    padding: 1rem;
    font-size: 0.75rem;
    overflow-x: auto;
  }

  .cli-features {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Download Section Mobile */
  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .button--large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  /* Docs Mobile */
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .docs-row {
    flex-wrap: wrap;
  }

  .docs-row kbd,
  .docs-row code {
    min-width: auto;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }
}
