/* ==========================================================================
   Fluent UI & Microsoft.com Design Language System
   ========================================================================== */

/* Design Tokens */
:root {
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --bg-panel: #1a1a1a;
  --bg-card: #202020;
  --bg-card-hover: #2d2d2d;
  --border-color: #333333;
  --border-hover: #0078d4; /* Microsoft Blue */
  --border-focus: #0078d4;
  
  /* Fluent Accent Palette */
  --primary: #0078d4;
  --primary-light: #2b88d8;
  --secondary: #8764b8; /* Microsoft Violet */
  --accent: #60cdff; /* Fluent Light Blue */
  --accent-light: #9cd9ff;
  --accent-glow: rgba(0, 120, 212, 0.15);
  
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #7c7c7c;
  
  /* Fonts - Segoe UI Focus Stack */
  --font-stack: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  
  /* Fluent Corner Radii (Segoe UI styling focuses on sharp/subtle rounding) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1400px;
}

[data-theme="light"] {
  --bg-dark: #f5f5f5;
  --bg-darker: #ebebeb;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;
  --border-color: #d1d1d1;
  --border-hover: #0078d4;
  --border-focus: #0078d4;

  --primary: #0067b8;
  --primary-light: #004e8c;
  --secondary: #5c2d91;
  --accent: #0067b8;
  --accent-light: #0067b8;
  --accent-glow: rgba(0, 103, 184, 0.10);

  /* Microsoft.com light-mode text hierarchy */
  --text-primary: #1a1a1a;       /* near-black — headings, titles */
  --text-secondary: #3b3b3b;     /* dark gray — body copy           */
  --text-muted: #616161;         /* medium gray — captions, labels  */
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select {
  font-family: inherit;
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Microsoft Top Thin Accent Bar */
.top-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, #f25022 0%, #7fba00 25%, #00a4ef 50%, #ffb900 75%, #8764b8 100%);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

/* Ambient Subtle Grid Pattern (Replacing glowing mesh) */
.bg-glow-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 800px;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: -2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

/* Grid & Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient-span {
  background: linear-gradient(90deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fluent Icon Classes */
.fluent-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.fluent-icon.chevron {
  transition: transform var(--transition-fast);
}

/* Fluent Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}

.badge {
  background: var(--bg-card-hover);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: monospace;
}

/* ==========================================================================
   Header & Navigation (Microsoft-like navbar)
   ========================================================================== */
header {
  position: sticky;
  top: 2px; /* just below top accent bar */
  z-index: 1000;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  height: 54px; /* Microsoft standard header height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fluent-logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  height: 100%;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  border-bottom-color: var(--primary);
}

.nav-link.active svg.chevron {
  transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-shortcut {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.8rem;
  width: 180px;
}

.search-shortcut:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.search-shortcut kbd {
  background: var(--bg-darker);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  margin-left: auto;
}

/* ==========================================================================
   Big Mega Menu (Flat Microsoft Grid Layout)
   ========================================================================== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  padding: 2.5rem 0 1.5rem 0;
  z-index: 999;
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mega-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-column h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mega-menu-item a {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
}

.mega-menu-item a:hover {
  background: var(--bg-card-hover);
}

.mega-menu-category-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-category-name svg {
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.mega-menu-category-prefix {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  padding-left: 1.5rem;
}

.mega-menu-item a:hover .mega-menu-category-name {
  color: #ffffff;
}

.mega-menu-item a:hover .mega-menu-category-name svg {
  color: var(--accent);
}

.mega-menu-item a:hover .mega-menu-category-prefix {
  color: var(--text-secondary);
}

.mega-menu-item .arrow-right {
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition-fast);
  color: var(--primary);
}

.mega-menu-item a:hover .arrow-right {
  opacity: 1;
  transform: translateX(0);
}

.mega-menu-footer-panel {
  grid-column: span 4;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-menu-footer-panel p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 6rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.hero-glow-blob {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
}

.hero-tag {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Microsoft-like Stat Counters */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; /* create borders between cells using background */
  background: var(--border-color);
  border: 1px solid var(--border-color);
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-panel);
  padding: 1.8rem 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ==========================================================================
   Real-World Integration Section (Crisp Wireframe Tabs)
   ========================================================================== */
.integrations-section {
  padding: 5rem 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.tabs-wrapper {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  min-height: 460px;
}

.tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.tab-btn.active svg {
  color: var(--accent);
}

.tab-panels {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.panel-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.panel-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 0.8rem;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-detail h4 {
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.step-detail p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Wireframe Diagram Panel */
.panel-viz {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.viz-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
  font-family: monospace;
}

.mcp-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: 100%;
}

.diag-node {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.75rem;
  width: 90%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.diag-node.highlight {
  border-color: var(--primary);
  background: #1f2a35;
}

.diag-node strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.1rem;
  font-size: 0.8rem;
}

.diag-arrow {
  color: var(--primary);
  font-size: 0.85rem;
  line-height: 1;
}

/* ==========================================================================
   Chatbot Explorer Section (Enterprise Grid)
   ========================================================================== */
.explorer-section {
  padding: 5rem 0;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Filters Sidebar */
.sidebar-filters {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  position: sticky;
  top: 74px;
}

.filter-group h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.filter-item:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.filter-item.active {
  background: #0078d4;
  color: #ffffff;
  font-weight: 600;
}

.filter-item svg {
  margin-right: 0.4rem;
  color: var(--text-muted);
}

.filter-item.active svg {
  color: #ffffff;
}

.filter-item-count {
  font-size: 0.7rem;
  background: var(--bg-card-hover);
  color: var(--text-muted);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
}

.filter-item.active .filter-item-count {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

/* Explorer Main */
.explorer-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search Controls */
.search-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper svg.search-svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.6rem 0.8rem 0.6rem 2.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.sort-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.sort-select:hover {
  border-color: var(--text-secondary);
}

.explorer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bots Grid (Crisp Fluent Cards) */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.bot-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}

.bot-card-header .badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
}

.bot-info {
  display: flex;
  flex-direction: column;
}

.bot-category-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bot-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.bot-card:hover .bot-info h3 {
  color: var(--accent);
}

.bot-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.6rem;
}

.bot-specific-work {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.bot-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-lease-info {
  display: flex;
  flex-direction: column;
}

.bot-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.bot-lease-type {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bot-action-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.bot-card:hover .bot-action-link svg {
  transform: translateX(2px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2rem;
}

.page-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.page-btn:hover:not(.disabled) {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  color: #ffffff;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results svg {
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   Architecture Overview (Microsoft Cloud style cards)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.accent-icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.mcp-diagram.mini {
  gap: 0.5rem;
}

.diag-node.mini {
  font-size: 0.7rem;
  padding: 0.4rem;
  width: 100%;
}

.diag-arrow.mini {
  font-size: 0.65rem;
}

.border-accent {
  border-color: var(--accent);
}

/* ==========================================================================
   Details Sliding Drawer (Azure Blade style)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.drawer-backdrop.show {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.drawer.show {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-darker);
}

.drawer-close {
  background: transparent;
  border: 1px solid transparent;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.drawer-close:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.drawer-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-bot-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
}

.drawer-bot-avatar {
  width: 54px;
  height: 54px;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
}

.drawer-bot-title-area h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.drawer-bot-id {
  font-family: monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.drawer-section {
  margin-bottom: 1.5rem;
}

.drawer-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.2rem;
}

.drawer-section p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blueprint-block {
  background: var(--bg-darker);
  border: 1px dashed var(--border-color);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-list-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.drawer-list-item svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Azure Blade Footer */
.drawer-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-darker);
}

.drawer-footer-price {
  display: flex;
  flex-direction: column;
}

.drawer-price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.drawer-price-val {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

.drawer-footer .btn-primary {
  padding: 0.6rem 2rem;
}

/* ==========================================================================
   Mega Footer (Microsoft.com style)
   ========================================================================== */
.mega-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.8rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.footer-commercial-label h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.footer-commercial-label p {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
}

.footer-directory-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.footer-column h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list-item {
  color: var(--text-secondary);
}

.footer-list-item a {
  display: flex;
  flex-direction: column;
}

.footer-list-item a:hover {
  color: var(--accent);
}

.footer-list-item-prefix {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

.footer-list-item a:hover .footer-list-item-prefix {
  color: var(--text-secondary);
}

/* Bottom Footer */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-menu-footer-panel {
    grid-column: span 3;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tab-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }
  .tab-btn {
    white-space: nowrap;
  }
  .explorer-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-actions .search-shortcut {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-commercial-label p {
    text-align: left;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   Theme Toggle Button & Light Mode Overrides
   ========================================================================== */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn .sun-icon {
  display: block;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* Specific Light Mode Diagram Corrections */
[data-theme="light"] .diag-node {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

[data-theme="light"] .diag-node.highlight {
  background: rgba(0, 120, 212, 0.08);
  border-color: var(--primary);
}

/* Chatbots Page Specific CSS */
.catalog-header-section {
  padding: 4rem 0 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.catalog-header-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.catalog-header-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.catalog-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.catalog-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  position: sticky;
  top: 74px;
}

.catalog-sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

.catalog-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 600px;
  overflow-y: auto;
}

.catalog-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.catalog-category-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.catalog-category-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.catalog-category-item.active svg {
  color: #ffffff !important;
}

.catalog-category-item svg {
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.catalog-category-item-count {
  font-size: 0.75rem;
  background: var(--bg-card-hover);
  color: var(--text-muted);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
}

.catalog-category-item.active .catalog-category-item-count {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.catalog-category-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.catalog-category-title {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.catalog-category-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
}


/* ==========================================================================
   LIGHT THEME - Full Visibility Overrides
   Fixes all hardcoded #ffffff text that becomes invisible on light backgrounds
   Reference palette: microsoft.com / fluent ui light
   ========================================================================== */

/* Navigation */
[data-theme="light"] .nav-link:hover {
  color: #1a1a1a;
}

[data-theme="light"] .mega-menu-item a:hover .mega-menu-category-name {
  color: #1a1a1a;
}

/* Stat numbers (hero stats) */
[data-theme="light"] .stat-number {
  color: #1a1a1a;
}

/* Tab Buttons */
[data-theme="light"] .tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

[data-theme="light"] .tab-btn.active {
  background: #e8f0fa;
  border-left: 3px solid #0067b8;
  color: #0067b8;
  font-weight: 600;
}

[data-theme="light"] .tab-btn.active svg {
  color: #0067b8;
}

/* Step detail headings */
[data-theme="light"] .step-detail h4 {
  color: #1a1a1a;
}

/* Diagram nodes */
[data-theme="light"] .diag-node {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .diag-node.highlight {
  background: #e8f0fa;
  border-color: #0067b8;
}

[data-theme="light"] .diag-node strong {
  color: #1a1a1a;
}

/* Filter sidebar hover */
[data-theme="light"] .filter-item:hover {
  background: #e8f0fa;
  color: #0067b8;
}

/* Search input text */
[data-theme="light"] .search-input {
  color: #1a1a1a;
  background: #ffffff;
}

[data-theme="light"] .search-input::placeholder {
  color: #878787;
}

/* Bot price text */
[data-theme="light"] .bot-price {
  color: #1a1a1a;
}

/* Bot card hover heading */
[data-theme="light"] .bot-card:hover .bot-info h3 {
  color: #0067b8;
}

/* Pagination hover */
[data-theme="light"] .page-btn:hover:not(.disabled) {
  background: #e8f0fa;
  border-color: #0067b8;
  color: #0067b8;
}

/* Architecture card title */
[data-theme="light"] .about-title {
  color: #1a1a1a;
}

/* Drawer close button hover */
[data-theme="light"] .drawer-close:hover {
  background: #f0f4f8;
  color: #1a1a1a;
}

/* Mega menu shadow for light mode */
[data-theme="light"] .mega-menu {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* Drawer shadow for light mode */
[data-theme="light"] .drawer {
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
}

/* btn-secondary hover for light mode */
[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* text-gradient span in light mode uses dark-to-blue */
[data-theme="light"] .text-gradient-span {
  background: linear-gradient(90deg, #1a1a1a 40%, #0067b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Integrations section bg in light mode */
[data-theme="light"] .integrations-section {
  background: #fafafa;
}

/* Tabs panel bg in light mode */
[data-theme="light"] .tabs-wrapper {
  background: #f0f4f8;
}

[data-theme="light"] .tab-panels {
  background: #ffffff;
}

/* theme-toggle button hover (light mode) */
[data-theme="light"] .theme-toggle-btn:hover {
  background: #e8f0fa;
  border-color: #0067b8;
  color: #0067b8;
}

/* Badge text in light mode */
[data-theme="light"] .badge {
  background: #e8f0fa;
  color: #0067b8;
  border-color: #c7d9f0;
}

/* Bot specific work block in light */
[data-theme="light"] .bot-specific-work {
  background: #f0f4f8;
  border-color: #d1d1d1;
  color: #3b3b3b;
}

/* Bot category label in light */
[data-theme="light"] .bot-category-label {
  color: #0067b8;
}

/* Blueprint block (drawer) in light */
[data-theme="light"] .blueprint-block {
  background: #f0f4f8;
  border-color: #b8cfe8;
  color: #3b3b3b;
}

/* Footer in light mode */
[data-theme="light"] .mega-footer {
  background: #ffffff;
  border-top: 1px solid #d1d1d1;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid #d1d1d1;
  color: #616161;
}

[data-theme="light"] .footer-link {
  color: #616161;
}

[data-theme="light"] .footer-link:hover {
  color: #0067b8;
}

[data-theme="light"] .footer-list-item a:hover span:first-child {
  color: #0067b8;
}

[data-theme="light"] .social-icon {
  color: #616161;
}

[data-theme="light"] .social-icon:hover {
  color: #0067b8;
}

/* Explorer section bg in light */
[data-theme="light"] .explorer-section {
  background: #f5f5f5;
}

/* About / architecture section in light */
[data-theme="light"] #about {
  background: #fafafa !important;
}

/* Drawer bot category accent in light */
[data-theme="light"] #drawerBotCategory {
  color: #0067b8 !important;
}

/* Bot action link in light */
[data-theme="light"] .bot-action-link {
  color: #0067b8;
}

/* Sort select in light */
[data-theme="light"] .sort-select {
  color: #3b3b3b;
  background: #ffffff;
}

/* Catalog sidebar items hover in light */
[data-theme="light"] .catalog-category-item:hover {
  background: #e8f0fa;
  color: #0067b8;
}

/* Bot card box shadow in light for definition */
[data-theme="light"] .bot-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .bot-card:hover {
  box-shadow: 0 4px 12px rgba(0, 103, 184, 0.12);
}
