/* tabsus — shared stylesheet */
:root,
[data-theme="dark"] {
  --bg: #07080d;
  --bg-elev: #0c0e15;
  --bg-card: #0f1219;
  --bg-header: rgba(7,8,13,0.78);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e7e9ee;
  --text-dim: #9ba3b4;
  --text-muted: #6b7385;
  --accent: #2f7bff;
  --accent-soft: #2f7bff22;
  --accent-line: #2f7bff55;
  --danger: #ef5350;
  --danger-soft: #ef535022;
  --ok: #22c55e;
  --warn: #f5b400;
  --radius: 14px;
  --vs-bad-bg: linear-gradient(180deg, #1a0e10 0%, #0e0c0e 100%);
  --vs-good-bg: linear-gradient(180deg, #0c1726 0%, #0a1018 100%);
  --hero-glow: #2f7bff22;
  --preview-glow: #2f7bff33;
  --table-row-us: rgba(47,123,255,0.04);
  --code-bg: rgba(255,255,255,0.04);
}
[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-header: rgba(247,248,251,0.85);
  --border: rgba(15,18,25,0.08);
  --border-strong: rgba(15,18,25,0.16);
  --text: #0f1219;
  --text-dim: #4a5263;
  --text-muted: #6b7385;
  --accent: #2563eb;
  --accent-soft: #2563eb14;
  --accent-line: #2563eb55;
  --danger: #dc2626;
  --danger-soft: #dc262614;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 14px;
  --vs-bad-bg: linear-gradient(180deg, #fff5f5 0%, #fef0f0 100%);
  --vs-good-bg: linear-gradient(180deg, #eef4ff 0%, #f5f8ff 100%);
  --hero-glow: #2563eb1a;
  --preview-glow: #2563eb22;
  --table-row-us: rgba(37,99,235,0.05);
  --code-bg: rgba(15,18,25,0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(140deg, #2f7bff 0%, #1a4fcc 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 24px -8px #2f7bff55;
}
.brand .logo svg { width: 16px; height: 16px; }
.brand b { color: var(--text); }
.brand-by {
  display: flex; align-items: center; gap: 6px;
  margin-left: 4px;
}
.brand-sep {
  font-size: 11px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.c8x-logo {
  height: 26px; width: 26px;
  object-fit: cover;
  border-radius: 6px;
  opacity: .9;
  transition: opacity .15s ease;
}
[data-theme="dark"] .c8x-logo {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14);
}
.brand:hover .c8x-logo { opacity: 1; }
.nav-links {
  display: flex; gap: 28px; font-size: 13.5px; color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text);
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background: var(--accent); border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 28px -10px var(--accent-line);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.icon {
  width: 38px; height: 38px; padding: 0; justify-content: center;
  border-radius: 10px;
}
.btn.icon svg { width: 16px; height: 16px; }
.icon-sun, .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: block; }
.btn.lg { padding: 14px 22px; font-size: 14px; border-radius: 12px; }
.btn.ghost { border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 28px;
}
.pill .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.pill b { color: var(--text); font-weight: 600; }
.pill .by-link { color: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 600px;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
h1.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--text);
  text-wrap: balance;
}
h1.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 600px; margin: 0 auto 36px;
  text-wrap: pretty;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--ok); }

/* ---------- product preview ---------- */
.preview-wrap { margin: 72px auto 0; max-width: 1180px; position: relative; }
.preview-wrap::before {
  content: ""; position: absolute; inset: -40px -20px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--preview-glow) 0%, transparent 70%);
  filter: blur(40px); z-index: -1; opacity: .6;
}
.browser {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.browser-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-url {
  flex: 1; max-width: 380px; margin: 0 auto;
  padding: 5px 14px; border-radius: 7px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.browser-url svg { width: 12px; height: 12px; color: var(--ok); }
.browser-body { background: #fff; }
.browser-body img { width: 100%; height: auto; display: block; }

/* ---------- sections ---------- */
section { padding: 112px 0; position: relative; }
.sec-label {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 11.5px; font-weight: 600;
  color: var(--accent); margin-bottom: 14px;
}
h2.sec-title {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 18px; color: var(--text);
  font-weight: 700; text-wrap: balance;
}
p.sec-lead {
  font-size: 16px; color: var(--text-dim); max-width: 640px;
  line-height: 1.55; margin: 0 0 56px;
}
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto 56px; text-align: center; }
.sec-head.center p.sec-lead { margin-left: auto; margin-right: auto; }

/* ---------- comparison split (vs) ---------- */
.vs-wrap {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  display: grid; grid-template-columns: 1fr 1fr;
}
.vs-col { padding: 36px 36px 32px; position: relative; }
.vs-col.bad { background: var(--vs-bad-bg); }
.vs-col.good { background: var(--vs-good-bg); }
.vs-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--border-strong);
  pointer-events: none;
}
.vs-divider::after {
  content: "VS";
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}
.vs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.vs-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; padding: 4px 9px; border-radius: 5px;
  letter-spacing: 0.05em;
}
.vs-col.bad .vs-tag { background: var(--danger-soft); color: var(--danger); }
.vs-col.good .vs-tag { background: var(--accent-soft); color: var(--accent); }
.vs-col h3 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.015em;
}
.vs-col .vs-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 26px; }
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start;
  font-size: 14px; color: var(--text); line-height: 1.5;
}
.vs-list li small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }
.vs-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  margin-top: 1px;
}
.vs-col.bad .vs-icon { background: var(--danger-soft); color: var(--danger); }
.vs-col.good .vs-icon { background: var(--accent-soft); color: var(--accent); }
.vs-icon svg { width: 11px; height: 11px; }

/* ---------- comparison table ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td {
  padding: 16px 22px; text-align: left;
  border-bottom: 1px solid var(--border);
}
table.compare th {
  font-weight: 600; font-size: 13px;
  color: var(--text-dim); background: rgba(127,127,127,0.04);
}
table.compare th.us { color: var(--accent); background: var(--table-row-us); }
table.compare td:first-child { color: var(--text-dim); font-size: 13.5px; }
table.compare td.us { color: var(--text); font-weight: 500; background: var(--table-row-us); }
table.compare td .ok { color: var(--ok); }
table.compare td .bad { color: var(--danger); }
table.compare tr:last-child td { border-bottom: 0; }

/* ---------- cta card ---------- */
.cta-card {
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, var(--hero-glow) 0%, transparent 60%),
    var(--bg-card);
  border-radius: 20px;
  padding: 72px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-card h2 {
  font-size: clamp(26px, 3vw, 38px); margin: 0 0 14px;
  letter-spacing: -0.02em; font-weight: 700; color: var(--text);
  text-wrap: balance;
}
.cta-card p { color: var(--text-dim); margin: 0 0 28px; font-size: 15.5px; max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.cta-card em { font-style: normal; color: var(--accent); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 64px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.foot-meta { color: var(--text-muted); font-size: 12.5px; }
.foot-meta b { color: var(--text-dim); }
.foot-links { display: flex; gap: 22px; font-size: 12.5px; color: var(--text-muted); }
.foot-links a:hover { color: var(--text); }

/* ---------- blog index ---------- */
.blog-hero { padding: 80px 0 32px; }
.blog-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px); margin: 0 0 18px;
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text); font-weight: 700; max-width: 760px;
  text-wrap: balance;
}
.blog-hero p {
  font-size: 17px; color: var(--text-dim); max-width: 580px;
  line-height: 1.55; margin: 0;
}
.post-list { display: grid; gap: 0; padding: 32px 0 80px; }
.post-card {
  display: grid; grid-template-columns: 140px 1fr auto;
  align-items: center; gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: transform .2s ease;
}
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card:hover { transform: translateX(4px); }
.post-card:hover h3 { color: var(--accent); }
.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.post-card h3 {
  margin: 0 0 6px; font-size: 20px; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--text); font-weight: 600;
  transition: color .15s ease;
}
.post-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; max-width: 640px; }
.post-arrow { color: var(--text-muted); font-size: 18px; }

/* ---------- article ---------- */
.article-head { padding: 80px 0 24px; }
.article-head .back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; margin-bottom: 32px;
  transition: color .15s ease;
}
.article-head .back:hover { color: var(--accent); }
.article-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 18px;
}
.article-meta .tag {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 9px; border-radius: 5px; font-size: 11px;
}
.article-head h1 {
  font-size: clamp(32px, 4.5vw, 50px); margin: 0 0 18px;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--text); font-weight: 700; text-wrap: balance;
}
.article-head .lede {
  font-size: 18px; color: var(--text-dim); line-height: 1.55;
  margin: 0; max-width: 640px;
}

.article-body { padding: 16px 0 80px; font-size: 16px; line-height: 1.7; color: var(--text-dim); }
.article-body h2 {
  color: var(--text); font-size: 26px; letter-spacing: -0.02em;
  margin: 56px 0 16px; font-weight: 700; line-height: 1.2;
}
.article-body h3 {
  color: var(--text); font-size: 18px; letter-spacing: -0.01em;
  margin: 36px 0 10px; font-weight: 600;
}
.article-body p { margin: 0 0 18px; }
.article-body p b, .article-body p strong { color: var(--text); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 10px; }
.article-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.9em;
  background: var(--code-bg); padding: 2px 7px; border-radius: 5px;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0; padding: 6px 0 6px 22px;
  font-size: 17px; color: var(--text);
  font-style: normal;
}
.article-body blockquote p { margin: 0; }
.article-body hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 48px 0;
}
.callout {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.callout strong { display: block; color: var(--accent); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 600; }

.article-cta {
  margin-top: 64px;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 16px;
}
.article-cta h3 { margin: 0; color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
.article-cta p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.article-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 32px; }
  .vs-wrap { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
  section { padding: 72px 0; }
  table.compare th, table.compare td { padding: 12px 14px; font-size: 13px; }
  .post-card { grid-template-columns: 1fr; gap: 6px; }
  .post-arrow { display: none; }
  .article-body { font-size: 15.5px; }
  .article-body h2 { font-size: 22px; }
}

/* ==========================================================
   ANIMATIONS & VISUAL ENHANCEMENTS
   ========================================================== */

/* ---- theme vars for new elements ---- */
:root,
[data-theme="dark"] {
  --blob-1: rgba(47,123,255,0.22);
  --blob-2: rgba(124,58,237,0.14);
  --grid-line: rgba(47,123,255,0.07);
}
[data-theme="light"] {
  --blob-1: rgba(37,99,235,0.13);
  --blob-2: rgba(124,58,237,0.08);
  --grid-line: rgba(37,99,235,0.055);
}

/* ---- hero animated background ---- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(96px);
  will-change: transform;
  animation: blobFloat 14s ease-in-out infinite;
}
.hero-blob.b1 {
  width: 680px; height: 680px;
  top: -300px; left: -200px;
  background: radial-gradient(circle, var(--blob-1) 0%, transparent 65%);
}
.hero-blob.b2 {
  width: 540px; height: 540px;
  top: -200px; right: -140px;
  background: radial-gradient(circle, var(--blob-2) 0%, transparent 65%);
  animation-duration: 18s;
  animation-direction: reverse;
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(28px,-22px) scale(1.04); }
  66%       { transform: translate(-22px,24px) scale(0.97); }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 0%, transparent 68%);
}

/* ---- stats strip ---- */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative; overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%);
  opacity: .4;
}
.stats-row {
  display: flex; align-items: stretch;
  justify-content: space-around; flex-wrap: wrap;
  position: relative;
}
.stat-item {
  flex: 1; min-width: 160px;
  padding: 30px 20px; text-align: center;
}
.stat-num {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text);
  margin-bottom: 5px; line-height: 1.1;
}
.stat-label {
  font-size: 12px; color: var(--text-muted); line-height: 1.45;
}
.stat-sep {
  width: 1px; background: var(--border);
  align-self: stretch; margin: 14px 0; flex-shrink: 0;
}
.badge-ok {
  display: inline-block;
  background: var(--ok); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.06em; text-transform: uppercase;
  vertical-align: middle; font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

/* ---- vs card enhancements ---- */
.vs-wrap {
  box-shadow: 0 32px 64px -20px rgba(0,0,0,0.35);
}
.vs-col {
  transition: transform .3s ease;
}
.vs-col:hover { transform: translateY(-3px); }

/* ---- vs footnote ---- */
.vs-footnote {
  text-align: center; margin: 36px 0 0;
  color: var(--text-muted); font-size: 13.5px;
}
.vs-footnote a { color: var(--accent); font-weight: 500; }
.vs-footnote a:hover { text-decoration: underline; }

/* ---- cta card enhancements ---- */
.cta-card {
  box-shadow: 0 40px 80px -30px rgba(47,123,255,0.18);
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 110%, var(--accent-soft) 0%, transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }

/* ---- browser body subtle bg ---- */
[data-theme="dark"] .browser-body { background: #0f1117; }

/* ---- lightbox ---- */
img.expandable {
  cursor: zoom-in;
  transition: opacity .15s ease;
}
img.expandable:hover { opacity: .88; }

#lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
#lightbox.open {
  opacity: 1; pointer-events: all;
}
#lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
  transform: scale(.96);
  transition: transform .25s ease;
}
#lightbox.open img { transform: scale(1); }
#lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 22px; line-height: 1;
  width: 40px; height: 40px; border-radius: 10px;
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
#lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ---- funcionalidades page ---- */
.feat-hero { padding: 80px 0 48px; }
.feat-hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 18px;
  color: var(--text); text-wrap: balance;
}
.feat-hero-lead {
  font-size: 17px; color: var(--text-dim);
  max-width: 580px; line-height: 1.6; margin: 0;
}

.feat-section {
  border-top: 1px solid var(--border);
  padding: 88px 0;
}
.feat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.feat-inner.reverse .feat-shots { order: -1; }

.feat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px; border-radius: 5px;
  margin-bottom: 18px;
}
.feat-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin: 0 0 14px;
  color: var(--text);
}
.feat-desc {
  font-size: 15.5px; color: var(--text-dim);
  line-height: 1.65; margin: 0 0 28px;
}
.feat-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.feat-list li {
  display: grid; grid-template-columns: 20px 1fr;
  gap: 12px; align-items: start;
  font-size: 14px; color: var(--text-dim); line-height: 1.55;
}
.feat-list li b { color: var(--text); font-weight: 600; }
.feat-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.feat-check svg { width: 10px; height: 10px; }

.feat-shots { display: grid; gap: 14px; }
.feat-shot {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 16px 48px -16px rgba(0,0,0,0.3);
}
.feat-shot img {
  width: 100%; display: block;
  cursor: zoom-in; transition: opacity .15s ease;
}
.feat-shot img:hover { opacity: .88; }
.feat-shot-label {
  padding: 8px 14px;
  font-size: 11.5px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* more modules grid */
.feat-more-section {
  border-top: 1px solid var(--border);
  padding: 88px 0;
}
.feat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 26px 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feat-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(47,123,255,0.12);
}
.feat-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feat-card-icon svg { width: 18px; height: 18px; }
.feat-card h3 {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
  margin: 0 0 8px;
}
.feat-card p {
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.6; margin: 0;
}
.feat-card-header {
  display: flex; align-items: center;
  gap: 10px; margin: 0 0 8px;
}
.feat-card-header h3 { margin: 0; }
.feat-card-soon {
  border-style: dashed;
  opacity: .85;
}
.feat-cards:has(.feat-card-soon:only-child) {
  grid-template-columns: minmax(0, 360px);
}
.feat-soon-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--warn); color: #000;
  padding: 2px 8px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}

@media (max-width: 900px) {
  .feat-inner { grid-template-columns: 1fr; gap: 40px; }
  .feat-inner.reverse .feat-shots { order: 0; }
  .feat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feat-cards { grid-template-columns: 1fr; }
}

/* ---- responsive stats ---- */
@media (max-width: 700px) {
  .stat-sep { display: none; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .hero-blob { display: none; }
}
