/* =============================================
   Clash Official Chinese Website — Main Stylesheet
   ============================================= */

/* ===== Variables ===== */
:root {
  --green:        #16a34a;
  --green-light:  #22c55e;
  --green-pale:   #dcfce7;
  --green-tint:   #f0fdf4;
  --green-mid:    #bbf7d0;
  --green-dark:   #14532d;
  --emerald:      #10b981;

  --bg:           #f8fdf9;
  --bg-white:     #ffffff;
  --bg-section:   #f0fdf4;

  --text:         #111827;
  --text-2:       #374151;
  --text-3:       #6b7280;
  --text-4:       #9ca3af;

  --border:       #e5e7eb;
  --border-green: #bbf7d0;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(22,163,74,0.13);

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    20px;
  --nav-height:   64px;
  --font:         'Noto Sans SC', 'Inter', -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: env(safe-area-inset-top, 0, 0) max(5%, env(safe-area-inset-right)) 0 max(5%, env(safe-area-inset-left));
  transition: background 0.3s, box-shadow 0.3s;
  background: rgba(248,253,249,0.7);
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 36px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  background: var(--green-tint);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-3);
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}

.lang-switcher:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
  color: var(--green-dark);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;   /* visual gap without breaking hover */
  background: transparent;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.lang-dropdown-inner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 128px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown { display: flex; }

.lang-option {
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover,
.lang-option.current {
  background: var(--green-tint);
  color: var(--green-dark);
}

.nav-dl-btn {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}

.nav-dl-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-3);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s;
  transform-origin: center;
}

.hamburger.open {
  border-color: var(--green);
  background: var(--green-tint);
}

.hamburger.open span {
  background: var(--green-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 99;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 28px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { display: flex; }

.mobile-nav > a {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 24px;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
  width: 100%;
  text-align: center;
  max-width: 280px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav > a:hover {
  color: var(--green-dark);
  background: var(--green-tint);
}

.mobile-nav-lang {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.mobile-nav-lang-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-4);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.mobile-nav-lang-label i { color: var(--green); font-size: 0.88rem; }

.mobile-nav-lang-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mobile-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-lang-link:hover {
  border-color: var(--border-green);
  background: var(--green-tint);
  color: var(--green-dark);
}

.mobile-lang-link.current {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
}

.lang-dropdown .lang-option {
  display: block;
  text-decoration: none;
}

/* ===== Common Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(22,163,74,0.28);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,163,74,0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  background: var(--bg-white);
  color: var(--text-2);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--border);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ===== Section Base ===== */
section { padding: 88px 5%; }

.section-inner { max-width: 1180px; margin: 0 auto; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 540px;
  line-height: 1.75;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 56px 5% 36px;
}

.footer-inner { max-width: 1180px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
  color: var(--text);
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 250px;
}

.footer-social { display: flex; gap: 9px; }

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-3);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.social-link:hover {
  background: var(--green-pale);
  color: var(--green);
  border-color: var(--border-green);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul a {
  font-size: 0.86rem;
  color: var(--text-3);
  transition: color 0.18s;
}

.footer-col ul a:hover { color: var(--green); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy { font-size: 0.8rem; color: var(--text-4); }
.footer-lang { display: flex; align-items: center; gap: 8px; }
.footer-lang-links { display: flex; gap: 4px; }

.footer-lang-link {
  font-size: 0.78rem;
  color: var(--text-4);
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.footer-lang-link:hover,
.footer-lang-link.current {
  background: var(--green-tint);
  color: var(--green);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   index.html — Page-specific styles
   ============================================= */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 5% 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 700px; height: 500px;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(34,197,94,0.14) 0%, transparent 70%);
}

.hero-blob-2 {
  width: 400px; height: 400px;
  bottom: 5%; right: -5%;
  background: radial-gradient(ellipse, rgba(16,185,129,0.1) 0%, transparent 70%);
}

.hero-blob-3 {
  width: 300px; height: 300px;
  bottom: 0; left: -5%;
  background: radial-gradient(ellipse, rgba(134,239,172,0.12) 0%, transparent 70%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(22,163,74,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-logo-img {
  width: 88px; height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(22,163,74,0.2));
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  border: 1.5px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  margin-bottom: 26px;
}

.hero-badge i { font-size: 0.75rem; }

.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-title .clash-word {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-3);
  max-width: 560px;
  margin: 0 auto 14px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-platform-label {
  font-size: 0.8rem;
  color: var(--text-4);
  margin-right: 4px;
}

.hero-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}

.hero-platform-pill:hover {
  border-color: var(--border-green);
  background: var(--green-tint);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.hero-platform-pill i { font-size: 0.9rem; }
.hero-platform-pill:nth-child(2) i { color: #2563eb; }
.hero-platform-pill:nth-child(3) i { color: #374151; }
.hero-platform-pill:nth-child(4) i { color: #16a34a; }
.hero-platform-pill:nth-child(5) i { color: #7c3aed; }
.hero-platform-pill:nth-child(6) i { color: #ea580c; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat-num span { color: var(--green); }

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-4);
  margin-top: 2px;
}

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

/* Hero animation stagger */
.hero-content > * { animation: fadeInUp 0.65s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.00s; }
.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.15s; }
.hero-content > *:nth-child(4) { animation-delay: 0.22s; }
.hero-content > *:nth-child(5) { animation-delay: 0.29s; }
.hero-content > *:nth-child(6) { animation-delay: 0.36s; }
.hero-content > *:nth-child(7) { animation-delay: 0.42s; }

/* Features */
.features {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header { text-align: center; margin-bottom: 56px; }
.features-header .section-desc { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

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

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card:nth-child(1) .feature-icon { background: #dcfce7; color: #16a34a; }
.feature-card:nth-child(2) .feature-icon { background: #d1fae5; color: #059669; }
.feature-card:nth-child(3) .feature-icon { background: #ecfdf5; color: #10b981; }
.feature-card:nth-child(4) .feature-icon { background: #f0fdf4; color: #22c55e; }
.feature-card:nth-child(5) .feature-icon { background: #dcfce7; color: #15803d; }
.feature-card:nth-child(6) .feature-icon { background: #d1fae5; color: #047857; }

.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.feature-desc  { font-size: 0.88rem; color: var(--text-3); line-height: 1.7; }

/* Platforms section (index) */
.platforms { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.platforms-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.platform-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-lg);
}

.platform-icon { font-size: 2rem; line-height: 1; }
.platform-card:nth-child(1) .platform-icon { color: #2563eb; }
.platform-card:nth-child(2) .platform-icon { color: #374151; }
.platform-card:nth-child(3) .platform-icon { color: #16a34a; }
.platform-card:nth-child(4) .platform-icon { color: #7c3aed; }
.platform-card:nth-child(5) .platform-icon { color: #ea580c; }

.platform-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }

.platform-badge {
  font-size: 0.72rem;
  color: var(--text-4);
  background: var(--bg);
  padding: 2px 9px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.platform-dl-hint {
  font-size: 0.78rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Trust */
.trust { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-section);
  border: 1.5px solid var(--border-green);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-card-icon { font-size: 1.3rem; margin-bottom: 10px; color: var(--green); }

.stat-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-card-label { font-size: 0.8rem; color: var(--text-3); }

.trust-points { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.trust-point { display: flex; align-items: flex-start; gap: 11px; }

.trust-point-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.trust-point-text { font-size: 0.88rem; color: var(--text-3); line-height: 1.65; }
.trust-point-text strong { color: var(--text-2); font-weight: 600; }

/* CTA */
.cta-section { padding: 80px 5%; background: var(--bg-section); border-top: 1px solid var(--border); }
.cta-inner { max-width: 1180px; margin: 0 auto; }

.cta-box {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 60%, #ecfdf5 100%);
  border: 1.5px solid var(--border-green);
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-dark);
  margin-bottom: 10px;
  position: relative;
}

.cta-box p {
  color: #166534;
  font-size: 1rem;
  margin-bottom: 30px;
  opacity: 0.85;
  position: relative;
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* =============================================
   download.html — Page-specific styles
   ============================================= */

/* Page Hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 52px) 5% 52px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-blob {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Page hero animation stagger */
.page-hero-inner > * { animation: fadeInUp 0.6s ease both; }
.page-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.page-hero-inner > *:nth-child(3) { animation-delay: 0.19s; }
.page-hero-inner > *:nth-child(4) { animation-delay: 0.26s; }

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 12px;
}

.page-title span {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Platform quick nav (download page) */
.platform-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

@media (hover: hover) {
  .platform-nav-item:hover:not(.active) {
    border-color: var(--green);
    background: var(--green-tint);
    color: var(--green-dark);
    transform: translateY(-1px);
  }
}

.platform-nav-item.active {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(22,163,74,0.18);
}

.platform-nav-item i { font-size: 1rem; }
.platform-nav-item:nth-child(1) i { color: #2563eb; }
.platform-nav-item:nth-child(2) i { color: #374151; }
.platform-nav-item:nth-child(3) i { color: #16a34a; }
.platform-nav-item:nth-child(4) i { color: #7c3aed; }
.platform-nav-item:nth-child(5) i { color: #ea580c; }
.platform-nav-item:nth-child(6) i { color: #059669; }

/* =============================================
   guide.html — Tutorial page
   ============================================= */

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .guide-nav-item:hover:not(.active) {
    border-color: var(--green);
    background: var(--green-tint);
    color: var(--green-dark);
    transform: translateY(-1px);
  }
}

.guide-nav-item.active {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(22,163,74,0.18);
}

.guide-nav-item i { font-size: 0.95rem; }

.guide-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5% 48px;
}

.guide-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.guide-section:last-child { border-bottom: none; }

.guide-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.guide-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--bg-section);
  border: 1.5px solid var(--border-green);
  color: var(--green);
}

.guide-section-icon.windows { color: #2563eb; }
.guide-section-icon.macos   { color: #374151; }
.guide-section-icon.android { color: #16a34a; }
.guide-section-icon.ios     { color: #7c3aed; }
.guide-section-icon.linux   { color: #ea580c; }

.guide-section-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.guide-section-header p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.6;
}

.guide-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.guide-step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.guide-step:last-child { border-bottom: none; }

.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1.5px solid var(--border-green);
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.guide-step-body p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.75;
}

.guide-step-body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-step-body code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--text-2);
}

.guide-step-body strong { color: var(--text-2); }

.guide-tip {
  background: var(--bg-section);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guide-tip i {
  color: var(--green);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.guide-tip p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.65;
}

.guide-tip a {
  color: var(--green);
  font-weight: 600;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.guide-info-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-info-card:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-md);
}

.guide-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.guide-info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.guide-info-card p {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.65;
}

.guide-cta-section { padding-top: 40px; }

/* =============================================
   faq.html — FAQ page
   ============================================= */

.faq-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5% 48px;
}

.faq-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.faq-section:last-child { border-bottom: none; }

.faq-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.faq-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--bg-section);
  border: 1.5px solid var(--border-green);
  color: var(--green);
}

.faq-section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.faq-section-header p {
  font-size: 0.88rem;
  color: var(--text-3);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.faq-item:hover {
  border-color: var(--border-green);
}

.faq-item[open] {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-q-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-chevron {
  color: var(--text-4);
  font-size: 0.8rem;
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.faq-answer {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--green-tint) 0%, var(--bg-white) 100%);
}

.faq-answer-inner {
  padding-top: 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 12px;
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer strong { color: var(--text-2); }

.faq-answer code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--text-2);
}

.faq-cta-section { padding-top: 40px; }

/* =============================================
   blog/ — Blog list & article cards
   ============================================= */

.blog-hero .page-desc {
  margin-bottom: 24px;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.blog-filter-item {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: var(--shadow-sm);
}

.blog-filter-item:hover {
  border-color: var(--border-green);
  background: var(--green-tint);
  color: var(--green-dark);
}

.blog-filter-item.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22,163,74,0.28);
}

.blog-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 5% 56px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.blog-card:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(22,163,74,0.25);
}

.blog-card-icon i {
  display: block;
  line-height: 1;
}

.blog-card-body {
  flex: 1;
  min-width: 0;
}

.blog-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.blog-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-4);
}

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

.blog-card-meta i { color: var(--green); font-size: 0.78rem; }

.blog-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  flex-shrink: 0;
  margin-top: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-card:hover .blog-card-arrow {
  background: var(--green-pale);
  border-color: var(--border-green);
  color: var(--green);
}

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-3);
}

.blog-empty i {
  font-size: 2rem;
  color: var(--text-4);
  margin-bottom: 12px;
}

.blog-empty p { font-size: 0.92rem; }

.blog-cta-section { padding-top: 40px; }

/* Blog article pages */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 5%;
}

.post-hero {
  padding: calc(var(--nav-height) + 40px) 5% 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.post-hero .container { padding: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-4);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-3);
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--green); }

.breadcrumb .sep { opacity: 0.45; }

.breadcrumb .current {
  color: var(--text-2);
  font-weight: 600;
}

.post-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.post-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-4);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta i { color: var(--green); font-size: 0.82rem; }

.post-wrap {
  padding: 40px 5% 64px;
}

.post-body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.85;
}

.post-body p { margin-bottom: 16px; }

.post-body h2 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.post-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.post-body ul,
.post-body ol {
  margin: 12px 0 16px;
  padding-left: 1.35rem;
}

.post-body li {
  margin-bottom: 8px;
  color: var(--text-3);
  line-height: 1.75;
}

.post-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-section);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-3);
  font-size: 0.92rem;
}

.post-body code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--text-2);
}

.post-body pre {
  margin: 16px 0;
  padding: 18px 20px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.65;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.post-body th {
  background: var(--bg-section);
  font-weight: 700;
  color: var(--text);
}

.post-body td { color: var(--text-3); }

.post-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.post-table-scroll table {
  margin: 0;
  border: none;
}

.post-body strong { color: var(--text); }

.post-body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-download-cta {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-green);
  background: linear-gradient(135deg, #ecfdf5 0%, var(--green-tint) 45%, #fff 100%);
  box-shadow: var(--shadow-md);
}

.blog-download-cta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  position: relative;
}

.blog-download-cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.blog-download-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--green-light) 0%, var(--green) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(22,163,74,0.35);
  position: relative;
  z-index: 1;
}

.blog-download-cta-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.blog-download-cta-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-download-cta-body p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 18px;
}

.blog-download-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-download-cta-btns .btn-primary,
.blog-download-cta-btns .btn-secondary {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.post-body .blog-download-cta a.btn-primary {
  color: #fff;
  text-decoration: none;
}

.post-body .blog-download-cta a.btn-primary:hover {
  color: #fff;
}

.post-body .blog-download-cta a.btn-secondary {
  color: var(--text-2);
  text-decoration: none;
  background: var(--bg-white);
}

.post-body .blog-download-cta a.btn-secondary:hover {
  color: var(--text);
}

/* Floating download card (article pages) */
.blog-download-float-wrap {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 300px;
  max-width: calc(100vw - 40px);
}

.blog-download-float-card {
  display: block;
  position: relative;
  padding: 16px 18px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-green);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(22,163,74,0.22), 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-download-float-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 18px 48px rgba(22,163,74,0.32), 0 8px 20px rgba(0,0,0,0.08);
}

.blog-download-float-glow {
  position: absolute;
  top: -60%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,0.35) 0%, transparent 68%);
  pointer-events: none;
  animation: blog-float-glow 3s ease-in-out infinite;
}

@keyframes blog-float-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.blog-download-float-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.blog-download-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  padding: 4px 10px;
  border-radius: 100px;
}

.blog-download-float-badge i { font-size: 0.68rem; }

.blog-download-float-platforms {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-4);
  font-size: 0.82rem;
}

.blog-download-float-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.blog-download-float-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-light) 0%, var(--green) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(22,163,74,0.35);
}

.blog-download-float-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.blog-download-float-texts strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-download-float-texts span {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}

.blog-download-float-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: background 0.2s, gap 0.2s;
}

.blog-download-float-card:hover .blog-download-float-action {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  gap: 12px;
}

.blog-download-float-action i {
  font-size: 0.78rem;
  transition: transform 0.2s;
}

.blog-download-float-card:hover .blog-download-float-action i {
  transform: translateX(3px);
}

/* Compact cards inside article pages */
.post-wrap .blog-list {
  gap: 12px;
}

.post-wrap .blog-card {
  padding: 18px 20px;
}

.post-recent-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 32px;
}

.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.blog-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 88px;
}

.blog-post-nav-item:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-post-nav-next {
  text-align: right;
}

.blog-post-nav-empty {
  opacity: 0.55;
  pointer-events: none;
  background: var(--bg);
}

.blog-post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

.blog-post-nav-next .blog-post-nav-label {
  justify-content: flex-end;
}

.blog-post-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   Legal pages — privacy / terms / disclaimer
   ============================================= */

body.legal-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,197,94,0.07) 0%, transparent 55%),
    var(--bg);
}

.legal-hero {
  padding-bottom: 36px;
}

.legal-hero-blob-2 {
  left: 20%;
  top: -10%;
  width: 500px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.08) 0%, transparent 70%);
}

.legal-hero-inner-wide {
  max-width: 900px;
}

.legal-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--green-light) 0%, var(--green) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 12px 32px rgba(22,163,74,0.35);
}

.legal-hero .page-desc {
  margin-bottom: 20px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 28px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--text-3);
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.legal-meta i { color: var(--green); font-size: 0.82rem; }

.legal-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.legal-tab i { font-size: 0.95rem; color: var(--text-4); transition: color 0.2s; }

.legal-tab:hover {
  border-color: var(--border-green);
  background: var(--green-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.legal-tab:hover i { color: var(--green); }

.legal-tab.current {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,163,74,0.3);
  pointer-events: none;
}

.legal-tab.current i { color: rgba(255,255,255,0.9); }

.legal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5% 80px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-sidebar-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
}

.legal-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-sidebar-title i { color: var(--green); }

.legal-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-3);
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.legal-toc a:hover {
  background: var(--green-tint);
  color: var(--green-dark);
}

.legal-toc a.active {
  background: var(--green-pale);
  color: var(--green-dark);
  border-left-color: var(--green);
  font-weight: 700;
}

.legal-sidebar-note {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--green-tint) 100%);
  border: 1.5px solid var(--border-green);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.legal-sidebar-note p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.65;
}

.legal-sidebar-note strong {
  display: block;
  font-size: 0.84rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-hero-icon i,
.legal-summary-icon i,
.legal-block-icon i {
  display: block;
  line-height: 1;
}

.legal-summary {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ecfdf5 0%, var(--green-tint) 50%, #fff 100%);
  border: 1.5px solid var(--border-green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(22,163,74,0.3);
}

.legal-summary strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.legal-summary p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.75;
}

.legal-block {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal-block:hover {
  border-color: var(--border-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.legal-block-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: linear-gradient(90deg, var(--green-tint) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.legal-block-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.06em;
  font-family: 'Inter', ui-monospace, monospace;
  opacity: 0.7;
}

.legal-block-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--green-pale);
  border: 1px solid var(--border-green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.legal-block-top h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: 1;
}

.legal-block-content {
  padding: 24px 28px 28px;
}

.legal-block-content p {
  font-size: 0.92rem;
  color: var(--text-3);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-block-content p:last-child { margin-bottom: 0; }

.legal-block-content ul {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-block-content li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.7;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.legal-block-content li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 8px;
}

.legal-block-content a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-block-content strong { color: var(--text-2); }

/* Download sections */
.download-sections {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5% 80px;
  display: flex;
  flex-direction: column;
}

.dl-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.dl-section:last-child { border-bottom: none; }

.dl-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.dl-platform-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  background: var(--bg-section);
  border: 1.5px solid var(--border-green);
}

#windows .dl-platform-icon { color: #2563eb; }
#macos   .dl-platform-icon { color: #374151; }
#android .dl-platform-icon { color: #16a34a; }
#ios     .dl-platform-icon { color: #7c3aed; }
#linux   .dl-platform-icon { color: #ea580c; }

.dl-section-meta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.dl-section-meta p { font-size: 0.88rem; color: var(--text-3); }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dl-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-card:hover { border-color: var(--border-green); box-shadow: var(--shadow-lg); }

.dl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dl-card-name  { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 3px; }
.dl-card-desc  { font-size: 0.83rem; color: var(--text-3); line-height: 1.55; }

.dl-card-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-stable    { background: var(--green-pale); color: var(--green); border: 1px solid var(--border-green); }
.badge-recommend { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.dl-card-btns { display: flex; flex-direction: column; gap: 8px; }

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
}

.dl-btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(22,163,74,0.22); }
.dl-btn-primary:hover { background: #15803d; transform: translateY(-1px); }

.dl-btn-secondary { background: var(--bg); color: var(--text-2); border: 1.5px solid var(--border); }
.dl-btn-secondary:hover { background: var(--green-tint); border-color: var(--border-green); color: var(--green-dark); transform: translateY(-1px); }

.dl-btn-left  { display: flex; align-items: center; gap: 8px; }
.dl-btn-right { font-size: 0.75rem; opacity: 0.7; font-weight: 400; }

.dl-tips {
  background: var(--bg-section);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dl-tips i { color: var(--green); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }
.dl-tips-text { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; }
.dl-tips-text strong { color: var(--text-2); }
.dl-tips-text a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ios-store-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ios-store-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ios-store-card:hover { border-color: var(--border-green); box-shadow: var(--shadow-lg); }

.ios-store-icon { font-size: 2.2rem; line-height: 1; }
.ios-store-card:nth-child(1) .ios-store-icon { color: #7c3aed; }
.ios-store-card:nth-child(2) .ios-store-icon { color: #2563eb; }
.ios-store-card:nth-child(3) .ios-store-icon { color: #0891b2; }

.ios-store-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.ios-store-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.55; }

.ios-store-card .dl-client-website {
  font-size: 0.84rem;
  margin-top: 2px;
}

.ios-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s, transform 0.15s;
}

.ios-store-btn:hover { background: #15803d; transform: translateY(-1px); }

.note-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.note-banner i { color: #d97706; font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.note-banner p { font-size: 0.85rem; color: #78350f; line-height: 1.6; }
.note-banner strong { font-weight: 700; }

/* Download page — dynamic client cards */
.dl-loading,
.dl-loading-failed {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-3);
  font-size: 0.92rem;
}

.dl-loading i { color: var(--green); margin-right: 6px; }

.dl-card-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dl-client-version {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-green);
}

.ios-version { margin-bottom: 4px; }

.dl-card-req {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 8px;
  line-height: 1.55;
}

.dl-card-req i { color: var(--green); margin-right: 4px; }

.dl-client-website {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
}

.dl-client-website:hover { text-decoration: underline; }

.dl-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dl-feature-tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-section);
  border: 1px solid var(--border-green);
  color: var(--text-3);
}

.badge-archived {
  background: #f3f4f6;
  color: var(--text-3);
  border: 1px solid var(--border);
}

.dl-card--archived { opacity: 0.88; }

.dl-archived-banner { margin-bottom: 12px; }

.dl-core-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.dl-card--core {
  gap: 12px;
}

.dl-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1000px) {
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .trust-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }

  .legal-toc {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .legal-toc::-webkit-scrollbar { display: none; }

  .legal-toc a {
    white-space: nowrap;
    border-left: none;
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
  }

  .legal-toc a.active {
    border-color: var(--green);
    background: var(--green-pale);
  }

  .legal-sidebar-note { display: none; }
}

@media (max-width: 700px) {
  :root { --nav-height: 56px; }

  .nav-links, .nav-dl-btn, .lang-switcher { display: none; }
  .hamburger { display: flex; }

  section { padding: 56px 5%; }
  .cta-section { padding: 56px 5%; }
  footer { padding: 44px 5% 28px; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 36px) 5% 52px;
  }

  .hero-badge {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.76rem;
    padding: 5px 12px;
    line-height: 1.45;
  }

  .hero-stats { gap: 16px 24px; }
  .hero-stat-divider { display: none; }
  .hero-platforms { gap: 8px; }
  .hero-platform-pill { padding: 5px 12px; font-size: 0.78rem; }

  .hero-btns,
  .cta-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary,
  .cta-btns .btn-primary,
  .cta-btns .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .platforms-header { flex-direction: column; align-items: flex-start; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-card { padding: 22px 12px 20px; }

  .cta-box { padding: 40px 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-brand p { max-width: none; }

  .page-hero {
    padding: calc(var(--nav-height) + 28px) 5% 36px;
  }

  .page-hero-inner { max-width: none; }
  .page-title { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .page-desc { font-size: 0.92rem; margin-bottom: 22px; }

  .platform-nav,
  .guide-nav,
  .blog-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 6px;
    margin-left: -5%;
    margin-right: -5%;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 100vw;
  }

  .platform-nav::-webkit-scrollbar,
  .guide-nav::-webkit-scrollbar,
  .blog-filter::-webkit-scrollbar { display: none; }

  .platform-nav-item,
  .guide-nav-item,
  .blog-filter-item {
    flex-shrink: 0;
  }

  .guide-content,
  .faq-content {
    padding-bottom: 36px;
  }

  .guide-section,
  .faq-section {
    padding: 40px 0;
  }

  .guide-section-header,
  .faq-section-header,
  .dl-section-header {
    flex-direction: column;
    gap: 14px;
  }

  .dl-section {
    padding: 44px 0;
  }

  .dl-cards { grid-template-columns: 1fr; }
  .ios-store-cards { grid-template-columns: 1fr; }

  .dl-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dl-btn {
    padding: 12px 16px;
    min-height: 44px;
  }

  .dl-tips,
  .note-banner {
    flex-direction: column;
    gap: 8px;
  }

  .download-sections { padding-bottom: 56px; }

  .post-hero {
    padding: calc(var(--nav-height) + 28px) 5% 32px;
  }

  .post-wrap {
    padding: 32px 5% 48px;
  }

  .post-hero h1 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }

  .blog-download-cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .blog-download-cta-btns .btn-primary,
  .blog-download-cta-btns .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .blog-download-float-wrap {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  body.has-download-float {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-post-nav-next { text-align: left; }
  .blog-post-nav-next .blog-post-nav-label { justify-content: flex-start; }

  .blog-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .blog-card-arrow { display: none; }
}

@media (max-width: 480px) {
  section { padding: 48px 5%; }

  .nav-logo { font-size: 1.05rem; }
  .nav-logo-icon,
  .nav-logo-icon img { width: 28px; height: 28px; }

  .features-grid { grid-template-columns: 1fr; }
  .trust-stats-grid { grid-template-columns: 1fr 1fr; }
  .platforms-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .feature-card { padding: 22px 20px; }
  .stat-card { padding: 18px 16px; }
  .stat-card-value { font-size: 1.5rem; }

  .faq-question { padding: 16px 18px; font-size: 0.9rem; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-question-text { align-items: flex-start; }
  .faq-q-mark { margin-top: 2px; }

  .guide-step { gap: 14px; padding: 18px 0; }
  .guide-step-body p,
  .guide-step-body code { font-size: 0.86rem; }

  .legal-tab span { display: none; }
  .legal-tab { padding: 10px 14px; min-height: 44px; }
  .legal-block-top { padding: 18px 20px; }
  .legal-block-content { padding: 20px; }
  .legal-summary { padding: 20px; }
  .legal-hero-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .legal-meta { gap: 8px; }
  .legal-meta span { font-size: 0.78rem; padding: 5px 12px; }

  .blog-filter-item { padding: 7px 14px; font-size: 0.8rem; }

  .blog-download-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .blog-download-cta-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  .blog-download-cta-body h3 { font-size: 1.05rem; }

  .blog-download-float-card { padding: 14px 16px 12px; }
  .blog-download-float-icon { width: 42px; height: 42px; font-size: 1rem; }
  .blog-download-float-texts strong { font-size: 0.88rem; }
  .blog-download-float-platforms { gap: 6px; font-size: 0.72rem; }

  .post-body { font-size: 0.92rem; }
  .post-body h2 { font-size: 1.1rem; margin-top: 28px; }
  .post-body th,
  .post-body td { padding: 8px 10px; font-size: 0.8rem; }
  .post-body pre { padding: 14px 16px; }
  .post-body blockquote { padding: 14px 16px; }

  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 12px 22px;
  }

  .cta-box { padding: 32px 20px; }
  .cta-box p { font-size: 0.92rem; }
}

/* ── Blog preview section (homepage) ──────────────────────────── */
.blog-preview { padding: 80px 5%; }
.blog-preview-list {
  list-style: none;
  margin: 2rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-preview-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-preview-list li a:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,91,255,0.12);
  color: var(--primary);
}
.blog-preview-list li a::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
}
.section-cta { margin-top: 0.5rem; }
@media (max-width: 600px) {
  .blog-preview { padding: 56px 5%; }
  .blog-preview-list li a { font-size: 0.875rem; }
}
