/* ============================================
   AutoPostForMe — Design System
   Clean Modern + Dark Mode
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============ CSS Custom Properties ============ */
:root {
  /* Light Mode (default) */
  --bg-primary: #FAFAF5;
  --bg-surface: #FFFFFF;
  --bg-section-alt: #F0F0EA;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --accent-primary: #0A6847;
  --accent-hover: #0D7D56;
  --accent-gold: #D4A843;
  --accent-gold-hover: #E8B94D;
  --border: #E0E0DA;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --success: #22C55E;
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0F1520;
  --bg-surface: #1A2332;
  --bg-section-alt: #141E2D;
  --text-primary: #F0F0F0;
  --text-secondary: #B0BEC5;
  --text-muted: #78909C;
  --accent-primary: #4ADE80;
  --accent-hover: #6AEE9A;
  --accent-gold: #D4A843;
  --accent-gold-hover: #E8B94D;
  --border: #2A3444;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============ Reset & Base ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ============ Typography Scale ============ */
.display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

.h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.body-lg {
  font-size: 1.125rem;
}

.body {
  font-size: 1rem;
}

.caption {
  font-size: 0.875rem;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 104, 71, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 104, 71, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #1A1A2E;
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.5);
}

/* ============ Section Spacing ============ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
}

/* ============ Cards ============ */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

/* ============ Badge ============ */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.badge-gold {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* ============ Animations ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(250, 250, 245, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="dark"] .nav {
  background: rgba(15, 21, 32, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.theme-toggle {
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============ Hero ============ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--accent-primary);
}

.hero h1 .gold {
  color: var(--accent-gold);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ Comparison Table ============ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.comparison-table thead th:first-child {
  background: var(--bg-section-alt);
  color: var(--text-primary);
}

.comparison-table tbody tr {
  background: var(--bg-surface);
  transition: var(--transition);
}

.comparison-table tbody tr:hover {
  background: var(--bg-section-alt);
}

.comparison-table .no-ai {
  color: var(--danger);
}

.comparison-table .has-ai {
  color: var(--success);
  font-weight: 500;
}

/* ============ Features Grid ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  background: rgba(10, 104, 71, 0.1);
}

[data-theme="dark"] .feature-icon {
  background: rgba(74, 222, 128, 0.1);
}

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

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

/* ============ How It Works ============ */
.steps {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

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

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ Pricing ============ */
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  border: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-primary));
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.price-current {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.price-period {
  color: var(--text-muted);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 12px;
}

/* ============ CTA Section ============ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-primary), #0D7D56);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  margin: 0 24px;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.cta-section .btn-gold {
  font-size: 1.1rem;
  padding: 18px 40px;
}

/* ============ Footer ============ */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ============ Countdown Timer ============ */
.countdown-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  min-width: 80px;
  text-align: center;
}

.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .hero-stats {
    gap: 24px;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

  .pricing-card {
    padding: 32px 24px;
  }
}