/* Delbon AI — Minimalist Light Theme with Graph Paper Grid & Ambient Gradients */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&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;
  --brand-red: #E50914;
  --brand-crimson: #DC2626;
  --brand-red-hover: #B91C1C;
  --paypal-gold: #FFC439;
  --paypal-gold-hover: #F4B41A;
  --paypal-blue: #0070BA;
  --paypal-blue-hover: #005EA6;
  color-scheme: light !important;
}

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

html, body {
  background-color: #FFFFFF !important;
  color: #0F172A !important; /* Slate 900 */
  color-scheme: light !important;
  font-family: var(--font-sans);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(229, 9, 20, 0.15);
  color: #DC2626;
}

/* ==========================================================================
   1. GRAPH PAPER GRID & AMBIENT GRADIENTS (LIGHT THEME)
   ========================================================================== */

/* Crisp graph paper grid (squares) on pure white */
.bg-graph-grid {
  background-color: transparent;
  background-size: 28px 28px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
}

/* Light ambient pastel gradient glows (sides and hero center) */
.bg-ambient-gradients {
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(254, 202, 202, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 90% 18%, rgba(224, 231, 255, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(254, 243, 199, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(254, 226, 226, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(224, 231, 255, 0.4) 0%, transparent 45%);
}

/* Backwards compatibility aliases */
.bg-checkered-paper,
.bg-dot-grid {
  background-color: transparent;
  background-size: 28px 28px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
}

.bg-ambient-light {
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(254, 202, 202, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(224, 231, 255, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(254, 243, 199, 0.3) 0%, transparent 50%);
}

/* ==========================================================================
   2. CLEAN LIGHT PANELS & GLASSMORPHISM
   ========================================================================== */

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-panel-light {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -6px rgba(15, 23, 42, 0.04);
}

.glass-panel-glow {
  background: #FFFFFF;
  border: 1px solid rgba(252, 165, 165, 0.7);
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.12), 0 1px 4px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   3. CARD HOVER & MICRO-INTERACTIONS
   ========================================================================== */

.card-hover-light,
.card-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #FFFFFF;
}

.card-hover-light:hover,
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.02);
}

.card-hover-red:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 16px 32px -10px rgba(229, 9, 20, 0.15), 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   4. TEXT GRADIENTS
   ========================================================================== */

.text-gradient-red {
  background: linear-gradient(135deg, #E50914 0%, #DC2626 50%, #B91C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   5. PAYPAL BUTTONS (CHECKOUT COMPATIBILITY)
   ========================================================================== */

.btn-paypal-gold {
  background: #FFC439;
  color: #111827;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 196, 57, 0.3);
}

.btn-paypal-gold:hover {
  background: #F4B41A;
  box-shadow: 0 4px 16px rgba(255, 196, 57, 0.45);
  transform: translateY(-1px);
}

.btn-paypal-blue {
  background: #0070BA;
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 112, 186, 0.25);
}

.btn-paypal-blue:hover {
  background: #005EA6;
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. CUSTOM MINIMAL SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #FAFAFA;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   7. INTERACTIVE SCROLL TIMELINE (ZIG-ZAG, MOTION & GLOW)
   ========================================================================== */

/* Visible by default (guarantees text and cards are ALWAYS seen) */
.timeline-step {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* When interactive JS initializes, un-revealed steps offset smoothly */
.js-timeline-ready .timeline-step:not(.is-visible) {
  opacity: 0;
}

@media (min-width: 768px) {
  .js-timeline-ready .timeline-step.from-left:not(.is-visible) {
    transform: translateX(-40px);
  }

  .js-timeline-ready .timeline-step.from-right:not(.is-visible) {
    transform: translateX(40px);
  }
}

@media (max-width: 767px) {
  .js-timeline-ready .timeline-step:not(.is-visible) {
    transform: translateY(28px);
  }
}

.timeline-step.is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Glowing center timeline spine & dynamic fill bar */
.timeline-track {
  background: rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.timeline-progress-bar {
  background: linear-gradient(180deg, #DC2626 0%, #EF4444 50%, #B91C1C 100%);
  box-shadow: 
    0 0 12px rgba(220, 38, 38, 0.75),
    0 0 24px rgba(239, 68, 68, 0.45);
  position: relative;
}

.timeline-progress-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 2px solid #DC2626;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.9), 0 0 24px rgba(220, 38, 38, 0.6);
  animation: timeline-bead-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes timeline-bead-pulse {
  0% {
    transform: translate(-50%, 50%) scale(0.9);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.8), 0 0 20px rgba(220, 38, 38, 0.5);
  }
  100% {
    transform: translate(-50%, 50%) scale(1.3);
    box-shadow: 0 0 18px rgba(220, 38, 38, 1), 0 0 32px rgba(220, 38, 38, 0.7);
  }
}

/* Glowing center timeline nodes */
.timeline-node {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 4px #FFFFFF, 0 2px 10px rgba(15, 23, 42, 0.08);
}

.timeline-node.is-active {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
  transform: translate(-50%, -50%) scale(1.15) !important;
  animation: timeline-node-breathe 2.4s ease-in-out infinite alternate;
}

@media (max-width: 767px) {
  .timeline-node.is-active {
    transform: translate(-50%, 0) scale(1.12) !important;
  }
}

@keyframes timeline-node-breathe {
  0% {
    box-shadow: 
      0 0 0 4px #FFFFFF,
      0 0 18px rgba(220, 38, 38, 0.7),
      0 0 35px rgba(220, 38, 38, 0.35);
  }
  100% {
    box-shadow: 
      0 0 0 5px #FFFFFF,
      0 0 28px rgba(220, 38, 38, 0.95),
      0 0 55px rgba(220, 38, 38, 0.5);
  }
}

/* Interactive timeline card with soft glow & elevation */
.timeline-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 
    0 20px 40px -12px rgba(220, 38, 38, 0.16),
    0 0 25px rgba(220, 38, 38, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.timeline-card .step-bullet-icon {
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.timeline-card:hover .step-bullet-icon {
  transform: scale(1.1);
  background-color: rgba(254, 226, 226, 0.9);
}

/* ==========================================================================
   8. AGENT WORKFLOWS SECTION (N8N STYLE, CONTINUOUS FLOW & CABLES)
   ========================================================================== */

.workflow-canvas {
  background-color: #FAFAFC;
  background-size: 24px 24px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

.workflow-node {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.workflow-node:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 16px 36px -10px rgba(220, 38, 38, 0.16), 0 0 20px rgba(220, 38, 38, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.workflow-port {
  z-index: 20;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-node:hover .workflow-port {
  transform: scale(1.2);
}

/* Continuous animated cable pulses (data packets flow 24/7 autonomously) */
@keyframes cable-flow {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.cable-pulse {
  animation: cable-flow 1.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.85));
}

.cable-pulse-slow {
  animation: cable-flow 2.2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.85));
}

/* Tab active state */
.workflow-tab-btn.is-active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  border-color: rgba(226, 232, 240, 0.9) !important;
}

.workflow-tab-btn.is-active .tab-dot {
  background-color: #DC2626 !important;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

