/* ===== CSS Variables ===== */
:root {
  --background: 222 47% 5%;
  --foreground: 210 40% 93%;
  --primary: 45 100% 55%;
  --primary-foreground: 222 47% 5%;
  --accent: 200 100% 55%;
  --accent-foreground: 222 47% 5%;
  --muted-foreground: 215 20% 55%;
  --border: 215 30% 18%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --glow-primary: 45 100% 55%;
  --glow-accent: 200 100% 55%;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-ui: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow: hidden;
}

a { text-decoration: none; }

/* ===== Page ===== */
.page {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== Background Video ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.grid-bg {
  background-image:
    linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== Scanline ===== */
.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: linear-gradient(transparent 50%, hsl(var(--glow-accent) / 0.02) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

/* ===== Ambient Glows ===== */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.glow-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: hsl(var(--accent) / 0.05);
  filter: blur(120px);
}
.glow-bottom {
  bottom: 0;
  right: 0;
  width: 500px;
  height: 300px;
  background: hsl(var(--primary) / 0.05);
  filter: blur(100px);
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 20;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Logo ===== */
.logo {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
}
.logo img {
  height: 1.5rem;
}
@media (min-width: 640px) {
  .logo img { height: 2rem; }
}

/* ===== Headline ===== */
.headline {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  color: #FFD700;
}
.headline-line2 {
  display: inline-block;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .headline { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  .headline { font-size: 2.75rem; }
}

/* ===== Subheadline ===== */
.subheadline {
  text-align: center;
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  white-space: nowrap;
  color: #FFFFFF;
}
@media (min-width: 640px) {
  .subheadline { font-size: 1.25rem; }
}

/* ===== Social Proof ===== */
.social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ui);
}
.stars {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--primary));
}
.star-icon {
  width: 0.75rem;
  height: 0.75rem;
}
.rating {
  margin-left: 0.25rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}
.rated-text {
  color: hsl(var(--muted-foreground));
}
.downloads {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--muted-foreground));
}
.users-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: hsl(var(--accent));
}

/* ===== Screenshot ===== */
.screenshot-wrapper {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.125rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  max-height: 65vh;
  box-shadow: 0 0 15px hsl(var(--glow-accent) / 0.3), 0 0 30px hsl(var(--glow-accent) / 0.15);
}
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background) / 0.8), transparent, transparent);
}
.live-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
}
.live-badge span {
  padding: 0.125rem 0.5rem;
  background: hsl(var(--destructive) / 0.9);
  color: hsl(var(--destructive-foreground));
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.125rem;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px hsl(var(--destructive) / 0.5); }
  50% { box-shadow: 0 0 20px hsl(var(--destructive) / 0.8); }
}

/* ===== CTA Overlay ===== */
.cta-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 0.125rem;
  transition: transform 0.2s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn-primary {
  color: hsl(var(--primary-foreground));
  animation: cta-color-alt 4s infinite;
}
.btn-primary:hover { transform: scale(1.05); }
@keyframes cta-color-alt {
  0%, 49.99% {
    background: hsl(var(--primary));
    box-shadow: 0 0 20px hsl(var(--glow-primary) / 0.3), 0 0 40px hsl(var(--glow-primary) / 0.15);
  }
  50%, 100% {
    background: hsl(var(--destructive));
    box-shadow: 0 0 20px hsl(var(--destructive) / 0.3), 0 0 40px hsl(var(--destructive) / 0.15);
  }
}
.btn-outline {
  background: transparent;
  color: hsl(var(--accent));
  border: 2px solid hsl(var(--accent));
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background: hsl(var(--accent) / 0.1);
}

/* ===== Disclaimer ===== */
.disclaimer {
  text-align: center;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  color: #FFD700;
}
.disclaimer-text {
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
.disclaimer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.disclaimer-link {
  background: none;
  border: none;
  color: #FFD700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-ui);
  padding: 0;
}
.disclaimer-link:hover {
  opacity: 0.8;
}
.disclaimer-sep {
  opacity: 0.4;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  max-width: 32rem;
  width: 100%;
  padding: 1.5rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: hsl(var(--foreground));
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #FFD700;
}
.modal-body {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ===== Fade-up Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
