/* ============================================
   Opera GX Gaming Theme - Pre-lander Styles
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #141414;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --primary: #e11d48;
  --primary-glow: #db2777;
  --border-color: #2e2e2e;
  --radius: 0.75rem;
  --gradient-glow: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
  --shadow-glow: 0 0 30px rgba(225, 29, 72, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.logo {
  height: 2rem;
  width: auto;
}

/* Hero Section */
.hero {
  padding: 2rem 0 1.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.headline {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .subheadline {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Benefits */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem;
  background: linear-gradient(145deg, #232323 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.6s ease-out backwards;
}

.benefit-card:nth-child(1) { animation-delay: 0s; }
.benefit-card:nth-child(2) { animation-delay: 0.15s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-glow);
  box-shadow: var(--shadow-glow);
  color: white;
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 0;
  animation: fadeIn 0.6s ease-out 0.3s backwards;
  order: -1;
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    order: 1;
    margin-bottom: 0;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-glow);
  filter: blur(60px);
  opacity: 0.3;
  border-radius: 50%;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--gradient-glow);
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  animation: pulseGlow 2s ease-in-out infinite;
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(225, 29, 72, 0.5);
}

.btn-cta:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-cta-small {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Mobile CTA */
.mobile-cta {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

.mobile-cta .btn-cta {
  width: 100%;
}

/* Desktop CTA - Centered under image */
.desktop-cta {
  display: none;
  justify-content: center;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .desktop-cta {
    display: flex;
  }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: underline;
}

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

.footer-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 0.5rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Sticky Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 50;
  background: linear-gradient(to top, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0.95) 100%);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-text {
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

@media (min-width: 640px) {
  .sticky-text {
    display: block;
  }
}

.sticky-bar .btn-cta {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .sticky-bar .btn-cta {
    width: auto;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalIn 0.2s ease-out;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(225, 29, 72, 0.6);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
