/* Tap the Best Japanese - Developer Website Styles */

:root {
  --primary: #1A1A1A;
  --background: #FFFFFF;
  --accent: #F5F5F5;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;
  --success: #4CAF50;
  --warning: #FF9800;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

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

/* Header */
header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  font-size: 18px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--accent) 0%, var(--background) 100%);
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .description {
  font-size: 16px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 40px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.store-button.disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--accent);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

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

/* How to Play Section */
.how-to-play {
  padding: 80px 0;
  background: var(--accent);
}

.how-to-play h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--background);
  padding: 24px;
  border-radius: 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-light);
}

/* Score System */
.score-system {
  padding: 80px 0;
}

.score-system h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.score-card {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.score-card.perfect {
  border-color: #4CAF50;
  background: #E8F5E9;
}

.score-card.good {
  border-color: #2196F3;
  background: #E3F2FD;
}

.score-card.okay {
  border-color: #FF9800;
  background: #FFF3E0;
}

.score-card.not-quite {
  border-color: #F44336;
  background: #FFEBEE;
}

.score-emoji {
  font-size: 36px;
  margin-bottom: 8px;
}

.score-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.score-label {
  font-size: 14px;
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand span {
  font-size: 20px;
  font-weight: 700;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages */
.legal-page {
  padding: 80px 0;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.legal-page .last-updated {
  color: var(--text-light);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.contact-box {
  background: var(--accent);
  padding: 24px;
  border-radius: 12px;
  margin-top: 32px;
}

.contact-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-box a {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    gap: 20px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .tagline {
    font-size: 18px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
  }

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

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

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

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .legal-page h1 {
    font-size: 28px;
  }
}
