/* KS Digital Studio — Rich Neon-Glass Palette with Clean Layout */

:root {
  --bg-dark: #030712;
  --bg-card: rgba(15, 23, 42, 0.65);
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --neon-pink: #ec4899;
  --neon-emerald: #10b981;
}

* {
  box-sizing: border-box;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #f1f5f9;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Top Scroll Progress Line */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #a855f7 50%, #ec4899 100%);
  z-index: 100;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  pointer-events: none;
  transition: width 0.1s ease-out;
}

/* Scroll-Driven Entrance Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* Typography */
h1, h2, h3, h4, .font-heading, .font-outfit {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Vibrant Multi-Stop Text Gradients */
.neon-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neon-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ambient Cursor Spotlight */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(168, 85, 247, 0.14) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
}

@media (hover: none), (max-width: 767px) {
  #cursor-glow {
    display: none;
  }
}

/* 3D Hero Canvas Container */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 960px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

@media (max-width: 1023px) {
  #canvas-container {
    top: 465px;
    height: 440px;
    opacity: 0.92;
  }
  .hero-copy-clean {
    position: relative;
    z-index: 3;
  }
}

.hero-points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

@media (min-width: 640px) {
  .hero-points-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
  }
}

/* ── Floating Glass Navigation Bar ────────────────────── */
.nav-bar-clean {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9999px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.06);
}

.nav-brand-clean {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-ring {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  padding: 1.5px;
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #a855f7);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.nav-brand-clean:hover .nav-logo-ring {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}

.nav-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: #67e8f9;
}

.nav-links-clean {
  display: none;
}

.nav-actions-clean {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta-clean {
  display: none;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #e2e8f0;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn[aria-expanded="true"] {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.mobile-menu-btn .icon-close {
  display: none;
}
.mobile-menu-btn[aria-expanded="true"] .icon-menu {
  display: none;
}
.mobile-menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

@media (min-width: 768px) {
  .nav-bar-clean {
    padding: 0.65rem 1.4rem;
  }
  .nav-logo-ring {
    width: 40px;
    height: 40px;
  }
  .nav-links-clean {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    color: #cbd5e1;
  }
  .nav-links-clean a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .nav-links-clean a:hover {
    color: #67e8f9;
  }
  .nav-cta-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
    color: #030712;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
    transition: all 0.25s ease;
  }
  .nav-cta-clean:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    color: #000;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Dropdown Menu */
.mobile-drawer-clean {
  max-width: 80rem;
  margin: 0.5rem auto 0;
  padding: 0.9rem 1.05rem;
  border-radius: 1.35rem;
  background: rgba(8, 12, 24, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer-clean.is-open {
  display: flex;
}

.mobile-drawer-clean a.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-drawer-clean a.mobile-link:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

@media (min-width: 768px) {
  .mobile-drawer-clean {
    display: none !important;
  }
}

/* ── Glassmorphic Cards with Color Accents ────────────── */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.3), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 45px -15px rgba(0, 240, 255, 0.18), 0 0 25px rgba(0, 240, 255, 0.07);
  transform: translateY(-4px);
}

.glass-card.card-purple:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 45px -15px rgba(168, 85, 247, 0.22), 0 0 25px rgba(168, 85, 247, 0.08);
}

.glass-card.card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 45px -15px rgba(16, 185, 129, 0.2), 0 0 25px rgba(16, 185, 129, 0.08);
}

.glass-card.card-amber:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 45px -15px rgba(245, 158, 11, 0.22), 0 0 25px rgba(245, 158, 11, 0.08);
}

/* ── Radiant Pill Buttons ─────────────────────────────── */
.pill-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.9rem 1.85rem;
  background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  color: #030712;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.38);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.pill-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.65);
  color: #000;
}

.pill-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.9rem 1.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.pill-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.22);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 639px) {
  .pill-btn-primary,
  .pill-btn-secondary {
    padding: 0.78rem 1.25rem;
    font-size: 0.82rem;
  }
}

/* ── Equal-Height Pricing Grid ────────────────────────── */
.pricing-grid-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .pricing-grid-clean {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.pricing-grid-clean > .glass-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes featured-ring-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(0, 240, 255, 0),
      0 20px 55px -15px rgba(0, 240, 255, 0.25),
      0 0 30px rgba(168, 85, 247, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(0, 240, 255, 0.12),
      0 20px 60px -15px rgba(0, 240, 255, 0.42),
      0 0 38px rgba(168, 85, 247, 0.24);
  }
}

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

@keyframes badge-glow-breathe {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.45), 0 0 28px rgba(168, 85, 247, 0.25);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.75), 0 0 40px rgba(236, 72, 153, 0.45);
  }
}

.featured-card-clean {
  border: 2px solid rgba(0, 240, 255, 0.65) !important;
  background: radial-gradient(120% 60% at 50% 0%, rgba(0, 240, 255, 0.13) 0%, rgba(168, 85, 247, 0.07) 45%, rgba(15, 23, 42, 0.85) 100%) !important;
  animation: featured-ring-pulse 3s ease-in-out infinite;
  overflow: visible !important;
}

.badge-popular-clean {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.34rem 1.2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00f0ff, #3b82f6, #a855f7, #ec4899, #3b82f6, #00f0ff);
  background-size: 300% 100%;
  animation:
    badge-gradient-flow 3.2s linear infinite,
    badge-glow-breathe 2.4s ease-in-out infinite;
  color: #030712;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Form Controls ────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

select.select-clean {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(0, 0, 0, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

select.select-clean option {
  background-color: #0b1120;
  color: #f1f5f9;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* ── Accessibility & Focus Rings ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--neon-cyan) !important;
  outline-offset: 3px !important;
}

/* ── 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;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
  #cursor-glow {
    display: none !important;
  }
  .badge-pulse {
    animation: none !important;
  }
  .badge-glow-anim {
    animation: none !important;
  }
}

/* ── FAQ Accordion ─────────────────────────────────────── */
.faq-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
}
.faq-details:hover {
  border-color: rgba(0, 240, 255, 0.25);
}
.faq-details[open] {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(15, 23, 42, 0.75);
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #f1f5f9;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-icon-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: #38bdf8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-details[open] .faq-icon-chevron {
  transform: rotate(180deg);
  color: #00f0ff;
}
.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Floating WhatsApp Action (Mobile-Optimized) ────────── */
.floating-wa-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.65), 0 0 18px rgba(16, 185, 129, 0.25);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.floating-wa-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.4);
}
@media (min-width: 768px) {
  .floating-wa-btn {
    display: none;
  }
}
