:root {
  color-scheme: dark;

  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface-alt: #222222;
  --text: #e8e4db;
  --text-muted: #a8a29e;
  --text-faint: #6f6f78;
  --border: #333333;

  --primary: #f26522;
  --primary-hover: #d9541a;

  /* Font scale. Five base sizes + two heading clamps. Don't introduce new sizes. */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-h2: clamp(1.5rem, 4vw, 2.25rem);
  --text-h1: clamp(2rem, 5vw, 3rem);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html {
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(242, 101, 34, 0.12), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

body {
  max-width: 980px;
  padding: var(--space-md);
  background: transparent;
  color: var(--text);
  font-size: var(--text-base);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header .brand-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.site-header .login-link {
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
}
.site-header .login-link:hover {
  background: var(--primary);
  color: #fff;
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 0%, #cfcac0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}
.hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero .lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto var(--space-md);
  text-wrap: balance;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: var(--space-md);
}
.cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

.numbered {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}
.numbered .num {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.numbered h2 {
  font-size: var(--text-h2);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 720px;
  text-wrap: pretty;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
/* Four-card sections read better as a 2x2 grid than 3 + 1. */
.features-2up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .features-2up {
    grid-template-columns: 1fr;
  }
}
.features article {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.features h3 {
  font-size: var(--text-base);
  color: var(--primary);
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}
.features p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.price strong {
  color: var(--primary);
}

/* Terminal command blocks (copyable). Every box is the same width (sized for
   the longest command) so they line up; each command line is its own row with
   its own Copy button, vertically centered on that line. */
.terminal {
  display: block;
  width: 100%;
  max-width: 30rem;
  background: #171717;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  text-align: left;
}
.terminal-hero {
  margin-left: auto;
  margin-right: auto;
}
.cmd-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.cmd-line + .cmd-line {
  margin-top: var(--space-xs);
}
.cmd {
  display: block;
  min-width: 0;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.9;
}
.cmd::before {
  content: "$ ";
  color: var(--primary);
  user-select: none;
}
.terminal-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex: 0 0 auto;
  margin: 0;
  min-width: 6.5rem;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.terminal-copy:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface);
}
.copy-icon {
  display: block;
  flex: 0 0 auto;
}

/* Tabs (quickstart agent paths) */
.tabs {
  margin-top: var(--space-md);
}
.tab-row {
  display: flex;
  gap: var(--space-xs);
  max-width: 26rem;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1 1 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: -1px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover,
.tab:focus,
.tab:active {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.tab:focus {
  outline: none;
}
.tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}
.tab-panel {
  padding-top: var(--space-md);
}
.tab-panel[hidden] {
  display: none;
}

/* Quickstart steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-lg) 0 0;
  display: grid;
  gap: var(--space-lg);
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: calc(var(--space-xl) - var(--space-sm));
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  font-size: var(--text-sm);
  font-weight: 700;
}
.steps h3 {
  font-size: var(--text-base);
  color: var(--primary);
  margin: 0 0 var(--space-xs);
}
.steps p {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
}
.hero-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
}
.hero-note code,
.steps code,
.section-lede code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-xs);
  font-size: 0.9em;
}

.about-body,
.contact-body {
  padding: var(--space-lg) 0;
}
.about-body h2,
.contact-body h2 {
  margin-top: var(--space-xl);
  text-wrap: balance;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  max-width: 480px;
  margin-top: var(--space-md);
}
.contact-form label {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-base);
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  padding: var(--space-sm) var(--space-md);
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.contact-form button {
  justify-self: start;
  border: none;
  cursor: pointer;
}
.contact-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

#legal {
  padding: var(--space-lg) 0 var(--space-xl);
}
#legal h1 {
  font-size: var(--text-h2);
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}
#legal .updated {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-xl);
}
#legal h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-lg);
  color: var(--primary);
}
#legal p {
  line-height: 1.65;
}
#legal .back {
  text-decoration: none;
  font-size: var(--text-sm);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}
.site-footer p {
  margin: var(--space-xs) 0;
}
.site-footer .agents-line {
  color: var(--text-muted);
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 240px;
  margin: var(--space-md) auto;
}
.site-footer .copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}
.copyright-egg {
  width: 24px;
  height: 24px;
  display: inline-block;
  opacity: 0.9;
}

/* Single-line muted text used on the About page for the contact and
   the "Not affiliated" disclaimer. Matches the copyright line style. */
.about-meta {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.about-meta a {
  color: var(--text-muted);
  text-decoration: underline;
}
.about-meta a:hover {
  color: var(--primary);
}

/* ---- Hero CTA group ---- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}
.cta {
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 101, 34, 0.35);
}
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.cta-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
  box-shadow: none;
}

/* ---- Logo strip / "Built on" marquee ---- */
.logo-strip {
  padding: var(--space-md) 0 var(--space-xl);
}
.logo-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 0 var(--space-lg);
}
.logo-scroller {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}
.logo-scroller:hover .logo-track {
  animation-play-state: paused;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0 1.75rem;
  list-style: none;
  flex: 0 0 auto;
}
.logo-group li {
  display: inline-flex;
  align-items: center;
}
.logo-group img {
  height: 26px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1) brightness(0) invert(0.85);
  transition: opacity 0.2s ease;
}
.logo-wordmark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(232, 228, 219, 0.5);
  transition: color 0.2s ease;
}
.logo-scroller:hover img {
  opacity: 0.75;
}
.logo-scroller:hover .logo-wordmark {
  color: rgba(232, 228, 219, 0.78);
}
@keyframes logo-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
  }
  .logo-group[aria-hidden="true"] { display: none; }
  .logo-scroller {
    left: auto;
    width: auto;
    margin-left: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* ---- Metrics band ("alive" counters) ---- */
.metrics {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.metrics-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 680px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.metrics-eyebrow-sub {
  color: var(--text-faint);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.metric-num {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--primary) 0%, #ffb27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.metrics-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.metrics-sub strong {
  color: var(--text);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ---- Feature card polish ---- */
.features article {
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.features article:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
  transform: translateY(-3px);
}

/* ---- Numbered section accent ---- */
.numbered .num {
  font-size: var(--text-base);
  display: inline-block;
  padding: 0.15em 0.6em;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
}
