/* ==========================================================================
   BEYOND SNAPSHOTS: RETHINKING RECOVERY FOR AWS WORKLOADS
   Clumio by Commvault — Enterprise Webinar Experience ("Recovery, in control")
   ========================================================================== */

@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&display=swap');

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

  /* Commvault "Recovery, in control" Palette — Deep Navy & Luminous Purple/Violet */
  --bg-obsidian: #05050B;
  --bg-deep-navy: #080713;
  --bg-midnight: #0D0C1D;
  --bg-surface: #131129;
  --bg-card: #181534;
  --bg-card-hover: #211D46;

  --accent-purple: #9333EA;
  --accent-violet: #A855F7;
  --accent-lavender: #C084FC;
  --accent-magenta: #D946EF;
  --accent-ice: #F5F3FF;

  --purple-glow: rgba(168, 85, 247, 0.42);
  --magenta-glow: rgba(217, 70, 239, 0.28);
  --white-glow: rgba(255, 255, 255, 0.22);

  --text-white: #FFFFFF;
  --text-primary: #F8FAFC;
  --text-muted: #A5B4FC;
  --text-slate: #94A3B8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-violet: rgba(168, 85, 247, 0.35);
  --border-magenta: rgba(217, 70, 239, 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-obsidian);
  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-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05050B;
}
::-webkit-scrollbar-thumb {
  background: #27224A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-violet);
}

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

/* Architectural Grids & Atmospheric Lighting */
.bg-vault-grid {
  background-image:
    linear-gradient(to right, rgba(192, 132, 252, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 132, 252, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-light-vault-grid {
  background-image:
    linear-gradient(to right, rgba(147, 51, 234, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 51, 234, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Hero Composition: Left 40% clean dark negative space, Right 2/3 luminous vault glow */
.bg-hero-commvault {
  background:
    radial-gradient(ellipse 65% 75% at 74% 48%, rgba(147, 51, 234, 0.24) 0%, rgba(217, 70, 239, 0.11) 38%, rgba(13, 12, 29, 0.96) 74%, #05050B 100%),
    linear-gradient(90deg, #05050B 0%, #070611 40%, #0E0B22 72%, #070612 100%);
}

.bg-radial-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.22) 0%, rgba(217, 70, 239, 0.08) 40%, transparent 72%),
    linear-gradient(180deg, #090818 0%, #05050B 100%);
}

/* Text Gradients */
.text-gradient-commvault {
  background: linear-gradient(135deg, #FFFFFF 0%, #F3E8FF 35%, #C084FC 75%, #E879F9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple-clean {
  background: linear-gradient(135deg, #C084FC 0%, #A855F7 50%, #E879F9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Frosted Glass Vault Cards */
.vault-glass-card {
  background: linear-gradient(155deg, rgba(25, 21, 52, 0.78) 0%, rgba(13, 11, 28, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(192, 132, 252, 0.16);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.vault-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232, 121, 249, 0.25), rgba(168, 85, 247, 0.05), transparent);
  -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;
}

.vault-glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.42);
  box-shadow:
    0 22px 44px -12px rgba(0, 0, 0, 0.75),
    0 0 32px -6px rgba(168, 85, 247, 0.28);
}

.vault-glass-card:hover::before {
  background: linear-gradient(135deg, rgba(245, 208, 254, 0.65), rgba(168, 85, 247, 0.45), rgba(217, 70, 239, 0.2));
}

/* Light Section Glass Layer Cards (Variant Prompt: Pure white + translucent glass + soft violet) */
.light-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 51, 234, 0.14);
  box-shadow:
    0 12px 32px -8px rgba(88, 28, 135, 0.07),
    0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow:
    0 20px 40px -12px rgba(126, 34, 206, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Primary CTA Button ("Save My Seat") */
.btn-commvault-primary {
  background: linear-gradient(135deg, #9333EA 0%, #7C3AED 55%, #A855F7 100%);
  color: #FFFFFF;
  box-shadow:
    0 10px 30px -4px rgba(147, 51, 234, 0.5),
    0 0 0 1px rgba(232, 121, 249, 0.35) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-commvault-primary:hover {
  background: linear-gradient(135deg, #A855F7 0%, #8B5CF6 55%, #C084FC 100%);
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -4px rgba(168, 85, 247, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

/* Hero Right-Side Visual Chamber */
.hero-vault-showcase {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 55% 45%, rgba(147, 51, 234, 0.25), rgba(8, 7, 19, 0.92) 78%);
  border: 1px solid rgba(192, 132, 252, 0.22);
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 60px -10px rgba(168, 85, 247, 0.3);
}

.hero-vault-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.02);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Luminous Data Stream Keyframe Animations */
@keyframes streamFlowIn {
  0% {
    stroke-dashoffset: 240;
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}

@keyframes streamFlowOut {
  0% {
    stroke-dashoffset: 200;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

@keyframes vaultFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

.animate-stream-in {
  stroke-dasharray: 18 14;
  animation: streamFlowIn 6s linear infinite;
}

.animate-stream-out {
  stroke-dasharray: 24 12;
  animation: streamFlowOut 4.5s linear infinite;
}

.animate-vault-float {
  animation: vaultFloat 6s ease-in-out infinite;
}

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

.timeline-milestone-node.is-active {
  border-color: #C084FC !important;
  background-color: #2E1065 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.75), 0 0 42px rgba(147, 51, 234, 0.45) !important;
  transform: scale(1.14);
}

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

.agenda-card-node.is-active {
  border-color: rgba(192, 132, 252, 0.65) !important;
  background-color: rgba(30, 23, 66, 0.92) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 30px -5px rgba(168, 85, 247, 0.32) !important;
  transform: translateY(-3px);
}

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

input.error {
  border-color: #FB7185 !important;
  background-color: rgba(244, 63, 94, 0.08) !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);
}

/* Reduced Motion Accessibility */
@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;
  }
}
