:root {
  --bg-rgb: 255, 255, 255;
  --bg: #ffffff;
  --surface: #f9fafb;
  --surface-hover: #f3f4f6;
  --surface-light: #e5e7eb;
  --border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --accent: #000000;
  --accent-hover: #374151;
  --accent-dim: rgba(0, 0, 0, 0.05);
  --success: #059669;
  --success-dim: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  --warning-dim: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-dim: rgba(220, 38, 38, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --max-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-rgb: 9, 9, 11;
    --bg: #09090b;
    --surface: #121214;
    --surface-hover: #1c1c1f;
    --surface-light: #27272a;
    --border: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #ffffff;
    --accent-hover: #e4e4e7;
    --accent-dim: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --success-dim: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.15);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-body a:not(.btn):not(.related-card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}

.article-body a:not(.btn):not(.related-card):hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

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

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

h5 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.1);
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: var(--text-secondary);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

/* Custom Language Switcher */
.lang-switcher-custom {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.lang-btn {
  -webkit-tap-highlight-color: transparent;

  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.lang-btn:hover,
.lang-switcher-custom.active .lang-btn {
  border-color: var(--text-secondary);
  background: var(--bg);
}

.globe-icon,
.chevron-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.lang-switcher-custom.active .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lang-switcher-custom:hover .lang-dropdown,
.lang-switcher-custom.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-link {
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: block;
}

.lang-link:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.lang-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg);
  border-left: 2px solid var(--text-primary);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--text-secondary);
}

/* Breadcrumbs */
.breadcrumbs {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  padding: 100px 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100%;
}

.breadcrumbs a {
  transition: color 0.2s;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs a:hover {
  color: var(--text-primary);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* Hero Section */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, var(--surface) 0%, var(--bg) 70%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.stars {
  color: var(--warning);
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.compliance-banner {
  background: var(--warning-dim);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 32px;
  max-width: 800px;
  text-align: left;
  line-height: 1.6;
}

.compliance-banner strong {
  color: var(--warning);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}

/* Sidebar TOC */
.sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.toc-list a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
}

.toc-list a:hover {
  color: var(--text-primary);
}

.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* Article Body */
.article-body {
  max-width: 760px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-section {
  margin-bottom: 60px;
}

.article-body p,
.article-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-image {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: var(--surface);
  border: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

.article-image figcaption {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* TL;DR Box */
.tldr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

.tldr-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tldr-box ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--text-primary);
}

.tldr-box li {
  margin-bottom: 8px;
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.pc-card.pros {
  border-top: 4px solid var(--success);
}

.pc-card.cons {
  border-top: 4px solid var(--danger);
}

.pc-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.pc-list {
  list-style: none;
  padding: 0;
}

.pc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pc-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--bg);
  margin-top: 2px;
}

.pros .pc-icon {
  background: var(--success);
}

.cons .pc-icon {
  background: var(--danger);
}

/* Info Boxes */
.info-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.info-box.success {
  border-left-color: var(--success);
  background: var(--success-dim);
}

.info-box.warning {
  border-left-color: var(--warning);
  background: var(--warning-dim);
}

.info-box h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Lists & Tables */
.article-body ul:not(.toc-list):not(.pc-list),
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.seo-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 100%;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.seo-table th,
.seo-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.seo-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-table tr:hover td {
  background: var(--surface-hover);
}

.highlight-cell {
  color: var(--success);
  font-weight: 600;
}

/* Step Cards */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.step-content-wrapper {
  display: flex;
  gap: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
}

.step-content h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

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

/* CSS Illustrations (High-Fidelity) */
.step-illustration {
  width: 100%;
  height: 260px;
  background: var(--surface-light);
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
  perspective: 1000px;
}

.css-ill {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Browser Illustration (High-Fidelity) */
.browser-ill {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

@media (prefers-color-scheme: dark) {
  .browser-ill {
    background: linear-gradient(135deg, #1a1d24 0%, #111318 100%);
  }
}

.browser-window {
  width: 85%;
  height: 80%;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.browser-window:hover {
  transform: translateY(5px);
}

.browser-header {
  height: 36px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots .dot.red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.browser-dots .dot.yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.browser-dots .dot.green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.browser-address-bar {
  flex: 1;
  height: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.35rem;
  color: var(--text-muted);
  justify-content: center;
  position: relative;
}

.browser-address-bar::before {
  content: '🔒';
  font-size: 0.6rem;
  position: absolute;
  left: 8px;
}

.browser-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  position: relative;
}

.browser-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.ill-logo {
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ill-logo img {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}

.ill-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.ill-form {
  width: 100%;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ill-input {
  width: 100%;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}

.ill-input:focus-within {
  border-color: var(--text-primary);
}

.ill-btn {
  width: 100%;
  height: 36px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
}

.ill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ill-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  color: var(--success);
  background: var(--success-dim);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0, 209, 128, 0.3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 209, 128, 0.1);
}

.ill-badge::before {
  content: '🎁';
  font-size: 0.7rem;
}

/* Verify Illustration (High-Fidelity) */
.verify-ill {
  background: radial-gradient(circle at center, #f0f4f8 0%, #d9e2ec 100%);
}

@media (prefers-color-scheme: dark) {
  .verify-ill {
    background: radial-gradient(circle at center, #242933 0%, #171a21 100%);
  }
}

.verify-card {
  width: 220px;
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verify-card:hover {
  transform: scale(1);
}

.ill-icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .ill-icon-circle {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.05);
  }
}

.ill-icon-circle::after {
  content: '✉️';
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ill-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.ill-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.ill-code-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ill-code-boxes span {
  width: 24px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}

.ill-code-boxes span.filled {
  border-color: var(--text-primary);
  background: var(--bg);
}

.ill-code-boxes span.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
  animation: pulse-border 1.5s infinite;
}

.ill-timer {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ill-timer::before {
  content: '⏱';
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 var(--accent-dim);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* Phone Illustration (High-Fidelity) */
.phone-ill {
  background: linear-gradient(135deg, #e0eaf5 0%, #cfd9e8 100%);
}

@media (prefers-color-scheme: dark) {
  .phone-ill {
    background: linear-gradient(135deg, #1e232d 0%, #15181f 100%);
  }
}

.phone-frame {
  width: 130px;
  height: 260px;
  background: #111;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #444, inset 0 0 0 4px #222;
  transform: translateY(10px) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-frame:hover {
  transform: translateY(0) rotate(0);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

.phone-header {
  height: 80px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.app-icon-large {
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
  display: none;
}

.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-name {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-developer {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.app-stats {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin: 0 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.stat-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.app-action {
  padding: 16px 12px;
  display: flex;
  justify-content: center;
}

.app-btn {
  background: var(--text-primary);
  color: var(--bg);
  font-size: 0.65rem;
  padding: 2px 12px;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
}

.app-screenshots {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: hidden;
}

.screenshot {
  width: 60px;
  height: 100px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* KYC Illustration (High-Fidelity) */
.kyc-ill {
  background: radial-gradient(circle at center, #e8f0fe 0%, #c2d4ec 100%);
}

@media (prefers-color-scheme: dark) {
  .kyc-ill {
    background: radial-gradient(circle at center, #1e2638 0%, #121621 100%);
  }
}

.kyc-container {
  position: relative;
  width: 180px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.id-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: rotateX(10deg) rotateY(-10deg);
  transition: transform 0.4s ease;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .id-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.kyc-container:hover .id-card {
  transform: rotateX(0) rotateY(0);
}

.id-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@media (prefers-color-scheme: dark) {
  .id-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  }
}

.id-avatar {
  width: 44px;
  height: 56px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.id-avatar::after {
  content: '👤';
  font-size: 1.5rem;
  opacity: 0.5;
}

.id-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.id-line {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  width: 100%;
}

.id-line.title {
  height: 8px;
  width: 80%;
  background: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 4px;
}

.id-line.short {
  width: 50%;
}

.id-line.tiny {
  width: 30%;
}

.id-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ffd700, #daa520);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scan-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 3;
  pointer-events: none;
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--success);
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 4px var(--success));
}

.scan-corner.tl {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 8px;
}

.scan-corner.tr {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 8px;
}

.scan-corner.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 8px;
}

.scan-corner.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 8px;
}

.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--success);
  box-shadow: 0 0 12px 2px var(--success);
  z-index: 4;
  animation: laser-scan 2.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes laser-scan {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Feature Grid (Web3 Wallet) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Related Guides */
.related-guides {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-guides h3 {
  margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

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

.related-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  /* Above mobile CTA */
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 32px;
    right: 32px;
  }
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 60px 0;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 4px;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  padding: 0 24px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 100;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 100px;
  margin-top: 60px;
  background: var(--surface);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-disclaimer {
  max-width: 800px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
  text-align: left;
  background: var(--bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding-bottom: 90px;
  }

  .navbar .btn-primary {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .content-layout {
    padding: 30px 0;
  }

  .article-section {
    margin-bottom: 40px;
  }

  .article-body p,
  .article-body li {
    font-size: 1rem;
  }

  .tldr-box {
    padding: 20px;
    margin-bottom: 30px;
  }

  .pc-card {
    padding: 20px;
  }

  .info-box {
    padding: 16px 20px;
  }

  .footer {
    padding: 40px 0 120px;
    margin-top: 40px;
  }

  .hero {
    padding: 30px 0 40px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .btn-large {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .step-content-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
    margin: 40px 0;
  }

  .mobile-sticky-cta {
    display: block;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .lang-dropdown {
    right: 0;
  }

  /* Keep it aligned to the right edge of the button */
  .faq-question {
    padding: 16px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 16px;
  }

  .sidebar-wrapper {
    display: none;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-body h3 {
    font-size: 1.25rem;
  }

  .seo-table th,
  .seo-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}