/* ═══════════════════════════════════════════════════════════
   MUZE AUTOPILOT — ClickUp Agents Page Layout Clone
   Font: Plus Jakarta Sans (ClickUp's actual font)
   Labels: Sometype Mono (ClickUp's bracket labels)
   Container: 1120px (ClickUp's actual max-width)
   ═══════════════════════════════════════════════════════════ */

/* ── Body override ── */
.ap-body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.ap-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.ap-container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section labels — Sometype Mono ── */
.ap-label {
  font-family: 'Sometype Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #666666;
  margin-bottom: 32px;
}

.ap-label--light {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Typography ── */
.ap-h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.025;
  letter-spacing: -2px;
  color: #1a1a1a;
}

.ap-h2--light {
  color: #ffffff;
}

.ap-body-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: #646464;
}

/* ── Buttons ── */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.ap-btn--primary {
  background: #202020;
  color: #ffffff;
}

.ap-btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ap-btn--secondary {
  background: #f0f0f0;
  color: #000000;
  border: none;
}

.ap-btn--secondary:hover {
  background: #e5e5e5;
}

.ap-btn--white {
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
}

.ap-btn--white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.ap-btn--full {
  width: 100%;
  justify-content: center;
}

/* ── Section defaults ── */
.ap-section {
  padding: 80px 0;
}

.ap-section--light {
  background: #f8f8f8;
}

.ap-section--compact {
  padding: 40px 0 60px;
}

/* ── Split layout ── */
.ap-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}

.ap-split__left {
  position: sticky;
  top: 100px;
}


/* ═══════════════════════════════════════════════════════════
   1. HERO — Fullscreen video background + centered text overlay
   ═══════════════════════════════════════════════════════════ */
.ap-hero {
  position: relative;
  text-align: center;
  padding: 120px 32px 80px;
  overflow: hidden;
  background: #fff;
}

/* Video hero variant */
.ap-hero--video {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: linear-gradient(135deg, #2d1b4e 0%, #4a1942 30%, #d4748a 60%, #f5b07a 100%);
}

.ap-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ap-hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.ap-hero--video .ap-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.ap-hero--video .ap-hero__h1 {
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.ap-hero--video .ap-hero__sub {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* Hero buttons on video background */
.ap-btn--hero-primary {
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.ap-btn--hero-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ap-btn--hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.ap-btn--hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Keep old styles for non-video hero fallback */
.ap-hero__bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(251, 168, 134, 0.2) 0%, rgba(255, 200, 180, 0.1) 30%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.ap-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.ap-hero__h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -1.6px;
  color: #202020;
  margin-bottom: 20px;
}

.ap-hero__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: #646464;
  max-width: 580px;
  margin: 0 auto 36px;
}

.ap-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   2. CAPABILITY PILLS — "They're just like humans" section
   ═══════════════════════════════════════════════════════════ */
.ap-pills-header {
  margin-bottom: 40px;
}

.ap-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 100px;
  font-family: 'Sometype Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ap-pill--tag {
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.ap-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.ap-capability-item {
  padding: 32px;
  border: 1px solid #ebebeb;
  margin-right: -1px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ap-capability-item:hover {
  background: #fafafa;
}

.ap-capability-item__icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.ap-capability-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.ap-capability-item p {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #646464;
}


/* ═══════════════════════════════════════════════════════════
   3. [CAPABILITIES] — Scrolling agent cards with arrow nav
   ═══════════════════════════════════════════════════════════ */
.ap-carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.ap-carousel-nav__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-carousel-nav__btn:hover {
  border-color: #333;
  background: #f5f5f5;
}

.ap-agent-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.ap-agent-carousel::-webkit-scrollbar {
  display: none;
}

.ap-agent-tile {
  border-radius: 24px;
  padding: 28px 24px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  min-width: 260px;
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
  position: relative;
}

.ap-agent-tile--peach { background: rgb(253, 237, 231); }
.ap-agent-tile--blue { background: rgb(237, 246, 253); }
.ap-agent-tile--green { background: rgb(237, 253, 237); }
.ap-agent-tile--purple { background: rgb(239, 237, 253); }

.ap-agent-tile__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.ap-agent-tile__desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 20.8px;
  color: #646464;
  margin-bottom: 20px;
}

.ap-agent-tile__img {
  width: 100%;
  height: auto;
  margin-top: auto;
  border-radius: 0;
  display: block;
}


/* ═══════════════════════════════════════════════════════════
   4. GRADIENT BANNER
   ═══════════════════════════════════════════════════════════ */
.ap-gradient-banner {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 40%, #f97316 100%);
  padding: 80px 32px;
  text-align: center;
}

.ap-gradient-banner--purple {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #a855f7 70%, #ec4899 100%);
}

.ap-gradient-banner--with-img {
  text-align: left;
}

.ap-gradient-banner__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.ap-gradient-banner__h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.025;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 20px;
}

.ap-gradient-banner__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
}

.ap-gradient-banner__text .ap-gradient-banner__sub {
  margin: 0 0 36px;
}

.ap-gradient-banner__character {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.ap-gradient-banner__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   5. AGENTS IN MINUTES — Tree left, text right
   ═══════════════════════════════════════════════════════════ */
.ap-agents-minutes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ap-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ap-tree__node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.ap-tree__node--root {
  background: #202020;
  color: #fff;
  border-color: #202020;
  font-size: 16px;
  padding: 14px 24px;
}

.ap-tree__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ap-tree__avatar--gold { background: #fef3c7; }
.ap-tree__avatar--orange { background: #fed7aa; }
.ap-tree__avatar--red { background: #fecaca; }
.ap-tree__avatar--green { background: #bbf7d0; }
.ap-tree__avatar--blue { background: #bfdbfe; }
.ap-tree__avatar--pink { background: #fbcfe8; }

.ap-tree__line {
  width: 2px;
  height: 32px;
  background: #d4d4d4;
}

.ap-tree__branches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  padding-top: 0;
}

.ap-tree__branches::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #d4d4d4;
}


/* ═══════════════════════════════════════════════════════════
   6. [HUMAN SKILLS] — Quote + skills demo
   ═══════════════════════════════════════════════════════════ */
.ap-quote {
  border-left: 3px solid #7c3aed;
  padding-left: 24px;
  margin: 0;
}

.ap-quote p {
  font-size: 18px;
  font-weight: 500;
  line-height: 28.8px;
  color: #333;
  font-style: italic;
}

.ap-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  font-style: normal;
}

.ap-quote--dark p {
  color: #ccc;
}

.ap-quote--dark {
  border-left-color: #7c3aed;
}

.ap-skills-demo {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.ap-skills-demo__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ap-skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-skill-item:hover {
  background: #f0f0f0;
}

.ap-skill-item--active {
  background: #202020;
  color: #fff;
}

.ap-skill-item__icon {
  font-size: 18px;
}

/* Mockup window */
.ap-mockup-window {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.ap-mockup-window--small {
  font-size: 14px;
}

.ap-mockup-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

.ap-mockup-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.ap-mockup-window__dot:nth-child(1) { background: #ff5f57; }
.ap-mockup-window__dot:nth-child(2) { background: #febc2e; }
.ap-mockup-window__dot:nth-child(3) { background: #28c840; }

.ap-mockup-window__title {
  margin-left: 8px;
  font-family: 'Sometype Mono', monospace;
  font-size: 12px;
  color: #888;
}

.ap-mockup-window__body {
  padding: 24px;
}

.ap-mockup-window__body--compact {
  padding: 16px 20px;
}

.ap-mockup-msg {
  display: flex;
  gap: 12px;
}

.ap-mockup-msg__avatar {
  width: 36px;
  height: 36px;
  background: #fef3c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ap-mockup-msg__content {
  flex: 1;
}

.ap-mockup-msg__content strong {
  font-size: 14px;
  font-weight: 700;
}

.ap-mockup-msg__time {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

.ap-mockup-msg__content p {
  font-size: 13px;
  line-height: 20px;
  color: #555;
  margin-top: 6px;
}

.ap-mockup-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ap-mockup-action-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ap-mockup-action-btn--approve {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}


/* ═══════════════════════════════════════════════════════════
   7. TWO-UP CARDS
   ═══════════════════════════════════════════════════════════ */
.ap-two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ap-two-up__card {
  border: 1px solid #ebebeb;
  border-radius: 24px;
  overflow: hidden;
}

.ap-two-up__card-visual {
  padding: 24px;
  background: #fafafa;
}

.ap-two-up__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 24px 28px 8px;
}

.ap-two-up__sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #646464;
  padding: 0 28px 28px;
}

.ap-step-mini {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.ap-step-mini:last-child {
  border-bottom: none;
}

.ap-step-mini__num {
  font-family: 'Sometype Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  margin-right: 12px;
}

.ap-rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.ap-rule-item:last-child {
  border-bottom: none;
}

.ap-rule-item__status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  flex-shrink: 0;
}

.ap-rule-item__status--on {
  background: #10b981;
}


/* ═══════════════════════════════════════════════════════════
   8. BIG STATS BANNER
   ═══════════════════════════════════════════════════════════ */
.ap-stats-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px;
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.ap-stats-banner__content {
  text-align: center;
  z-index: 1;
}

.ap-stats-banner__number {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -4px;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 12px;
}

.ap-stats-banner__subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #646464;
}

.ap-stats-banner__character {
  position: absolute;
  z-index: 0;
}

.ap-stats-banner__character--left {
  left: -40px;
  bottom: -20px;
}

.ap-stats-banner__character--right {
  right: -40px;
  bottom: -20px;
}

.ap-stats-banner__char-img {
  width: 240px;
  height: auto;
  opacity: 0.2;
}


/* ═══════════════════════════════════════════════════════════
   9. FLOATING SKILLS — Scrolling labels + character overlay
   ═══════════════════════════════════════════════════════════ */
.ap-floating-section {
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.ap-floating-tracks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.ap-floating-track {
  display: flex;
  gap: 16px;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  white-space: nowrap;
}

.ap-floating-track--left {
  animation-name: scrollLeft;
}

.ap-floating-track--right {
  animation-name: scrollRight;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.ap-floating-label {
  display: inline-flex;
  padding: 12px 24px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 100px;
  font-family: 'Sometype Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ap-floating-character {
  display: flex;
  justify-content: center;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.ap-floating-character__img {
  width: 320px;
  max-width: 60vw;
  height: auto;
}


/* ═══════════════════════════════════════════════════════════
   10. DARK SECTION — Interactive superintelligence layout
   ═══════════════════════════════════════════════════════════ */
.ap-dark-section {
  background: #000000;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ap-dark-section--no-bar .ap-dark-section__gradient-bar {
  display: none;
}

.ap-dark-section__gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed 0%, #db2777 50%, #f97316 100%);
}

.ap-superintelligence {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.ap-si-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.ap-si-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ap-si-nav-item--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ap-si-nav-item__num {
  font-family: 'Sometype Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
}

.ap-si-character {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0.6;
}

.ap-superintelligence__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-si-detail {
  display: none;
}

.ap-si-detail__num {
  font-size: 72px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 8px;
}

.ap-si-detail__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.ap-si-detail__desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: #888;
  margin-bottom: 16px;
}

.ap-si-detail__example {
  font-size: 13px;
  line-height: 20.8px;
  color: #666;
}

.ap-si-detail__example em {
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   11. [TECHNOLOGY] — Dark feature cards
   ═══════════════════════════════════════════════════════════ */
.ap-dark-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ap-dark-feature-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ap-dark-feature-card:hover {
  transform: translateY(-4px);
  border-color: #444;
}

.ap-dark-feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.ap-dark-feature-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #888;
}

.ap-dark-feature-card__visual {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ap-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ap-mini-stat__label {
  font-family: 'Sometype Mono', monospace;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ap-mini-stat__val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.ap-mini-alert {
  font-size: 13px;
  font-weight: 500;
  color: #f59e0b;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}


/* ═══════════════════════════════════════════════════════════
   12. TECH CAPABILITIES 6-GRID — Dark variant
   ═══════════════════════════════════════════════════════════ */
.ap-features-6grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px dashed #d4d4d4;
  border-radius: 24px;
  overflow: hidden;
}

.ap-features-6grid--dark {
  border-color: #2a2a2a;
}

.ap-feat-cell {
  padding: 36px;
  border-bottom: 1px dashed #d4d4d4;
  border-right: 1px dashed #d4d4d4;
  transition: background 0.2s ease;
}

.ap-feat-cell:hover {
  background: #fafafa;
}

.ap-feat-cell--dark {
  border-color: #2a2a2a;
}

.ap-feat-cell--dark:hover {
  background: #111;
}

.ap-feat-cell--dark h4 {
  color: #fff;
}

.ap-feat-cell--dark p {
  color: #888;
}

.ap-feat-cell:nth-child(3n) {
  border-right: none;
}

.ap-feat-cell:nth-child(n+4) {
  border-bottom: none;
}

.ap-feat-cell h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.ap-feat-cell p {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #646464;
}


/* ═══════════════════════════════════════════════════════════
   13. COMPARE + AUDIT LOG
   ═══════════════════════════════════════════════════════════ */
.ap-compare-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ap-compare-item {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed #d4d4d4;
}

.ap-compare-item--muted {
  background: #fafafa;
}

.ap-compare-item--muted h4 {
  color: #999;
}

.ap-compare-item--highlight {
  background: #202020;
  border-color: #202020;
  border-style: solid;
}

.ap-compare-item--highlight h4 {
  color: #ffffff;
}

.ap-compare-item--highlight p {
  color: #aaa;
}

.ap-compare-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.ap-compare-item p {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #646464;
}

.ap-audit-section {
  margin-top: 48px;
}

.ap-audit-section__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.ap-audit-log {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
}

.ap-audit-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #ebebeb;
  font-size: 14px;
}

.ap-audit-entry:last-child {
  border-bottom: none;
}

.ap-audit-entry__time {
  font-family: 'Sometype Mono', monospace;
  font-size: 12px;
  color: #999;
  min-width: 64px;
}

.ap-audit-entry__action {
  flex: 1;
  font-weight: 500;
  color: #555;
}

.ap-audit-entry__status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-audit-entry__status--auto {
  background: #ede9fe;
  color: #7c3aed;
}

.ap-audit-entry__status--pending {
  background: #fef3c7;
  color: #d97706;
}

.ap-audit-entry__status--approved {
  background: #d1fae5;
  color: #059669;
}


/* ═══════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════ */
.ap-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.ap-pricing-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.ap-pricing-card--pro {
  background: #202020;
  border-color: #202020;
}

.ap-pricing-card--pro .ap-pricing-card__tag { color: #f97316; }
.ap-pricing-card--pro .ap-pricing-card__price { color: #ffffff; }
.ap-pricing-card--pro .ap-pricing-card__price span { color: #888; }
.ap-pricing-card--pro .ap-pricing-card__list li { color: #bbb; }
.ap-pricing-card--pro .ap-pricing-card__list li::before { color: #7c3aed; }

.ap-pricing-card__tag {
  font-family: 'Sometype Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 16px;
}

.ap-pricing-card__price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  color: #1a1a1a;
  margin-bottom: 32px;
  line-height: 1;
}

.ap-pricing-card__price span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: #999;
}

.ap-pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.ap-pricing-card__list li {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: #555;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.ap-pricing-card__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.ap-faq-list {
  display: flex;
  flex-direction: column;
}

.ap-faq {
  border-bottom: 1px solid #e5e5e5;
}

.ap-faq summary {
  font-size: 18px;
  font-weight: 600;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.ap-faq summary::-webkit-details-marker {
  display: none;
}

.ap-faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #999;
  transition: transform 0.2s ease;
}

.ap-faq[open] summary::after {
  content: '\2212';
}

.ap-faq summary:hover {
  color: #7c3aed;
}

.ap-faq p {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: #646464;
  padding-bottom: 24px;
  max-width: 680px;
}


/* ═══════════════════════════════════════════════════════════
   14. FINAL CTA
   ═══════════════════════════════════════════════════════════ */
.ap-final-cta {
  background: #202020;
  padding: 80px 32px;
  text-align: center;
}

.ap-final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: #ffffff;
  margin-bottom: 16px;
}

.ap-final-cta p {
  font-size: 16px;
  font-weight: 500;
  color: #888;
  margin-bottom: 36px;
  line-height: 25.6px;
}

.ap-final-cta .ap-btn--primary {
  background: #ffffff;
  color: #1a1a1a;
}

.ap-final-cta .ap-btn--primary:hover {
  background: #f0f0f0;
}

.ap-final-cta .ap-btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #555;
}

.ap-final-cta .ap-btn--secondary:hover {
  border-color: #999;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ap-agent-tile {
    flex: 0 0 calc(50% - 8px);
    min-width: 220px;
  }

  .ap-capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-superintelligence {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ap-superintelligence__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .ap-superintelligence__visual {
    display: none;
  }

  .ap-dark-features {
    grid-template-columns: 1fr;
  }

  .ap-features-6grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-feat-cell:nth-child(3n) {
    border-right: 1px dashed #d4d4d4;
  }

  .ap-feat-cell--dark:nth-child(3n) {
    border-right: 1px dashed #2a2a2a;
  }

  .ap-feat-cell:nth-child(2n) {
    border-right: none;
  }

  .ap-feat-cell:nth-child(n+4) {
    border-bottom: 1px dashed #d4d4d4;
  }

  .ap-feat-cell--dark:nth-child(n+4) {
    border-bottom: 1px dashed #2a2a2a;
  }

  .ap-feat-cell:nth-child(n+5) {
    border-bottom: none;
  }

  .ap-compare-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-agents-minutes {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .ap-hero {
    padding: 100px 20px 60px;
  }

  .ap-hero__h1 {
    font-size: 36px;
    letter-spacing: -1.2px;
  }

  .ap-hero__watermark {
    font-size: 80px;
    letter-spacing: -3px;
  }

  .ap-hero__character-img {
    width: 280px;
  }

  .ap-section {
    padding: 56px 0;
  }

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

  .ap-split__left {
    position: static;
  }

  .ap-capability-grid {
    grid-template-columns: 1fr;
  }

  .ap-agent-tile {
    flex: 0 0 85vw;
    min-height: 320px;
  }

  .ap-two-up {
    grid-template-columns: 1fr;
  }

  .ap-skills-demo {
    grid-template-columns: 1fr;
  }

  .ap-features-6grid {
    grid-template-columns: 1fr;
  }

  .ap-feat-cell {
    border-right: none !important;
    border-bottom: 1px dashed #d4d4d4 !important;
  }

  .ap-feat-cell--dark {
    border-bottom-color: #2a2a2a !important;
  }

  .ap-feat-cell:last-child {
    border-bottom: none !important;
  }

  .ap-compare-row {
    grid-template-columns: 1fr;
  }

  .ap-pricing-grid {
    grid-template-columns: 1fr;
  }

  .ap-gradient-banner {
    padding: 56px 20px;
  }

  .ap-gradient-banner__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ap-gradient-banner--with-img {
    text-align: center;
  }

  .ap-gradient-banner__text .ap-gradient-banner__sub {
    margin: 0 auto 36px;
  }

  .ap-gradient-banner__character {
    max-width: 240px;
    margin: 24px auto 0;
  }

  .ap-gradient-banner__h2 {
    font-size: 32px;
  }

  .ap-final-cta {
    padding: 56px 20px;
  }

  .ap-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-hero__ctas .ap-btn {
    text-align: center;
  }

  .ap-stats-banner {
    padding: 60px 20px;
  }

  .ap-stats-banner__number {
    font-size: 64px;
    letter-spacing: -2px;
  }

  .ap-stats-banner__char-img {
    width: 140px;
  }

  .ap-floating-character__img {
    width: 200px;
  }

  .ap-floating-character {
    margin-top: -60px;
  }

  .ap-audit-entry {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ap-tree__branches {
    gap: 8px;
  }

  .ap-tree__node {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .ap-pricing-card {
    padding: 28px;
  }

  .ap-pricing-card__price {
    font-size: 40px;
  }

  .ap-stats-banner__number {
    font-size: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO CHAT ANIMATION — Slack-style messages in the hero
   ═══════════════════════════════════════════════════════════ */
.ap-hero__chat {
  position: absolute;
  right: 48px;
  bottom: 80px;
  width: 330px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-hero__chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ap-hero__chat-msg.ap-msg-visible {
  opacity: 1;
  transform: translateY(0);
}

.ap-hero__chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(155, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ap-hero__chat-body {
  flex: 1;
  min-width: 0;
}

.ap-hero__chat-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.ap-hero__chat-text {
  font-size: 12.5px;
  color: #fff;
  line-height: 1.45;
  font-weight: 500;
}

.ap-hero__chat-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.ap-hero__chat-badge--done {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.ap-hero__chat-badge--pending {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

@media (max-width: 1100px) {
  .ap-hero__chat {
    display: none;
  }
}

/* Mobile-only chat section below hero */
.ap-chat-mobile-section {
  display: none;
  background: #1a1d21;
  padding: 28px 20px 36px;
}

.ap-chat-mobile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ap-chat-mobile-channel {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ap-chat-mobile-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
}

.ap-chat-mobile-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}

@media (max-width: 1100px) {
  .ap-chat-mobile-section {
    display: block;
  }
}
