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

:root {
  --primary: #2481cc;
  --primary-dark: #1a6db5;
  --primary-light: #e8f4fd;
  --primary-lighter: #f4faff;
  --accent: #34c759;
  --bg: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-tertiary: #eef0f2;
  --text-primary: #1a1a1a;
  --text-secondary: #707579;
  --text-muted: #a0a4a8;
  --border: #e6e8eb;
  --border-light: #f0f1f3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-blue: 0 4px 16px rgba(36,129,204,0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text-primary); line-height: 1.6; min-height: 100vh;
}
body.menu-open { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.accent { color: var(--primary) !important; }

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

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); z-index: 1000;
  display: flex; align-items: center; padding: 0 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text-primary); flex-shrink: 0;
}
.nav-logo {
  width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: -0.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: 32px;
}
.nav-links a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#nav-auth-guest, #nav-auth-user { display: flex; align-items: center; gap: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; border: none;
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; line-height: 1.4; text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #2e8ad8 0%, var(--primary-dark) 100%); color: #fff;
  box-shadow: 0 3px 12px rgba(36,129,204,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(36,129,204,0.45); transform: translateY(-2px);
  background: linear-gradient(135deg, #3594e2 0%, var(--primary) 100%);
}
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(36,129,204,0.3);
}
.btn-ghost { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-tertiary); border-color: var(--border); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg {
  padding: 16px 36px; font-size: 16px; font-weight: 700;
  border-radius: var(--radius-lg); letter-spacing: 0.2px;
}
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px; text-align: center;
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); padding: 8px 20px;
  border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--primary);
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-badge svg { color: var(--primary); }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: var(--text-primary);
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 span { color: var(--primary); }
.hero-subtitle, .hero p {
  font-size: 18px; color: var(--text-secondary); max-width: 620px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons, .hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg); border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1.2;
  display: inline;
}
.stat-suffix { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.stat-static { color: var(--primary); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.feature-icon {
  width: 52px; height: 52px; background: var(--primary-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary);
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== AI Models ===== */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.model-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; transition: all 0.3s ease;
}
.model-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.model-badge {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--primary); background: var(--primary-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.model-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.model-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.model-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tag {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 6px;
  background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-light);
}

/* ===== Steps / How It Works ===== */
.steps-grid {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.step-card {
  text-align: center; padding: 32px 24px; background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); flex: 1; max-width: 320px; transition: all 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number {
  width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 20px; box-shadow: var(--shadow-blue);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.step-connector { display: flex; align-items: center; flex-shrink: 0; }

/* ===== Pricing Cards (index.html) ===== */
.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; transition: all 0.3s ease; position: relative;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 40px rgba(36,129,204,0.15);
  border-color: var(--primary);
}
.pricing-popular {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 30px rgba(36,129,204,0.12);
  transform: scale(1.02);
}
.pricing-popular:hover { transform: scale(1.02) translateY(-6px); }
.popular-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; text-align: center; font-size: 13px; font-weight: 700;
  padding: 10px; letter-spacing: 0.5px;
}
.pricing-header { padding: 32px 28px 8px; text-align: center; }
.pricing-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.pricing-amount {
  display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 4px;
}
.pricing-stars { font-size: 48px; font-weight: 800; color: var(--text-primary); letter-spacing: -1px; }
.pricing-unit { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.pricing-body { padding: 16px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.pricing-features { margin-bottom: 28px; flex: 1; }
.pricing-features li {
  font-size: 14px; color: var(--text-secondary); padding: 11px 0;
  border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: '✓'; color: var(--accent); font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn-block {
  padding: 13px 24px; font-size: 15px; border-radius: var(--radius);
}
.pricing-popular .btn-block {
  padding: 15px 24px; font-size: 16px;
}

/* ===== Pricing Cards (dashboard style, reuse .price-card) ===== */
.price-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px 24px; text-align: center; transition: all 0.3s ease; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.price-stars { font-size: 42px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.price-stars-label { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }
.price-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; padding: 4px 16px; border-radius: 20px; margin-bottom: 16px;
}
.price-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.price-card .btn { width: 100%; margin-top: auto; }

/* ===== Payment Info ===== */
.payment-info {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: var(--primary-lighter); border: 1px solid #d4e8f7; border-radius: var(--radius);
  margin-bottom: 40px; font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.payment-info svg { color: var(--primary); flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 14px; overflow: hidden; transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item.open { border-color: var(--primary); background: var(--primary-lighter); }
.faq-question {
  width: 100%; padding: 22px 28px; font-size: 16px; font-weight: 600;
  color: var(--text-primary); background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
  gap: 16px; line-height: 1.5; outline: none;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg {
  transition: transform 0.3s; flex-shrink: 0; color: var(--text-muted);
  width: 22px; height: 22px;
}
.faq-item.open .faq-question { color: var(--primary); }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 28px 22px; font-size: 15px; color: var(--text-secondary); line-height: 1.75;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f0ff 50%, #e8f9ed 100%);
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.cta-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.cta-section h2 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 16px;
  color: var(--text-primary);
}
.cta-section p {
  font-size: 18px; color: var(--text-secondary); margin-bottom: 32px;
  max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.cta-section .btn { box-shadow: var(--shadow-blue); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border-light);
}
.footer-brand .nav-brand { margin-bottom: 4px; }
.footer-brand p {
  font-size: 14px; color: var(--text-secondary); margin-top: 16px;
  line-height: 1.7; max-width: 300px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.footer-links a {
  font-size: 14px; color: var(--text-secondary); transition: color 0.2s;
  padding: 2px 0;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; font-size: 13px; color: var(--text-muted);
}

/* ===== Auth Pages ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px; background: var(--bg-secondary);
}
.auth-card {
  background: var(--bg); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: 40px; width: 100%; max-width: 440px; border: 1px solid var(--border-light);
}
.auth-card .logo-top { text-align: center; margin-bottom: 28px; }
.auth-card .logo-top .nav-logo { width: 48px; height: 48px; font-size: 16px; margin: 0 auto; }
.auth-card h2 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-card > p, .auth-card .subtitle {
  text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; font-size: 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text-primary);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,129,204,0.12);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--text-muted); font-size: 13px;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.error-msg { color: #c53030; font-size: 13px; margin-top: 8px; display: none; text-align: center;
  padding: 10px; background: #fef0f0; border-radius: 8px; border: 1px solid #f5c6c6; }
.error-msg.show { display: block; }

/* ===== Success ===== */
.success-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, #34c759, #2db84d);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 32px; color: #fff; box-shadow: 0 4px 16px rgba(52,199,89,0.3);
}
.success-card {
  background: var(--bg); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: 48px 40px; max-width: 500px; margin: 0 auto; text-align: center;
  border: 1px solid var(--border-light);
}
.success-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.success-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }

/* ===== Dashboard ===== */
.dashboard-page { padding: 88px 24px 60px; min-height: 100vh; background: var(--bg-secondary); }
.dashboard-page .container { max-width: 1100px; }
.dashboard-header {
  background: var(--bg); border-radius: var(--radius-lg); padding: 28px 32px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dashboard-header h2 { font-size: 22px; font-weight: 700; }
.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
  margin-bottom: 28px;
}
.dashboard-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.2s;
}
.dashboard-card:hover { box-shadow: var(--shadow); }
.dashboard-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.dashboard-stat { text-align: center; }
.token-balance {
  font-size: 24px; font-weight: 800; color: var(--primary); margin: 8px 0;
}

/* ===== Info Pages ===== */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg) 100%);
  text-align: center;
}
.page-header h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.page-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.page-content {
  max-width: 800px; margin: 0 auto; padding: 48px 24px 80px;
  font-size: 15px; line-height: 1.8; color: var(--text-secondary);
}
.page-content h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 36px 0 14px; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 12px 0 16px 20px; list-style: disc; }
.page-content ul li { margin-bottom: 6px; }

/* ===== Badge / Alert / Avatar ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
}
.badge-success { background: #e8f9ed; color: #1a9e3f; }
.alert {
  padding: 14px 20px; border-radius: var(--radius); font-size: 14px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #c5dff3; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}

/* ===== Burger / Mobile Menu ===== */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 8px; transition: background 0.2s;
}
.burger:hover { background: var(--bg-secondary); }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; padding: 16px 24px 24px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.open, .mobile-menu.active { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; font-size: 16px; font-weight: 500;
  color: var(--text-primary); border-radius: var(--radius); transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-secondary); }
.mobile-menu-auth, .mobile-auth {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu-auth .btn, .mobile-auth .btn { width: 100%; justify-content: center; }
#mobile-auth-guest, #mobile-auth-user { display: flex; flex-direction: column; gap: 10px; }

/* ===== Responsive Utilities ===== */
.desktop-only { display: flex; }
.mobile-only { display: none !important; }

/* ===== Animations ===== */
.animate-in { opacity: 0; transform: translateY(24px); animation: fadeSlideIn 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
@keyframes fadeSlideIn { to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .burger { display: flex; }

  .navbar { padding: 0 16px; }
  .navbar .nav-links { display: none; }
  .navbar .nav-right .desktop-only,
  .navbar #nav-auth-guest, .navbar #nav-auth-user { display: none !important; }
  .navbar .nav-right { display: flex; }

  .hero { padding: 110px 0 60px; }
  .hero-badge { font-size: 13px; padding: 6px 16px; }
  .hero-buttons, .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn, .hero-actions .btn { width: 100%; max-width: 300px; }

  .section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-connector { display: none; }
  .step-card { max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .payment-info { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .dashboard-page { padding: 80px 16px 40px; }
  .dashboard-header { padding: 20px; flex-direction: column; align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }

  .auth-card { padding: 28px 20px; }

  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: 24px; }
  .cta-section p { font-size: 15px; }
  .faq-question { padding: 18px 20px; font-size: 15px; }
  .faq-answer p { padding: 0 20px 18px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Responsive: Small ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; margin: 14px auto 0; }
  .footer-links { align-items: center; }
  .price-stars { font-size: 36px; }
  .pricing-stars { font-size: 36px; }
}
