/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores do Profeu */
  --primary-blue: #3B82F6;
  --primary-purple: #A855F7;
  --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);

  /* Cores adaptáveis ao tema do Telegram */
  --bg-color: var(--tg-theme-bg-color, #ffffff);
  --text-color: var(--tg-theme-text-color, #000000);
  --hint-color: var(--tg-theme-hint-color, #999999);
  --secondary-bg: var(--tg-theme-secondary-bg-color, #f5f5f5);

  /* Espaçamentos */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-xl);
}

/* Header */
.header {
  text-align: center;
  padding: var(--spacing-lg) 0;
  margin-bottom: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--hint-color);
  font-weight: 500;
}

/* Greeting */
.greeting {
  background: var(--gradient);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

#user-name {
  font-weight: 700;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.hero-description {
  font-size: 16px;
  color: var(--hint-color);
  line-height: 1.5;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--secondary-bg);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:active {
  transform: scale(0.98);
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
}

.feature-description {
  font-size: 14px;
  color: var(--hint-color);
  line-height: 1.4;
}

/* Pricing */
.pricing {
  margin-bottom: var(--spacing-xl);
}

.price-card {
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  z-index: -1;
}

.price-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  margin-bottom: var(--spacing-lg);
}

.price-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.price-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-features {
  list-style: none;
  text-align: left;
}

.price-features li {
  padding: var(--spacing-xs) 0;
  font-size: 15px;
  color: var(--text-color);
  font-weight: 500;
}

/* CTA */
.cta {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.btn-primary {
  width: 100%;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  min-height: 56px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.cta-note {
  margin-top: var(--spacing-sm);
  font-size: 13px;
  color: var(--hint-color);
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  color: var(--hint-color);
  font-size: 13px;
  border-top: 1px solid var(--secondary-bg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeInUp 0.4s ease-out backwards;
}

.container > *:nth-child(1) { animation-delay: 0.05s; }
.container > *:nth-child(2) { animation-delay: 0.1s; }
.container > *:nth-child(3) { animation-delay: 0.15s; }
.container > *:nth-child(4) { animation-delay: 0.2s; }
.container > *:nth-child(5) { animation-delay: 0.25s; }
.container > *:nth-child(6) { animation-delay: 0.3s; }
.container > *:nth-child(7) { animation-delay: 0.35s; }

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .feature-icon,
  .feature-card {
    background: rgba(255, 255, 255, 0.05);
  }

  .feature-icon {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}
