/* ==========================================================================
   WEB DATA FOR AI: FROM DATA TO INTELLIGENCE — STYLESHEET
   High-End Enterprise B2B AI & Data Intelligence Experience
   ========================================================================== */

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

:root {
  --font-display: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Enterprise Technology Color Tokens */
  --bg-deep-navy: #030712;
  --bg-midnight: #060D1A;
  --bg-surface: #0A1426;
  --bg-card: #0F1E38;
  --bg-card-hover: #14284B;

  --accent-electric: #1D68FE;
  --accent-electric-glow: rgba(29, 104, 254, 0.4);
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;

  --text-white: #FFFFFF;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(29, 104, 254, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);
}

/* Base Resets & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep-navy);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-deep-navy);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-electric);
}

::selection {
  background: var(--accent-electric);
  color: #FFFFFF;
}

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

.bg-tech-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(29, 104, 254, 0.15) 0%, rgba(6, 182, 212, 0.05) 35%, transparent 70%);
}

.bg-radial-hero {
  background: radial-gradient(circle at 65% 35%, rgba(29, 104, 254, 0.18) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
}

/* Glow & Lighting Effects */
.glow-electric {
  box-shadow: 0 0 35px -5px rgba(29, 104, 254, 0.45);
}

.glow-cyan {
  box-shadow: 0 0 30px -5px rgba(6, 182, 212, 0.4);
}

.text-gradient-electric {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #06B6D4 50%, #1D68FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Interactive Card Styles */
.feature-card-interactive {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.35s ease;
}

.feature-card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 30px -5px rgba(29, 104, 254, 0.2);
}

.feature-card-interactive:hover::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(29, 104, 254, 0.3), transparent);
}

/* Data Stream Flow Animation */
.pulse-node {
  position: relative;
}

.pulse-node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid var(--accent-cyan);
  animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  opacity: 0;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Connected Agenda Timeline (Desktop Horizontal & Mobile Vertical) */
.timeline-milestone-node {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #030712 !important;
}

.timeline-milestone-node.is-active {
  border-color: #06B6D4 !important;
  background-color: #081736 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.8), 0 0 40px rgba(29, 104, 254, 0.4) !important;
  transform: scale(1.18);
}

.agenda-card-node {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-card-node.is-active {
  border-color: #06B6D4 !important;
  background-color: #0f2454 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(6, 182, 212, 0.35) !important;
  transform: translateY(-4px);
}

/* Mobile Vertical Timeline */
.mobile-timeline-item {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-timeline-item .mobile-marker {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-timeline-item.is-active .mobile-marker {
  border-color: #06B6D4 !important;
  background-color: rgba(6, 182, 212, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7), 0 0 35px rgba(29, 104, 254, 0.35) !important;
  transform: scale(1.15);
}

.mobile-timeline-item.is-active > div:nth-child(2) {
  border-color: #06B6D4 !important;
  background-color: #0e224e !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(6, 182, 212, 0.35) !important;
  transform: translateX(4px);
}

/* Form & Validation Styles */
label.error {
  color: #F87171 !important;
  font-size: 11px !important;
  font-family: var(--font-mono);
  margin-top: 4px;
  display: block;
}

input.error {
  border-color: #EF4444 !important;
  background-color: rgba(239, 68, 68, 0.06) !important;
}

/* Modal Behavior */
#register-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#register-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#register-modal .modal-panel {
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#register-modal.is-open .modal-panel {
  transform: scale(1) translateY(0);
}

/* Code / Data Stream Preview */
.code-preview-scroll {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  background: #030712;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Seamless Hero Visual Masking & Ambient Blending */
.hero-visual-blend {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroVisualFloat 8s ease-in-out infinite;
}

.hero-visual-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle closest-side at center, black 70%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at center, black 70%, transparent 100%);
  filter: drop-shadow(0 0 45px rgba(6, 182, 212, 0.45));
}

@keyframes heroVisualFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.015);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Mobile Responsive Overrides (< 640px)
   ============================================================ */
@media (max-width: 639px) {
  /* Hero section: prevent vertical scroll-overflow from oversized elements */
  #hero-eyebrow span.font-mono {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Highlight cards: tighter padding on very small screens */
  .highlight-card-item {
    padding: 1.25rem !important;
  }

  /* Agenda mobile timeline: keep markers proportional */
  .mobile-marker {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  /* Hero visual frame: avoid clipping on narrow screens */
  .hero-visual-frame {
    max-width: 100%;
  }
}