/* xDownloader Stealward-Inspired Warm Minimalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette (Warm Sand & Off-White Aesthetics) */
  --bg-page: #F8F7F4;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3F0EA;
  --bg-dark-surface: #1E1D1B;
  
  /* Typography Colors */
  --text-main: #1C1B1A;
  --text-secondary: #5C5A54;
  --text-muted: #8C887E;
  --text-inverse: #F8F7F4;

  /* Plugin Primary Theme Accent Colors (Emerald Green) */
  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-emerald-light: rgba(5, 150, 105, 0.08);
  --accent-emerald-glow: rgba(5, 150, 105, 0.25);
  
  /* Platform & Payment Brands */
  --wechat-brand: #07C160;
  --alipay-brand: #1677FF;
  --x-brand: #0F1419;
  --ig-brand: #E1306C;
  --xhs-brand: #FF2442;

  /* Hairlines & Shadows */
  --hairline: rgba(28, 27, 26, 0.08);
  --hairline-strong: rgba(28, 27, 26, 0.16);
  
  --shadow-sm: 0 2px 8px rgba(28, 27, 26, 0.03);
  --shadow-card: 0 12px 32px rgba(28, 27, 26, 0.04), 0 2px 6px rgba(28, 27, 26, 0.02);
  --shadow-hover: 0 20px 48px rgba(28, 27, 26, 0.08), 0 4px 12px rgba(28, 27, 26, 0.04);
  --shadow-btn: 0 6px 18px rgba(5, 150, 105, 0.28);
  
  /* Fonts */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;
  
  /* Timing */
  --dur-fast: 0.15s;
  --dur-norm: 0.3s;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-page);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Ambient Glow */
.ambient-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.orb-1 {
  top: -15%; left: 15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.15), transparent 70%);
}

.orb-2 {
  top: 45%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74, 107, 78, 0.12), transparent 70%);
}

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.97) translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-up.active, .reveal-scale.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Floating Navbar */
.navbar {
  position: fixed;
  top: 20px; left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.nav-content {
  pointer-events: auto;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(28, 27, 26, 0.06);
}

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

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: color var(--dur-fast) ease;
}

.nav-link:hover {
  color: var(--accent-emerald);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(28, 27, 26, 0.04);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.lang-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--accent-emerald-hover);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-norm) var(--ease-out);
  border: none;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--accent-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38);
}

.btn-large {
  padding: 16px 44px;
  font-size: 1.08rem;
}

/* Editorial Hero Section */
.hero-wrapper {
  padding-top: 150px;
  padding-bottom: 70px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 22px;
}

/* Unified Accent Platform Icons Row */
.hero-platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0 auto 34px;
  color: var(--accent-emerald);
}

.hero-platform-icon-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  opacity: 0.72;
  cursor: default;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.hero-platform-icon-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-emerald);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-divider {
  color: var(--hairline-strong);
}

/* Common Section Layout with Scroll Margin Offset */
.section-wrapper {
  padding: 80px 0;
  scroll-margin-top: 100px;
}

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

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-title em {
  font-style: italic;
  color: var(--accent-emerald);
  font-weight: 400;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================
   Next-Gen Dynamic Ambient Showcase (Pure Black Capsule Indicators)
======================================================== */
.showcase-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 56px;
  position: relative;
  z-index: 10;
}

.showcase-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.showcase-tab {
  position: relative;
  display: block;
  width: 32px;
  height: 3px;
  min-height: 3px;
  max-height: 3px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(28, 27, 26, 0.14);
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.showcase-tab:hover {
  background: rgba(28, 27, 26, 0.3);
}

.showcase-tab.active {
  width: 56px;
  height: 3px;
  min-height: 3px;
  max-height: 3px;
  background: rgba(28, 27, 26, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.tab-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--text-main);
  z-index: 1;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Ambient Stage & Solid Mockup Frame (Full Width Matching Container) */
.ambient-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0 10px;
  display: flex;
  justify-content: center;
}

.ambient-backlight {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 85%;
  max-width: 920px;
  height: 480px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.35) 0%, rgba(5, 150, 105, 0.05) 55%, transparent 75%);
  filter: blur(65px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.ambient-device-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  background: #080b10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 90px -20px rgba(0, 0, 0, 0.38),
              0 12px 36px -8px rgba(0, 0, 0, 0.22),
              0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.ambient-device-frame:hover {
  box-shadow: 0 36px 95px -18px rgba(0, 0, 0, 0.42),
              0 14px 38px -6px rgba(0, 0, 0, 0.24),
              0 0 0 1px rgba(255, 255, 255, 0.15);
}

.glass-specular-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Slides Stack */
.ambient-slides-stack {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #080b10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient-slide {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ambient-slide.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.ambient-slide-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
}

/* Stage Navigation Floating Arrows */
.stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 20, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ambient-device-frame:hover .stage-nav-arrow {
  opacity: 0.85;
}

.stage-nav-arrow:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1);
  background: rgba(20, 26, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.stage-nav-prev { left: 16px; }
.stage-nav-next { right: 16px; }

@media (max-width: 960px) {
  .ambient-slides-stack { height: 440px; }
}

@media (max-width: 768px) {
  .stage-nav-arrow { opacity: 0.85; }
  .ambient-slides-stack { height: 360px; }
  .showcase-tabs { gap: 4px; padding: 4px; }
  .showcase-tab { padding: 6px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .ambient-slides-stack { height: 280px; }
}

/* Redesigned Bespoke Payment QR Codes (Buy Me a Coffee) */
.coffee-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #F2EFE8 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.coffee-card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.payment-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(28, 27, 26, 0.04);
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
}

.payment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(28, 27, 26, 0.08);
  border-color: rgba(28, 27, 26, 0.24);
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-main);
}

.payment-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.qr-frame {
  width: 220px;
  height: 290px;
  margin: 0 auto 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 12px;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform var(--dur-norm) ease, box-shadow var(--dur-norm) ease;
}

.payment-card:hover .qr-frame {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.payment-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Social Media Section */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 840px;
  margin: 0 auto;
}

.social-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--hairline-strong);
}

.social-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.social-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.social-info {
  flex: 1;
}

.social-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.social-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.social-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--dur-fast) ease;
}

.social-card.xhs .social-btn { background: var(--xhs-brand); color: #FFFFFF; }
.social-card.xhs .social-btn:hover { background: #E01E37; transform: translateY(-1px); }

.social-card.twitter .social-btn { background: var(--x-brand); color: #FFFFFF; }
.social-card.twitter .social-btn:hover { background: #242D35; transform: translateY(-1px); }

/* Mac Apps Showcase Section */
.mac-apps-section {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.mac-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.mac-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mac-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--hairline-strong);
}

.app-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  align-self: flex-start;
}

.app-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 10px;
}

.app-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.app-feature-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.app-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: var(--text-inverse);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--dur-fast) ease;
  width: 100%;
}

.app-link-btn:hover {
  background: var(--accent-emerald);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}

/* Installation Guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.step-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-page);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-main);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--accent-emerald);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
}

.copy-btn:hover {
  background: rgba(5, 150, 105, 0.1);
}

.step-download-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-download-link:hover { text-decoration: underline; }

/* ========================================================
   MODULE: Testimonials Dual Marquee (Clean Light Social Wall)
======================================================== */
.testimonials-section {
  overflow: hidden;
  padding-bottom: 60px;
}

.testimonials-marquee-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonials-marquee-row {
  display: flex;
  overflow: visible;
  user-select: none;
  width: 100%;
  padding: 6px 0;
}

.testimonials-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 0;
}

/* Row 1: Leftward infinite motion */
.marquee-left-track .testimonials-track {
  animation: marqueeLeft 36s linear infinite;
}

/* Row 2: Rightward infinite motion */
.marquee-right-track .testimonials-track {
  animation: marqueeRight 36s linear infinite;
}

.testimonials-marquee-row:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Testimonial Card (Matches Site Aesthetic & Reference Layout) */
.testimonial-card {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 118px;
  min-height: 118px;
  max-height: 118px;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.testimonial-card:hover {
  background: #ffffff;
  border-color: rgba(28, 27, 26, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  z-index: 2;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(28, 27, 26, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-handle {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.2;
  font-family: var(--font-sans);
}

.testimonial-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Footer */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links li {
  white-space: nowrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  white-space: nowrap;
}

.footer-links a:hover { color: var(--accent-emerald); }

/* Privacy Page */
.page-content { padding-top: 140px; padding-bottom: 80px; }
.privacy-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.privacy-card h1 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 8px; }
.privacy-card h2 { font-family: var(--font-serif); font-size: 1.4rem; margin: 28px 0 12px; }
.privacy-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.privacy-card ul { margin-left: 20px; color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; }
/* CHANGELOG Section & Page Styling */
.changelog-page-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.changelog-page-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-bottom: 16px;
  transition: transform var(--dur-fast) ease;
}

.back-link:hover {
  transform: translateX(-3px);
  text-decoration: underline;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.changelog-timeline {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding-left: 28px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 30px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, rgba(28, 27, 26, 0.12) 100%);
  border-radius: 2px;
}

.changelog-item {
  position: relative;
  margin-bottom: 32px;
}

.changelog-item:last-child {
  margin-bottom: 0;
}

.changelog-node {
  position: absolute;
  top: 26px;
  left: -27px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--text-muted);
  box-shadow: 0 0 0 4px var(--bg-page);
  z-index: 2;
  transition: all var(--dur-norm) ease;
}

.changelog-item.latest .changelog-node {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px var(--bg-page), 0 0 12px var(--accent-emerald-glow);
}

.changelog-card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out), border-color var(--dur-norm) ease;
}

.changelog-item.latest .changelog-card {
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.06), var(--shadow-card);
}

.changelog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--hairline-strong);
}

.changelog-item.latest .changelog-card:hover {
  border-color: var(--accent-emerald);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.version-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.version-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.latest-pill {
  background: var(--accent-emerald);
  color: #FFFFFF;
}

.major-pill {
  background: rgba(22, 119, 255, 0.1);
  color: #1677FF;
}

.fix-pill {
  background: rgba(217, 119, 6, 0.1);
  color: #D97706;
}

.feature-pill {
  background: rgba(147, 51, 234, 0.1);
  color: #9333EA;
}

.init-pill {
  background: rgba(107, 114, 128, 0.12);
  color: #4B5563;
}

.version-date {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.version-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast) ease;
}

.version-dl-btn:hover {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  transform: translateY(-1px);
}

.changelog-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.changelog-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.changelog-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

/* ========================================================
   Mobile & Responsive Adaptations (1024px, 860px, 768px, 540px, 380px)
======================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ambient-slides-stack { height: 460px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .coffee-card-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .social-grid, .mac-apps-grid { grid-template-columns: 1fr; gap: 20px; }
  .ambient-slides-stack { height: 400px; }
  .section-wrapper { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 2.1rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .navbar { top: 12px; }
  .nav-content { padding: 5px 6px 5px 14px; }
  .nav-right { gap: 8px; }
  .nav-btn { height: 34px; padding: 0 12px; font-size: 0.8rem; }
  .lang-btn { padding: 3px 8px; font-size: 0.72rem; }
  
  .hero-wrapper {
    padding-top: 100px;
    padding-bottom: 36px;
  }
  .hero-title {
    font-size: 2.35rem;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 6px;
  }
  .hero-platform-icons {
    gap: 18px;
    margin: 0 auto 26px;
  }
  .hero-platform-icon-item svg {
    width: 20px;
    height: 20px;
  }
  .hero-cta {
    margin-bottom: 28px;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .version-meta {
    font-size: 0.78rem;
    gap: 8px 12px;
  }

  .ambient-slides-stack {
    height: 340px;
  }
  .ambient-device-frame {
    border-radius: 16px;
  }
  .ambient-backlight {
    width: 95%;
    height: 320px;
    filter: blur(45px);
  }
  .stage-nav-arrow {
    opacity: 0.85;
    width: 36px;
    height: 36px;
  }
  .stage-nav-prev { left: 10px; }
  .stage-nav-next { right: 10px; }

  /* Minimalist Capsule Indicators on Mobile */
  .showcase-tabs-wrapper {
    margin-top: 20px;
    margin-bottom: 48px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .showcase-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    background: transparent;
  }
  .showcase-tab {
    width: 26px;
    height: 3px;
    min-height: 3px;
    max-height: 3px;
    flex: none;
  }
  .showcase-tab.active {
    width: 48px;
    height: 3px;
    min-height: 3px;
    max-height: 3px;
    flex: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card, .step-card {
    padding: 24px 20px;
  }
  .testimonials-section { padding: 60px 0 68px; }
  .testimonials-header { margin-bottom: 28px; }
  .testimonials-title { font-size: 1.8rem; }
  .testimonials-subtitle { font-size: 0.9rem; }
  .testimonials-marquee-wrapper { gap: 12px; padding: 4px 0; }
  .testimonials-track { gap: 12px; }
  .testimonial-card {
    width: 275px;
    min-width: 275px;
    padding: 14px 16px;
    border-radius: 10px;
    gap: 8px;
  }
  .avatar-img { width: 30px; height: 30px; }
  .user-name { font-size: 0.82rem; }
  .user-handle { font-size: 0.7rem; }
  .testimonial-text { font-size: 0.8rem; line-height: 1.45; }

  .coffee-payment-box {
    padding: 24px 18px;
  }
  .qr-frame {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .hero-platform-icons {
    gap: 14px;
    margin: 0 auto 22px;
  }
  .hero-platform-icon-item svg {
    width: 18px;
    height: 18px;
  }
  .version-meta {
    flex-direction: column;
    gap: 5px;
  }
  .version-meta .meta-divider {
    display: none;
  }

  .ambient-slides-stack {
    height: 280px;
  }
  .showcase-tabs-wrapper {
    margin-top: 18px;
    margin-bottom: 42px;
  }
  .showcase-tabs {
    gap: 6px;
    padding: 0;
  }
  .showcase-tab {
    width: 24px;
    height: 2.5px;
    min-height: 2.5px;
    max-height: 2.5px;
    flex: none;
  }
  .showcase-tab.active {
    width: 44px;
    height: 2.5px;
    min-height: 2.5px;
    max-height: 2.5px;
    flex: none;
  }

  .social-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }
  .social-card-btn {
    width: 100%;
    justify-content: center;
  }
  .mac-app-card {
    padding: 20px 18px;
  }

  /* Clean Centered Footer on Mobile */
  .footer {
    padding: 36px 0 24px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer-brand p {
    font-size: 0.8rem;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 16px;
    padding: 0;
    margin: 0;
    max-width: 360px;
  }
  .footer-links li {
    display: inline-flex;
    white-space: nowrap;
  }
  .footer-links a {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .changelog-timeline { padding-left: 18px; }
  .changelog-timeline::before { left: 4px; }
  .changelog-node { left: -20px; width: 10px; height: 10px; }
  .changelog-card { padding: 18px 14px; }
  .changelog-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .logo { font-size: 0.88rem; gap: 6px; }
  .logo-img { width: 22px; height: 22px; }
  .nav-btn { padding: 0 9px; font-size: 0.74rem; height: 30px; }
  .lang-btn { padding: 2px 6px; font-size: 0.68rem; }
  .hero-title { font-size: 1.7rem; }
  .ambient-slides-stack { height: 230px; }
  .stage-nav-arrow { width: 30px; height: 30px; }
  .showcase-tabs-wrapper {
    margin-top: 16px;
    margin-bottom: 36px;
  }
  .showcase-tabs {
    gap: 5px;
    padding: 0;
  }
  .showcase-tab {
    width: 20px;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    flex: none;
  }
  .showcase-tab.active {
    width: 36px;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    flex: none;
  }
  .testimonial-card {
    width: 250px;
    min-width: 250px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .testimonial-text {
    font-size: 0.78rem;
  }
  .footer-links {
    gap: 8px 12px;
    font-size: 0.8rem;
  }
}

