:root {
  --violet:        #6d5efc;
  --violet-600:    #5b4bd6;
  --violet-700:    #4a3cc0;
  --violet-soft:   #efeafe;
  --violet-softer: #f6f3ff;
  --navy:          #211d47;
  --navy-800:      #1b1838;
  --ink:           #211d47;
  --muted:         #6c7185;
  --muted-light:   #9aa0b4;
  --bg:            #ffffff;
  --bg-alt:        #f6f6fb;
  --bg-soft:       #f2f1f9;
  --card:          #ffffff;
  --border:        #ececf4;
  --star:          #f5a623;

  --radius:   16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(33, 29, 71, .05);
  --shadow:    0 12px 30px rgba(33, 29, 71, .08);
  --shadow-lg: 0 24px 60px rgba(33, 29, 71, .16);

  --container: 1180px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 94, 252, .35);
}
.btn-primary:hover { background: var(--violet-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(109, 94, 252, .45); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-video { background: #fff; color: var(--ink); border-color: #eceaf6; box-shadow: var(--shadow-sm); }
.btn-video:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-video .play {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem;
}

.btn-white { background: #fff; color: var(--violet); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 255, .72);
  backdrop-filter: saturate(160%) blur(12px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 24px rgba(33, 29, 71, .07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--violet-700));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(109, 94, 252, .4);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-tagline { font-size: .68rem; color: var(--muted); font-weight: 500; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list > li > a {
  font-size: .92rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .18s ease;
}
header .nav-list{ margin-bottom: 0;}
.nav-list > li > a:hover { color: var(--violet); }
.caret { font-size: .62rem; transition: transform .2s ease; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -14px;
  min-width: 180px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown li a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.dropdown li a:hover { background: var(--violet-softer); color: var(--violet); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.link-login { font-size: .92rem; font-weight: 600; }
.link-login:hover { color: var(--violet); }

.nav-actions-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s 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); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 90px;
  background: linear-gradient(180deg, #efe9fb 0%, #e7ddf6 32%, #e6d3ea 62%, #f6d9cf 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-sun {
  position: absolute; right: 14%; top: 46%;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9c2 0%, #ffcf9e 40%, rgba(255,197,140,0) 70%);
  filter: blur(2px);
}
.hero-mountains { position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; }
.hero-figure { position: absolute; right: 20%; bottom: 16%; width: 70px; height: auto; opacity: .9; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(109, 94, 252, .18);
  color: var(--violet-700);
  font-size: .78rem; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 22px 0 20px;
  color: var(--navy);
}
.hero-title .accent { color: var(--violet); }
.hero-lead {
  color: #4b4a63;
  font-size: 1.06rem;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: .82rem; color: var(--violet-700); display: flex; align-items: center; gap: 7px; }
.hero-note i { color: var(--violet); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin-inline: auto;
  width: 100%;
}
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-icon {
  position: absolute;
  width: 58px; height: 58px;
  background: rgba(255, 255, 255, .92);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--violet);
  box-shadow: 0 14px 30px rgba(70, 50, 120, .22);
  animation: floaty 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.float-icon i { pointer-events: none; }

.fi-1 { top: 0;    left: 50%; transform: translateX(-50%); }
.fi-2 { top: 12%;  right: 10%; }
.fi-3 { top: 50%;  right: -3%; transform: translateY(-50%); }
.fi-4 { bottom: 12%; right: 10%; }
.fi-5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.fi-6 { bottom: 12%; left: 10%; }
.fi-7 { top: 50%;  left: -3%; transform: translateY(-50%); }
.fi-8 { top: 12%;  left: 10%; }

.fi-1, .fi-5 { animation-name: floaty-x; }
.fi-3, .fi-7 { animation-name: floaty-y; }

.brand-discord   i { color: #5865F2; }
.brand-github    i { color: #24292f; }
.brand-instagram i { color: #E4405F; }
.brand-whatsapp  i { color: #25D366; }
.brand-facebook  i { color: #1877F2; }
.brand-x         i { color: #111111; }
.brand-linkedin  i { color: #0A66C2; }
.brand-youtube   i { color: #FF0000; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes floaty-x {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-12px); }
}
@keyframes floaty-y {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 12px)); }
}

.stats {
  background: var(--bg-alt);
  padding: 46px 0 54px;
}
.stats-title {
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 34px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { display: flex; align-items: center; gap: 16px; justify-content: center; }
.stat-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--violet-soft); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex: none;
}
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: .82rem; color: var(--muted); }

.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  color: var(--navy);
}
.section-head.light h2 { color: #fff; }
.head-rule {
  display: block; width: 54px; height: 3px; border-radius: 3px;
  background: var(--violet); margin: 18px auto 0;
}

.features { background: #fff; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-ico {
  width: 62px; height: 62px; border-radius: 16px;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  transition: transform .25s ease, background .25s ease;
}
.feature-card:hover .feature-ico { transform: scale(1.08); background: var(--violet); color: #fff; }
.feature-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.feature-link {
  color: var(--violet); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.feature-link i { transition: transform .2s ease; }
.feature-link:hover i { transform: translateX(4px); }

.how { background: var(--bg-soft); }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.step { flex: 1; text-align: center; max-width: 200px; }
.step-ico {
  position: relative;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-700));
  color: #fff; font-size: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(109, 94, 252, .35);
  transition: transform .25s ease;
}
.step:hover .step-ico { transform: translateY(-5px) scale(1.06); }
.step-num {
  position: absolute; bottom: -4px; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--violet);
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: .84rem; color: var(--muted); }
.step-arrow {
  color: var(--violet); font-size: 1rem; opacity: .55;
  margin-top: 22px; flex: none;
}

.privacy { background: var(--navy); }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.privacy-ico {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255, 255, 255, .07); color: #b8a9ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  transition: transform .25s ease, background .25s ease;
}
.privacy-item:hover .privacy-ico { transform: scale(1.08); background: var(--violet); color: #fff; }
.privacy-item h3 { color: #fff; font-size: 1.06rem; margin-bottom: 12px; }
.privacy-item p { color: #a6a2c4; font-size: .88rem; }

.testimonials { background: var(--bg-alt); }
.testi-viewport { overflow: hidden; }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stars { color: var(--star); font-size: .82rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-card blockquote {
  font-size: .95rem; color: #45435c; font-style: italic; margin-bottom: 22px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-author span { display: flex; flex-direction: column; }
.testi-author strong { font-size: .92rem; color: var(--navy); }
.testi-author small { font-size: .78rem; color: var(--muted); }

.testi-dots { display: flex; justify-content: center; gap: 9px; margin-top: 34px; }
.testi-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: #cfcbe4; cursor: pointer; padding: 0;
  transition: background .2s ease, width .2s ease;
}
.testi-dots button.active { background: var(--violet); width: 26px; border-radius: 6px; }

.cta-wrap { background: #fff; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--violet) 0%, #8a6bff 55%, #a488ff 100%);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: 0 30px 60px rgba(109, 94, 252, .35);
}
.cta-box::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.cta-text { position: relative; z-index: 1; max-width: 560px; }
.cta-text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.cta-text p { color: rgba(255, 255, 255, .9); margin-bottom: 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-illus { position: relative; z-index: 1; flex: none; }

.site-footer { background: var(--navy-800); color: #b8b5cf; padding-top: 62px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.brand--footer .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand--footer .brand-name { color: #fff; }
.footer-slogan { font-size: .88rem; margin: 16px 0 20px; color: #8f8caa; max-width: 240px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: #b8b5cf;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--violet); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .88rem; color: #918eae; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; }
.footer-bottom p { text-align: center; font-size: .82rem; color: #75718f; }

.badge-dot { font-size: .5rem; color: var(--violet); line-height: 1; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(23, 20, 51, .55);
  backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.97);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.modal-overlay.open .modal { transform: none; }

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 10px;
  border: none; cursor: pointer;
  background: var(--bg-soft); color: var(--muted);
  font-size: 1.05rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.modal-close:hover { background: var(--violet); color: #fff; transform: rotate(90deg); }

.modal-ico {
  width: 66px; height: 66px; border-radius: 18px;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.modal h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 14px; padding-right: 30px; }
.modal-body { color: var(--muted); font-size: .95rem; }
.modal-body p { margin-bottom: 14px; }
.modal-body ul { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 4px; }
.modal-body li { display: flex; align-items: flex-start; gap: 10px; }
.modal-body li i { color: var(--violet); margin-top: 3px; flex: none; }
.modal-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

body.modal-open { overflow: hidden; }

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 54px;
  background: linear-gradient(180deg, #efe9fb 0%, #e7ddf6 34%, #e6d3ea 66%, #f6d9cf 100%);
  border-bottom: 1px solid var(--border);
}
.article-hero-art {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 44%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
          mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}
.article-hero-inner { position: relative; z-index: 2; max-width: 620px; }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb i { font-size: .58rem; color: var(--muted-light); }
.breadcrumb a { color: var(--muted); transition: color .18s ease; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.badge-tag {
  display: inline-block;
  background: var(--violet-soft); color: var(--violet-700);
  text-transform: uppercase; letter-spacing: .09em;
  font-size: .7rem; font-weight: 800;
  padding: 6px 12px; border-radius: 8px;
  margin-bottom: 18px;
}
.article-title {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  color: var(--navy);
  margin-bottom: 18px;
}
.article-lead {
  color: #4b4a63; font-size: 1.05rem;
  max-width: 560px; margin-bottom: 26px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .84rem; color: var(--muted);
}
.avatar-stack { display: inline-flex; }
.avatar-stack img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
}
.avatar-stack img + img { margin-left: -10px; }
.meta-sep { color: var(--muted-light); }
.meta-item i { color: var(--violet); margin-right: 4px; }

.article-body { background: #fff; padding: 64px 0 84px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar {
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 96px;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 46px;
}
.toc-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 18px; }
.toc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 13px 34px;
  counter-reset: none;
}
.toc-grid a {
  display: flex; align-items: baseline; gap: 10px;
  font-size: .92rem; font-weight: 500; color: #46445f;
  transition: color .18s ease;
}
.toc-num { color: var(--violet); font-weight: 700; font-size: .8rem; flex: none; font-variant-numeric: tabular-nums; }
.toc-grid a:hover,
.toc-grid a.active { color: var(--violet); }

.prose-section { margin-bottom: 42px; scroll-margin-top: 96px; }
.prose-h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--navy); margin-bottom: 16px; }
.prose-h2 .num { color: var(--violet); font-weight: 800; margin-right: 4px; }
.prose p { color: #55536e; font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }

.prose :is(h1, h2, h3, h4) { color: var(--navy); line-height: 1.25; }
.prose h1 { font-size: clamp(1.7rem, 3.2vw, 2.1rem); margin-bottom: 18px; }
.prose h3 { font-size: 1.15rem; margin-bottom: 12px; }
.prose h4 { font-size: 1rem; margin-bottom: 10px; }
.prose :is(h2, h3, h4):not(:first-child) { margin-top: 1.7em; }

.prose .prose-intro { font-size: 1.12rem; color: #45435c; margin-bottom: 22px; }

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-inline-start: 1.4em;
  color: #55536e;
  font-size: 1rem;
  line-height: 1.75;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet); }
.prose li > :is(ul, ol) { margin: 8px 0 0; }
.prose ul ul { list-style: circle; }

.prose a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(109, 94, 252, .35);
  transition: color .18s ease, text-decoration-color .18s ease;
}
.prose a:hover { color: var(--violet-700); text-decoration-color: currentColor; }

.prose strong, .prose b { color: var(--navy); font-weight: 700; }
.prose em { font-style: italic; }

.prose blockquote {
  margin: 24px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--violet);
  color: #45435c;
  font-style: italic;
}
.prose blockquote p { color: inherit; }

.prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 34px 0;
}

.prose img { border-radius: var(--radius); margin: 8px 0; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }

.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { color: var(--navy); font-weight: 700; background: var(--bg-alt); }

.prose .check-list { margin: 18px 0 22px; }
.prose .check-list li { font-size: 1rem; color: #55536e; }

.prose-section.prose-narrow { max-width: 760px; margin-inline: auto; }

.callout {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0 8px;
}
.callout-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex: none;
}
.callout p { margin: 0; color: #55536e; font-size: .98rem; }

.content-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 22px;
}
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.content-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 14px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.content-card:hover .content-ico { transform: scale(1.08); background: var(--violet); color: #fff; }
.content-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.content-card p { color: var(--muted); font-size: .86rem; margin: 0; }

.guide-steps {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-top: 26px; text-align: center;
}
.guide-steps::before {
  content: ""; position: absolute; top: 22px; left: 10%; right: 10%;
  border-top: 2px dashed rgba(109, 94, 252, .35);
  z-index: 0;
}
.gstep { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.gstep-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-700));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(109, 94, 252, .35);
  transition: transform .25s ease;
}
.gstep:hover .gstep-num { transform: translateY(-4px) scale(1.06); }
.gstep h3 { font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.gstep p { font-size: .8rem; color: var(--muted); }

.guide-cta {
  display: flex; align-items: center; gap: 22px;
  background: var(--violet-softer);
  border: 1px solid rgba(109, 94, 252, .16);
  border-radius: var(--radius-lg);
  padding: 26px 30px; margin-top: 24px;
}
.guide-cta-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex: none;
}
.guide-cta-text { flex: 1; }
.guide-cta-text h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.guide-cta-text p { font-size: .9rem; color: var(--muted); margin: 0; }
.guide-cta .btn { flex: none; }

.side-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.side-title { font-size: 1.05rem; color: var(--navy); margin-bottom: 16px; }
.side-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.side-head .side-title { margin-bottom: 0; }
.side-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex: none;
}
.side-card--row { display: flex; gap: 14px; align-items: flex-start; }
.side-text { font-size: .86rem; color: var(--muted); margin: 8px 0 12px; }
.side-link {
  color: var(--violet); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.side-link i { transition: transform .2s ease; }
.side-link:hover i { transform: translateX(4px); }

.related-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.related-item { display: flex; gap: 12px; align-items: center; }
.related-thumb {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.related-thumb--1 { background: linear-gradient(135deg, #6d5efc, #4a3cc0); }
.related-thumb--2 { background: linear-gradient(135deg, #ff9a76, #ff6a88); }
.related-thumb--3 { background: linear-gradient(135deg, #5b8def, #6d5efc); }
.related-body { display: flex; flex-direction: column; gap: 4px; }
.related-body strong { font-size: .9rem; color: var(--navy); line-height: 1.35; transition: color .18s ease; }
.related-body small { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.related-item:hover strong { color: var(--violet); }

.side-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--violet) 0%, #8a6bff 60%, #a488ff 100%);
  border-radius: var(--radius-lg);
  padding: 26px 24px 20px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(109, 94, 252, .3);
}
.side-cta h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.side-cta p { color: rgba(255, 255, 255, .9); font-size: .88rem; margin-bottom: 18px; }
.side-cta .btn-white { position: relative; z-index: 1; }
.side-cta-illus { margin-top: 10px; text-align: center; }
.side-cta-illus svg { display: block; margin: 0 auto; }

.check-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #45435c; }
.check-list li i { color: var(--violet); font-size: .95rem; flex: none; }

@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; top: auto; }
  .article-hero-art { width: 52%; opacity: .55; }
  .content-cards { grid-template-columns: repeat(2, 1fr); }
  .guide-steps { grid-template-columns: repeat(3, 1fr); gap: 26px 16px; }
  .guide-steps::before { display: none; }
}
@media (max-width: 640px) {
  .article-hero-art { display: none; }
  .toc-grid { grid-template-columns: 1fr; }
  .content-cards { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .callout { flex-direction: row; }
  .guide-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .guide-cta .btn { width: 100%; }
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; }
  .hero-content { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .badge { justify-content: center; }
  .hero-note { justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }

  .steps { flex-wrap: wrap; gap: 30px 10px; }
  .step { flex: 1 1 40%; max-width: none; }
  .step-arrow { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: #fff;
    margin: 0;
    padding: 22px 24px 30px;
    box-shadow: 0 20px 40px rgba(33, 29, 71, .12);
    border-top: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list > li > a { padding: 12px 6px; border-radius: 10px; }
  .nav-list > li > a:hover { background: var(--violet-softer); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 6px 14px; min-width: auto;
  }
  .nav-actions-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
  .nav-actions-mobile .btn { width: 100%; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .stat { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .step { flex: 1 1 100%; }

  .testi-viewport { margin-inline: -24px; padding-inline: 24px; }
  .testi-track {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
  }
  .testi-track::-webkit-scrollbar { display: none; }
  .testi-card { flex: 0 0 85%; scroll-snap-align: center; }

  .cta-box { flex-direction: column; text-align: center; padding: 40px 26px; }
  .cta-actions { justify-content: center; }
  .cta-text { max-width: none; }
  .cta-illus svg { width: 150px; height: auto; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}

.account-nav { display: block; }

.account-nav-title {
  margin: 20px 0 8px;
  padding: 20px 12px 0;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.account-nav-list { display: flex; flex-direction: column; gap: 2px; }

.account-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: #4b4a63;
  transition: background .18s ease, color .18s ease;
}
.account-nav-link i {
  flex: none;
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--muted-light);
  transition: color .18s ease;
}
.account-nav-link:hover { background: var(--violet-softer); color: var(--violet-700); }
.account-nav-link:hover i { color: var(--violet); }
.account-nav-link:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.account-nav-link.is-active { background: var(--violet-soft); color: var(--violet-700); font-weight: 600; }
.account-nav-link.is-active i { color: var(--violet); }

.account-nav-link.is-trail { background: var(--violet-softer); color: var(--violet-700); font-weight: 600; }
.account-nav-link.is-trail i { color: var(--violet); }

.account-nav-link.is-active::before,
.account-nav-link.is-trail::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--violet);
}
.account-nav-link.is-trail::before { background: var(--violet-soft); }

.account-nav-count {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: .74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.account-nav-link.is-active .account-nav-count { background: #fff; color: var(--violet-700); }

.account-help {
  margin-top: 26px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.account-help-title { font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.account-help-text { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.account-help .btn { background: #fff; padding: 9px 16px; font-size: .84rem; }
.account-help .btn i { font-size: .78rem; }

.account-nav-toggle { display: none; }

@media (max-width: 900px) {
  .account-nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
  }
  .account-nav-toggle > i:first-child { color: var(--violet); font-size: 1rem; }
  .account-nav-toggle .account-nav-toggle-label { flex: 1; min-width: 0; }
  .account-nav-toggle .caret {
    font-size: .7rem;
    color: var(--muted);
    transition: transform .25s ease;
  }
  .account-nav-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

  .account-nav-panel { display: none; }
  .account-nav-panel.is-open {
    display: block;
    margin-top: 8px;
    padding: 12px 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    animation: accountNavIn .22s ease;
  }
  .account-nav-title { padding-left: 2px; padding-right: 2px; }
  .account-nav-panel.is-open .account-nav:first-child .account-nav-title {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@keyframes accountNavIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
