/* ========================================
   SEEME.AI PREMIUM DESIGN SYSTEM
   Modern, Sophisticated, Enterprise-Grade
   ======================================== */

:root {
  /* Refined Color Palette - Logo Blue Based */
  --primary-blue: #4a9de4;
  --primary-dark: #3a8cd4;
  --primary-light: #6bb1e9;
  --accent-teal: #00bfa5;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-grey: #e9ecef;
  --mid-grey: #6c757d;
  --dark-grey: #343a40;
  --charcoal: #1a1d23;

  /* Gradients - Refined */
  --primary-gradient: linear-gradient(135deg, #4a9de4 0%, #3a8cd4 100%);
  --light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --dark-gradient: linear-gradient(135deg, #1a1d23 0%, #2d3339 100%);
  --accent-gradient: linear-gradient(135deg, #4a9de4 0%, #00bfa5 100%);

  /* Spacing */
  --section-padding: 120px;
  --card-padding: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.24);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;
}

/* ========================================
   SMOOTH ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(74, 157, 228, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(74, 157, 228, 0.8);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

/* ========================================
   REFINED HERO SECTION
   ======================================== */

.hero-gradient {
  background: linear-gradient(135deg, #4a9de4 0%, #3a8cd4 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px 0;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

/* ========================================
   PREMIUM CARDS
   ======================================== */

.premium-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.2);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-gradient {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.stats-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.stat-item {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: inline-block;
}

/* ========================================
   SOVEREIGNTY BADGES
   ======================================== */

.sovereignty-badge {
  background: white;
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.sovereignty-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--primary-blue) 45deg,
    transparent 90deg
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.sovereignty-badge:hover::before {
  opacity: 0.1;
}

.sovereignty-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* ========================================
   MANIFESTO SECTION
   ======================================== */

.manifesto-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.manifesto-card {
  background: white;
  border-left: 4px solid var(--primary-color);
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.manifesto-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-left-width: 8px;
}

.manifesto-title {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

/* ========================================
   WORKFLOW CARDS
   ======================================== */

.workflow-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e0e0e0;
  height: 100%;
  position: relative;
}

.workflow-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.workflow-card:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.workflow-card:hover::after {
  opacity: 0.05;
}

.workflow-icon {
  font-size: 3.5rem;
  display: inline-block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.workflow-card:hover .workflow-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-premium {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(74, 157, 228, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(74, 157, 228, 0.4);
  color: white;
}

.btn-premium-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-premium-outline:hover {
  background: white;
  color: var(--primary-blue);
  border-color: white;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.3);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-premium {
  background: var(--dark-gradient);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.cta-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 157, 228, 0.2) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.cta-premium::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.15) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite 4s;
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  font-weight: 400;
  margin-bottom: 64px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  :root {
    --section-padding: 60px;
    --card-padding: 24px;
  }
}

/* ========================================
   SMOOTH SCROLL
   ======================================== */

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blur-bg {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   REFINED IMPROVEMENTS
   ======================================== */

/* Cleaner section spacing */
section {
  position: relative;
}

/* Better card borders */
.premium-card,
.sovereignty-badge,
.workflow-card {
  border: 1px solid rgba(74, 157, 228, 0.1);
}

/* Refined shadows with blue tint */
.premium-card:hover,
.workflow-card:hover {
  box-shadow: 0 24px 64px rgba(74, 157, 228, 0.15);
}

/* Accent highlights */
.text-accent {
  color: var(--accent-teal);
}

.bg-accent {
  background-color: var(--accent-teal);
}

/* Refined stat numbers */
.stat-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

/* Better link styles */
a {
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: none;
}

/* Icon improvements */
.bi {
  vertical-align: -0.125em;
}

/* Professional list spacing */
ul, ol {
  line-height: 1.8;
}

/* Better code/technical text */
code, pre {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: var(--light-grey);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ========================================
   MODULAR FLOW COMPONENTS (Stripe-inspired)
   ======================================== */

.flow-container {
  position: relative;
  padding: 60px 0;
}

.flow-module {
  background: white;
  border: 2px solid rgba(74, 157, 228, 0.15);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: pointer;
  overflow: hidden;
}

.flow-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.flow-module:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 16px 48px rgba(74, 157, 228, 0.2);
  transform: translateY(-8px);
}

.flow-module:hover::before {
  transform: scaleX(1);
}

.flow-module-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.flow-module:hover .flow-module-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(74, 157, 228, 0.4);
}

.flow-module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: 12px;
}

.flow-module-desc {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 16px;
}

.flow-module-tag {
  display: inline-block;
  background: rgba(74, 157, 228, 0.1);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Flow Connectors */
.flow-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--primary-blue);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.flow-module:hover ~ .flow-connector .flow-arrow,
.flow-connector:hover .flow-arrow {
  opacity: 1;
  transform: translateX(8px);
}

/* Horizontal flow layout */
.flow-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Branching flow */
.flow-branch {
  position: relative;
}

.flow-branch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--primary-blue);
  opacity: 0.3;
}

/* Interactive flow grid */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

@media (max-width: 768px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

/* Animated connecting lines */
@keyframes flow-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.flow-line {
  stroke: var(--primary-blue);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5, 5;
  animation: flow-pulse 2s ease-in-out infinite;
}

/* Module states */
.flow-module.active {
  border-color: var(--primary-blue);
  background: rgba(74, 157, 228, 0.02);
}

.flow-module.active::before {
  transform: scaleX(1);
}

/* Expandable detail */
.flow-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.flow-module:hover .flow-detail {
  max-height: 200px;
}

.flow-detail-content {
  padding-top: 16px;
  border-top: 1px solid rgba(74, 157, 228, 0.1);
  margin-top: 16px;
}

/* Stat badge in module */
.flow-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-top: 12px;
}

.flow-stat i {
  color: var(--primary-blue);
}

/* ========================================
   OVERRIDE BOOTSTRAP PRIMARY (Remove Purple)
   ======================================== */

.btn-primary,
.bg-primary,
.badge.bg-primary {
  background-color: #4a9de4 !important;
  border-color: #4a9de4 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3a8cd4 !important;
  border-color: #3a8cd4 !important;
}

.text-primary {
  color: #4a9de4 !important;
}

.border-primary {
  border-color: #4a9de4 !important;
}

.alert-primary {
  background-color: rgba(74, 157, 228, 0.1) !important;
  border-color: rgba(74, 157, 228, 0.2) !important;
  color: #1a1d23 !important;
}
