/* ==========================================================================
   QuickQ VPN — Global stylesheet
   Hand-authored, mobile-first, no external dependencies.
   Sections: 1.Tokens 2.Reset 3.Layout 4.Header 5.Footer 6.Buttons
             7.Hero 8.Cards 9.Sections 10.Tables 11.Accordion 12.Forms
             13.Utilities 14.Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand: #2f7cf0;
  --brand-600: #1f66db;
  --brand-700: #1750ad;
  --brand-050: #eff5ff;
  --brand-100: #dbe8ff;
  --ink: #0a1121;
  --ink-2: #16203a;
  --body: #46536b;
  --muted: #6b7891;
  --line: #e5ecf7;
  --line-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --dark: #070d1b;
  --dark-2: #0d1526;
  --dark-3: #131d33;
  --ok: #16a34a;
  --warn: #d97706;
  --star: #f5a623;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 33, .06), 0 4px 12px rgba(10, 17, 33, .04);
  --shadow: 0 8px 30px rgba(15, 30, 60, .08);
  --shadow-lg: 0 24px 60px rgba(15, 30, 60, .14);
  --container: 1200px;
  --header-h: 68px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid rgba(47, 124, 240, .45);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--soft { background: var(--surface-2); }
.section--dark { background: var(--dark); color: #b9c6de; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: #8fc0ff; }
.section--dark p { color: #a9b8d3; }

.section-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-600);
  background: var(--brand-050); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section--dark .eyebrow {
  color: #9ec4ff; background: rgba(47, 124, 240, .14);
  border-color: rgba(47, 124, 240, .32);
}
.lead { font-size: 1.12rem; color: var(--body); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: -1; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 30, 60, .07); }
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { height: 52px; width: auto; }
.brand__name { font-weight: 900; color: var(--ink); font-size: 1.06rem; letter-spacing: -.01em; }
.brand__name span { color: var(--brand); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--ink-2); font-weight: 600; font-size: .945rem;
  white-space: nowrap; transition: background .18s, color .18s;
}
.primary-nav a:hover { background: var(--brand-050); color: var(--brand-700); }
.primary-nav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-050); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: 6px; }
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  padding: 5px 13px; border-radius: 999px; font-size: .85rem;
  font-weight: 700; color: var(--muted); line-height: 1.4;
}
.lang-switch a:hover { color: var(--brand-600); }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }

.header-auth {
  display: inline-flex; align-items: center; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px;
}
.header-auth a {
  padding: 5px 12px; border-radius: 999px; font-size: .85rem;
  font-weight: 700; color: var(--muted); line-height: 1.4; white-space: nowrap;
}
.header-auth a:hover { color: var(--brand-600); }
.header-auth a[aria-current="page"] { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none; width: 44px; height: 40px; margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink-2);
  border-radius: 2px; transition: transform .22s, opacity .22s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #93a2bd; padding: 64px 0 26px; font-size: .93rem; }
.footer-top {
  display: grid; gap: 36px;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  padding-bottom: 40px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 4px; }
.footer-brand p { color: #8b9bb7; max-width: 340px; margin-bottom: 18px; }
.footer-col h2, .footer-col h3 {
  color: #fff; font-size: 1rem; font-weight: 800;
  margin-bottom: 16px; letter-spacing: .01em;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: #93a2bd; }
.footer-col a:hover { color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: #8fc0ff; background: rgba(47, 124, 240, .13);
  border: 1px solid rgba(47, 124, 240, .3);
  padding: 4px 10px; border-radius: 999px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { margin: 0; color: #7d8ca6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #93a2bd; }
.footer-links a:hover { color: #fff; }

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: transform .16s, box-shadow .16s, background .16s, color .16s;
  line-height: 1.25; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
button.btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(47, 124, 240, .3); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 12px 28px rgba(47, 124, 240, .36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--brand-600); border-color: var(--brand-100); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(47, 124, 240, .16), transparent 62%),
    radial-gradient(680px 420px at 4% 8%, rgba(47, 124, 240, .09), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 72%);
  padding: 74px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .92rem; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-trust svg { color: var(--ok); flex: 0 0 auto; }

.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px; position: relative;
}
.hero-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-panel__title { font-weight: 800; color: var(--ink); }
.pill-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: var(--ok);
  background: #e9f9ef; border-radius: 999px; padding: 5px 12px;
}
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.node-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fbfdff;
}
.node-row + .node-row { margin-top: 9px; }
.node-flag { font-size: 1.2rem; width: 24px; text-align: center; }
.node-name { font-weight: 700; color: var(--ink-2); font-size: .93rem; }
.node-meta { margin-left: auto; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.node-bar { height: 5px; width: 74px; border-radius: 3px; background: var(--line); overflow: hidden; }
.node-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #34c77b, #2f7cf0); }
.hero-panel__foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--muted);
}

/* 8. Cards ----------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600); margin-bottom: 18px;
}
.section--dark .card { background: var(--dark-2); border-color: rgba(255, 255, 255, .09); }
.section--dark .card__icon { background: rgba(47, 124, 240, .16); color: #8fc0ff; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat__num {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 900;
  color: #fff; letter-spacing: -.02em; line-height: 1.1;
}
.stat__num em { font-style: normal; color: #7db2ff; }
.stat__label { font-size: .88rem; color: #93a2bd; margin-top: 6px; }
.section--soft .stat__num { color: var(--ink); }
.section--soft .stat__label { color: var(--muted); }

.feature-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px;
  color: #fff; font-weight: 700;
  background: linear-gradient(180deg, rgba(7, 13, 27, 0) 0%, rgba(7, 13, 27, .82) 100%);
}
.media-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }

.stack { display: grid; gap: 18px; }
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f66db' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat;
}
.section--dark .check-list li::before { background-color: rgba(47,124,240,.2); }

/* 9. Sections -------------------------------------------------------------- */
.platform-strip {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: center;
  padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.platform-strip li { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.platform-strip svg { color: var(--brand); }

.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--brand); color: #fff;
  font-weight: 900; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(47,124,240,.28);
}
.section--dark .step::before { background: #2f7cf0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .76rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { margin-bottom: 6px; }
.plan__desc { font-size: .92rem; min-height: 44px; }
.plan__price { display: flex; align-items: flex-end; gap: 7px; margin: 12px 0 4px; }
.plan__amount { font-size: 2.5rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.plan__period { color: var(--muted); font-size: .92rem; padding-bottom: 5px; }
.plan__old { color: var(--muted); font-size: .88rem; text-decoration: line-through; }
.plan__save { color: var(--ok); font-weight: 800; font-size: .88rem; }
.plan ul { margin: 20px 0 26px; }
.plan .btn { margin-top: auto; }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.timeline { position: relative; }
.release {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.release:first-child { border-top: 0; }
.release__meta { font-size: .9rem; }
.release__version { font-weight: 900; color: var(--ink); font-size: 1.05rem; }
.release__date { color: var(--muted); font-size: .86rem; }
.release__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag {
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.tag--new { background: #e9f9ef; color: #0f7a3d; border-color: #c7f0d6; }
.tag--fix { background: #fff4e6; color: #a35a06; border-color: #ffe2bf; }
.tag--sec { background: #fdecec; color: #b42318; border-color: #fbd5d0; }
.release__body ul { margin-bottom: 14px; }
.release__body li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.release__body li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filter-tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-weight: 700; font-size: .9rem;
}
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.testimonial { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.quote__stars { color: var(--star); letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.quote p { color: var(--ink-2); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700); font-weight: 800; flex: 0 0 auto;
}
.quote__who strong { display: block; color: var(--ink); font-size: .95rem; }
.quote__who span { font-size: .82rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(135deg, #1b56c9 0%, #2f7cf0 52%, #4b93ff 100%);
  border-radius: var(--radius-lg); padding: 54px 44px; color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin-bottom: 0; max-width: 620px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; }

/* 10. Tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
table.data caption { caption-side: top; text-align: left; padding: 16px 20px 0; color: var(--muted); font-size: .88rem; }
table.data th, table.data td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.data thead th { background: var(--surface-2); color: var(--ink); font-weight: 800; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #b42318; font-weight: 800; }
.part { color: var(--warn); font-weight: 800; }

/* 11. Accordion ------------------------------------------------------------ */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group > h3 { margin-bottom: 14px; }
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: 10px; overflow: hidden;
}
details.faq[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
details.faq summary {
  cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 700;
  color: var(--ink); position: relative; list-style: none; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.2px solid var(--brand-600); border-bottom: 2.2px solid var(--brand-600);
  transform: rotate(45deg); transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details.faq .faq__body { padding: 0 20px 20px; color: var(--body); }
details.faq .faq__body p:last-child { margin-bottom: 0; }

/* 12. Forms & code --------------------------------------------------------- */
.code-block {
  background: var(--dark-2); color: #d7e3f7; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono);
  font-size: .875rem; line-height: 1.65; border: 1px solid var(--dark-3);
}
.code-block code { font-family: inherit; color: inherit; background: none; padding: 0; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; color: var(--brand-700);
}
.callout {
  border-left: 4px solid var(--brand); background: var(--brand-050);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--warn); background: #fff8ee; }

/* 13. Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }

.page-hero {
  padding: 48px 0 60px;
  background: radial-gradient(760px 380px at 78% -20%, rgba(47,124,240,.15), transparent 60%),
              linear-gradient(180deg, #f7faff, #fff);
  border-bottom: 1px solid var(--line-2);
}
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-left: auto; margin-right: auto; max-width: 760px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin-bottom: 26px; }

.layout-docs { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: var(--surface-2); font-size: .92rem;
}
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--ink-2); font-weight: 600; }
.toc a:hover { color: var(--brand-600); }
.doc-section + .doc-section { margin-top: 46px; }
.doc-section h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section h3 { scroll-margin-top: calc(var(--header-h) + 20px); margin-top: 28px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.badge-row span {
  font-size: .82rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); background: #fff;
  padding: 6px 14px; border-radius: 999px;
}

/* 15. Forms, auth & support ------------------------------------------------ */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(47, 124, 240, .16);
}
.field .hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-inline { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin: 4px 0 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); }
.check input { width: auto; margin: 5px 0 0; flex: 0 0 auto; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 16px; }

.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px;
}
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 26px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.auth-tabs a {
  flex: 1; text-align: center; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; color: var(--muted); font-size: .95rem;
}
.auth-tabs a:hover { color: var(--brand-600); }
.auth-tabs a[aria-current="page"] { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-weight: 700; color: var(--ink-2); font-size: .92rem;
}
.social-btn:hover { border-color: var(--brand-100); color: var(--brand-600); }
.divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
  color: var(--muted); font-size: .85rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.strength { display: flex; gap: 6px; margin-top: 8px; }
.strength i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.strength i.on { background: #34c77b; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.benefit-list li:last-child { border-bottom: 0; }
.benefit-list svg { color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.benefit-list strong { display: block; color: var(--ink); }
.benefit-list span { font-size: .9rem; color: var(--body); }

.chat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.chat__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line-2); background: var(--surface-2);
}
.chat__head strong { color: var(--ink); display: block; font-size: .96rem; }
.chat__head span { font-size: .8rem; color: var(--ok); font-weight: 700; }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; flex: 0 0 auto;
}
.chat__body { padding: 18px; display: grid; gap: 12px; }
.chat__bubble {
  max-width: 88%; padding: 12px 15px; border-radius: 14px;
  font-size: .92rem; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.chat__bubble--me { margin-left: auto; background: var(--brand); color: #fff; border-color: transparent; }
.chat__bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 6px; }
.chat__foot {
  display: flex; gap: 10px; align-items: center; padding: 14px 18px;
  border-top: 1px solid var(--line-2); background: #fbfdff;
}
.chat__foot input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink);
}
.chat__foot button { padding: 11px 18px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; font-weight: 700; }

.channel {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.channel__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600); flex: 0 0 auto;
}
.channel h3 { font-size: 1.02rem; margin-bottom: 4px; }
.channel p { font-size: .9rem; margin-bottom: 8px; }
.channel a { font-weight: 700; font-size: .92rem; }

#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
#toTop.is-visible { opacity: 1; visibility: visible; }

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 20px 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 14px 12px; font-size: 1rem; border-radius: 10px; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { display: none; }

  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .layout-docs { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .testimonial { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 26px; }
  .release { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 46px 0 60px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .brand-logo { height: 42px; }
  .header-inner { gap: 12px; }
  .lang-switch a { padding: 5px 10px; font-size: .8rem; }
  .header-auth a { padding: 5px 9px; font-size: .8rem; }
  .card { padding: 22px; }
  .plan { padding: 24px; }
  .plan__amount { font-size: 2.1rem; }
  .btn { padding: 12px 20px; font-size: .96rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .field-row, .social-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .site-header, .site-footer, #toTop, .cta-band { display: none; }
  body { color: #000; }
}
