/* =====================================================
   CLMN - Promotional Website Styles
   Inspired by Fall Guys & Minecraft playful aesthetics
   ===================================================== */

/* ----- CSS Custom Properties ----- */
:root {
  /* Game Colors */
  --clmn-blue: #4285F4;
  --clmn-red: #EA4335;
  --clmn-yellow: #FBBC04;
  --clmn-green: #34A853;
  
  /* Vibrant variations */
  --clmn-blue-light: #6fa8ff;
  --clmn-red-light: #ff6b5d;
  --clmn-yellow-light: #ffd34d;
  --clmn-green-light: #5dd47a;
  
  /* Background gradients */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-section-1: linear-gradient(180deg, #764ba2 0%, #2d1b69 100%);
  --gradient-section-2: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  --gradient-cta: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  
  /* UI Colors */
  --bg-dark: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ----- Layout Utilities ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* ----- Animated Background Blocks ----- */
.floating-blocks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-block {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.floating-block.blue { background: var(--clmn-blue); }
.floating-block.red { background: var(--clmn-red); }
.floating-block.yellow { background: var(--clmn-yellow); }
.floating-block.green { background: var(--clmn-green); }

.floating-block:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; width: 50px; height: 50px; }
.floating-block:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; width: 70px; height: 70px; }
.floating-block:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; width: 40px; height: 40px; }
.floating-block:nth-child(4) { top: 70%; right: 20%; animation-delay: 3s; width: 55px; height: 55px; }
.floating-block:nth-child(5) { top: 40%; left: 80%; animation-delay: 1.5s; width: 45px; height: 45px; }
.floating-block:nth-child(6) { top: 85%; left: 40%; animation-delay: 2.5s; width: 65px; height: 65px; }
.floating-block:nth-child(7) { top: 5%; left: 60%; animation-delay: 0.5s; width: 35px; height: 35px; }
.floating-block:nth-child(8) { top: 50%; right: 5%; animation-delay: 3.5s; width: 50px; height: 50px; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-25px) rotate(3deg);
  }
}

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-cta {
  background: var(--clmn-blue) !important;
  color: white !important;
  padding: var(--space-xs) var(--space-md) !important;
  border-radius: var(--radius-full) !important;
}

.nav-cta:hover {
  background: var(--clmn-blue-light) !important;
  transform: scale(1.05);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero h1 {
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-bounce);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clmn-red) 0%, var(--clmn-yellow) 100%);
  color: white;
  box-shadow: 0 8px 30px rgba(234, 67, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(234, 67, 53, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* ----- How It Works Section ----- */
.how-it-works {
  background: var(--gradient-section-1);
  padding: var(--space-xl) 0;
}

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

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.step-card:nth-child(1)::before { background: var(--clmn-blue); }
.step-card:nth-child(2)::before { background: var(--clmn-red); }
.step-card:nth-child(3)::before { background: var(--clmn-yellow); }
.step-card:nth-child(4)::before { background: var(--clmn-green); }

.step-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.step-card:nth-child(1) .step-number { color: var(--clmn-blue); }
.step-card:nth-child(2) .step-number { color: var(--clmn-red); }
.step-card:nth-child(3) .step-number { color: var(--clmn-yellow); }
.step-card:nth-child(4) .step-number { color: var(--clmn-green); }

.step-card h3 {
  margin-bottom: var(--space-xs);
}

.step-card p {
  font-size: 1rem;
}

/* ----- Features Section ----- */
.features {
  background: var(--gradient-section-2);
  padding: var(--space-xl) 0;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clmn-blue) 0%, var(--clmn-green) 100%);
  border-radius: var(--radius-lg);
  font-size: 2.5rem;
}

.feature-card h3 {
  margin-bottom: var(--space-xs);
}

/* ----- Screenshots Section ----- */
.screenshots {
  background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.screenshots-wrapper {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-bounce);
  cursor: pointer;
  max-width: 280px;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-item:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.screenshot-item:nth-child(even):hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Phone Frame Styling */
.phone-mockup {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 12px;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-mockup img {
  border-radius: 28px;
}

/* ----- CTA Section ----- */
.cta-section {
  background: var(--gradient-hero);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

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

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

/* ----- Footer ----- */
.footer {
  background: #0a0a12;
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

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

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

/* ----- Responsive Design ----- */
@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 100px;
    height: 100px;
  }
  
  .screenshot-item {
    max-width: 240px;
  }
}

/* ----- Privacy Policy Page Specific ----- */
.privacy-page {
  padding-top: 120px;
  min-height: 100vh;
  background: var(--bg-dark);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--clmn-blue-light);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.privacy-content ul {
  list-style: disc;
  padding-left: var(--space-md);
}

.privacy-content a {
  color: var(--clmn-blue-light);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--clmn-blue);
}
