/* ============================================================
   TripHub — Main Stylesheet
   ============================================================ */

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

/* ===== CSS Variables ===== */
:root {
  --primary: #0A2463;
  --primary-light: #1E40AF;
  --primary-lighter: #3B82F6;
  --accent: #00B4D8;
  --accent-dark: #0096C7;
  --accent-light: #ADE8F4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --bg: #FFFFFF;
  --bg-alt: #F0F9FF;
  --bg-dark: #0A2463;
  --bg-card: #FFFFFF;

  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(10,36,99,0.08);
  --shadow: 0 4px 16px rgba(10,36,99,0.08);
  --shadow-lg: 0 8px 40px rgba(10,36,99,0.12);
  --shadow-xl: 0 24px 64px rgba(10,36,99,0.14);

  --transition: 0.2s ease;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { line-height: 1.7; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,36,99,0.25);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,180,216,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.nav-lang {
  position: relative;
}
.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition);
}
.nav-lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.nav-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 140px;
  display: none;
}
.nav-lang-dropdown.open { display: block; }
.nav-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-lang-dropdown a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-lang-dropdown a.active { color: var(--primary); font-weight: 600; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  padding: 24px var(--gutter);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 50%, var(--accent-dark) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; }
.hero-content {
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--accent-light);
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.app-stores {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.store-badge:hover { background: rgba(255,255,255,0.2); }
.store-badge svg { width: 20px; height: 20px; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  color: rgba(255,255,255,0.9);
}
.hero-stat .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ===== Section ===== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.9375rem; }

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

/* ===== Badge / Pill ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-primary { background: #EFF6FF; color: var(--primary); }
.badge-accent { background: #E0F2FE; color: var(--accent-dark); }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,180,216,0.08), var(--shadow-lg);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup {
  font-size: 1.25rem;
  vertical-align: top;
  margin-top: 10px;
}
.pricing-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}
.pricing-feature .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.75rem;
}
.pricing-feature .cross {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.75rem;
}
.pricing-feature .text { color: var(--text-secondary); }
.pricing-feature.limited .text { color: var(--text-muted); }

/* ===== FAQ / Accordion ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open {
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  user-select: none;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--bg-card);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.blog-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body {
  padding: 24px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.blog-card-meta .cat {
  color: var(--accent-dark);
  font-weight: 600;
}
.blog-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text);
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { text-decoration: underline; }

/* ===== Changelog ===== */
.changelog-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.changelog-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  position: relative;
}
.changelog-entry::before {
  content: '';
  position: absolute;
  left: 134px;
  top: 28px;
  bottom: -40px;
  width: 2px;
  background: var(--border);
}
.changelog-entry:last-child::before { display: none; }
.changelog-date {
  text-align: right;
  padding-top: 4px;
}
.changelog-version {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.changelog-date .date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.changelog-dot {
  position: absolute;
  left: 128px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.changelog-content {
  padding-left: 20px;
}
.changelog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text);
}
.changelog-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.changelog-content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.changelog-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.changelog-tag.new { background: #D1FAE5; color: #065F46; }
.changelog-tag.fix { background: #FEE2E2; color: #991B1B; }
.changelog-tag.improve { background: #EFF6FF; color: #1E40AF; }

/* ===== Support ===== */
.support-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.support-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.support-cat:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.support-cat-icon { font-size: 2rem; }
.support-cat-title { font-size: 0.9375rem; font-weight: 600; }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--primary);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; }
.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 12px;
}
.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.legal-content li {
  list-style: disc;
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content ol li { list-style: decimal; }
.legal-meta {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ===== Page Hero (non-landing) ===== */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.125rem; max-width: 560px; margin: 0 auto; }

/* ===== Feature Section ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border-light);
}
.feature-row.reverse .feature-visual { order: -1; }
.feature-content .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.feature-content h2 { margin-bottom: 16px; font-size: 2rem; }
.feature-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.0625rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.feature-list li .icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.04);
  border-radius: inherit;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 60%, var(--accent-dark) 100%);
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.875rem; }
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: #fff; }

/* ===== Toast / Alert ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ===== Search box ===== */
.search-box {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 520px;
  margin: 0 auto 48px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}
.search-box button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}
.search-box button:hover { background: var(--accent-dark); }

/* ===== Divider ===== */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ===== Utilities ===== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 12px; }
.mt { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 12px; }
.mb { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }
.w-full { width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
  .support-categories { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-visual { order: 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .changelog-entry { grid-template-columns: 1fr; }
  .changelog-date { text-align: left; }
  .changelog-entry::before, .changelog-dot { display: none; }
  .changelog-content { padding-left: 0; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .support-categories { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 40px; }
}

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