/* Bots page — extends styles.css */

.bots-page {
  padding-top: calc(5.5rem + env(safe-area-inset-top));
}

.bots-hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: center;
  padding: var(--section-y) var(--section-x);
  overflow: hidden;
}

.bots-hero-inner {
  max-width: var(--hero-shell-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bots-hero-eyebrow {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.bots-hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.bots-hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(201, 168, 255, 0.35);
}

.bots-hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.bots-hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.bots-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.bots-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.bots-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.bots-floating-target {
  position: absolute;
  right: clamp(-2rem, -5vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, 42vw);
  height: min(320px, 42vw);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

@media (max-width: 900px) {
  .bots-floating-target {
    right: -4rem;
    opacity: 0.12;
    width: 240px;
    height: 240px;
  }
}

.bots-floating-target svg {
  width: 100%;
  height: 100%;
  animation: botsReticle 10s ease-in-out infinite;
}

@keyframes botsReticle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.04); }
}

/* Philosophy strip */
.bots-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) var(--section-x);
}

.bots-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.bots-strip p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 52rem;
  margin: 0 auto;
}

.bots-strip p + p {
  margin-top: 1rem;
}

/* Indicator story */
.bots-vwap-block {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 880px) {
  .bots-vwap-block {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.bots-vwap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2rem);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  position: relative;
  overflow: hidden;
}

.bots-vwap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.65;
}

.bots-vwap-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.bots-vwap-card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.bots-stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.bots-legend-item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.bots-legend-item--1 { color: #8cf7c0; border-color: rgba(140, 247, 192, 0.35); }
.bots-legend-item--4 { color: #ffb86b; border-color: rgba(255, 184, 107, 0.35); }
.bots-legend-item--8 { color: #cfa7ff; border-color: rgba(207, 167, 255, 0.35); }
.bots-legend-item--d { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.35); }

/* Bot fleet grid */
.bots-fleet {
  background: var(--bg);
}

.bots-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  max-width: min(72rem, 94vw);
  margin: 0 auto;
}

.bots-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
  position: relative;
  cursor: default;
}

.bots-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 255, 0.45);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 168, 255, 0.12);
}

.bots-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bots-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: botsIconBob 4s ease-in-out infinite;
}

.bots-card:nth-child(2) .bots-icon-wrap { animation-delay: -0.5s; }
.bots-card:nth-child(3) .bots-icon-wrap { animation-delay: -1s; }
.bots-card:nth-child(4) .bots-icon-wrap { animation-delay: -1.5s; }
.bots-card:nth-child(5) .bots-icon-wrap { animation-delay: -2s; }
.bots-card:nth-child(6) .bots-icon-wrap { animation-delay: -2.5s; }

@keyframes botsIconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.bots-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.bots-card-title {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.bots-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.bots-card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.bots-card-body p + p {
  margin-top: 0.65rem;
}

/* Ecosystem closing */
.bots-eco {
  background: var(--surface);
}

.bots-eco-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bots-eco-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bots-eco-card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.bots-eco-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.bots-eco-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA */
.bots-cta-wrap {
  text-align: center;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.bots-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.bots-cta-buttons .cta-button {
  margin-bottom: 0;
}

/* Outline variant — base .cta-button is fill-on-hover */
.bots-cta-buttons .cta-button--ghost {
  animation: none;
  box-shadow: none;
}

.bots-cta-buttons .cta-button--ghost::before {
  display: none;
}

.bots-cta-buttons .cta-button--ghost:hover {
  color: var(--accent);
  background: rgba(201, 168, 255, 0.08);
  filter: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px -12px rgba(201, 168, 255, 0.35);
}

.bots-access-callout {
  max-width: 38rem;
  margin: 2rem auto 0;
  padding: 1.35rem 1.5rem 1.45rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(201, 168, 255, 0.09) 0%, rgba(17, 17, 17, 0.92) 45%);
  border: 1px solid rgba(201, 168, 255, 0.28);
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.bots-access-callout-title {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.bots-access-callout-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.bots-access-callout-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 255, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.bots-access-callout-body a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.bots-access-callout-body strong {
  color: var(--text);
  font-weight: 600;
}

.bots-cta-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
  border-radius: 1px;
}
