/* ==========================================================================
   ORYVI AI - Neo-Quartz & Emerald Titanium Design System
   Aesthetic: Ultra-Luxury Post-Cloud Light Theme (Strictly Light Mode)
   Domain: oryvi-ai.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Alabaster & Ceramic Surfaces */
  --canvas: #fafaf9;
  --canvas-subtle: #f5f5f4;
  --canvas-card: #ffffff;
  --canvas-elevated: #ffffff;
  --canvas-dock: rgba(255, 255, 255, 0.86);

  /* Deep Obsidian Titanium */
  --titanium-950: #09090b;
  --titanium-900: #18181b;
  --titanium-800: #27272a;
  --titanium-700: #3f3f46;
  --titanium-500: #71717a;
  --titanium-400: #a1a1aa;
  --titanium-200: #e4e4e7;
  --titanium-100: #f4f4f5;

  /* Electric Spring Emerald & Jade */
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #ecfdf5;
  --emerald-50: #f0fdf4;
  --emerald-glow: rgba(16, 185, 129, 0.22);

  /* Subtle Warm Accents */
  --quartz-rose: #f43f5e;
  --quartz-violet: #8b5cf6;
  --quartz-amber: #f59e0b;

  /* Hairline Borders */
  --border-hairline: rgba(228, 228, 231, 0.9);
  --border-card: #e4e4e7;
  --border-emerald: rgba(16, 185, 129, 0.35);

  /* Shadows */
  --shadow-dock: 0 10px 30px -8px rgba(0, 0, 0, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-bento: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-bento-hover: 0 24px 48px -12px rgba(16, 185, 129, 0.12), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
  --shadow-emerald: 0 8px 24px -4px rgba(16, 185, 129, 0.3);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background-color: var(--canvas);
}

body {
  font-family: var(--font-body);
  background-color: var(--canvas);
  color: var(--titanium-900);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Ambient Warm Alabaster Canvas Gradient */
.quartz-canvas {
  background-color: var(--canvas);
  background-image: 
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.04) 0px, transparent 45%),
    radial-gradient(at 85% 20%, rgba(139, 92, 246, 0.03) 0px, transparent 40%),
    radial-gradient(at 50% 60%, rgba(245, 158, 11, 0.02) 0px, transparent 50%);
}

.quartz-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(228, 228, 231, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(228, 228, 231, 0.45) 1px, transparent 1px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--titanium-950);
}

/* Floating Capsule Island Dock */
.floating-dock-container {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 1rem;
}

.floating-dock {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--canvas-dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: 9999px;
  box-shadow: var(--shadow-dock);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.floating-dock.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(212, 212, 216, 0.9);
}

/* Buttons */
.btn-titanium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--titanium-950);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid var(--titanium-800);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-titanium:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-emerald);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(16, 185, 129, 0.45);
}

.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--titanium-800) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  border: 1px solid var(--border-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost-pill:hover {
  background: var(--canvas-subtle);
  border-color: var(--titanium-400);
  color: var(--titanium-950) !important;
  transform: translateY(-1.5px);
}

/* Micro Status Indicator */
.status-pill-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--emerald-50);
  border: 1px solid #a7f3d0;
  color: var(--emerald-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pulse-emerald-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  position: relative;
}

.pulse-emerald-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--emerald-500);
  opacity: 0.4;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Bento Grid Architecture */
.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-bento);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-bento-hover);
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.bento-badge-emerald {
  background: var(--emerald-50);
  border: 1px solid #a7f3d0;
  color: var(--emerald-600);
}

.bento-badge-titanium {
  background: var(--titanium-100);
  border: 1px solid var(--titanium-200);
  color: var(--titanium-800);
}

/* Interactive Real-Time Benchmark Race */
.race-container {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-bento);
}

.race-track-row {
  margin-bottom: 1.25rem;
}

.race-track-bar {
  height: 14px;
  border-radius: 9999px;
  background: #e4e4e7;
  overflow: hidden;
  position: relative;
}

.race-track-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-oryvi {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.fill-aws {
  background: #a1a1aa;
}

.fill-gcp {
  background: #cbd5e1;
}

/* Interactive Cluster Scaler Widget */
.cluster-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--titanium-700);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cluster-btn.active {
  background: var(--titanium-950);
  color: #ffffff;
  border-color: var(--titanium-950);
}

/* Clean Terminal Console */
.neo-terminal {
  background: #09090b;
  border-radius: 18px;
  border: 1px solid #27272a;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
}

.neo-terminal-header {
  background: #18181b;
  border-bottom: 1px solid #27272a;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.neo-terminal-body {
  padding: 1.25rem;
  color: #f4f4f5;
  font-size: 0.825rem;
  line-height: 1.7;
}

/* Mobile Drawer */
#mobileDrawer {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 249, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}

#mobileDrawer.open {
  display: flex;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--canvas-subtle);
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}
