/* ================================
   WxBox Official Website
   Premium Dark Minimalist Design
   ================================ */

/* === CSS Variables === */
:root {
  /* Colors - Dark Palette with Purple Accent */
  --bg-primary: #0c0d14;
  --bg-secondary: #12131c;
  --bg-card: #161722;
  --bg-card-hover: #1c1d2e;
  --bg-elevated: #1e1f33;

  --text-primary: #e8e9f0;
  --text-secondary: #8b8da3;
  --text-muted: #5c5e72;
  --text-white: #ffffff;

  --accent-purple: #7c5bf5;
  --accent-purple-light: #9b7dff;
  --accent-purple-dim: rgba(124, 91, 245, 0.15);
  --accent-blue: #4a9eff;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-pink: #f472b6;

  --gradient-primary: linear-gradient(135deg, #7c5bf5 0%, #4a9eff 100%);
  --gradient-hero: linear-gradient(135deg, #7c5bf5 0%, #c084fc 50%, #4a9eff 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 91, 245, 0.12) 0%, transparent 70%);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(124, 91, 245, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* === Background Canvas === */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Ambient Glow Effects === */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow--top {
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(124, 91, 245, 0.08) 0%, rgba(74, 158, 255, 0.04) 40%, transparent 70%);
  animation: breatheGlow 8s ease-in-out infinite;
}

.ambient-glow--bottom {
  bottom: -500px;
  right: -200px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.06) 0%, rgba(124, 91, 245, 0.03) 40%, transparent 70%);
  animation: breatheGlow 10s ease-in-out infinite 3s;
}

@keyframes breatheGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

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

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 0 transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(12, 13, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.03);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.logo-icon svg {
  width: 36px;
  height: 36px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-btn {
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  box-shadow: 0 4px 20px rgba(124, 91, 245, 0.4);
  transform: translateY(-1px);
}

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

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-menu-btn:hover span {
  background: var(--text-white);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0c0d14;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  visibility: hidden;
  overflow: hidden;
}

/* 菜单打开时锁定页面滚动 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.02em;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--text-white);
  background: rgba(124, 91, 245, 0.08);
}

/* Hamburger animation */
.nav-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.nav-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(124, 91, 245, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(124, 91, 245, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-download {
  background: var(--gradient-primary);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  font-size: 16px;
  box-shadow: 0 4px 24px rgba(124, 91, 245, 0.3);
  text-align: left;
}

.btn-download:hover {
  box-shadow: 0 8px 40px rgba(124, 91, 245, 0.5);
  transform: translateY(-2px);
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-btn-label {
  font-weight: 700;
  font-size: 16px;
}

.download-btn-meta {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-purple-dim);
  border: 1px solid rgba(124, 91, 245, 0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-purple-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  display: inline;
}

.stat-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 2px;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Floating Orbs */
.hero-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.float-orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(124, 91, 245, 0.08);
  top: 10%;
  left: -10%;
  animation: floatOrb1 20s ease-in-out infinite;
}

.float-orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(74, 158, 255, 0.06);
  top: 60%;
  right: -5%;
  animation: floatOrb2 25s ease-in-out infinite;
}

.float-orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(192, 132, 252, 0.06);
  bottom: 10%;
  left: 30%;
  animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.15); }
  66% { transform: translate(40px, -60px) scale(0.95); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.2); }
}

/* === Sections === */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-purple-dim);
  color: var(--accent-purple-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 91, 245, 0.3), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--highlight {
  border-color: rgba(124, 91, 245, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon--purple { background: rgba(124, 91, 245, 0.15); color: var(--accent-purple-light); }
.feature-icon--blue { background: rgba(74, 158, 255, 0.15); color: var(--accent-blue); }
.feature-icon--green { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.feature-icon--amber { background: rgba(251, 191, 36, 0.15); color: var(--accent-amber); }
.feature-icon--pink { background: rgba(244, 114, 182, 0.15); color: var(--accent-pink); }
.feature-icon--cyan { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-white);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tier {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.feature-tier--pro {
  background: rgba(124, 91, 245, 0.15);
  color: var(--accent-purple-light);
}

.feature-tier--max {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-amber);
}

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

.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-base);
}

.perf-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.perf-visual {
  margin-bottom: 24px;
}

.perf-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perf-bar-label {
  font-size: 12px;
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
  text-align: right;
}

.perf-bar {
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  min-width: fit-content;
}

.perf-bar.animated {
  width: var(--bar-width);
}

.perf-bar--wxbox {
  background: var(--gradient-primary);
  color: white;
}

.perf-bar--electron {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.perf-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.perf-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.perf-desc strong {
  color: var(--accent-purple-light);
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-base);
  position: relative;
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: rgba(124, 91, 245, 0.4);
  background: linear-gradient(180deg, rgba(124, 91, 245, 0.08) 0%, var(--bg-card) 40%);
  box-shadow: var(--shadow-glow);
}

.price-card--featured:hover {
  border-color: rgba(124, 91, 245, 0.6);
  box-shadow: 0 0 80px rgba(124, 91, 245, 0.2);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.price-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.price-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-amount {
  margin: 12px 0 4px;
}

.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.price-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-green);
}

.price-features li.highlight {
  color: var(--text-white);
  font-weight: 500;
}

.price-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.price-features li.disabled svg {
  color: var(--text-muted);
}

/* === Changelog === */
.changelog-timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-purple), var(--border-color) 80%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-purple);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--border-hover);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-version {
  padding: 2px 10px;
  background: var(--accent-purple-dim);
  color: var(--accent-purple-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Download === */
.download {
  padding: 80px 0 120px;
}

.download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(124, 91, 245, 0.2);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 91, 245, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: breatheGlow 6s ease-in-out infinite;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.download-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.download-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Platform unsupported state */
.download-unsupported {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
}

.download-unsupported.visible {
  display: flex;
}

.unsupported-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.unsupported-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.unsupported-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */

/* Tablet landscape */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-grid .perf-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-grid {
    gap: 16px;
  }
  .footer-links {
    gap: 40px;
  }
}

/* Tablet portrait & large phones */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: flex;
  }
  .nav-btn {
    display: none;
  }
  .navbar {
    padding: 12px 0;
  }
  .nav-container {
    padding: 0 16px;
  }
  .mobile-menu {
    padding: 72px 16px 32px;
  }
  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-desc {
    font-size: 16px;
    padding: 0 8px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 5px 14px;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-value {
    font-size: 32px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-card {
    padding: 24px;
  }
  .perf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .perf-grid .perf-card:last-child {
    max-width: 100%;
    grid-column: auto;
    margin: 0;
  }
  .perf-card {
    padding: 24px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  .price-card {
    padding: 28px 24px;
  }
  .section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-desc {
    font-size: 15px;
    padding: 0 8px;
  }
  .changelog-timeline {
    padding-left: 28px;
  }
  .timeline-content {
    padding: 20px;
  }
  .timeline-dot {
    left: -25px;
    width: 10px;
    height: 10px;
  }
  .download-card {
    padding: 48px 20px;
    border-radius: var(--radius-lg);
  }
  .download-title {
    font-size: 28px;
  }
  .download-desc {
    font-size: 15px;
  }
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
  .download-note {
    font-size: 12px;
    padding: 0 8px;
  }
  .footer {
    padding: 40px 0 32px;
  }
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  .footer-brand {
    max-width: 100%;
  }
  .footer-links {
    gap: 40px;
  }
  .footer-bottom {
    padding-top: 20px;
    text-align: center;
  }
  /* Reduce particle count via canvas for smaller screens - handled in JS */
  .ambient-glow--top {
    width: 600px;
    height: 400px;
  }
  .ambient-glow--bottom {
    width: 500px;
    height: 500px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .hero {
    padding: 90px 14px 48px;
  }
  .hero-title {
    font-size: 34px;
    margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
  }
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .stat-value {
    font-size: 28px;
  }
  .section {
    padding: 48px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .section-tag {
    font-size: 11px;
    padding: 3px 12px;
  }
  .section-desc {
    font-size: 14px;
  }
  .feature-card {
    padding: 20px;
  }
  .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }
  .feature-title {
    font-size: 16px;
  }
  .feature-desc {
    font-size: 13px;
  }
  .perf-card {
    padding: 20px;
  }
  .perf-bar-label {
    width: 50px;
    font-size: 11px;
  }
  .perf-bar {
    height: 28px;
    font-size: 11px;
    padding: 0 8px;
  }
  .perf-title {
    font-size: 16px;
  }
  .perf-desc {
    font-size: 13px;
  }
  .pricing-grid {
    max-width: 100%;
  }
  .price-card {
    padding: 24px 20px;
  }
  .price-value {
    font-size: 40px;
  }
  .price-features li {
    font-size: 13px;
  }
  .timeline-content {
    padding: 16px;
  }
  .timeline-content h4 {
    font-size: 15px;
  }
  .timeline-content p {
    font-size: 13px;
  }
  .timeline-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .download-card {
    padding: 36px 16px;
  }
  .download-title {
    font-size: 24px;
  }
  .download-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .footer-links {
    flex-direction: row;
    gap: 40px;
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }
  .footer-col a {
    font-size: 13px;
    margin-bottom: 8px;
  }
  /* Touch-friendly: larger hit areas */
  .nav-menu-btn {
    padding: 8px;
  }
  .nav-menu-btn span {
    width: 24px;
    height: 2.5px;
  }
  .mobile-link {
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* Extra small phones (SE, Mini) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .section-title {
    font-size: 22px;
  }
  .stat-value {
    font-size: 24px;
  }
  .price-value {
    font-size: 36px;
  }
}

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .footer-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .mobile-menu {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
  .feature-card:hover::before {
    opacity: 0;
  }
  .perf-card:hover {
    transform: none;
  }
  .price-card:hover {
    transform: none;
  }
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-download:hover {
    transform: none;
  }
  .nav-btn:hover {
    transform: none;
  }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 24px 40px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    margin-bottom: 20px;
  }
  .hero-actions {
    margin-bottom: 24px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* === Scroll Reveal Animations (using @keyframes to avoid hover transition conflicts) === */

/* Keyframe definitions */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealUpScale {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealFadeScale {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes revealSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-40px) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* Base: all scroll-animated elements start invisible */
.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

/* When visible: play the animation (animation-fill-mode: both keeps final state) */
.animate-on-scroll.visible {
  animation: revealUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger, 0ms);
}

/* Hero elements - dramatic entrance */
.hero .animate-on-scroll.visible {
  animation: revealFadeScale 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger, 0ms);
}

/* Section headers - slide from left */
.section-header.animate-on-scroll.visible {
  animation: revealUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Cards in grids - scale up entrance */
.features-grid .animate-on-scroll.visible,
.perf-grid .animate-on-scroll.visible,
.pricing-grid .animate-on-scroll.visible {
  animation: revealUpScale 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger, 0ms);
}

/* Timeline items - slide from left */
.changelog-timeline .animate-on-scroll.visible {
  animation: revealSlideRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger, 0ms);
}

/* Download card - big dramatic entrance */
.download-card.animate-on-scroll.visible {
  animation: revealFadeScale 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === Selection === */
::selection {
  background: rgba(124, 91, 245, 0.3);
  color: var(--text-white);
}

/* Prevent horizontal overflow on all devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Logo icon styling */
.logo-icon img {
  border-radius: 8px;
  object-fit: contain;
}
