/* ========================================
   Brekele Wallpaper - Landing Page Styles
   Modern 2026 Design System
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-yellow: #FAFF00;
  --color-yellow-dim: #E5EA00;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-yellow) 0%, #FFFE6B 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-black) 100%);
  --gradient-glow: radial-gradient(circle, rgba(250, 255, 0, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(250, 255, 0, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(250, 255, 0, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-100);
  background-color: var(--color-black);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-xl); }

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-yellow {
  color: var(--color-yellow);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-black);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  background: linear-gradient(135deg, var(--color-yellow-dim) 0%, #F0F55A 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-size: var(--text-lg);
}

.logo-text span:last-child {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: var(--gradient-glow);
  filter: blur(60px);
  opacity: 0.5;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(250, 255, 0, 0.1);
  border: 1px solid rgba(250, 255, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-yellow);
  margin-bottom: var(--space-8);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge::before {
  content: '✨';
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-image {
  position: relative;
  margin-top: var(--space-16);
  animation: fadeInUp 0.8s ease-out 0.4s both, float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-image img {
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section */
.features {
  background: var(--color-gray-900);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 255, 0, 0.3);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 255, 0, 0.1);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  font-size: var(--text-3xl);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  line-height: 1.7;
}

.feature-card.wide {
  grid-column: span 2;
}

/* Screenshots Section */
.screenshots {
  background: var(--color-black);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.screenshot-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-gray-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  cursor: pointer;
}

.screenshot-card:hover {
  transform: scale(1.02);
  border-color: rgba(250, 255, 0, 0.3);
  box-shadow: var(--shadow-glow);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* How It Works Section */
.how-it-works {
  background: var(--color-gray-900);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(250, 255, 0, 0.5), transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-black);
  font-size: var(--text-3xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  max-width: 300px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  margin-bottom: var(--space-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.footer-logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  line-height: 1.7;
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: var(--color-gray-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-gray-300);
}

/* Policy Pages */
.policy {
  padding-top: calc(var(--header-height) + var(--space-12));
  min-height: 100vh;
  background: var(--gradient-dark);
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
}

.policy-header {
  margin-bottom: var(--space-12);
}

.policy-title {
  margin-bottom: var(--space-4);
}

.policy-meta {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.policy-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.policy-section {
  margin-bottom: var(--space-8);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: var(--color-yellow);
}

.policy-section-title:not(:first-child) {
  margin-top: var(--space-8);
}

.policy-text {
  color: var(--color-gray-300);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.policy-list {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.policy-list li {
  color: var(--color-gray-300);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.policy-link {
  color: var(--color-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-link:hover {
  color: var(--color-yellow-dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-2xl);
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-yellow);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card.wide {
    grid-column: span 1;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  
  .steps::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .policy-content {
    padding: var(--space-6);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-16) 0;
  }
  
  .hero-description {
    font-size: var(--text-base);
  }
  
  .hero-image img {
    max-width: 240px;
  }
  
  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: var(--text-2xl);
  }
  
  .step-number {
    width: 64px;
    height: 64px;
    font-size: var(--text-2xl);
  }
}

/* Play Store Badge */
.play-store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.play-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.play-store-badge svg {
  width: 24px;
  height: 24px;
}

.play-store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.play-store-badge-text small {
  font-size: 0.65rem;
  color: var(--color-gray-600);
}

.play-store-badge-text strong {
  font-size: 0.9rem;
  color: var(--color-gray-900);
}
