/* Index/Landing page styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.82)),
              url('/img/hero.jpg') center / cover no-repeat fixed;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.25);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - Full screen height */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
  background: url('/img/hero.jpg') center / cover no-repeat fixed;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.7), rgba(12, 12, 12, 0.82));
  backdrop-filter: blur(1px);
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Login button in top-right corner - far from the rest */
.login-top-right {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 1000;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(60, 60, 60, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(78, 201, 176, 0.3);
  transition: all 0.3s ease;
}

.login-top-right:hover {
  background: rgba(78, 201, 176, 0.2);
  border-color: #4ec9b0;
  transform: translateY(-2px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Pixel art database animation - Positioned at top */
.pixel-db-animation {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  max-width: 90vw;
  image-rendering: auto;
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

.pixel-db-animation canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

h1 {
  font-size: 48px;
  margin-bottom: 16px;
  color: #4ec9b0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(78, 201, 176, 0.3);
}

.subheadline {
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons below slogan */
.ctas-below-slogan {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #4ec9b0;
  color: #000;
}

.btn-primary:hover {
  background: #5ed9c0;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #3c3c3c;
  color: #e0e0e0;
  border: 1px solid #3e3e42;
}

.btn-secondary:hover {
  background: #454545;
  border-color: #4ec9b0;
}

main {
  padding: 40px 0;
  flex: 1;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature {
  background: #252526;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #3e3e42;
  transition: transform 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #4ec9b0;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature h3 {
  color: #4ec9b0;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  color: #a0a0a0;
  font-size: 14px;
  line-height: 1.6;
}

/* Premium Modules Highlight */
.premium-highlight {
  background: linear-gradient(135deg, rgba(78, 201, 176, 0.15) 0%, rgba(93, 217, 192, 0.15) 100%);
  border: 2px solid #4ec9b0;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-highlight::before {
  content: '✨';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  opacity: 0.3;
}

.premium-highlight h3 {
  color: #4ec9b0;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.premium-highlight .premium-badge {
  display: inline-block;
  background: #4ec9b0;
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.premium-highlight p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
  text-align: center;
}

.stat {
  background: #3c3c3c;
  padding: 20px;
  border-radius: 6px;
}

.stat-number {
  font-size: 32px;
  color: #4ec9b0;
  font-weight: 700;
}

.stat-label {
  color: #a0a0a0;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 8px;
}

section h2 {
  font-size: 32px;
  color: #4ec9b0;
  margin-bottom: 32px;
  text-align: center;
}

footer {
  border-top: 1px solid #3e3e42;
  padding: 24px 0;
  color: #858585;
  font-size: 14px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-right {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 768px) {
  header {
    min-height: 100vh;
    padding: 40px 20px;
  }

  .login-top-right {
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .pixel-db-animation {
    width: 90vw;
    max-width: 500px;
    height: 300px;
    top: 60px;
  }
  
  header .container {
    margin-bottom: 40px;
  }

  h1 {
    font-size: 36px;
  }

  .ctas-below-slogan {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-right {
    text-align: center;
    margin-left: 0;
  }
}
