@layer base {
  :root {
    --bg-base: #07080a;
    --bg-card: #0c0f16;
    --bg-card-hover: #131620;
    --accent-amber: #FF8800;
    --accent-amber-hover: #FFA226;
    --accent-amber-glow: rgba(255, 136, 0, 0.45);
    --accent-cyan: #00f0ff;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-amber: rgba(255, 136, 0, 0.35);
    --border-active: rgba(255, 136, 0, 0.5);
  }

  html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }

  body {
    overflow-x: clip;
    background-color: #07080a;
    color: #f8fafc;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography Classes */
.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Background Grids & Patterns */
.bg-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-matrix {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(0, 240, 255, 0.05) 35%, transparent 70%);
}

.bg-radial-hero {
  background: radial-gradient(800px circle at 50% -20%, rgba(0, 240, 255, 0.12), rgba(99, 102, 241, 0.08), transparent 70%);
}

/* Homepage hero scales from overlapping desktop lenses to a readable mobile stack. */
@media (max-width: 1100px) {
  .homepage .hero-lenses {
    flex-direction: column;
    gap: 0;
  }

  .homepage .hero-lenses > .hero-lens {
    width: min(78vw, 360px) !important;
    height: min(78vw, 360px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: -48px;
  }
}

@media (max-width: 640px) {
  .homepage .hero-lenses > .hero-lens {
    width: min(84vw, 320px) !important;
    height: min(84vw, 320px) !important;
    margin-bottom: -34px;
  }

  .homepage .hero-lenses > .hero-title {
    position: relative;
    inset: auto;
    order: 4;
    margin-top: 56px;
  }

  .homepage .hero-lenses > .hero-title h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .homepage .hero-lenses > .hero-title .hero-title-pill {
    max-width: calc(100vw - 32px);
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .homepage #workflow .flex.items-center.gap-4 {
    flex-wrap: wrap;
  }

  .homepage #contact-section h3 {
    overflow-wrap: anywhere;
  }
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

/* Glowing Elements */
.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(0, 240, 255, 0.35);
}

.glow-indigo {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 20px -4px rgba(16, 185, 129, 0.4);
}

.text-glow-cyan {
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.glow-amber {
  box-shadow: 0 0 25px -4px rgba(255, 136, 0, 0.45);
}

.text-glow-amber {
  text-shadow: 0 0 15px rgba(255, 136, 0, 0.6);
}

.card-obsidian {
  background: linear-gradient(180deg, #131620 0%, #0c0f16 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
}

.gradient-border-amber {
  border: 1px solid transparent;
  background: linear-gradient(#0c0f16, #0c0f16) padding-box,
              linear-gradient(135deg, rgba(255, 136, 0, 0.8), rgba(255, 165, 0, 0.35), rgba(255, 255, 255, 0.08)) border-box;
}

/* Animated Pulse Packet for Graph */
@keyframes flowAlongLine {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animated-wire {
  stroke-dasharray: 6, 6;
  animation: flowAlongLine 2.5s linear infinite;
}

.animated-wire-fast {
  stroke-dasharray: 4, 4;
  animation: flowAlongLine 1.2s linear infinite;
}

/* Beacon Pulses */
@keyframes pulseRadar {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 240, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.beacon-pulse {
  animation: pulseRadar 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseRadarGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.beacon-pulse-green {
  animation: pulseRadarGreen 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Subtle Shimmer for High Priority Elements */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,240,255,0.15) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

/* Gradient Borders */
.gradient-border-cyan {
  border: 1px solid transparent;
  background: linear-gradient(#0b0f17, #0b0f17) padding-box,
              linear-gradient(135deg, rgba(0, 240, 255, 0.6), rgba(99, 102, 241, 0.3), rgba(255, 255, 255, 0.05)) border-box;
}

.gradient-border-active {
  border: 1px solid transparent;
  background: linear-gradient(#0e1424, #0e1424) padding-box,
              linear-gradient(135deg, #00f0ff, #6366f1, #10b981) border-box;
}

/* Code Highlighting Minimal Palette */
.code-token-keyword { color: #f43f5e; }
.code-token-string { color: #10b981; }
.code-token-number { color: #f59e0b; }
.code-token-prop { color: #00f0ff; }
.code-token-type { color: #a855f7; }
.code-token-comment { color: #64748b; font-style: italic; }

/* Custom Range Input */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* Holographic Laser Scanline */
@keyframes scanLaser {
  0% {
    top: 0%;
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0.8;
  }
}

.laser-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.2) 20%, #00f0ff 50%, rgba(99, 102, 241, 0.4) 80%, transparent 100%);
  box-shadow: 0 0 15px #00f0ff, 0 0 30px rgba(0, 240, 255, 0.6);
  animation: scanLaser 4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Floating animation for HUD elements */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlowReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

.float-hud-1 {
  animation: floatSlow 5s ease-in-out infinite;
}

.float-hud-2 {
  animation: floatSlowReverse 6s ease-in-out infinite;
}

/* Editorial Outline Typography */
.text-outline-stroke {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  color: transparent;
  user-select: none;
}

/* Lens Circle Shadow & Glow */
.circle-lens-shadow {
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.7);
}

.circle-lens-orange {
  background: radial-gradient(circle at 40% 35%, #FFA500 0%, #FF8800 65%, #E67300 100%);
  box-shadow: 0 25px 60px -15px rgba(255, 140, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.circle-lens-orange-glow {
  box-shadow: 0 30px 70px -15px rgba(255, 136, 0, 0.5), 0 0 35px rgba(255, 136, 0, 0.3);
}

/* Sleek Spherical Eclipse Lens for Bento Cards */
.bento-eclipse-lens {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.85), 0 0 22px rgba(255, 136, 0, 0.25);
  background: #090c12;
  flex-shrink: 0;
}

.bento-eclipse-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-eclipse-lens:hover img {
  transform: scale(1.1);
}

.bento-eclipse-shadow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 55%, rgba(9, 12, 18, 0.35) 85%, rgba(9, 12, 18, 0.7) 100%);
  pointer-events: none;
}

/* System Notifications Popover */
#notifications-popover {
  background-color: #0b0f17 !important;
  background: #0b0f17 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  z-index: 100 !important;
}

/* Interactive Architecture DAG Graph Styles */
.dag-link-animated {
  stroke-dasharray: 6 4;
  animation: dagFlow 1.2s linear infinite;
}

@keyframes dagFlow {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.dag-node {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
}

.dag-node:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}

/* Overview Pipeline Graph and Telemetry Chart Styles */
.overview-node {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
}

.overview-node:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 14px rgba(255, 136, 0, 0.5));
}

.overview-chart-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawOverviewChart 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawOverviewChart {
  to {
    stroke-dashoffset: 0;
  }
}

.overview-chart-point {
  transition: r 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.overview-chart-point:hover {
  r: 6;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.9));
}



