/* ═══════════════════════════════════════════
   Solace — Enterprise Website Stylesheet
   ═══════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-primary: 0 4px 14px rgba(99,102,241,0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --nav-height: 72px;
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: #334155;
  --border-hover: #475569;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
  --primary-bg: #1e1b4b;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.35s; }
.fade-up:nth-child(6) { transition-delay: 0.4s; }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] nav {
  background: rgba(15,23,42,0.85);
}
nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.logo {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 10px 24px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}
.nav-download:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(-10px);
  transition: all var(--transition);
}
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 16px 0;
  font-size: 18px; font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(99,102,241,0.08), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139,92,246,0.06), transparent);
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--primary-bg);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-secondary {
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.hero-blob {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  filter: blur(40px);
  animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}
.hero-avatar {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--surface);
  animation: avatarFloat 6s ease-in-out infinite;
}
.hero-avatar-1 {
  top: 10%; left: 15%;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  animation-delay: 0s;
}
.hero-avatar-2 {
  top: 5%; right: 20%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  animation-delay: -2s;
}
.hero-avatar-3 {
  bottom: 25%; left: 5%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  animation-delay: -4s;
}
.hero-avatar-4 {
  bottom: 15%; right: 10%;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  animation-delay: -1s;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-bubble {
  position: absolute;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  animation: bubbleFloat 5s ease-in-out infinite;
}
.hero-bubble::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 24px;
  width: 12px; height: 12px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.hero-bubble-1 {
  top: 40%; left: 30%;
  animation-delay: 0s;
}
.hero-bubble-2 {
  top: 55%; right: 15%;
  animation-delay: -2.5s;
}
.hero-bubble-3 {
  bottom: 35%; left: 40%;
  animation-delay: -1.5s;
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

/* ─── Stats ─── */
.stats {
  padding: 48px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 14px; color: var(--text-tertiary);
  margin-top: 4px; font-weight: 500;
}

/* ─── Sections ─── */
section { padding: 100px 32px; }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--primary);
  opacity: 0.3;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Story Section ─── */
.story-section { background: var(--bg); }
.story-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}
.story-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.story-card:hover::before { opacity: 1; }
.story-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.story-card-icon.yellow { background: #fef3c7; }
.story-card-icon.green { background: #d1fae5; }
.story-card-icon.blue { background: #dbeafe; }
.story-card-icon.pink { background: #fce7f3; }
[data-theme="dark"] .story-card-icon.yellow { background: rgba(254,243,199,0.15); }
[data-theme="dark"] .story-card-icon.green { background: rgba(209,250,229,0.15); }
[data-theme="dark"] .story-card-icon.blue { background: rgba(219,234,254,0.15); }
[data-theme="dark"] .story-card-icon.pink { background: rgba(252,231,243,0.15); }
.story-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.story-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Features ─── */
.features-section { background: var(--bg-secondary); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.feature-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: var(--primary-bg);
  color: var(--primary);
  transition: all var(--transition);
}
.feature-card:hover .feature-card-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.feature-card-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Testimonials ─── */
.testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-stars {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  color: var(--warning);
}
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--primary-bg);
}
.testimonial-name {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Download ─── */
.download-section { background: var(--bg-secondary); }
.download-cards { display: flex; gap: 24px; justify-content: center; max-width: 700px; margin: 0 auto 32px; }
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  flex: 1;
  text-align: center;
  transition: all var(--transition);
}
.download-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary);
}
.download-card.disabled { opacity: 0.5; pointer-events: none; }
.download-card.disabled:hover { box-shadow: none; transform: none; border-color: var(--border); }
.download-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  background: var(--primary-bg);
  color: var(--primary);
}
.download-icon svg { width: 32px; height: 32px; }
.download-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.download-meta { font-size: 14px; color: var(--text-tertiary); margin-bottom: 4px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary);
}
.download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.btn-disabled {
  display: inline-block; margin-top: 24px; padding: 14px 28px;
  border-radius: var(--radius-full); font-size: 15px; font-weight: 600;
  background: var(--bg-tertiary); color: var(--text-tertiary); cursor: not-allowed;
}
.download-note {
  text-align: center; font-size: 14px; color: var(--text-tertiary);
  max-width: 500px; margin: 0 auto; line-height: 1.7;
}

/* ─── FAQ ─── */
.faq-section { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; font-size: 16px; font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question svg {
  width: 20px; height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ─── CTA ─── */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1), transparent 60%);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.cta .btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 16px; font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ─── Footer ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-width); margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-tertiary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* ─── Sub-page Shared ─── */
.sub-hero {
  background: var(--bg-secondary);
  padding: calc(var(--nav-height) + 60px) 32px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.sub-hero h1 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.sub-hero p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.sub-content { max-width: 900px; margin: 0 auto; padding: 64px 32px 80px; }

/* Comparison Table */
.compare-section { max-width: 900px; margin: 0 auto; padding: 0 32px 80px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-secondary);
  padding: 16px 24px;
  font-size: 14px; font-weight: 700;
  text-align: left;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--success); font-weight: 600; }
.compare-table .cross { color: var(--danger); }
.compare-table .highlight { font-weight: 600; color: var(--text-primary); }

/* Changelog */
.changelog-list { max-width: 600px; margin: 0 auto; }
.changelog-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-version {
  display: inline-block;
  font-size: 16px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.changelog-date {
  font-size: 12px; color: var(--text-tertiary);
  margin-left: 10px; font-weight: 400;
}
.changelog-item ul { padding-left: 20px; }
.changelog-item li {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 4px; line-height: 1.7;
  list-style: disc;
}

/* About Page */
.about-author {
  display: flex; gap: 32px; align-items: flex-start;
  margin-bottom: 48px;
}
.about-author-avatar {
  width: 100px; height: 100px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
  flex-shrink: 0;
}
.about-author-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.about-author-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

.about-timeline { margin-top: 40px; }
.about-timeline h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.timeline-item {
  display: flex; gap: 20px;
  padding-bottom: 28px;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-dot {
  position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-item time {
  font-size: 13px; color: var(--text-tertiary);
  white-space: nowrap; min-width: 80px; padding-top: 1px;
}
.timeline-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Help Page */
.help-section { margin-bottom: 40px; }
.help-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 12px;
}
.help-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.help-card p, .help-card li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.help-card ol, .help-card ul { padding-left: 20px; margin-top: 8px; }
.help-card li { margin-bottom: 4px; list-style: disc; }
.help-card ol li { list-style: decimal; }

/* Legal Pages */
.legal { max-width: 780px; margin: 0 auto; padding: calc(var(--nav-height) + 60px) 32px 80px; }
.legal h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.legal .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 8px; list-style: disc; }
.legal strong { color: var(--text-primary); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 14px; font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--primary-dark); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-download { display: none; }
  .hamburger { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .download-cards { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-author { flex-direction: column; align-items: center; text-align: center; }
  section { padding: 64px 20px; }
  .hero-inner { padding: 60px 20px; }
  .stat-value { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 14px; }
  .section-header h2 { font-size: 24px; }
  .nav-inner { padding: 0 16px; }
}
