/* ==========================================================================
   MAIN DESIGN SYSTEM & CSS VARIABLES
   Modern, sleek theme with vibrant light and dark mode contrast & mobile responsiveness.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Color Palette - Polished Onyx Lingo Light Theme (Signature Royal Purple on Crisp Slate White) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faff;
  --bg-card-subtle: #f5f3ff;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  
  --text-primary: #090d1a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  /* Onyx Lingo Signature Palette (#3F0A8F & #7828F0) */
  --accent-primary: #7828F0;
  --accent-primary-hover: #6518db;
  --accent-dark: #3F0A8F;
  --accent-deep: #25055b;
  --accent-light: #ECE5FF;
  --accent-soft: rgba(120, 40, 240, 0.08);
  --accent-secondary: #0284c7;
  --accent-pink: #d946ef;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-gold: #d97706;
  --accent-gold-light: #fffbeb;

  /* Legacy aliases for compatibility */
  --primary: #7828F0;
  --primary-dark: #3F0A8F;
  --primary-light: #ECE5FF;
  --primary-gradient: linear-gradient(135deg, #3F0A8F 0%, #7828F0 100%);

  /* Gradient Accents */
  --grad-primary: linear-gradient(135deg, #7828F0 0%, #3F0A8F 100%);
  --grad-primary-hover: linear-gradient(135deg, #8a3ff7 0%, #4c0fa7 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  --grad-subtle: linear-gradient(135deg, rgba(120, 40, 240, 0.06) 0%, rgba(63, 10, 143, 0.02) 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  /* Borders & Optical Depth */
  --border-color: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-focus: rgba(120, 40, 240, 0.5);
  --border-card: rgba(120, 40, 240, 0.12);
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(63, 10, 143, 0.05);
  --shadow-md: 0 8px 24px rgba(63, 10, 143, 0.07);
  --shadow-lg: 0 18px 44px rgba(63, 10, 143, 0.10);
  --shadow-glow: 0 0 25px rgba(120, 40, 240, 0.22);
  
  /* Frosted Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(120, 40, 240, 0.12);
  --glass-blur: blur(16px);
  
  /* Radius & Spacing */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Multi-font System (Plus Jakarta Sans for Titles & Body + JetBrains Mono for Metrics) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Inter', monospace;
  
  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme Variables — Luxury Royal Obsidian Violet (Setema dengan Halo Footer) */
html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
  --bg-primary: #0e0a1a !important;
  --bg-secondary: #130d24 !important;
  --bg-card: #181230 !important;
  --bg-card-hover: #221845 !important;
  --bg-input: #120c22 !important;
  --bg-modal: #181230 !important;
  
  --text-primary: #f8fafc !important;
  --text-secondary: #cbd5e1 !important;
  --text-muted: #94a3b8 !important;
  
  --border-color: rgba(167, 139, 250, 0.16) !important;
  --border-card: rgba(167, 139, 250, 0.2) !important;
  --shadow-sm: 0 4px 14px rgba(15, 10, 30, 0.4) !important;
  --shadow-md: 0 12px 36px rgba(15, 10, 30, 0.55) !important;
  --shadow-lg: 0 25px 60px rgba(10, 6, 22, 0.75) !important;
  --shadow-glow: 0 0 35px rgba(120, 40, 240, 0.28) !important;
  --glass-bg: rgba(24, 18, 48, 0.88) !important;
  --glass-border: rgba(167, 139, 250, 0.18) !important;
}

/* Light Theme Variables */
html[data-theme="light"],
body[data-theme="light"],
[data-theme="light"] {
  --bg-primary: #f8fafc !important;
  --bg-secondary: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #f1f5f9 !important;
  --bg-input: #ffffff !important;
  --bg-modal: #ffffff !important;
  
  --text-primary: #0f172a !important;
  --text-secondary: #475569 !important;
  --text-muted: #64748b !important;
  
  --border-color: rgba(120, 40, 240, 0.18) !important;
  --border-card: rgba(120, 40, 240, 0.14) !important;
  --shadow-sm: 0 4px 14px rgba(63, 10, 143, 0.08) !important;
  --shadow-md: 0 12px 36px rgba(63, 10, 143, 0.12) !important;
  --shadow-lg: 0 25px 60px rgba(63, 10, 143, 0.18) !important;
  --glass-bg: rgba(255, 255, 255, 0.95) !important;
  --glass-border: rgba(120, 40, 240, 0.18) !important;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-primary);
}

html.not-authenticated,
html.not-authenticated body {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  scrollbar-gutter: auto !important;
}

/* Custom Themed Scrollbar (Non-Generic) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary-hover);
}
::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utilities */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.text-center {
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

h1, h2, h3, h4, .section-title, .hero-title, .pricing-tier-title, .plan-name {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem auto;
}

/* Grid & Flex Helpers */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- INTERACTIVE FLUID CANVAS SHADER BACKGROUND ---- */
#shaderBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.48;
  transition: opacity 0.5s ease;
}

/* ---- PURPOSEFUL MOTION SYSTEM (TASTE-SKILL DIAL 7) ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---- KINETIC MARQUEE ACCREDITATION TICKER ---- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(120, 40, 240, 0.04);
  border-bottom: 1px solid rgba(120, 40, 240, 0.04);
  background: linear-gradient(90deg, rgba(250, 248, 255, 0.5) 0%, rgba(243, 238, 255, 0.75) 50%, rgba(250, 248, 255, 0.5) 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  gap: 2.25rem;
  align-items: center;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.marquee-separator {
  display: inline-block;
  font-size: 0.55rem;
  color: var(--accent-primary);
  opacity: 0.45;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
}

