/* ==========================================================================
   RUFEN PREMIUM LIGHT BLUE/ORANGE TECH DESIGN SYSTEM
   ========================================================================== */

/* --- Fonts & Variable System --- */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  
  --text-primary: #0f172a;   /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8;     /* Slate 400 */

  /* Rufen Blue and Orange Accents */
  --accent-blue: #0062ff;     /* Royal Electric Blue */
  --accent-orange: #ff6b00;   /* Brand Orange */
  --accent-purple: #6366f1;   /* Indigo/Purple accent */
  --accent-green: #10b981;    /* Emerald Green */
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-blue) 0%, #3b82f6 100%);
  --grad-orange: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c00 100%);
  --grad-dark: linear-gradient(180deg, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.04) 100%);

  /* UI Tokens */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.05);
  --glass-border-hover: rgba(15, 23, 42, 0.12);
  --radius-lg: 12px;
  --radius-md: 6px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* --- Base Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

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

/* --- Tech Grid Blueprint Background --- */
.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  pointer-events: none;
}

/* --- Ambient Glow Orbs (Soft Light Theme) --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 98, 255, 0.06) 0%, rgba(0,0,0,0) 70%);
  top: -150px;
  right: -100px;
  animation: floatOrb 12s infinite alternate ease-in-out;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.04) 0%, rgba(0,0,0,0) 70%);
  bottom: 10%;
  left: -150px;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.03); }
}

/* --- Layout Elements --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2col { grid-template-columns: 1fr 1fr; }
.grid-3col { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid-2col, .grid-3col { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.w-full { width: 100%; }
.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
  margin: 20px 0;
}

/* --- Glassmorphism Card System --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03), 0 0 0 1px rgba(15, 23, 42, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--grad-dark);
  pointer-events: none;
  z-index: 1;
}

.glass-card > * {
  position: relative;
  z-index: 2;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  gap: 8px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 98, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 98, 255, 0.25);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1.5px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.95rem;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-xs {
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* --- Typography Utilities --- */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --- Header --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100% !important;
  padding: 0 40px !important;
}

/* Shrink header scroll animation */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrinkHeader {
    to {
      height: 60px;
      background: rgba(255, 255, 255, 0.9);
      border-bottom: 1px solid rgba(15, 23, 42, 0.06);
      backdrop-filter: blur(16px);
    }
  }

  #main-header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }
}

.header-scrolled {
  height: 60px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px) !important;
}

.subpage-header {
  height: 60px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  animation: none !important;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-image {
  height: 48px; /* Larger, clearly visible header logo */
  width: auto;
  object-fit: contain;
}
.logo-image.footer-logo {
  height: 40px; /* Balanced footer logo sizing */
}
.logo-text {
  display: none; /* Hidden since the new logo includes the name RUFEN */
}

/* Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.06);
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255, 107, 0, 0.12);
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 6px var(--accent-orange);
  animation: pulseOrange 2s infinite;
}
.status-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
}

#btn-agent-active {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
#btn-agent-active:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.2);
}

@keyframes pulseOrange {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.nav-menu {
  display: flex;
  gap: 28px;
}
.header-actions {
  display: flex;
  align-items: center;
  margin-left: 40px;
  flex-shrink: 0 !important;
}
@media (min-width: 769px) and (max-width: 1200px) {
  .nav-menu {
    gap: 14px !important;
  }
  .nav-link {
    font-size: 0.8rem !important;
  }
  .header-actions {
    margin-left: 16px !important;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .header-container {
    padding: 0 20px !important;
  }
}

/* --- Expanded Hero Section (Houses canvas, banner, and live stream console) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 110px;
  box-sizing: border-box;
}

/* Interactive Background Canvas (Spans entire Hero element height) */
#canvas-interactive-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.hero-badge i {
  width: 12px;
  height: 12px;
}

.badge-bracket,
.badge-dot {
  color: var(--accent-orange);
  font-weight: 700;
}
.badge-brand {
  color: var(--accent-blue);
  font-weight: 700;
}

.hero-text-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px; /* Lock height so typewriter layout does not shift button positions */
  margin-bottom: 96px; /* Pushes buttons lower as requested */
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  width: 320px;
  justify-content: center;
  text-align: center;
}
@media (max-width: 768px) {
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

.hero-title {
  font-family: var(--font-display); /* Explicitly sans-serif ('Outfit') */
  font-size: clamp(2rem, 5vw, 3.8rem); /* Optimized scaling range to guarantee 2-line layout without wrapping */
  line-height: 1.15; /* Balanced spacing for multi-line layout */
  margin-bottom: 24px;
  font-weight: 400; /* Removed bold styling */
  max-width: 100%; /* Spans full width to let typewriter newline control wrapping */
  text-align: center;
}

/* Blinking typewriter cursor */
.hero-title::after {
  content: '|';
  margin-left: 2px;
  animation: cursorBlink 0.9s infinite step-end;
  color: var(--accent-blue);
  font-weight: 300;
}

@keyframes cursorBlink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 90%;
  text-align: center;
  margin-bottom: 0px;
  min-height: 1.8em;
}

@media (min-width: 960px) {
  .hero-subtitle {
    max-width: 100%;
    white-space: nowrap; /* Forces one line instead of wrapping on desktop */
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

@media (max-width: 480px) {
  .hero-ctas { width: 100%; flex-direction: column; }
}

/* Live stream section layout wrapper */
.live-stream-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.live-stream-layout {
  position: relative;
  z-index: 2;
}

/* --- High-Contrast Pitch Black Console styling --- */
.dark-theme-console {
  background: #090c15 !important; /* Pure black-blue base */
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45) !important;
}

.dark-theme-console::before {
  /* Override light gradient mask */
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(0,0,0,0) 100%) !important;
}

.dark-theme-console .console-flow-viz {
  background: rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme-console .viz-node span {
  color: #8b949e !important;
}
.dark-theme-console .viz-node.active span {
  color: #ffffff !important;
}
.dark-theme-console .viz-line {
  background: rgba(255, 255, 255, 0.09) !important;
}

/* Pitch Black Logs Container */
.dark-theme-console .console-log-box {
  background: #020408 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
.dark-theme-console .console-log-header {
  color: #8b949e !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
.dark-theme-console .log-ts {
  color: #484f58 !important;
}
.dark-theme-console .log-txt {
  color: #e6edf3 !important;
}
.dark-theme-console .log-success {
  color: #39d353 !important; /* GitHub success green */
}
.dark-theme-console .console-log-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   Scroll-Driven Focus / Reveal popup Animation
   ========================================================================== */
.scroll-reveal-console {
  transform: scale(0.92) translateY(60px) rotateX(8deg);
  opacity: 0.5;
  filter: blur(3px);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.8s ease, 
              filter 0.8s ease;
}

/* Fallback class toggled by JS intersectionObserver */
.scroll-reveal-console.in-focus {
  transform: scale(1) translateY(0) rotateX(0deg) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
}

/* Native CSS ViewTimeline animation mapping (Progressive Enhancement) */
@supports (animation-timeline: view()) {
  @keyframes focusConsole {
    from {
      transform: scale(0.92) translateY(60px) rotateX(8deg);
      opacity: 0.5;
      filter: blur(3px);
    }
    to {
      transform: scale(1) translateY(0) rotateX(0deg);
      opacity: 1;
      filter: blur(0px);
    }
  }

  .scroll-reveal-console {
    animation: focusConsole auto linear both;
    animation-timeline: view(block);
    animation-range: entry 10% cover 35%;
    transition: none; /* Let CSS timeline override standard transitions */
  }
}

/* --- Capabilities Section --- */
.capabilities-section {
  padding: 72px 0;
}

.capability-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-color: rgba(15,23,42,0.04);
  background: rgba(255,255,255,0.7);
}

/* Cards as links */
a.capability-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
a.capability-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,98,255,0.10);
}
a.capability-card-link h3 { color: var(--text-primary); }

/* Punchy CTA line at bottom of card */
.card-punchy {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.01em;
}

.card-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-blue { background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }
.dot-orange { background: var(--accent-orange); box-shadow: 0 0 6px var(--accent-orange); }
.dot-green { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }

.indicator-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.capability-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.capability-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Interactive Sandbox --- */
.sandbox-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.02);
  border-bottom: 1px solid rgba(15, 23, 42, 0.02);
}

.sandbox-wrapper {
  padding: 0;
  border-color: rgba(15, 23, 42, 0.05);
}

.sandbox-tabs {
  display: flex;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(0,0,0,0.01);
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.015);
}
.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  background: #ffffff;
}
.tab-btn i {
  width: 16px;
  height: 16px;
}

.sandbox-content {
  padding: 28px;
  background: #ffffff;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

.pane-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 20px;
}

/* Voice simulator specific styles */
.voice-simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .voice-simulator-layout { grid-template-columns: 1fr; }
}

.voice-controls {
  display: flex;
  flex-direction: column;
}
.voice-controls h4 {
  font-size: 1.15rem;
}

.call-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15,23,42,0.02);
  border: 1px solid rgba(15,23,42,0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.status-indicator-call {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-dot-active {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease;
}
.status-dot-active.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.pulse-ring {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  animation: ringPulse 1.5s infinite ease-out;
}
@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.status-header {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.status-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Light Mode Console Transcript */
.voice-log-console {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.console-header {
  background: rgba(15,23,42,0.02);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}
.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-dot.red { background-color: #ef4444; }
.console-dot.yellow { background-color: #f59e0b; }
.console-dot.green { background-color: #10b981; }
.console-title {
  margin-left: 6px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
}

.console-body {
  padding: 16px 16px 88px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}
.console-body::-webkit-scrollbar {
  width: 4px;
}
.console-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}

.system-msg {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: auto 0;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  position: relative;
  line-height: 1.4;
  animation: fadeUpIn 0.3s ease forwards;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.03);
  border-bottom-left-radius: 2px;
  color: var(--text-primary);
}
.chat-bubble.agent {
  align-self: flex-end;
  background: rgba(0, 98, 255, 0.05);
  border: 1px solid rgba(0, 98, 255, 0.1);
  border-bottom-right-radius: 2px;
  color: var(--text-primary);
}

.chat-bubble .speaker {
  font-weight: 600;
  font-size: 0.7rem;
  margin-bottom: 2px;
  display: block;
}
.chat-bubble.customer .speaker { color: var(--accent-purple); }
.chat-bubble.agent .speaker { color: var(--accent-blue); }

.chat-bubble .translation {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(15,23,42,0.06);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.console-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px; /* default collapsed height */
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 16px;
  font-size: 0.8rem;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  overflow-y: hidden;
}

/* Lang selector */
.lang-selector-group {
  margin-bottom: 20px;
}
.lang-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.lang-options {
  display: flex;
  gap: 8px;
}
.lang-btn {
  flex: 1;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 98, 255, 0.15);
}
.lang-btn.active {
  background: rgba(0, 98, 255, 0.06);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
}

/* Voice Waveform animation */
.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  padding: 0 10px;
}
.voice-waveform span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: height 0.08s ease, background-color 0.2s ease;
}
.voice-waveform.active span {
  background: var(--accent-blue);
}
.voice-waveform.active span:nth-child(even) {
  background: var(--accent-orange);
}

/* CRM Strip */
.crm-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.crm-status-strip i {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
}
.crm-status-strip.active {
  background: rgba(0, 98, 255, 0.03);
  border-color: rgba(0, 98, 255, 0.1);
  color: var(--accent-blue);
}
.crm-status-strip.synced {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
}

/* Structured Post-call summary */
.structured-summary {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-log-console.show-summary .console-footer {
  height: calc(100% - 37px); /* covers everything below header */
  background: #f8fafc;
  overflow-y: auto;
  border-top-color: transparent;
  padding: 16px 20px;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.summary-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 100px;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  animation: fadeUpIn 0.3s ease forwards;
}
.summary-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.summary-item-full {
  grid-column: span 2;
}
.summary-key {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.summary-val {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Transcript updates */
.lang-tag {
  display: inline-block;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.system-event {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(15, 23, 42, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin: 6px 0;
  animation: fadeUpIn 0.25s ease forwards;
}
.console-footer p {
  color: var(--text-secondary);
}

/* Workflow simulator layout */
.workflow-simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}
@media (max-width: 768px) {
  .workflow-simulator-layout { grid-template-columns: 1fr; }
}

.workflow-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-btn {
  background: rgba(15,23,42,0.015);
  border: 1px solid rgba(15,23,42,0.04);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.preset-btn:hover {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.12);
}
.preset-btn.active {
  background: rgba(0, 98, 255, 0.04);
  border-color: rgba(0, 98, 255, 0.2);
  color: var(--text-primary);
}

.preset-btn strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.preset-btn span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.workflow-canvas-pane {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 380px;
}

.canvas-header {
  background: rgba(15,23,42,0.02);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
}

.canvas-nodes {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  position: relative;
}

.node-block {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.node-block i {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
}

.node-block span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.node-block.active {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1) !important;
}
.node-block.active i {
  color: var(--accent-green);
}
.node-block.active span {
  color: var(--text-primary);
}

/* Connector Line between Node Blocks */
.node-connector {
  width: 2px;
  height: 16px;
  background: rgba(15, 23, 42, 0.08);
}
.node-connector.active {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* Tab 3: ROI Calculator Embedded inside Sandbox Layout */
.calc-layout-inside {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .calc-layout-inside { grid-template-columns: 1fr; }
}

.calc-controls h4 {
  font-size: 1.15rem;
}

.form-group.range-group {
  margin-bottom: 20px;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.slider-container.container-staff {
  background: transparent;
  border-color: rgba(0, 98, 255, 0.25);
}
.slider-container.container-software {
  background: transparent;
  border-color: rgba(255, 107, 0, 0.35);
}
.slider-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.container-staff .slider-label {
  color: var(--accent-blue);
}
.container-software .slider-label {
  color: var(--accent-orange);
}
.range-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Range Slider Styling */
.range-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  z-index: 2;
}
.range-slider::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.08);
  height: 2px;
  margin-top: 11px;
  border-radius: 1px;
}
.range-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.08);
  height: 2px;
  border-radius: 1px;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 12px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  cursor: pointer;
  box-sizing: border-box;
  margin-top: -5px;
  transition: transform 0.1s ease;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.range-slider::-moz-range-thumb {
  width: 14px;
  height: 12px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  transition: transform 0.1s ease;
}
.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Staff range slider overrides (Blue Theme) */
#range-staff::-webkit-slider-thumb {
  background: var(--accent-blue);
  box-shadow: none;
}
#range-staff::-moz-range-thumb {
  background: var(--accent-blue);
  box-shadow: none;
}
#val-staff {
  color: var(--accent-blue);
}

/* Software range slider overrides (Orange Theme) */
#range-software::-webkit-slider-thumb {
  background: var(--accent-orange);
  box-shadow: none;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
#range-software::-moz-range-thumb {
  background: var(--accent-orange);
  box-shadow: none;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
#val-software {
  color: var(--accent-orange);
}

.calc-results-pane {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 275px;
  margin-top: 10px;
}

.calc-results-header {
  background: rgba(15,23,42,0.02);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-results-body {
  padding: 24px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cost-value {
  font-weight: 600;
  color: var(--text-primary);
}
.legacy-cost {
  color: #ef4444;
}
.agentic-cost {
  color: var(--accent-blue);
}
.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 8px 0;
}
.total-savings-row {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.savings-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(16,185,129,0.15);
}

/* --- Contact & Consultation Form --- */
.contact-section {
  padding: 80px 0 100px;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  border-color: rgba(15, 23, 42, 0.05);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15,23,42,0.04);
}
.contact-header {
  margin-bottom: 32px;
}
.contact-header h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  gap: 20px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(15,23,42,0.015);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(0, 98, 255, 0.1);
}

/* Floating label mechanics */
.form-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-blue);
  background: #ffffff;
  padding: 0 5px;
  border-radius: 4px;
}

/* Submit Consultation Button Loading State */
#btn-submit-form.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Success notification message styling */
.success-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-green);
}
.success-icon-wrapper i {
  width: 24px;
  height: 24px;
}
.form-success-message h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.form-success-message p {
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  padding: 60px 0 64px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
}

.footer-logo {
  margin-bottom: 12px;
  display: block;
}
.footer-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: var(--text-primary);
}

/* Footer Links Hover Micro-Animations */
.footer-col a {
  position: relative;
  transition: color 0.3s ease;
}
.footer-col a svg {
  transition: transform 0.3s ease, stroke 0.3s ease;
  pointer-events: none;
}
.footer-col a:hover svg {
  stroke: var(--text-primary);
}

/* 1. Phone ring animation */
@keyframes footer-phone-ring {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}
.footer-col a:hover svg.lucide-phone {
  animation: footer-phone-ring 0.4s ease infinite;
}

/* 2. User bounce animation */
@keyframes footer-user-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.footer-col a:hover svg.lucide-user {
  animation: footer-user-bounce 0.6s ease infinite;
}

/* 3. Gear spin animation */
@keyframes footer-gear-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.footer-col a:hover svg.lucide-settings {
  animation: footer-gear-spin 1.5s linear infinite;
}

/* 4. More Services arrow slide */
.footer-col a .footer-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.footer-col a:hover .footer-arrow {
  transform: translateX(4px);
}


.footer-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 999;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-bottom p {
  margin: 0;
}


/* ============================================================
   Agentic Communications Network (Infrastructure as Code)
   ============================================================ */
.iac-section {
  padding: 80px 0;
  background: rgba(15, 23, 42, 0.015);
  position: relative;
}
.iac-diagram-card {
  padding: 32px;
  background: #070a13; /* Deep black space dashboard background */
  border: 1px solid rgba(0, 98, 255, 0.12); /* Subtle neon blue border */
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 
              0 0 50px rgba(0, 98, 255, 0.04) inset;
  margin-bottom: 24px;
  overflow: visible;
  position: relative;
  border-radius: 16px;
}

/* Scroll reveal slower emergence modifier */
.iac-diagram-card.scroll-reveal-console {
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 2.8s ease, 
              filter 2.8s ease;
}

@supports (animation-timeline: view()) {
  @keyframes focusConsoleSlow {
    from {
      transform: scale(0.85) translateY(120px) rotateX(18deg);
      opacity: 0.05;
      filter: blur(12px);
    }
    to {
      transform: scale(1) translateY(0) rotateX(0deg);
      opacity: 1;
      filter: blur(0px);
    }
  }
  .iac-diagram-card.scroll-reveal-console {
    animation: focusConsoleSlow auto linear both;
    animation-timeline: view(block);
    animation-range: entry -20% cover 65%;
    transition: none;
  }
}

/* Dashboard grid layout */
.iac-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 991px) {
  .iac-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Side tabs */
.iac-tabs-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.iac-tab-card {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.iac-tab-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.12);
}
.iac-tab-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
  flex-shrink: 0;
}
.iac-tab-card .card-content {
  flex: 1;
}
.iac-tab-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}
.iac-tab-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-bottom: 10px;
}
.iac-tab-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.iac-tab-card .card-tags span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Card Active States with specific color codes */
.iac-tab-card[data-target="iaas"].active {
  border-color: var(--accent-blue);
  background: rgba(0, 98, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 98, 255, 0.12);
}
.iac-tab-card[data-target="iaas"].active .card-icon {
  background: var(--accent-blue);
  color: #fff;
  border-color: transparent;
}
.iac-tab-card[data-target="iaas"].active h4 {
  color: var(--accent-blue);
}

.iac-tab-card[data-target="workloads"].active {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}
.iac-tab-card[data-target="workloads"].active .card-icon {
  background: var(--accent-green);
  color: #fff;
  border-color: transparent;
}
.iac-tab-card[data-target="workloads"].active h4 {
  color: var(--accent-green);
}

.iac-tab-card[data-target="assistants"].active {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.06);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.12);
}
.iac-tab-card[data-target="assistants"].active .card-icon {
  background: var(--accent-orange);
  color: #fff;
  border-color: transparent;
}
.iac-tab-card[data-target="assistants"].active h4 {
  color: var(--accent-orange);
}

/* SVG telemetry classes */
.iac-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.glass-bg {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* Lines & flow pathways default */
.data-line {
  stroke-width: 1.5;
  opacity: 0.18;
  transition: all 0.3s ease;
}
.line-blue   { stroke: var(--accent-blue); }
.line-orange { stroke: var(--accent-orange); }
.line-green  { stroke: var(--accent-green); }
.line-muted  { stroke: #475569; }

/* Packet Flow Animation */
.packet {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.pkt-blue   { fill: var(--accent-blue); filter: url(#glow-blue); }
.pkt-orange { fill: var(--accent-orange); filter: url(#glow-orange); }
.pkt-green  { fill: var(--accent-green); filter: url(#glow-green); }

/* SVG highlight state modifier toggled by tab select script */
.iac-svg.highlight-iaas .path-iaas {
  opacity: 0.95;
  stroke-width: 2.2;
}
.iac-svg.highlight-iaas .data-line:not(.path-iaas) {
  opacity: 0.10;
}
.iac-svg.highlight-iaas .packet:not(.pkt-iaas) {
  opacity: 0.12;
}
.iac-svg.highlight-iaas #path-assistants-deepgram,
.iac-svg.highlight-iaas #path-assistants-pipecat {
  stroke: var(--accent-blue) !important;
}
.iac-svg.highlight-iaas #pkt-deepgram-voice,
.iac-svg.highlight-iaas #pkt-pipecat-voice {
  fill: var(--accent-blue) !important;
  filter: url(#glow-blue) !important;
}

.iac-svg.highlight-workloads .path-workloads {
  opacity: 0.95;
  stroke-width: 2.2;
}
.iac-svg.highlight-workloads .data-line:not(.path-workloads) {
  opacity: 0.10;
}
.iac-svg.highlight-workloads .packet:not(.pkt-workloads) {
  opacity: 0.12;
}

.iac-svg.highlight-assistants .path-assistants {
  opacity: 0.95;
  stroke-width: 2.2;
}
.iac-svg.highlight-assistants .data-line:not(.path-assistants) {
  opacity: 0.10;
}
.iac-svg.highlight-assistants .packet:not(.pkt-assistants) {
  opacity: 0.12;
}

/* Floating Animations */
.anim-floating {
  animation: diagFloat 6s ease-in-out infinite alternate;
}
.anim-floating-slow {
  animation: diagFloat 8s ease-in-out infinite alternate-reverse;
}

/* Core / Non-Core Labels */
.legend-node {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Tooltip fixes for dark mode */
.hotspot-tooltip rect {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

/* Bottom Label styling */
.iac-label {
  margin-top: 24px;
}
.iac-label span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 24px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


/* Interactive hotspots */
.iac-hotspot {
  cursor: pointer;
}
.hotspot-pulse {
  fill: none;
  stroke-width: 2.5;
  animation: hotspotRing 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.hotspot-core {
  stroke-width: 1.5;
  stroke: #fff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotspot-translation .hotspot-pulse { stroke: var(--accent-blue); }
.hotspot-translation .hotspot-core  { fill: var(--accent-blue); }

.hotspot-calendar .hotspot-pulse { stroke: var(--accent-orange); }
.hotspot-calendar .hotspot-core  { fill: var(--accent-orange); }

.hotspot-workflow .hotspot-pulse { stroke: var(--accent-green); }
.hotspot-workflow .hotspot-core  { fill: var(--accent-green); }

@keyframes hotspotRing {
  0% { r: 6px; opacity: 1; stroke-width: 3; }
  100% { r: 18px; opacity: 0; stroke-width: 1; }
}

.iac-hotspot:hover .hotspot-core {
  transform: scale(1.22);
}

/* Hover tooltips */
.hotspot-tooltip {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}
.iac-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


/* ============================================================
   Gemini Chat Panel
   ============================================================ */
.gemini-chat-panel {
  position: fixed;
  bottom: 52px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gemini-chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.chat-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.chat-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulseBlue 2s infinite;
}
.chat-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-panel-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}
.chat-msg.user {
  align-self: flex-end;
}
.chat-msg.agent {
  align-self: flex-start;
}
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.chat-msg.user .chat-msg-bubble {
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.agent .chat-msg-bubble {
  background: rgba(15, 23, 42, 0.05);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-msg.agent .chat-msg-bubble.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 18px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat Input */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.chat-input-bar input {
  flex: 1;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-bar input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.08);
}
.chat-input-bar input::placeholder {
  color: var(--text-muted);
}
.chat-send-btn {
  background: var(--accent-blue);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: #0050cc;
  transform: scale(1.05);
}
.chat-send-btn:active {
  transform: scale(0.95);
}

/* ── Agent Active LED: Blue (Chat Active) State ─────────────── */
.status-indicator.chat-active {
  background: rgba(0, 98, 255, 0.06);
  border-color: rgba(0, 98, 255, 0.20);
}
.status-indicator.chat-active .status-dot {
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulseBlue 2s infinite;
}
.status-indicator.chat-active .status-label {
  color: var(--accent-blue);
}
#btn-agent-active.chat-active:hover {
  box-shadow: 0 0 14px rgba(0, 98, 255, 0.25);
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@media (max-width: 480px) {
  .gemini-chat-panel {
    width: calc(100% - 16px);
    right: 8px;
    height: 420px;
    border-radius: 14px 14px 4px 14px;
  }
}

/* Try Sandbox Header Button Style */
.btn-sandbox-header {
  background: transparent !important;
  color: var(--accent-orange) !important;
  border: none !important;
  padding: 5px 8px !important;
  border-radius: 30px !important;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-left: 12px;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  vertical-align: middle;
}

.btn-sandbox-header .play-icon-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  background: var(--accent-orange) !important;
  color: #fff !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
  position: relative;
}

.btn-sandbox-header .play-icon-circle::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1.5px solid rgba(255, 107, 0, 0.4);
  border-radius: 50%;
  animation: sandboxPulse 2s infinite;
  pointer-events: none;
}

.btn-sandbox-header .play-icon-circle svg,
.btn-sandbox-header .play-icon-circle i {
  width: 10px !important;
  height: 10px !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  transform: translateX(1px) !important; /* Visual adjustment for play icon centering */
}

.btn-sandbox-header .btn-text-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.1 !important;
  text-align: left;
}

.btn-sandbox-header .btn-title {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  color: var(--accent-orange) !important;
  transition: color 0.3s ease !important;
}

.btn-sandbox-header .btn-subtitle {
  font-size: 0.6rem !important;
  font-weight: 500 !important;
  opacity: 0.8;
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

/* Hover States */
.btn-sandbox-header:hover,
.btn-sandbox-header.active {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.btn-sandbox-header:hover .play-icon-circle,
.btn-sandbox-header.active .play-icon-circle {
  transform: scale(1.08);
}

.btn-sandbox-header:hover .play-icon-circle::after,
.btn-sandbox-header.active .play-icon-circle::after {
  animation-duration: 1.5s;
}

/* Pulse animation */
@keyframes sandboxPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .btn-sandbox-header {
    display: none !important; /* Hide on mobile to prevent navbar clutter */
  }
}

