/* =====================================================
   LUXEE WIDGETKIT — LANDING PAGE
   Design System rev. 3.0 (Vibrant Light Mode) · 2026
   ===================================================== */

/* ----- 1. CSS VARIABLES (Brand Tokens) ----- */
:root {
  /* Brand Palette - Vibrant Modern */
  --primary: #7c3aed;
  /* Violet 600 */
  --primary-light: #a78bfa;
  /* Violet 400 */
  --primary-dark: #5b21b6;
  /* Violet 800 */

  --secondary: #3b82f6;
  /* Blue 500 */
  --accent: #f472b6;
  /* Pink 400 */

  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  /* Slate 50 */

  /* Text */
  --text-main: #0f172a;
  /* Slate 900 */
  --text-muted: #64748b;
  /* Slate 500 */

  /* Glow Colors */
  --glow-1: rgba(124, 58, 237, 0.08);
  --glow-2: rgba(244, 114, 182, 0.06);
  --glow-3: rgba(59, 130, 246, 0.05);

  /* Fonts */
  --font-main: 'Fira Sans', -apple-system, sans-serif;
  --font-para: 'Inter', sans-serif;

  /* Layout */
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;

  /* Shadow */
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-main: 0 20px 50px -15px rgba(124, 58, 237, 0.1);
  --shadow-vibrant: 0 0 40px rgba(124, 58, 237, 0.15);
}

/* ----- 2. RESET & BASE ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-para);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.8;
  /* Increased for airy feel */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-main);
  font-weight: 700;
  /* Bold, NOT Black */
  line-height: 1.2;
}

strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ----- 3. NAVBAR ----- */
#navbar {
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem 0;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  padding: 1rem 0;
}

.nav-link {
  transition: all 0.3s ease;
  font-weight: 500;
}

/* ----- 4. GLOW SYSTEM ----- */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
}

.glow-primary {
  background: var(--glow-1);
  width: 40vw;
  height: 40vw;
}

.glow-accent {
  background: var(--glow-2);
  width: 30vw;
  height: 30vw;
}

/* ----- 5. HERO SECTION ----- */
#hero {
  position: relative;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(244, 114, 182, 0.15) 0%, transparent 10%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, #ffffff 85%);
}

.hero-pattern {
  background-image: radial-gradient(var(--primary-light) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black, transparent 70%);
  opacity: 0.15;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
  opacity: 0.1;
  filter: blur(60px);
  z-index: -1;
}

/* ----- 6. CARDS & COMPONENTS ----- */
.vibrant-card {
  background: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-soft);
}

.vibrant-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-main);
  border-color: rgba(124, 58, 237, 0.1);
}

/* Widget Showcase Specifics */
.widget-tab {
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
  background: var(--bg-sub);
  color: var(--text-muted);
  cursor: pointer;
}

.widget-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

.widget-tab[data-filter="rsvp"].active {
  background: #10b981 !important;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.widget-tab[data-filter="commerce"].active {
  background: var(--secondary) !important;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.widget-tab[data-filter="ui"].active {
  background: var(--accent) !important;
  box-shadow: 0 10px 25px rgba(244, 114, 182, 0.25);
}

.hidden-card {
  display: none !important;
}



.widget-card:hover {
  background: #fff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-main);
  transform: translateY(-8px);
}

.widget-badge {
  background: #f5f3ff;
  color: var(--primary);
}

/* Pricing Highlight */
.pricing-card {
  border-radius: var(--radius-xl);
  background: #fff;
  border: 2px solid #f1f5f9;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 40px 110px -20px rgba(124, 58, 237, 0.15);
}

/* ----- 7. BUTTONS ----- */
.btn-vibrant {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.btn-vibrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -5px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

/* ----- 8. FOOTER ----- */
footer {
  background: #0f172a !important;
  /* Keep it dark for contrast */
}

/* ----- 9. UTILITIES & ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Floating Animations ----- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float-slow {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@media (max-width: 768px) {
  .vibrant-card {
    padding: 2rem 1.5rem;
  }

  #hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}

/* =====================================================
   TYPEWRITER CURSOR (Minimalist Thin)
   ===================================================== */
#typed-text {
  display: inline-grid;
  grid-template-columns: 1fr;
  vertical-align: middle;
  position: relative;
}

/* Reserve space for the longest word to prevent layout shifting */
#typed-text::before {
  content: "Butuhkan";
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  visibility: hidden;
  pointer-events: none;
}

#typed-text-content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

#typed-text-content::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.8em;
  background-color: var(--primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =====================================================
   VIDEO LIGHTBOX & DEMO BUTTON
   ===================================================== */
.btn-demo {
  transition: all 0.3s ease;
}

.btn-demo:hover span {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

#video-lightbox.hidden {
  display: none !important;
}

#video-lightbox:not(.hidden) {
  display: flex !important;
  animation: fadeIn .3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#video-lightbox .max-w-5xl {
  animation: zoomIn .4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* -------------------------------------------------- */
/* 10. WIDGET CARDS & MOCKUPS                         */
/* -------------------------------------------------- */

.widget-card {
  @apply bg-white rounded-[2.5rem] border border-slate-100 p-10 hover:shadow-2xl hover:shadow-primary/10 transition-all duration-500 flex flex-col items-start text-left;
}





.browser-header {
  @apply h-6 bg-slate-50 border-b border-slate-100 flex items-center px-3 gap-1.5;
}

.browser-dot {
  @apply w-1.5 h-1.5 rounded-full;
}

.widget-card img {
  @apply w-full h-full object-cover group-hover:scale-105 transition-transform duration-700;
}

/* -------------------------------------------------- */
/* 13. CUSTOM ANIMATIONS                              */
/* -------------------------------------------------- */

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 0.2;
    transform: translateY(-50%) scale(1.1);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-flow {
  background: linear-gradient(-45deg, var(--primary), var(--accent), #ff00ea, var(--primary));
  background-size: 300% 300%;
  animation: gradient-flow 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-dark {
  background-color: #0c0e14;
}

.btn-vibrant {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vibrant:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.4);
}