/* ==========================================================================
   C-Script LocalHost Panel — World-Class Landing Page Stylesheet
   Designed in the HitPay / Stripe modern SaaS minimalism aesthetic.
   Crafted with human design care & precision.
   ========================================================================== */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Tokens */
  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: #EEF2FF;
  --color-accent: #2563EB;
  --color-accent-cyan: #06B6D4;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;
  --color-slate-950: #0A0F1D;

  --glow-indigo: rgba(79, 70, 229, 0.15);
  --glow-cyan: rgba(6, 182, 212, 0.12);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 35px -8px rgba(15, 23, 42, 0.09);
  --window-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FFFFFF;
  color: var(--color-slate-900);
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Typography Enhancements */
.font-mono {
  font-family: var(--font-mono);
}

.tracking-tight-title {
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Gradients & Mesh */
.hero-glow-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 650px;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.12) 0%, rgba(37, 99, 235, 0.08) 35%, rgba(6, 182, 212, 0.04) 65%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.grid-pattern-subtle {
  background-size: 32px 32px;
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
}

/* Cards & Surfaces */
.card-saas {
  background: #FFFFFF;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-saas:hover {
  border-color: #CBD5E1;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.card-dark-terminal {
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Interactive Tabs Segmented Control */
.tab-pill {
  transition: all 0.2s ease;
  position: relative;
  font-weight: 600;
}

.tab-pill.active {
  background-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.tab-pill:not(.active):hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

/* Video Player Container Styling */
.video-frame-container {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #0B0F19;
  box-shadow: var(--window-shadow);
  overflow: hidden;
  position: relative;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #FF5F56; }
.dot-yellow { background-color: #FFBD2E; }
.dot-green { background-color: #27C93F; }

/* Pulse Animation for Status Indicators */
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Floating Glassmorphic Badges */
.glass-badge {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

/* Button Micro-Interactions */
.btn-primary-modern {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-modern:hover {
  background: linear-gradient(180deg, #334155 0%, #1E293B 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15), 0 12px 20px -4px rgba(15, 23, 42, 0.25);
}

.btn-primary-modern:active {
  transform: translateY(0);
}

.btn-accent-modern {
  background: linear-gradient(180deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2), 0 10px 20px -5px rgba(79, 70, 229, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accent-modern:hover {
  background: linear-gradient(180deg, #6366F1 0%, #4F46E5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25), 0 14px 24px -5px rgba(79, 70, 229, 0.45);
}

/* Copy Command Box */
.command-copy-box {
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-mono);
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.command-copy-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Toast Notifications */
#toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Comparison Table Styling */
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-slate-200);
}

.comparison-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

/* Video Custom Controls Overlay */
.video-overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.video-overlay-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(79, 70, 229, 0.9);
  border-color: #FFFFFF;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.video-overlay-play.hidden {
  opacity: 0;
  pointer-events: none;
}
