/* ============================================================
   CryptoPort (加密港) — ca-binance.com
   Brand Template Stylesheet
   Color: Royal Blue #2563eb / Rose #f43f5e / Slate #0f172a
   Font: Outfit + Chinese fallback
   ============================================================ */

/* -------------------------------------------------------
   1. Reset & Base
   ------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------------------------------------------
   2. Container
   ------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------
   3. Header — Single bar, glassmorphism
   ------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  height: 64px;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f43f5e, #2563eb);
  background-size: 200% 100%;
  animation: headerGlow 6s linear infinite;
  opacity: 0.7;
}

@keyframes headerGlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.site-header--transparent {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header--transparent::after { opacity: 0; }

.site-header--solid {
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.site-header--solid::after { opacity: 0.7; }

.site-header--scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(59,130,246,0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Navigation — center area */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #60a5fa;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link--on { color: #fff; }
.site-nav__link--on::after { transform: scaleX(1); }

.site-header--transparent .site-nav__link { color: rgba(255,255,255,0.65); }
.site-header--transparent .site-nav__link:hover,
.site-header--transparent .site-nav__link--on { color: #fff; }

.site-nav__caret {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Mega Dropdown — 2-col grid panel */
.site-nav__mega { position: relative; }

.site-nav__megapanel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.site-nav__mega:hover .site-nav__megapanel,
.site-nav__mega--open .site-nav__megapanel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.site-nav__mega:hover .site-nav__caret { transform: rotate(180deg); }

.megapanel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 300px;
}

.megapanel__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.megapanel__item:hover {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}

.megapanel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(96,165,250,0.5);
  flex-shrink: 0;
}

.megapanel__item:hover .megapanel__dot {
  background: #60a5fa;
}

/* Right section: lang dropdown + CTA */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Language Dropdown */
.header-lang { position: relative; }

.header-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.header-lang__btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.header-lang__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 6px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 110;
}

.header-lang__panel--open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.header-lang__opt {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.header-lang__opt:hover {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}

.header-lang__opt--on {
  color: #60a5fa;
  font-weight: 600;
}

/* Header CTA Button */
.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #f43f5e;
  padding: 7px 18px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(244,63,94,0.3);
}

.header-cta:hover {
  background: #e11d48;
  box-shadow: 0 4px 20px rgba(244,63,94,0.4);
}

/* -------------------------------------------------------
   4. Mobile Navigation — Full-Screen Overlay
   ------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1010;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen overlay */
.nav-fs {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.nav-fs--open { opacity: 1; visibility: visible; }

.nav-fs__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-fs__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-fs__brand .logo-mark { width: 28px; height: 28px; font-size: 11px; }
.nav-fs__brand .logo-text { font-size: 16px; }

.nav-fs__close {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none; cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-fs__close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-fs__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px;
  gap: 2px;
}

.nav-fs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
  background: none; border: none; cursor: pointer;
  font-family: inherit; width: 100%; text-align: left;
}

.nav-fs__item:hover { background: rgba(255,255,255,0.04); color: #fff; }

.nav-fs__arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.4;
}

.nav-fs__group--open .nav-fs__arrow { transform: rotate(180deg); }

.nav-fs__sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px 16px;
}

.nav-fs__group--open .nav-fs__sub { display: flex; }

.nav-fs__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-fs__sub a:hover {
  background: rgba(59,130,246,0.1);
  color: #93c5fd;
}

.nav-fs__bottom {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.nav-fs__lang {
  display: flex;
  gap: 0;
}

.nav-fs__lang a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.nav-fs__lang a:hover { color: rgba(255,255,255,0.8); }
.nav-fs__lang a.on { color: #60a5fa; }

.nav-fs__bottom .btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

/* -------------------------------------------------------
   5. Buttons
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--accent {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
}

.btn--accent:hover {
  background: #e11d48;
  border-color: #e11d48;
}

.btn--coral {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
}

.btn--coral:hover {
  background: #e11d48;
  border-color: #e11d48;
}

.btn--outline {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn--outline:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* -------------------------------------------------------
   6. Hero Section — Dark Gradient with Mesh
   ------------------------------------------------------- */
.hero {
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(244, 63, 94, 0.15) 0%, transparent 50%);
  padding: 180px 0 120px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 24px auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero__btns .btn--accent {
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}

.hero__btns .btn--outline-white {
  border-color: rgba(255, 255, 255, 0.25);
}

.hero__btns .btn--outline-white:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Decorative Shapes — Glowing Orbs */
.hero__shape-1 {
  position: absolute;
  top: 15%;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: float1 8s ease-in-out infinite;
}

.hero__shape-2 {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 30px); }
}

/* -------------------------------------------------------
   7. Trust Metrics
   ------------------------------------------------------- */
.trust-metrics {
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

.trust-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.trust-metrics__card {
  background: #ffffff;
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.trust-metrics__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 0 0 3px 3px;
}

.trust-metrics__number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.trust-metrics__label {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------
   8. Section
   ------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: #f1f5f9;
}

.section__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #0f172a;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 3px;
  margin: 12px auto 0;
}

.section__more {
  text-align: center;
  margin-top: 32px;
}

/* -------------------------------------------------------
   9. Feature Cards
   ------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

.feature-card__arrow {
  display: inline-block;
  font-size: 18px;
  color: #2563eb;
  font-weight: 600;
  margin-top: 16px;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-card__arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------
   10. Getting Started Accordion
   ------------------------------------------------------- */
.accordion {
  max-width: 700px;
  margin: 0 auto;
}

.accordion__item {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion__item--open {
  border-color: #2563eb;
}

.accordion__header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
}

.accordion__step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.accordion__label {
  flex: 1;
}

.accordion__icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #64748b;
  display: flex;
  align-items: center;
}

.accordion__item--open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 24px 20px;
  display: none;
}

.accordion__item--open .accordion__body {
  display: block;
}

.accordion__body p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 48px;
}

.accordion__body .btn {
  margin-top: 12px;
  margin-left: 48px;
}

/* -------------------------------------------------------
   11. Popular Topics Carousel
   ------------------------------------------------------- */
.topics-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.topics-carousel::-webkit-scrollbar {
  display: none;
}

.topic-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topic-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.topic-card__icon {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1.2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #f3e8ff);
  border-radius: 14px;
}

.topic-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.topic-card__count {
  font-size: 13px;
  color: #64748b;
}

/* -------------------------------------------------------
   12. Article List — Table/List View
   ------------------------------------------------------- */
.article-list {
  border-top: 1px solid #e2e8f0;
}

.article-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  gap: 16px;
}

.article-list__item:hover {
  background: #f8fafc;
}

.article-list__info {
  flex: 1;
  min-width: 0;
}

.article-list__title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  line-height: 1.5;
  color: #0f172a;
}

.article-list__excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.article-list__tag {
  font-size: 12px;
  padding: 2px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.article-list__date {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}

/* -------------------------------------------------------
   13. App Download Section
   ------------------------------------------------------- */
.app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-section__title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.app-section__desc {
  font-size: 16px;
  color: #64748b;
  margin: 16px 0;
  line-height: 1.7;
}

.app-section__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-section__mockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-section__phone {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 28px;
  width: 240px;
  aspect-ratio: 9 / 16;
  padding: 10px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-section__screen {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.4), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.3), transparent 50%),
    #0f172a;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-section__logo {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------------------------------------
   14. FAQ Section
   ------------------------------------------------------- */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.faq__question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq__question:hover {
  color: #2563eb;
}

.faq__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #64748b;
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 0 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* -------------------------------------------------------
   15. Bottom CTA
   ------------------------------------------------------- */
.bottom-cta {
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  padding: 72px 48px;
  text-align: center;
  color: #ffffff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f43f5e);
}

.bottom-cta__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.bottom-cta__desc {
  font-size: 16px;
  opacity: 0.9;
  margin: 12px 0 24px;
  line-height: 1.6;
}

.bottom-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   16. Footer
   ------------------------------------------------------- */
.footer {
  background: linear-gradient(180deg, #0c1322 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding: 56px 0 40px;
}

.footer__brand {
  max-width: 280px;
}

.footer__brand-logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__brand-logo .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.footer__brand-logo .logo-text {
  color: #ffffff;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__group {
  min-width: 120px;
}

.footer__heading {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 0;
}

.footer__list a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__list a:hover {
  color: #93c5fd;
  padding-left: 4px;
}

.footer__risk {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.footer__risk-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__risk-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom .lang-tabs {
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px;
}

.footer__bottom .lang-tab {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  padding: 3px 7px;
}

.footer__bottom .lang-tab:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom .lang-tab--sel {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.25);
}

/* -------------------------------------------------------
   17. Post Page
   ------------------------------------------------------- */
.post-header-section {
  padding: 128px 0 40px;
  background: #f8fafc;
}

.post-header__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-header__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  max-width: 760px;
}

.post-header__meta {
  display: flex;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.post-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-sep {
  color: #cbd5e1;
  user-select: none;
}

/* Post Layout */
.post-layout {
  padding: 48px 0;
}

.post-layout__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

/* Post Body Typography */
.post-body {
  max-width: 100%;
  min-width: 0;
}

.post-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 2px solid #e2e8f0;
  color: #0f172a;
}

.post-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #0f172a;
}

.post-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #0f172a;
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  line-height: 1.8;
  margin-bottom: 4px;
  font-size: 16px;
}

.post-body strong {
  font-weight: 700;
}

.post-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: #1d4ed8;
}

.post-body .btn {
  text-decoration: none;
}

.post-body .btn.btn--accent,
.post-body .btn.btn--coral {
  color: #ffffff;
}

.post-body .btn.btn--accent:hover,
.post-body .btn.btn--coral:hover {
  color: #ffffff;
}

.post-body .btn.btn--outline {
  color: #2563eb;
}

.post-body .btn.btn--outline:hover {
  color: #ffffff;
}

.post-body .btn.btn--outline-white {
  color: #ffffff;
}

.post-body blockquote {
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  margin: 24px 0;
  background: #f1f5f9;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}

.post-body img {
  border-radius: 12px;
  margin: 24px 0;
}

.post-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.post-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.post-body th,
.post-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.post-body th {
  background: #f1f5f9;
  font-weight: 600;
}

/* -------------------------------------------------------
   18. Tag Chip
   ------------------------------------------------------- */
.tag-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tag-chip:hover {
  background: #dbeafe;
}

.tag-chip--sm {
  padding: 2px 8px;
  font-size: 12px;
}

/* -------------------------------------------------------
   19. TOC Sidebar
   ------------------------------------------------------- */
.toc-sidebar {
  position: sticky;
  top: 80px;
}

.toc-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.toc-box__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #64748b;
}

.toc-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-box__item {
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.toc-box__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  margin-top: 7px;
  transition: background 0.2s ease;
}

.toc-box__item--active .toc-box__dot {
  background: #2563eb;
}

.toc-box__item a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  line-height: 1.4;
}

.toc-box__item a:hover {
  color: #2563eb;
}

.toc-box__item--active a {
  color: #2563eb;
  font-weight: 600;
}

.toc-box__item--sub {
  padding-left: 16px;
}

.toc-box__item--sub a {
  font-size: 13px;
}

/* -------------------------------------------------------
   20. Share Buttons
   ------------------------------------------------------- */
.share-section {
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
}

.share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.share-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-btn--copy:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.share-btn--twitter:hover {
  border-color: #0f172a;
  color: #0f172a;
}

.share-btn--telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

/* -------------------------------------------------------
   21. CTA Card — Inline Article CTA
   ------------------------------------------------------- */
.cta-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.cta-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.cta-card__desc {
  font-size: 15px;
  color: #64748b;
  margin: 8px 0 16px;
  line-height: 1.6;
}

.cta-card__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   22. Download CTA — Inline Article Download CTA
   ------------------------------------------------------- */
.download-cta {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.download-cta__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.download-cta__desc {
  font-size: 15px;
  color: #64748b;
  margin: 8px 0 16px;
  line-height: 1.6;
}

.download-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   23. Related Posts — Compact List View
   ------------------------------------------------------- */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
}

.related-section__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
}

.related-list__item:last-child {
  border-bottom: none;
}

.related-list__title {
  flex: 1;
}

.related-list__title a {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.related-list__title a:hover {
  color: #2563eb;
}

.related-list__date {
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
  white-space: nowrap;
}

/* -------------------------------------------------------
   24. Page Wrapper & Page Header
   ------------------------------------------------------- */
.page-wrapper {
  padding: 128px 0 60px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header__title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.page-header__desc {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

/* Tag single page header */
.posts-page-header {
  padding: 120px 0 0;
}

.posts-page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.posts-page-header p {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: #64748b;
  padding: 40px 0;
  font-size: 16px;
}

/* -------------------------------------------------------
   25. Tags Page
   ------------------------------------------------------- */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tags-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.tags-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.tags-card__name {
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 4px;
  display: block;
}

.tags-card__count {
  font-size: 13px;
  color: #64748b;
  display: block;
}

/* -------------------------------------------------------
   26. 404 Error Page
   ------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: 60px 0;
}

.error-page__code {
  font-size: 120px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.error-page__desc {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 24px;
}

.error-page__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   27. Breadcrumb
   ------------------------------------------------------- */
.breadcrumb {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.breadcrumb__sep {
  margin: 0 8px;
  color: #94a3b8;
  user-select: none;
}

/* -------------------------------------------------------
   28. Page Layout (Static pages)
   ------------------------------------------------------- */
.page-content {
  padding: 128px 0 60px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #0f172a;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: #0f172a;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: #0f172a;
}

.page-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #334155;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 4px;
  color: #334155;
}

.page-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: #1d4ed8;
}

.page-content .btn {
  text-decoration: none;
}

.page-content .btn.btn--accent,
.page-content .btn.btn--coral {
  color: #ffffff;
}

.page-content .btn.btn--accent:hover,
.page-content .btn.btn--coral:hover {
  color: #ffffff;
}

.page-content .btn.btn--outline {
  color: #2563eb;
}

.page-content .btn.btn--outline:hover {
  color: #ffffff;
}

.page-content .btn.btn--outline-white {
  color: #ffffff;
}

/* -------------------------------------------------------
   29. Utility Classes
   ------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #64748b;
}

.hidden {
  display: none !important;
}

/* -------------------------------------------------------
   30. Responsive — Tablet (max-width: 900px)
   ------------------------------------------------------- */
@media (max-width: 900px) {
  /* Header Mobile Layout */
  .site-nav { display: none; }
  .site-header__right { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero {
    padding: 140px 0 80px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__desc {
    font-size: 16px;
  }

  /* Trust Metrics */
  .trust-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section */
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  /* Feature Cards */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* App Section */
  .app-section {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .app-section__btns {
    justify-content: center;
  }

  .app-section__mockup {
    order: -1;
  }

  .app-section__phone {
    width: 200px;
  }

  /* Post Layout */
  .post-layout__grid {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  /* Tags Grid */
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__links {
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* -------------------------------------------------------
   30b. Responsive — Mobile (max-width: 640px)
   ------------------------------------------------------- */
@media (max-width: 640px) {
  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__desc {
    font-size: 15px;
    margin: 16px auto 24px;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__btns .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Trust Metrics */
  .trust-metrics {
    margin-top: -24px;
  }

  .trust-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-metrics__card {
    padding: 16px;
  }

  .trust-metrics__number {
    font-size: 28px;
  }

  .trust-metrics__label {
    font-size: 12px;
  }

  /* Section */
  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  /* Feature Cards */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  /* Accordion */
  .accordion__header {
    padding: 16px 20px;
    font-size: 15px;
  }

  .accordion__body {
    padding: 0 20px 16px;
  }

  .accordion__body p {
    padding-left: 0;
  }

  .accordion__body .btn {
    margin-left: 0;
  }

  .accordion__step {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Topics Carousel */
  .topic-card {
    width: 160px;
    padding: 16px;
  }

  .topic-card__icon {
    font-size: 28px;
  }

  .topic-card__name {
    font-size: 14px;
  }

  /* Article List */
  .article-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .article-list__meta {
    gap: 8px;
  }

  /* App Section */
  .app-section__title {
    font-size: 24px;
  }

  .app-section__phone {
    width: 180px;
  }

  /* FAQ */
  .faq__question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq__answer p {
    font-size: 14px;
  }

  /* Bottom CTA */
  .bottom-cta {
    padding: 48px 24px;
    border-radius: 12px;
  }

  .bottom-cta__title {
    font-size: 24px;
  }

  .bottom-cta__desc {
    font-size: 15px;
  }

  .bottom-cta__btns {
    flex-direction: column;
    align-items: center;
  }

  .bottom-cta__btns .btn {
    width: 100%;
    max-width: 260px;
  }

  /* Post Page */
  .post-header-section {
    padding: 100px 0 32px;
  }

  .post-header__title {
    font-size: 26px;
  }

  .post-header__meta {
    flex-direction: column;
    gap: 8px;
  }

  .post-layout {
    padding: 32px 0;
  }

  .post-body h2 {
    font-size: 20px;
    margin: 32px 0 12px;
  }

  .post-body h3 {
    font-size: 18px;
    margin: 24px 0 8px;
  }

  .post-body p {
    font-size: 15px;
  }

  .post-body li {
    font-size: 15px;
  }

  /* Share Buttons */
  .share-section {
    padding: 16px 0;
  }

  .share-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* CTA Card */
  .cta-card {
    padding: 20px;
    margin: 24px 0;
  }

  .cta-card__title {
    font-size: 16px;
  }

  .cta-card__btns {
    flex-direction: column;
  }

  /* Download CTA */
  .download-cta {
    padding: 20px;
    margin: 24px 0;
  }

  .download-cta__title {
    font-size: 16px;
  }

  /* Related Section */
  .related-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  /* Page Wrapper */
  .page-wrapper {
    padding: 100px 0 48px;
  }

  .page-header__title {
    font-size: 26px;
  }

  .posts-page-header {
    padding: 100px 0 0;
  }

  .posts-page-header h1 {
    font-size: 26px;
  }

  /* Tags Grid */
  .tags-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 404 Page */
  .error-page {
    padding: 40px 0;
  }

  .error-page__code {
    font-size: 80px;
  }

  .error-page__title {
    font-size: 20px;
  }

  .error-page__btns {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer {
    padding: 32px 0 20px;
  }

  .footer__links {
    flex-direction: column;
    gap: 24px;
  }

  .footer__risk {
    padding: 12px 16px;
  }

  .footer__risk-title {
    font-size: 12px;
  }

  .footer__risk-text {
    font-size: 12px;
  }

  /* Page Content */
  .page-content {
    padding: 100px 0 48px;
  }

  .page-content h1 {
    font-size: 26px;
  }

  .page-content h2 {
    font-size: 20px;
  }

  .page-content h3 {
    font-size: 18px;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 13px;
  }

  /* Nav Drawer */
  .nav-drawer {
    width: 280px;
  }
}

/* -------------------------------------------------------
   Animations & Transitions
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Print styles */
@media print {
  .site-header,
  .nav-drawer,
  .nav-overlay,
  .footer,
  .bottom-cta,
  .share-section,
  .toc-sidebar {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .post-layout__grid {
    grid-template-columns: 1fr;
  }

  .post-header-section {
    padding: 0 0 20px;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
