/* ==========================================================================
   Kalasar MCP & Skill Setup Documentation Design System
   Sleek Dark Mode / Glassmorphism Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Import Tokens
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   2. Root System Variables
   -------------------------------------------------------------------------- */
:root {
  /* HSL Tailored Palettes */
  --bg-canvas: hsl(224, 71%, 4%);
  --bg-card: rgba(13, 20, 38, 0.65);
  --bg-sidebar: rgba(8, 12, 28, 0.85);
  --bg-code: hsl(222, 47%, 7%);
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --color-primary: hsl(244, 97%, 66%);     /* Electric Indigo */
  --color-secondary: hsl(271, 91%, 65%);   /* Cyber Purple */
  --color-accent: hsl(38, 92%, 50%);       /* Solar Gold */
  --color-success: hsl(142, 72%, 45%);     /* Mint Green */
  --color-warning: hsl(24, 95%, 53%);      /* Flare Orange */
  --color-danger: hsl(350, 89%, 60%);      /* Crimson Red */
  
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 52%);
  --text-link: hsl(244, 97%, 75%);
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --grad-text: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
  --grad-accent: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --grad-glowing: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, rgba(13, 20, 38, 0) 70%);

  /* Shadows & Glassmorphism blur */
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 30px rgba(99, 102, 241, 0.2);
  --blur-glass: blur(16px);
  
  /* Layout Configuration */
  --sidebar-width: 280px;
  --header-height: 70px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   3. Document Resets & Base Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Glowing Ambient Orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

body::before {
  top: 5%;
  right: -100px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

body::after {
  top: 45%;
  left: -200px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  filter: brightness(1.2);
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #f43f5e;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   4. Structured Layout Frame
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Navigation Sidebar */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  backdrop-filter: var(--blur-glass);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-link);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Navigation List */
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.nav-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sidebar-nav li.active .nav-link,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-nav li.active .nav-link svg,
.nav-link:hover svg {
  color: var(--color-primary);
}

.sidebar-nav li.active .nav-link {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 100%);
  border-left: 2px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  padding-left: calc(0.75rem - 2px);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-footer a {
  color: var(--text-secondary);
}

/* Main Content Column */
.app-main {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2.5rem 4rem;
  max-width: 1200px;
}

/* --------------------------------------------------------------------------
   5. Reusable UI Cards & Components
   -------------------------------------------------------------------------- */
/* Premium Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Alert/Notice Banners */
.alert-banner {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border-left: 4px solid transparent;
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
}

.alert-banner.info {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--color-primary);
  color: var(--text-primary);
}
.alert-banner.info .alert-icon { color: var(--color-primary); }

.alert-banner.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--color-accent);
  color: var(--text-primary);
}
.alert-banner.warning .alert-icon { color: var(--color-accent); }

.alert-banner.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--color-success);
  color: var(--text-primary);
}
.alert-banner.success .alert-icon { color: var(--color-success); }

/* Code Block & Copy Button */
.code-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-code);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
}

.code-lang {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.code-container pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 0;
}

.code-container code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Hero & Setup Guide Layouts
   -------------------------------------------------------------------------- */
/* Hero Header */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  position: relative;
  margin-bottom: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: var(--text-link);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 40%, #a8b2d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Interactive Timeline / Steps Section */
.step-guide-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.step-num-bubble {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-details {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Active Setup State styling */
.step-item.active {
  background: var(--bg-card);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm), var(--shadow-neon);
}

.step-item.active .step-num-bubble {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.step-item.active .step-title {
  color: var(--text-primary);
}

.step-item.active .step-desc {
  color: var(--text-secondary);
}

/* Right-Hand Visual Showcase Frame */
.mockup-visual-frame {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: 480px;
  background: #090d1a;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background-color: var(--color-danger); }
.mockup-dot.yellow { background-color: var(--color-accent); }
.mockup-dot.green { background-color: var(--color-success); }

.mockup-title {
  flex-grow: 1;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 35px; /* Offset to center title */
}

.mockup-content {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

/* Claude Connect UI Mockup Visuals */
.claude-ui-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.claude-ui-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Elegant styles for high-fidelity video screenshot slides */
.claude-ui-slide.image-slide {
  padding: 0.5rem;
}

.claude-ui-slide.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal and Box mockups inside mockup-content */
.mockup-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.mockup-box-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.mockup-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.mockup-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.mockup-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  pointer-events: none;
}

.mockup-action-btn {
  background: var(--color-primary);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  cursor: not-allowed;
}

/* Slide 3: OAuth mock */
.oauth-card {
  text-align: center;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.95) 0%, rgba(30, 20, 48, 0.95) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  max-width: 320px;
}

.oauth-logo-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.oauth-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.oauth-logo.claude-logo {
  background: #cc542e; /* Claude orange */
  color: white;
}

.oauth-logo.kalasar-logo {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.oauth-arrow {
  color: var(--text-muted);
}

.oauth-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.oauth-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.oauth-btn {
  background: var(--color-secondary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  cursor: not-allowed;
}

/* Slide 4: Connected state mock */
.connected-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connected-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

.connected-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.connected-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Drag & Drop mockup */
.dropzone-mockup {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: var(--transition-fast);
}

.dropzone-mockup svg {
  width: 44px;
  height: 44px;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.dropzone-mockup p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.dropzone-mockup span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Interactive Reference Layout (Grid Columns, Accordions, Tab Swaps)
   -------------------------------------------------------------------------- */
/* Accordion list for MCP endpoints */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-fast);
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.accordion-trigger {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
}

.accordion-endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.endpoint-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-link);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.endpoint-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid transparent;
}

.accordion-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.05);
}

.accordion-item.active .accordion-content {
  max-height: 400px; /* arbitrary height to slide down */
  border-top: 1px solid var(--border-light);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-inner {
  padding: 1.5rem;
  font-size: 0.9rem;
}

.accordion-inner-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Custom Styled Tab Swapping */
.tab-controls {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 0.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Frame Cards Selector */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.frame-card {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.frame-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.02);
}

.frame-card.active {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(99, 102, 241, 0.1);
}

.frame-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.frame-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.frame-card.active .frame-card-title {
  color: var(--text-primary);
}

.frame-card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.frame-card.active .frame-card-badge {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-link);
}

.frame-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.frame-details-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border-light);
}

/* --------------------------------------------------------------------------
   8. Animation Sequences
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive Scaling Overrides */
@media (max-width: 1024px) {
  .step-guide-container {
    grid-template-columns: 1fr;
  }
  .mockup-visual-frame {
    position: relative;
    top: 0;
    height: 380px;
    margin-bottom: 2rem;
  }
  .app-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .app-main {
    margin-left: 0;
    padding: 2rem;
  }
  .app-container {
    flex-direction: column;
  }
  .frames-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   9. Interactive Arcade Tour Entryway Styles
   -------------------------------------------------------------------------- */
.sidebar-arcade-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.05);
  text-decoration: none;
}

.sidebar-arcade-btn:hover {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2), 0 0 10px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
  color: #ffffff;
}

.sidebar-arcade-btn svg {
  color: var(--color-secondary);
  transition: var(--transition-fast);
}

.sidebar-arcade-btn:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* Pulse Ring inside sidebar button */
.sidebar-arcade-btn .pulse-ring {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--color-secondary);
}

.sidebar-arcade-btn .pulse-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-secondary);
  opacity: 0;
  animation: button-pulse-ring 1.8s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

@keyframes button-pulse-ring {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero Arcade Callout Card */
.hero-arcade-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 2.5rem auto 1rem auto;
  padding: 1.5rem 2rem;
  background: rgba(13, 20, 38, 0.45);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 0 25px rgba(168, 85, 247, 0.05);
  text-align: left;
  gap: 2rem;
  transition: var(--transition-smooth);
}

.hero-arcade-callout:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.hero-arcade-callout .callout-content {
  flex-grow: 1;
}

.hero-arcade-callout h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-arcade-callout p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.play-arcade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.play-arcade-btn:hover {
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.6), 0 0 15px rgba(99, 102, 241, 0.3);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .hero-arcade-callout {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
    margin: 2rem 1rem 0 1rem;
  }
  .play-arcade-btn {
    width: 100%;
  }
}
