/* ===================================
   Command Golf - Website Styles
   =================================== */

:root {
  --color-bg-primary: #1a1a2e;
  --color-bg-secondary: #16213e;
  --color-bg-elevated: #0f3460;
  --color-accent-primary: #e94560;
  --color-accent-secondary: #533483;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-success: #10b981;
  --color-gold: #fbbf24;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
}

.logo-text h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-primary);
  letter-spacing: 4px;
}

.hero-description {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 180px;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.store-btn .store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn .store-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.store-btn .store-name {
  font-size: 18px;
  color: var(--color-text-primary);
  font-weight: 600;
}

.store-btn.coming-soon {
  opacity: 0.6;
  cursor: default;
}

.store-btn.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.store-btn.coming-soon .store-name {
  font-size: 14px;
}

/* Phone Mockup */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #2a2a4e, #1a1a2e);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a15;
  border-radius: 12px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 50px 20px 20px;
}

.maze-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: var(--color-bg-secondary);
  padding: 8px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

.cell {
  aspect-ratio: 1;
  background: var(--color-bg-elevated);
  border-radius: 4px;
}

.cell.wall {
  background: #3a3a5e;
}

.cell.player {
  background: var(--color-accent-primary);
  position: relative;
}

.cell.player::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
}

.cell.goal {
  background: var(--color-success);
  border-radius: 50%;
}

.command-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command {
  background: var(--color-bg-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-left: 3px solid var(--color-accent-primary);
}

.command.loop {
  border-left-color: var(--color-gold);
}

/* Screenshot in phone mockup */
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* Screenshots Section */
.screenshots {
  padding: 100px 0;
  background: var(--color-bg-primary);
}

.screenshots h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  position: relative;
}

.screenshots h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.screenshot-card {
  text-align: center;
  max-width: 200px;
}

.screenshot-card img {
  width: 200px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.screenshot-card img:hover {
  transform: scale(1.05);
}

.screenshot-card p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.features h2,
.how-to-play h2,
.commands h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  position: relative;
}

.features h2::after,
.how-to-play h2::after,
.commands h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

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

.feature-card {
  background: var(--color-bg-primary);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

/* How to Play Section */
.how-to-play {
  padding: 100px 0;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 280px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

/* Commands Section */
.commands {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.command-card {
  background: var(--color-bg-primary);
  padding: 24px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.command-card:hover {
  border-color: var(--color-accent-primary);
}

.command-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent-primary);
  margin-bottom: 8px;
}

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

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

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

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .logo {
    justify-content: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .logo-text h1 {
    font-size: 24px;
  }

  .hero-description {
    font-size: 16px;
  }

  .features h2,
  .how-to-play h2,
  .commands h2 {
    font-size: 28px;
  }

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

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