/* ============================================================
   NexSite theme — design system (light + dark)
   Tokens mirror the Figma "NexSite Tokens" collection.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --primary: #2b7fff;
  --primary-dark: #1a5fe0;
  --accent: #22d3ee;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-muted: #eaf1fb;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --text: #0b1a33;
  --text-secondary: #4a5b76;
  --text-muted: #8a99b3;
  --border: #e3ebf7;
  --on-primary: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(6, 21, 53, 0.14);
  --grad: linear-gradient(120deg, #2b7fff 0%, #22d3ee 100%);
  --grad-brand: linear-gradient(135deg, #2b7fff, #22d3ee);
  --container: 1200px;
  --header-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

[data-theme='dark'] {
  --primary: #4f8dff;
  --primary-dark: #2b7fff;
  --accent: #34e2f0;
  --bg: #070c18;
  --bg-soft: #0d1526;
  --bg-muted: #111a2e;
  --surface: #111a2e;
  --surface-2: #16223a;
  --text: #eaf1ff;
  --text-secondary: #9fb1cf;
  --text-muted: #63748f;
  --border: #1e2b45;
  --on-primary: #0a1120;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
::selection { background: rgba(43, 127, 255, 0.18); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section.tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 10px; font-weight: 500; font-size: 15px;
  background: var(--primary); color: #fff; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 127, 255, 0.25); }
.btn.outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.outline:hover { background: var(--bg-muted); box-shadow: none; }
.btn.ghost { background: var(--bg-muted); color: var(--primary); }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn.on-grad { background: #fff; color: var(--primary); }
.btn.on-grad:hover { background: #f0f6ff; }
.btn.outline-grad { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  color: #fff; font-weight: 700; font-size: 17px; display: grid; place-items: center;
}
.brand-logo { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a { color: var(--text-secondary); font-size: 15px; transition: color 0.15s; }
.primary-nav a:hover, .primary-nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-muted); border: 1px solid transparent; color: var(--text-secondary); cursor: pointer;
}
.icon-btn:hover { color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 9px;
  background: var(--bg-muted); font-size: 13px; color: var(--text-secondary);
}
.lang-toggle .on { color: var(--text); font-weight: 500; }
.theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); padding: 92px 0 100px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; right: -80px; top: -140px; background: rgba(43,127,255,0.20); }
.hero::after { width: 440px; height: 440px; left: -120px; bottom: -160px; background: rgba(34,211,238,0.18); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { font-size: 54px; line-height: 1.15; margin: 20px 0 0; }
.hero h1 .hl { color: var(--primary); }
.hero .lead { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; background: linear-gradient(135deg, #9ec1f5, #b6d6f5); }
.avatars span:first-child { margin-left: 0; }
.trust-row .t { font-size: 13px; color: var(--text-secondary); }

/* Hero AI dashboard mock */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.dashboard {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 22px 24px 24px;
}
.dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard-title { display: flex; align-items: center; gap: 10px; }
.ai-badge { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.dashboard-title .t1 { font-weight: 500; font-size: 15px; }
.dashboard-title .t2 { font-size: 11px; color: var(--text-muted); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; }
.win-dots i:nth-child(1){background:#fb6767;} .win-dots i:nth-child(2){background:#fbbf4d;} .win-dots i:nth-child(3){background:#4dcc80;}
.chart { background: var(--bg-muted); border-radius: 14px; padding: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 190px; }
.chart .bar { width: 22px; border-radius: 6px 6px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.chips { display: flex; gap: 12px; margin-top: 16px; }
.chip-stat { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.chip-stat .l { font-size: 11px; color: var(--text-muted); }
.chip-stat .v { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.chip-stat .v em { color: var(--accent); font-style: normal; font-size: 13px; }
.float-badge {
  position: absolute; top: -14px; right: 8px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 12px; font-weight: 500; z-index: 2;
}
.float-badge .spark { width: 16px; height: 16px; border-radius: 50%; background: var(--grad-brand); }

/* ---------- Trust logos ---------- */
.logo-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; text-align: center; }
.logo-bar .cap { font-size: 13px; color: var(--text-muted); letter-spacing: 0.03em; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px; margin-top: 20px; }
.logo-strip span { font-size: 22px; font-weight: 600; color: var(--text-muted); opacity: 0.65; letter-spacing: 0.04em; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--bg-muted); color: var(--primary); font-size: 12px; font-weight: 500; }
.section-head h2 { font-size: 34px; margin: 14px 0 0; }
.section-head p { color: var(--text-secondary); font-size: 16px; margin-top: 12px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; flex-wrap: wrap; }
.link-more { color: var(--primary); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease; color: inherit;
}
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 14px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card .body { padding: 20px 24px 24px; }

.icon-tile { width: 52px; height: 52px; border-radius: 13px; background: var(--bg-muted); display: grid; place-items: center; color: var(--primary); margin-bottom: 16px; }
.icon-tile svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* image placeholder */
.img-ph { background: var(--bg-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); }
.img-ph svg { width: 46px; height: 38px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.img-ph .cap { font-size: 12px; }
.cover-ph { aspect-ratio: 16 / 9; width: 100%; }

/* tag / badge */
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--bg-muted); color: var(--primary); font-size: 12px; font-weight: 500; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-muted); color: var(--text-secondary); font-size: 12px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad); border-radius: 24px; padding: 44px 40px; display: flex; align-items: center; overflow: hidden; position: relative; }
.stats-band .col { flex: 1; text-align: center; color: #fff; }
.stats-band .num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.stats-band .lbl { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.stats-band .divider { width: 1px; height: 52px; background: rgba(255,255,255,0.25); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #1760e6, #1fb0e6); position: relative; overflow: hidden; text-align: center; padding: 76px 0; color: #fff; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; filter: blur(100px); }
.cta-band::before { width: 460px; height: 460px; left: -120px; top: -160px; background: rgba(255,255,255,0.14); }
.cta-band::after { width: 420px; height: 420px; right: -100px; bottom: -140px; background: rgba(255,255,255,0.16); }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 38px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 17px; margin: 14px auto 0; max-width: 620px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }
.pill-light { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,0.16); font-size: 13px; margin-bottom: 20px; }
.pill-light .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--bg-soft); padding: 64px 0 52px; text-align: center; }
.page-hero.left { text-align: left; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.page-hero.left .breadcrumb { justify-content: flex-start; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .cur { color: var(--primary); font-weight: 500; }
.page-hero h1 { font-size: 40px; }
.page-hero .sub { color: var(--text-secondary); font-size: 16px; margin-top: 12px; }

/* ---------- Filter tabs / pagination ---------- */
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills a { padding: 9px 16px; border-radius: 999px; background: var(--bg-muted); color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.pills a.active { background: var(--primary); color: #fff; }
.search-box { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,127,255,0.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-wrap { background: var(--bg-soft); padding: 64px 0 80px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 36px; }
.auth-card h1 { font-size: 24px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.oauth-row { display: flex; gap: 12px; }
.oauth-row a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }

/* ---------- Tables ---------- */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg-muted); text-align: left; font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 14px 24px; }
.data-table td { padding: 15px 24px; font-size: 13px; border-top: 1px solid var(--border); color: var(--text); }
.data-table tr:first-child td { border-top: none; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.acc-item[open] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 16px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: '⌄'; color: var(--text-muted); font-size: 18px; transition: transform 0.2s; }
.acc-item[open] summary { font-weight: 700; }
.acc-item[open] summary::after { transform: rotate(180deg); }
.acc-item .ans { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-top: 12px; }

/* ---------- Prose (article) ---------- */
.article-head { background: var(--bg-soft); padding: 56px 0 44px; text-align: center; }
.article-head h1 { font-size: 36px; line-height: 1.35; max-width: 900px; margin: 16px auto 0; }
.article-meta { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.article-meta .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 48px 0 72px; align-items: start; }
.article-body.no-side { grid-template-columns: minmax(0, 820px); justify-content: center; margin: 0 auto; }
.prose { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 22px; color: var(--text); margin-top: 32px; }
.prose h3 { font-size: 18px; color: var(--text); margin-top: 24px; }
.prose p { color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose img { border-radius: 12px; margin: 12px 0; }
.prose blockquote { border-left: 3px solid var(--primary); background: var(--bg-muted); padding: 12px 20px; border-radius: 8px; color: var(--text); margin: 0; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.prose code { background: var(--bg-muted); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.prose a { color: var(--primary); text-decoration: underline; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.side-card h4 { font-size: 15px; margin-bottom: 12px; }
.side-card .toc a { display: block; padding: 5px 0; color: var(--text-secondary); font-size: 14px; }
.side-card .toc a.active { color: var(--primary); font-weight: 500; }
.side-card.grad { background: var(--grad); color: #fff; }
.side-card.grad h4 { color: #fff; }
.side-card.grad p { color: rgba(255,255,255,0.9); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: #070c18; color: #fff; padding: 64px 0 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.7; margin-top: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; }
.footer-bottom span, .footer-bottom a { color: rgba(255,255,255,0.45); font-size: 12px; }

/* ---------- Misc pages ---------- */
.empty-404 { position: relative; overflow: hidden; background: var(--bg-soft); text-align: center; padding: 96px 0; }
.empty-404 .big { font-size: 120px; font-weight: 700; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-muted); display: grid; place-items: center; margin: 0 auto; color: var(--primary); }

/* generic helpers */
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

/* ---------- Legacy compat (account / auth / subscribe forms with inline JS) ---------- */
.container.narrow { max-width: 480px; }
.empty { text-align: center; color: var(--text-muted); padding: 60px 0; }
.page-hero .muted { color: var(--text-secondary); }
form.card { display: block; }
form.card label { display: block; margin-bottom: 15px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
form.card label input, form.card label textarea, form.card label select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit;
}
form.card label input:focus, form.card label textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,127,255,0.12); }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.actions .btn { justify-content: center; }
.actions a { text-align: center; font-size: 13px; }
.account-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.account-tabs a { padding: 12px 0; margin-right: 26px; color: var(--text-secondary); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--primary); }
.account-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; color: var(--text); }
table.orders { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table.orders th { background: var(--bg-muted); text-align: left; font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 14px 20px; }
table.orders td { padding: 14px 20px; font-size: 13px; border-top: 1px solid var(--border); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .article-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
  .nav-toggle { display: grid; }
  body.nav-open .primary-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px; box-shadow: var(--shadow-md);
  }
  body.nav-open .primary-nav a { padding: 10px 0; width: 100%; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2, .cta-band h2 { font-size: 27px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-band { flex-wrap: wrap; gap: 24px 0; }
  .stats-band .col { flex-basis: 50%; }
  .stats-band .divider { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .header-actions .lang-toggle { display: none; }
}
