/* ==============================================================================
   LILASOFT HOMEPAGE - DESIGN TOKENS & BASE STYLES
   ============================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #07080D;
  --bg-secondary: #0D101A;
  --bg-tertiary: #131726;
  --bg-elevated: rgba(22, 27, 42, 0.75);
  --bg-card: rgba(18, 22, 35, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(139, 92, 246, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #090A0F;

  /* Brand Accents */
  --accent-primary: #8B5CF6;
  --accent-secondary: #6366F1;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  
  --gradient-brand: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #06B6D4 100%);
  --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 80%);

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.55);

  /* Layout & Sizing */
  --max-width: 1200px;
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(0, 0, 0, 0.16);
  --border-glow: rgba(99, 102, 241, 0.3);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Ambient Background Lights */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  transition: opacity var(--transition-smooth);
}

.ambient-orb-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.08) 70%, transparent 100%);
  top: -120px;
  left: 20%;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
  top: 45%;
  right: -80px;
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 80%);
  bottom: 5%;
  left: -80px;
  animation: floatOrb 25s ease-in-out infinite alternate;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Links & Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==============================================================================
   TOP HEADER BAR
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 8, 13, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo-combined {
  height: 38px;
  width: auto;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Global Play Store CTA Badge in Header */
.btn-header-play-badge {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-header-play-badge img {
  height: 42px;
  width: auto;
  display: block;
}

.btn-header-play-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.btn-header-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.55);
}

.btn-header-play img {
  width: 17px;
  height: 17px;
}

/* Secondary Header Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary {
  padding: 8px 18px;
  font-size: 0.875rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

/* Common Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==============================================================================
   SITE FOOTER
   ============================================================================== */
.site-footer {
  padding: 60px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==============================================================================
   MOBILE & TABLET GLOBAL RESPONSIVENESS
   ============================================================================== */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .brand-logo-combined {
    height: 30px;
  }

  .nav-actions {
    gap: 10px;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .btn-header-play-badge img {
    height: 34px;
  }

  .btn-secondary {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .ambient-orb-1 {
    width: 320px;
    height: 320px;
    left: 5%;
  }

  .ambient-orb-2 {
    width: 280px;
    height: 280px;
  }

  .ambient-orb-3 {
    width: 260px;
    height: 260px;
  }

  .site-footer {
    padding: 40px 0 32px;
  }

  .footer-copy {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .brand-logo-combined {
    height: 26px;
  }

  .btn-header-play-badge img {
    height: 30px;
  }

  .nav-actions {
    gap: 8px;
  }
}
