/* =========================================================================
   1. Reset & Core Styling
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  /* Color Palette Variables */
  --bg-slate-950: #020617;
  --bg-slate-900: #0f172a;
  --border-slate-800: rgba(30, 41, 59, 0.7);
  --border-cyan-500: rgba(6, 182, 212, 0.4);
  --border-purple-500: rgba(139, 92, 246, 0.4);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  background-color: var(--bg-slate-950);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-slate-950);
  color: var(--text-slate-100);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.block { display: block; }
.hidden { display: none; }

/* =========================================================================
   2. Colors & Borders (Vanilla CSS Tailwind Mapping)
   ========================================================================= */
.bg-slate-950 { background-color: #020617; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950\/20 { background-color: rgba(2, 6, 23, 0.2); }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-slate-900\/40 { background-color: rgba(15, 23, 42, 0.4); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-cyan-950\/40 { background-color: rgba(8, 47, 73, 0.4); }
.bg-emerald-950\/40 { background-color: rgba(2, 48, 32, 0.4); }
.bg-purple-950\/40 { background-color: rgba(48, 9, 73, 0.4); }
.bg-purple-500\/10 { background-color: rgba(139, 92, 246, 0.1); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-950\/30 { background-color: rgba(2, 48, 32, 0.3); }

.border-cyan-800\/50 { border-color: rgba(21, 94, 117, 0.5); }
.border-purple-800\/50 { border-color: rgba(107, 33, 168, 0.5); }
.border-emerald-800\/50 { border-color: rgba(6, 95, 70, 0.5); }
.border-emerald-800\/30 { border-color: rgba(6, 95, 70, 0.3); }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-transparent { border-color: transparent; }
.border-b { border-bottom: 1px solid var(--border-slate-800); }

.text-white { color: #ffffff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #22d3ee; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.hover\:text-slate-300:hover { color: #cbd5e1; }

.selection\:bg-cyan-500\/30 ::selection { background-color: rgba(6, 182, 212, 0.3); }
.selection\:text-cyan-200 ::selection { color: #a5f3fc; }

/* Gradients */
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--gradient-from, transparent), var(--gradient-to, transparent));
}
.from-cyan-400 {
  --gradient-from: #22d3ee;
  --gradient-to: rgba(34, 211, 238, 0);
}
.via-purple-400 {
  background-image: linear-gradient(to right, var(--gradient-from, #22d3ee), #c084fc, var(--gradient-to, #34d399));
}
.to-emerald-400 {
  --gradient-to: #34d399;
}

/* =========================================================================
   3. Sizing & Layout (Grid, Flex, Spacing)
   ========================================================================= */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Grid columns & templates */
.grid { display: grid; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-stretch { align-items: stretch; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Margins & Paddings */
.p-1\.5 { padding: 0.375rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3\.5 { padding: 0.875rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-16 { padding-bottom: 4rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

/* Heights & Widths specifically */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }

/* Gaps */
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Positioning & Display */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.z-45 { z-index: 45; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.-z-10 { z-index: -10; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); }

/* Accessibility Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================================================
   4. Typography Utilities
   ========================================================================= */
.font-outfit { font-family: var(--font-heading); }
.font-inter { font-family: var(--font-body); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }

.leading-\[1\.1\] { line-height: 1.1; }
.leading-relaxed { line-height: 1.625; }
.leading-normal { line-height: 1.5; }

/* Typography Resizing clamp tags */
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* =========================================================================
   5. Buttons & Navigation Layouts
   ========================================================================= */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}
.nav-link:hover {
  color: var(--accent-cyan);
  background-color: rgba(6, 182, 212, 0.05);
}

.nav-link-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-slate-950);
  background-color: var(--accent-cyan);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-cta:hover {
  transform: translateY(-1px);
  background-color: #22d3ee;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.button-primary {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-slate-950);
  background-color: var(--accent-cyan);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.button-primary:hover {
  transform: translateY(-2px);
  background-color: #22d3ee;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
}

.button-secondary {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-slate-800);
  backdrop-filter: blur(12px);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(15, 23, 42, 0.8);
}

/* Header transition logic */
.header-scrolled {
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-slate-800);
}
header.header-scrolled {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Mobile Nav overrides */
#mobile-nav {
  height: calc(100vh - 73px);
}
.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-slate-800);
  padding-bottom: 0.75rem;
}
.button-cta-mobile {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-slate-950);
  background-color: var(--accent-cyan);
  padding: 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
}

/* =========================================================================
   6. Hero Network & Visual FX (Pulsing, Blurs, SVG Streams)
   ========================================================================= */
.min-h-\[380px\] { min-height: 380px; }
@media (min-width: 640px) {
  .sm\:min-h-\[440px\] { min-height: 440px; }
}

/* Source Ingestion Row Item */
.source-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  width: 170px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 20;
}
.source-item:hover {
  transform: translateX(3px);
  border-color: var(--accent-cyan);
  background-color: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}
.source-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.source-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.source-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
}
.source-meta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* 3D Lakehouse Cylinder */
.lakehouse-tank {
  width: 90px;
  height: 140px;
  position: relative;
}
.cylinder-top {
  width: 90px;
  height: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid var(--border-cyan-500);
  border-radius: 50%;
  position: absolute;
  top: 0;
  z-index: 15;
}
.cylinder-body {
  width: 90px;
  height: 110px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
  border-left: 1.5px solid var(--border-cyan-500);
  border-right: 1.5px solid var(--border-cyan-500);
  position: absolute;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cylinder-core {
  width: 40px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15), transparent);
  filter: blur(8px);
  position: absolute;
  top: 0;
  animation: cylinderFlow 4s linear infinite;
  z-index: 11;
}
.cylinder-bottom {
  width: 90px;
  height: 20px;
  background: linear-gradient(135deg, #0f172a, #020617);
  border-left: 1.5px solid var(--border-cyan-500);
  border-right: 1.5px solid var(--border-cyan-500);
  border-bottom: 1.5px solid var(--border-cyan-500);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  z-index: 15;
}

@keyframes cylinderFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* SVG Data Streams styling */
.stream-line-cyan, .stream-line-purple, .stream-line-emerald {
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: streamFlow 25s linear infinite;
  opacity: 0.45;
}
.stream-line-cyan { stroke: var(--accent-cyan); }
.stream-line-purple { stroke: var(--accent-purple); }
.stream-line-emerald { stroke: var(--accent-emerald); }

@keyframes streamFlow {
  to {
    stroke-dashoffset: -100;
  }
}

/* Hero layout positioning to prevent flex push-up overlap on mobile */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  #hero {
    justify-content: center;
    padding-top: 7rem;
  }
}

/* Ingestion lines visibility */
.ingestion-svg-lines {
  display: none;
}
@media (min-width: 768px) {
  .ingestion-svg-lines {
    display: block;
  }
}

/* Blur Filters for Background effects */
.blur-\[80px\] { filter: blur(80px); }
.blur-\[100px\] { filter: blur(100px); }
.blur-\[120px\] { filter: blur(120px); }

/* Backdrop filters */
.backdrop-blur-none { backdrop-filter: blur(0px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Transitions & Animations */
.transition-all { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms; }

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================================
   7. System & Feature Components (Section 1 & Services)
   ========================================================================= */
.system-card {
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.system-card:hover {
  border-color: var(--border-cyan-500);
  transform: translateY(-2px);
  background-color: rgba(15, 23, 42, 0.6);
  box-shadow: 0 10px 20px -10px rgba(6, 182, 212, 0.15);
}
.system-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  display: block;
}

/* Feature Cards (Platform Section) */
.feature-card {
  background-color: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border-slate-800);
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}
.feature-card:hover {
  border-color: var(--border-cyan-500);
  transform: translateY(-4px);
  background-color: rgba(15, 23, 42, 0.5);
  box-shadow: 0 20px 30px -15px rgba(6, 182, 212, 0.2);
}
.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

/* Service Card / Pillars grid */
.service-pill-card {
  background-color: rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-slate-800);
  border-radius: 1.25rem;
  padding: 2.5rem 2.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.service-pill-card:hover {
  background-color: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.8);
}
.service-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent-cyan);
  border-bottom: 2px solid rgba(6, 182, 212, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  width: 100%;
}
.service-sub-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-slate-800);
  padding-top: 1.25rem;
}
.service-sub-list li {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.service-sub-list li:last-child {
  margin-bottom: 0;
}
.service-sub-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--accent-cyan);
}
.service-pill-card:hover .service-sub-list li::before {
  transform: scale(1.2);
  background-color: #fff;
}

/* =========================================================================
   8. Conversational BI Terminal Simulator (Chat Terminal Layout)
   ========================================================================= */
.terminal-container {
  border: 1px solid var(--border-slate-800);
  background-color: rgba(2, 6, 23, 0.85);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
}
.terminal-header {
  background-color: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-slate-800);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-body {
  height: 380px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

/* Custom scrollbar inside terminal */
.terminal-body::-webkit-scrollbar {
  width: 5px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 10px;
}

/* Chat bubble aesthetics */
.chat-message {
  max-width: 85%;
  padding: 0.95rem 1.15rem;
  border-radius: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  animation: bubbleFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}
@keyframes bubbleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-user {
  align-self: flex-end;
  background-color: var(--accent-purple);
  color: var(--text-primary);
  border-bottom-right-radius: 0.25rem;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
}
.chat-bot {
  align-self: flex-start;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-slate-800);
  color: var(--text-primary);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.terminal-footer {
  border-top: 1px solid var(--border-slate-800);
  background-color: rgba(15, 23, 42, 0.4);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--accent-purple);
  margin-left: 2px;
  animation: cursorBlink 0.9s steps(2) infinite;
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* Query button selector */
.query-selector-btn {
  display: block;
  width: 100%;
  text-align: left;
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.query-selector-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
  background-color: rgba(15, 23, 42, 0.6);
}
.query-selector-btn.active {
  border-color: var(--accent-purple);
  color: var(--text-primary);
  background-color: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 15px -5px rgba(139, 92, 246, 0.3);
}

/* Real-time HTML graphics rendering inside terminal responses */
.terminal-chart-container {
  margin-top: 1rem;
  background-color: var(--bg-slate-950);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  padding: 1.15rem;
  width: 100%;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.chart-bar-row:last-child {
  margin-bottom: 0;
}
.chart-label {
  width: 6.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.chart-bar-track {
  flex-grow: 1;
  height: 10px;
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0; /* Animated dynamically in JavaScript */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-cyan { background-color: var(--accent-cyan); }
.fill-purple { background-color: var(--accent-purple); }
.fill-emerald { background-color: var(--accent-emerald); }

.chart-value {
  width: 3.5rem;
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* =========================================================================
   9. Financial Calculator & Contact Form
   ========================================================================= */
.calculator-container {
  width: 100%;
}
.calc-input {
  width: 100%;
  background-color: var(--bg-slate-950);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  outline: none;
  transition: all 0.2s ease-in-out;
}
.calc-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

/* Chrome/Firefox numeric field spin removal */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-input[type=number] {
  -moz-appearance: textfield;
}

/* Contact Form Input styles */
.form-input {
  width: 100%;
  background-color: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-slate-800);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  outline: none;
  transition: all 0.2s ease-in-out;
}
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}
.form-input::placeholder {
  color: var(--text-muted);
}

.button-primary-submit {
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bg-slate-950);
  background-color: var(--accent-cyan);
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.button-primary-submit:hover {
  background-color: #22d3ee;
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}
.button-primary-submit:active {
  transform: translateY(0);
}

/* Response alert notification */
#form-alert.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}
#form-alert.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* =========================================================================
   10. Global Custom Styles (Glow lines, Scroll Observer, Custom Scrollbar)
   ========================================================================= */
/* Scroll Triggered Animations class tags */
.js-enabled .reveal-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.js-enabled .reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-slate-950);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid var(--bg-slate-950);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
