:root {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --accent: #25D366;
  --accent-hover: #20bd5a;
  --border: #333333;
  --gradient-start: #25D366;
  --gradient-end: #128C7E;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border: #e0e0e0;
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --border: #333333;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .title {
  background: linear-gradient(135deg, #1a1a1a 0%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .title {
  background: linear-gradient(135deg, #fff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .qr-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .package-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .qr-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .package-card {
  box-shadow: none;
}

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

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

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

.hidden {
  display: none !important;
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    width: 160px;
    height: 160px;
  }
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.device-section {
  padding: 40px 20px;
}

.qr-container {
  display: flex;
  justify-content: center;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}

.qr-card h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.qr-code {
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

.mobile-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.features {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

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

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

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

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

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

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

.packages {
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 32px;
  margin: 40px 20px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.package-card:hover {
  transform: translateY(-4px);
}

.package-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.15);
}

.package-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.package-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.package-tokens {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.package-features {
  list-style: none;
  margin-bottom: 24px;
}

.package-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 28px;
}

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.package-badge {
  background: rgba(37, 211, 102, 0.1);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.package-button {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.package-button:hover {
  background: var(--accent-hover);
}

.tier-info {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.tier-info h3 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

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

.tier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 16px;
  text-align: center;
}

.tier-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.tier-cost {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

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

.footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.footer-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* Sticky CTA Bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sticky-cta {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.sticky-cta-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.sticky-whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  width: 100%;
  max-width: 320px;
}

.sticky-whatsapp-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.sticky-whatsapp-icon {
  width: 22px;
  height: 22px;
}

/* Add padding to body so content isn't hidden by sticky bar */
body {
  padding-bottom: 80px;
}

.footer {
  padding-bottom: 20px;
}

/* Blog Section */
.blog {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.blog-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.blog-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.blog-card-content {
  padding: 16px;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-card-type {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-subscribe {
  text-align: center;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.blog-subscribe p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.blog-subscribe-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-subscribe-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.blog-subscribe-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 16px 24px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

  .packages {
    margin: 20px 0;
    border-radius: 24px;
  }

  .package-card {
    padding: 24px;
  }

  .qr-card {
    padding: 24px;
  }

  .qr-code {
    width: 220px;
    height: 220px;
  }
}
