/* ═══════════════════════════════════════════════════════════════
   Bonik AI — Custom Stylesheet
   Extends Tailwind with bespoke animations and UI patterns
══════════════════════════════════════════════════════════════ */

/* ── Root Variables ─────────────────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-light: #3B82F6;
  --primary-dark:  #1D4ED8;
  --dark:          #0A0F1E;
  --navy:          #111827;
  --gradient-hero: linear-gradient(135deg, #0A0F1E 0%, #0d1b3e 50%, #0A0F1E 100%);
}

/* ── Smooth Scroll ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: #2563EB33; color: #1D4ED8; }

/* ── Focus ring ─────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.header-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}
#site-header.scrolled .header-nav {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
#site-header.scrolled #announcement-bar { display: none; }
#site-header.scrolled ~ div { margin-top: -40px; }

.nav-link { color: #374151; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero-gradient {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37,99,235,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59,130,246,0.12) 0%, transparent 60%);
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB, #818CF8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Floating animation */
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-16px); }
}
.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 9s ease-in-out infinite; }
.animate-float-fast { animation: float 4s ease-in-out infinite; }

/* ── Phone mockup ───────────────────────────────────────────── */
.phone-mockup {
  width: 260px;
  height: 530px;
  background: #1a1a2e;
  border-radius: 40px;
  border: 6px solid #2d3748;
  box-shadow:
    0 0 0 2px #4a5568,
    0 40px 100px rgba(0,0,0,0.6),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1117 0%, #1a1f3c 100%);
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM CARDS
══════════════════════════════════════════════════════════════ */
.glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.2);
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(37,99,235,0.12);
  transform: translateY(-6px);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }

.feature-icon {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════════════════════
   STAT COUNTER
══════════════════════════════════════════════════════════════ */
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.4);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed,
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════════ */
.pricing-card {
  border-radius: 24px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 20px 60px rgba(37,99,235,0.12);
  transform: translateY(-4px);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08), 0 20px 60px rgba(37,99,235,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════════════════════ */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item .faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ═══════════════════════════════════════════════════════════════
   BEFORE/AFTER TOGGLE
══════════════════════════════════════════════════════════════ */
.before-after-container { position: relative; overflow: hidden; border-radius: 16px; }

/* ═══════════════════════════════════════════════════════════════
   GRADIENT SECTION DIVIDERS
══════════════════════════════════════════════════════════════ */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON STYLES
══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE / TICKER
══════════════════════════════════════════════════════════════ */
.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-wrapper { overflow: hidden; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   WORKFLOW TIMELINE
══════════════════════════════════════════════════════════════ */
.workflow-step {
  position: relative;
  padding-left: 56px;
}
.workflow-step::before {
  content: '';
  position: absolute;
  left: 19px; top: 52px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.workflow-step:last-child::before { display: none; }
.workflow-step-num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   SHIMMER SKELETON
══════════════════════════════════════════════════════════════ */
.shimmer {
  background: linear-gradient(90deg, #f0f4ff 25%, #e0e7ff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   GLOW EFFECTS
══════════════════════════════════════════════════════════════ */
.glow-blue  { box-shadow: 0 0 40px rgba(37,99,235,0.3); }
.glow-sm    { box-shadow: 0 0 20px rgba(37,99,235,0.2); }
.text-glow  { text-shadow: 0 0 30px rgba(96,165,250,0.5); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .phone-mockup { width: 200px; height: 410px; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════════ */
@media print {
  #site-header, footer, .no-print { display: none !important; }
}
