/* ============================================
   ARTIFICIAL — Design System (Light Theme)
   Token: Crisp White + Electric Blue
   ============================================ */

:root {
  --bg-base: #ffffff;
  --bg-surface: #f8fafc;
  --bg-elevated: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --radius-card: 1.25rem;
  --radius-btn: 9999px;

  /* Hero overlay — dark enough for white text over video */
  --hero-overlay: rgba(10, 15, 35, 0.2);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================
   NAVBAR
   Two states:
   1. Over hero video  → transparent, white text
   2. Scrolled / rest  → white bg, dark text
   ============================================ */
#navbar {
  --nav-text: rgba(255, 255, 255, 0.9);
  --nav-text-hover: #ffffff;
  --nav-logo-color: #ffffff;
}
#navbar.nav-scrolled {
  --nav-text: var(--text-secondary);
  --nav-text-hover: var(--text-primary);
  --nav-logo-color: var(--text-primary);
}

.nav-logo {
  color: var(--nav-logo-color);
  transition: color 0.3s;
}
.nav-link {
  color: var(--nav-text);
  transition: color 0.3s;
}
.nav-link:hover {
  color: var(--nav-text-hover);
}

.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.06);
}

/* ============================================
   HERO — Video Background
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 9rem;
  padding-bottom: 6rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layered overlays for legibility */
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 35, 0.45) 0%,
    rgba(10, 15, 35, 0.2) 50%,
    rgba(255, 255, 255, 0.85) 100%
  );
}

/* Hero content — white text over dark overlay */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 56rem;
  padding: 0 1.5rem;
  margin: 0 auto;
  color: #fff;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Hero headline */
.hero-headline {
  color: #fff;
}
.hero-headline-accent {
  color: #93c5fd;
}

/* Hero sub text */
.hero-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* CTAs */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow:
    0 0 28px var(--accent-glow),
    0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Dashboard frame */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.dashboard-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ============================================
   SECTIONS — Light
   ============================================ */
.section-base {
  background-color: var(--bg-base);
}
.section-surface {
  background-color: var(--bg-surface);
}

/* ============================================
   LOGO STRIP
   ============================================ */
.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-surface);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ============================================
   STATS
   ============================================ */
.stat-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.375rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.faq-item.open {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-content.open {
  max-height: 200px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(147, 197, 253, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.pricing-card.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* ============================================
   HERO ANIM
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}
.anim-delay-1 {
  animation-delay: 0.15s;
}
.anim-delay-2 {
  animation-delay: 0.3s;
}
.anim-delay-3 {
  animation-delay: 0.48s;
}
