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

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f8f9fa;
  --border: #e0e0e0;
  --success: #22c55e;
}

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  margin-left: 15px;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-gray);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Local Mode Banner */
.local-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.local-mode-icon {
  font-size: 2.5rem;
}

.local-mode-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.local-mode-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.local-mode-price {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.credits-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.credit-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  position: relative;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.credit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.credit-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.credit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text);
}

.credit-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.credit-bonus {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
}

.credit-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 15px 0 5px;
}

.credit-unit {
  font-size: 0.8rem;
  color: var(--text-light);
}

.credit-save {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  margin: 8px 0;
}

.credit-card .btn {
  display: block;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
}

.credit-card .btn:hover {
  background: var(--primary-dark);
}

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

.pricing-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 25px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-light);
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  margin-right: 10px;
}

/* Legal Pages */
.legal {
  padding: 60px 0;
}

.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

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

.legal h2 {
  font-size: 1.5rem;
  margin: 40px 0 15px;
  color: var(--primary);
}

.legal p,
.legal li {
  margin-bottom: 15px;
  color: var(--text-light);
}

.legal ul {
  margin-left: 25px;
}

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

/* Footer */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 15px;
}

footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    margin: 0 15px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
  }

  .local-mode-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  .local-mode-icon {
    font-size: 2rem;
  }

  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .credit-amount {
    font-size: 2rem;
  }
}
