/* ============================================
   OPENSCAPE LANDING PAGE - MINIMALIST STYLE
   Inspired by fly.pieter.com + RuneScape aesthetic
   ============================================ */

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

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #c9a227;
  --accent-hover: #e0b830;
  --accent-dark: #8b7019;
  --success: #4ade80;
  --border: #333333;
  --gradient-gold: linear-gradient(135deg, #c9a227 0%, #f0d060 50%, #c9a227 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png');
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Cinzel', serif;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

/* Beta Badge */
.beta-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  border: 1px solid var(--accent);
}

.btn-huge {
  padding: 20px 48px;
  font-size: 22px;
  border-radius: 12px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.6) 70%, rgba(13,13,13,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

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

.hero-buttons-main {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.7;
}

#hero h1 {
  font-size: clamp(48px, 12vw, 96px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(201, 162, 39, 0.3);
}

.tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
#features {
  padding: 100px 0;
  background: var(--bg-dark);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dark);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   TRAILER SECTION
   ============================================ */
#trailer {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #151510 100%);
  text-align: center;
}

#trailer h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-placeholder:hover {
  background: var(--bg-card-hover);
}

.video-placeholder span {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 12px;
}

.video-placeholder p {
  color: var(--text-secondary);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   SIGNUP SECTION
   ============================================ */
#signup {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
}

#signup h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.signup-subtitle {
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto 32px;
}

.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.2s ease;
}

.signup-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
}

.signup-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.signup-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.signup-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.signup-card .btn {
  width: 100%;
  margin-bottom: 12px;
}

.api-hint {
  display: block;
  background: #1a1a1a;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
}

.signup-note {
  color: var(--text-muted);
  font-size: 14px;
}

.signup-note a {
  color: var(--accent);
  text-decoration: none;
}

.signup-note a:hover {
  text-decoration: underline;
}

.card-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.card-note a {
  color: var(--accent);
  text-decoration: none;
}

.card-note a:hover {
  text-decoration: underline;
}

.signup-flow {
  margin-top: 48px;
  padding: 32px;
  background: rgba(201, 162, 39, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 12px;
}

.signup-flow h3 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--accent);
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.step-num {
  background: var(--accent);
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.step-text code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 20px;
}

@media (max-width: 768px) {
  .flow-steps {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================
   STATS SECTION
   ============================================ */
#stats {
  padding: 60px 0;
  background: linear-gradient(180deg, #151510 0%, var(--bg-dark) 100%);
  text-align: center;
}

#stats h2 {
  font-size: 36px;
  margin-bottom: 48px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  border-color: var(--accent-dark);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 60px 0 40px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-credit {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #f0d060;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .btn-huge {
    padding: 16px 32px;
    font-size: 18px;
  }

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

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats-grid {
    gap: 40px;
  }

  .stat-number {
    font-size: 36px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 42px;
  }

  .tagline {
    font-size: 16px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .pricing-card .price {
    font-size: 36px;
  }
}
