/* ============================================================
   landing-specific styles (loaded after style.css)
   ============================================================ */

/* ---------- page-level atmosphere ---------- */
.page-atmo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-atmo-aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(50% 35% at 18% 8%,  rgba(232,93,36,0.22), transparent 60%),
    radial-gradient(45% 30% at 82% 18%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(60% 40% at 50% 60%, rgba(232,93,36,0.05), transparent 70%);
  filter: blur(30px);
  opacity: 0.9;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
.page-atmo-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.2px 1.2px at 26% 78%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 92% 66%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(0.8px 0.8px at 56% 38%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 8% 52%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1.4px 1.4px at 68% 88%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(0.9px 0.9px at 38% 12%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 88% 42%, rgba(232,93,36,0.55), transparent 50%),
    radial-gradient(1px 1px at 18% 90%, rgba(124,92,255,0.55), transparent 50%);
  background-repeat: no-repeat;
  animation: stars-twinkle 9s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0,0,0)      scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}
@keyframes stars-twinkle {
  0%   { opacity: 0.55; }
  50%  { opacity: 0.95; }
  100% { opacity: 0.65; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 156px;
  padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero-inner { position: relative; }

.hero-mark {
  position: relative;
  display: block;
  width: fit-content;
  margin: 18px auto 40px;
}
.hero-mark-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(232, 93, 36, 0.6), transparent 70%);
  filter: blur(48px);
  opacity: 0.65;
  z-index: -1;
  animation: pincer-breathe 4.6s ease-in-out infinite;
}
.hero-mark-halo {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 36, 0.18);
  z-index: -1;
  animation: pincer-halo 6s ease-in-out infinite;
}
.hero-mark-halo::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 36, 0.08);
}
.hero-mark img {
  filter: drop-shadow(0 10px 36px rgba(232, 93, 36, 0.55));
  display: block;
}
@keyframes pincer-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.06); }
}
@keyframes pincer-halo {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 0.95; }
}

.hero-for {
  color: var(--muted);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-underline {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, rgba(255,255,255,0.92) 100%);
  -webkit-background-clip: text;
          background-clip: text;
}
.hero-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-2) 20%,
    var(--accent-2) 80%,
    transparent 100%);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.55);
}

.hero-sub {
  margin: 30px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.hero-sub-strong { color: var(--fg); }

/* ---------- hero sub-line (rotating agents + resources) ---------- */
.hero-demo {
  margin: 32px auto 0;
  max-width: min(100%, 820px);
}
.hero-demo-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-demo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45em 0.55em;
}
.hero-demo-text {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.hero-demo-slot {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.hero-demo-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 440ms ease, transform 440ms ease;
  pointer-events: none;
}
.hero-demo-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.035);
  color: #fff;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 0 24px -14px rgba(124, 92, 255, 0.45);
}
.hero-demo-chip-label {
  line-height: 1.2;
}
.hero-demo-chip img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
  flex: 0 0 auto;
}
.hero-demo-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(124, 92, 255, 0.2);
  color: #fff;
  flex: 0 0 auto;
}
.hero-demo-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent);
}
.hero-demo-chip--resource {
  border-color: rgba(232, 93, 36, 0.22);
  background: rgba(232, 93, 36, 0.06);
  box-shadow: 0 0 24px -14px rgba(232, 93, 36, 0.35);
}
.hero-demo-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   Hero connect widget — CLI / MCP toggle with single snippet.
   ============================================================ */
.hero-connect {
  margin: 40px auto 0;
  max-width: 720px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(124,92,255,0.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
  text-align: left;
  position: relative;
}

.hero-connect-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-connect-mode-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-connect-tabs {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 0;
  padding: 4px;
  min-width: min(100%, 220px);
  max-width: 240px;
  margin-left: auto;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.hero-connect-tab {
  appearance: none;
  background: transparent;
  border: 0;
  flex: 1 1 50%;
  padding: 9px 18px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(231,231,231,0.65);
  cursor: pointer;
  transition: background 180ms, color 180ms, box-shadow 180ms;
}
.hero-connect-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hero-connect-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(124,92,255,0.28), rgba(124,92,255,0.12));
  box-shadow:
    inset 0 0 0 1px rgba(124, 92, 255, 0.45),
    0 0 20px -8px rgba(124, 92, 255, 0.55);
}
.hero-connect-tab:focus-visible {
  outline: 2px solid rgba(124,92,255,0.6);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .hero-connect-mode {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .hero-connect-tabs {
    max-width: none;
    margin-left: 0;
  }
}

.hero-connect-body {
  position: relative;
  padding: 14px 56px 14px 16px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.hero-connect-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.5em;
  /* Keep the box from jumping when toggling between long & short snippets */
  min-height: clamp(3em, 6vw, 3em);
}
.hero-connect-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 5px 10px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231,231,231,0.8);
  cursor: pointer;
  transition: color 180ms, background 180ms, border-color 180ms;
}
.hero-connect-copy:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.hero-connect-copy.is-copied {
  color: oklch(84.5% 0.143 164.978);
  border-color: oklch(50% 0.12 164);
}

.hero-connect-hint {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-connect-promo {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  background: rgba(124, 92, 255, 0.10);
  border: 1px solid rgba(124, 92, 255, 0.30);
  border-radius: 999px;
}
.hero-connect-promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2, #7c5cff);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
  flex: 0 0 auto;
}
.hero-connect-promo code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}

@media (max-width: 560px) {
  .hero-connect { padding: 14px; }
  .hero-connect-body { padding: 12px 12px 12px 12px; padding-bottom: 44px; }
  .hero-connect-copy { right: 8px; bottom: 8px; top: auto; }
}

/* ---------- section heads ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- products grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.product-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(closest-side, rgba(232,93,36,0.07), transparent 70%);
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}
.product-card.is-link:hover::after { opacity: 1; }

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.product-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: #fff;
}
.product-card .product-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}
.product-card .product-arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 16px; height: 16px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 150ms, transform 150ms, color 150ms;
}
.product-card.is-link:hover .product-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

.products-foot {
  margin-top: 32px;
  text-align: center;
}
.explore-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  transition: background 180ms, border-color 180ms, transform 120ms;
}
.explore-all:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* ---------- pricing teaser ---------- */
.pricing-teaser {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  position: relative;
}
.pricing-teaser::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: calc(20% - 1px);
  background: linear-gradient(180deg, rgba(232,93,36,0.07), rgba(232,93,36,0.02));
  border-left: 1px solid rgba(232,93,36,0.18);
  pointer-events: none;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row.pricing-head { background: rgba(255,255,255,0.02); }
.pricing-row.pricing-head .cell {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.cell { font-size: 15px; color: var(--fg); }
.cell.cell-name { color: rgba(231,231,231,0.85); }
.cell.cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.cell.cell-us { color: #fff; font-weight: 500; position: relative; z-index: 1; }
.brand-name { letter-spacing: 0; }
.brand-claws {
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 14px;
}
.pricing-foot { padding-block: 14px; }
.mono-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(138,138,138,0.7);
}
.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pricing-cta:hover { color: #fff; }

@media (max-width: 720px) {
  .pricing-row { grid-template-columns: 1.4fr 1fr 1fr; padding: 14px 18px; }
  .pricing-row .cell:nth-child(2),
  .pricing-row .cell:nth-child(3) { display: none; }
  .pricing-teaser::before { display: none; }
}

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-atmo-aurora,
  .page-atmo-stars,
  .hero-mark-glow,
  .hero-mark-halo,
  .hero-demo-item {
    animation: none !important;
    transition: none !important;
  }
  .hero-demo-item {
    opacity: 1;
    transform: none;
  }
  .hero-demo-item:not(.is-active) {
    display: none;
  }
}
