/* ==========================================================================
   URBot.net — Bot Landing Page Styles
   Standalone CSS for individual bot landing pages.
   Uses design tokens from urbot-design-tokens.css where possible.
   ========================================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bot-accent: #6366f1;
  --bot-accent-rgb: 99, 102, 241;
  --bot-bg-base: #0a0a1a;
  --bot-bg-surface: #0f172a;
  --bot-bg-elevated: #1e293b;
  --bot-text-primary: #f1f5f9;
  --bot-text-secondary: #94a3b8;
  --bot-text-muted: #64748b;
  --bot-border: rgba(255, 255, 255, 0.08);
  --bot-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bot-radius: 14px;
  --bot-max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--bot-font);
  background: var(--bot-bg-base);
  color: var(--bot-text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bot-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}


/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.bot-page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bot-border);
}

.bot-page-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bot-text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.bot-page-nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.bot-page-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.bot-page-nav-links a {
  color: var(--bot-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.bot-page-nav-links a:hover {
  color: var(--bot-text-primary);
  text-decoration: none;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.bot-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(var(--bot-accent-rgb), 0.12) 0%,
    var(--bot-bg-base) 100%
  );
  overflow: hidden;
}

.bot-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--bot-accent-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.bot-hero-avatar {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bot-bg-elevated);
  border: 3px solid rgba(var(--bot-accent-rgb), 0.3);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(var(--bot-accent-rgb), 0.15);
}

.bot-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.15;
}

.bot-hero-tagline {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--bot-text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.bot-hero-overall {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bot-bg-elevated);
  border: 1px solid var(--bot-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bot-text-secondary);
}

.bot-hero-overall-score {
  color: var(--bot-accent);
  font-size: 1.125rem;
}

.bot-hero-pitch {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: var(--bot-bg-surface);
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius);
  font-size: 1rem;
  color: var(--bot-text-secondary);
  line-height: 1.7;
  font-style: italic;
}


/* ==========================================================================
   Section Containers
   ========================================================================== */

.bot-section {
  max-width: var(--bot-max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.bot-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bot-border);
}

/* Two-column layout for desktop */
.bot-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}


/* ==========================================================================
   Hero Badges (overall + category)
   ========================================================================== */

.bot-hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.bot-hero-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}


/* ==========================================================================
   Pitch Section
   ========================================================================== */

.bot-pitch-section .bot-pitch-content {
  max-width: 800px;
  margin: 0 auto;
}

.bot-pitch-section .bot-hero-pitch {
  margin-top: 0;
}


/* ==========================================================================
   Capability Progress Bars (v2)
   ========================================================================== */

.bot-cap-row {
  margin-bottom: 14px;
}

.bot-cap-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.875rem;
}

.bot-cap-value {
  color: var(--bot-accent);
  font-weight: 700;
}

.bot-cap-track {
  height: 8px;
  background: var(--bot-bg-elevated, #1e293b);
  border-radius: 4px;
  overflow: hidden;
}

.bot-cap-fill {
  height: 100%;
  background: var(--bot-accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}


/* ==========================================================================
   Capability Radar Chart
   ========================================================================== */

.bot-radar-container {
  max-width: 320px;
  margin: 0 auto;
}


/* ==========================================================================
   Knowledge Topics
   ========================================================================== */

.bot-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bot-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(var(--bot-accent-rgb), 0.1);
  border: 1px solid rgba(var(--bot-accent-rgb), 0.2);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bot-text-primary);
  transition: all 0.15s;
}

.bot-topic-chip:hover {
  background: rgba(var(--bot-accent-rgb), 0.2);
  border-color: rgba(var(--bot-accent-rgb), 0.35);
  transform: translateY(-1px);
}


/* ==========================================================================
   Pricing Tiers
   ========================================================================== */

.bot-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.bot-tier-card {
  position: relative;
  background: var(--bot-bg-surface);
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.bot-tier-card:hover {
  border-color: rgba(var(--bot-accent-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.bot-tier-card.featured {
  border-color: var(--bot-accent);
  box-shadow: 0 0 0 1px var(--bot-accent),
              0 8px 24px rgba(var(--bot-accent-rgb), 0.15);
}

.bot-tier-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--bot-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 9999px;
}

.bot-tier-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bot-tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bot-accent);
  margin-bottom: 4px;
}

.bot-tier-price::before {
  content: '$';
  font-size: 1.25rem;
  vertical-align: super;
}

.bot-tier-desc {
  font-size: 0.8125rem;
  color: var(--bot-text-muted);
  margin-bottom: 20px;
  min-height: 36px;
}

.bot-tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.bot-tier-features li {
  padding: 4px 0;
  font-size: 0.8125rem;
  color: var(--bot-text-secondary);
}

.bot-tier-features li::before {
  content: '\2713';
  display: inline-block;
  width: 20px;
  color: var(--bot-accent);
  font-weight: 700;
}

.bot-tier-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bot-tier-btn-primary {
  background: var(--bot-accent);
  color: #fff;
}

.bot-tier-btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--bot-accent-rgb), 0.3);
}

.bot-tier-btn-secondary {
  background: var(--bot-bg-elevated);
  color: var(--bot-text-primary);
  border: 1px solid var(--bot-border);
}

.bot-tier-btn-secondary:hover {
  background: var(--bot-bg-surface);
  border-color: rgba(var(--bot-accent-rgb), 0.3);
}


/* ==========================================================================
   Try Me / Chat Widget Section
   ========================================================================== */

.bot-try-section {
  background: var(--bot-bg-surface);
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius);
  padding: 32px;
  text-align: center;
}

.bot-try-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bot-try-desc {
  color: var(--bot-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.bot-try-widget-area {
  min-height: 400px;
  background: var(--bot-bg-base);
  border: 1px solid var(--bot-border);
  border-radius: 12px;
  overflow: hidden;
}

.bot-try-cta {
  margin-top: 20px;
}

.bot-try-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bot-accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s;
}

.bot-try-cta a:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  text-decoration: none;
}


/* ==========================================================================
   Synergy / Pairs Best With
   ========================================================================== */

.bot-synergy-section {
  margin-top: 0;
}

.bot-synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bot-synergy-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bot-bg-surface);
  border: 1px solid var(--bot-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bot-text-primary);
  transition: all 0.2s;
}

.bot-synergy-card:hover {
  border-color: rgba(var(--bot-accent-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.bot-synergy-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bot-bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.bot-synergy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-synergy-info {
  flex: 1;
  min-width: 0;
}

.bot-synergy-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.bot-synergy-cat {
  font-size: 0.75rem;
  color: var(--bot-text-muted);
  text-transform: capitalize;
}


/* ==========================================================================
   Synergy Badge (Bundle Match)
   ========================================================================== */

.bot-synergy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bot-synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
}


/* ==========================================================================
   Skill Tree Container
   ========================================================================== */

.bot-skill-tree-container {
  min-height: 120px;
  background: var(--bot-bg-surface);
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius);
  padding: 24px;
}

.bot-skill-tree-container:empty::after {
  content: 'Loading skill tree...';
  display: block;
  text-align: center;
  color: var(--bot-text-muted);
  font-size: 0.875rem;
  padding: 32px 0;
}


/* ==========================================================================
   Testimonials Container
   ========================================================================== */

.bot-testimonials-container {
  min-height: 100px;
}

.bot-testimonials-container:empty::after {
  content: 'Loading testimonials...';
  display: block;
  text-align: center;
  color: var(--bot-text-muted);
  font-size: 0.875rem;
  padding: 24px 0;
}


/* ==========================================================================
   FAQ Container
   ========================================================================== */

.bot-faq-container {
  min-height: 100px;
}

.bot-faq-container:empty::after {
  content: 'Loading FAQ...';
  display: block;
  text-align: center;
  color: var(--bot-text-muted);
  font-size: 0.875rem;
  padding: 24px 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.bot-page-footer {
  border-top: 1px solid var(--bot-border);
  padding: 40px 24px;
  text-align: center;
  color: var(--bot-text-muted);
  font-size: 0.8125rem;
}

.bot-page-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bot-page-footer-links a {
  color: var(--bot-text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.bot-page-footer-links a:hover {
  color: var(--bot-text-primary);
}

.bot-page-footer-copy {
  margin-top: 8px;
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .bot-hero {
    padding: 48px 16px 40px;
  }

  .bot-hero h1 {
    font-size: 1.75rem;
  }

  .bot-hero-tagline {
    font-size: 1rem;
  }

  .bot-hero-avatar {
    width: 100px;
    height: 100px;
  }

  .bot-section {
    padding: 40px 16px;
  }

  .bot-section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bot-tiers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bot-synergy-grid {
    grid-template-columns: 1fr;
  }

  .bot-page-nav {
    padding: 10px 16px;
  }

  .bot-page-nav-links {
    gap: 12px;
  }

  .bot-page-nav-links a {
    font-size: 0.8125rem;
  }

  .bot-try-section {
    padding: 20px 16px;
  }

  .bot-try-widget-area {
    min-height: 320px;
  }

  .bot-hero-pitch {
    padding: 16px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .bot-hero h1 {
    font-size: 1.5rem;
  }

  .bot-hero-tagline {
    font-size: 0.9375rem;
  }

  .bot-page-nav-logo span {
    display: none;
  }
}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Light Theme
   ========================================================================== */

@media (prefers-color-scheme: light) {
  :root {
    --bot-bg-base: #ffffff;
    --bot-bg-surface: #f8fafc;
    --bot-bg-elevated: #f1f5f9;
    --bot-text-primary: #0f172a;
    --bot-text-secondary: #475569;
    --bot-text-muted: #94a3b8;
    --bot-border: rgba(0, 0, 0, 0.08);
  }

  .bot-page-nav {
    background: rgba(255, 255, 255, 0.85);
  }

  .bot-topic-chip:hover {
    background: rgba(var(--bot-accent-rgb), 0.12);
  }
}


/* ==========================================================================
   High Contrast
   ========================================================================== */

@media (forced-colors: active) {
  .bot-tier-card,
  .bot-synergy-card,
  .bot-topic-chip {
    border: 1px solid ButtonText;
  }

  .bot-tier-btn {
    border: 1px solid ButtonText;
  }
}
