/* Ondalux Heatmap website — dark, modern, animated. No external assets. */

:root {
  --bg: #07090d;
  --bg-2: #0c1016;
  --surface: #121722;
  --surface-2: #171d2a;
  --border: #232b3a;
  --text: #e8ecf3;
  --muted: #94a0b4;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --green: #22c55e;
  --yellow: #facc15;
  --orange: #f97316;
  --heat: linear-gradient(90deg, #22c55e, #a3e635 30%, #facc15 55%, #f97316 80%, #ef4444);
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 20px; border-radius: 12px;
  font-weight: 650; font-size: .97rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn--lg { --h: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn--small { --h: 36px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn--primary {
  background: linear-gradient(180deg, #4b8df8, #2563eb);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(59, 130, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transition: transform .7s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(59, 130, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #34405a; transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 9, 13, .72); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255, 255, 255, .06); }
.nav__inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 800; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--heat); transform: scaleX(0); transition: transform .3s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--border); border-radius: 9px; padding: 6px 10px; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--text); border-color: #3a4660; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle span + span { margin-top: 7px; }

.lang-hint {
  position: fixed; z-index: 60; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 10px 10px 16px; box-shadow: var(--shadow); font-size: .92rem;
  animation: slide-up .5s ease both;
}
.lang-hint a { color: var(--accent-2); font-weight: 650; }
.lang-hint button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; }
.lang-hint button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; isolation: isolate; }
.hero__heat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; filter: blur(28px) saturate(130%); transform: scale(1.08); }
.hero__fade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% 20%, transparent, var(--bg) 75%),
    linear-gradient(180deg, rgba(7, 9, 13, .2), var(--bg) 92%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: #cfe0ff;
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .28);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 2.2s infinite; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; margin: 22px 0 20px; letter-spacing: -.035em; }
.grad {
  background: linear-gradient(90deg, #4ade80, #facc15, #fb923c, #60a5fa, #4ade80);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #b6c0d1; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.hero__shot { position: relative; perspective: 1400px; }

.window {
  border-radius: var(--radius); overflow: hidden;
  background: #0d1118; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px -30px rgba(59, 130, 246, .45);
}
.window__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #121722; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3242; }
.window__bar i:nth-child(1) { background: #f87171; }
.window__bar i:nth-child(2) { background: #fbbf24; }
.window__bar i:nth-child(3) { background: #4ade80; }
.window__bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.tilt { transform: rotateY(-9deg) rotateX(5deg); transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }

.float-card {
  position: absolute; z-index: 2;
  background: rgba(18, 23, 34, .86); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; font-size: .88rem;
}
.float-card--a { left: -26px; bottom: 34px; display: grid; animation: bob 6s ease-in-out infinite; }
.float-card--b { right: -14px; top: -18px; display: flex; align-items: center; gap: 9px; font-weight: 600; animation: bob 7s ease-in-out -2s infinite; }
.float-card__value { font-size: 1.7rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.float-card__label { color: var(--muted); font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--green); box-shadow: 0 0 12px var(--green); }

/* ---------- stats ---------- */
.stats { border-block: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 18px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: rgba(255, 255, 255, .07); }
.stat__value { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.section__lead { color: #aab5c7; font-size: 1.1rem; margin-top: 16px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(96, 165, 250, .14), transparent 45%);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: #34405a; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  color: #bcd4ff; font-size: 1.35rem;
  background: linear-gradient(140deg, rgba(59, 130, 246, .28), rgba(34, 197, 94, .16));
  border: 1px solid rgba(96, 165, 250, .28);
}
.card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { color: #a2adbf; margin-top: 10px; font-size: .97rem; }
.tag { font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: #fdba74; background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .35); border-radius: 999px; padding: 2px 8px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border);
  transition: background .3s, border-color .3s, transform .3s;
}
.step:hover { background: rgba(255, 255, 255, .045); border-color: #34405a; transform: translateY(-4px); }
.step__n {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #0b0d12; background: var(--heat); background-size: 600% 100%;
}
.step:nth-child(1) .step__n { background-position: 0% 0; }
.step:nth-child(2) .step__n { background-position: 20% 0; }
.step:nth-child(3) .step__n { background-position: 40% 0; }
.step:nth-child(4) .step__n { background-position: 60% 0; }
.step:nth-child(5) .step__n { background-position: 80% 0; }
.step:nth-child(6) .step__n { background-position: 100% 0; }
.step p { color: #a2adbf; margin-top: 6px; font-size: .95rem; }

/* ---------- gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.tab {
  font: 600 .92rem var(--font); color: var(--muted); cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px;
  transition: color .2s, background .2s, border-color .2s;
}
.tab:hover { color: var(--text); border-color: #34405a; }
.tab[aria-selected="true"] { color: #fff; background: rgba(59, 130, 246, .2); border-color: rgba(96, 165, 250, .5); }
.gallery { margin: 0; max-width: 1080px; margin-inline: auto; }
.gallery__img { transition: opacity .35s ease, transform .5s ease; }
.gallery__img.is-swapping { opacity: 0; transform: scale(.985); }
.gallery__caption { text-align: center; color: var(--muted); margin-top: 22px; min-height: 1.6em; }

/* ---------- reports ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #c6cfdd; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(34, 197, 94, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pages { position: relative; height: 560px; }
.page {
  position: absolute; width: 62%; border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .1); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.page--back { right: 2%; top: 30px; transform: rotate(6deg); }
.page--front { left: 6%; top: 0; transform: rotate(-4deg); }
.pages:hover .page--back { transform: rotate(10deg) translate(26px, 8px); }
.pages:hover .page--front { transform: rotate(-7deg) translate(-26px, -6px); }

/* ---------- download ---------- */
.download { padding-top: 130px; }
.download__card {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; padding: 64px 32px 48px; border-radius: 28px;
  background: linear-gradient(180deg, #111725, #0b0f17); border: 1px solid var(--border);
}
.download__glow {
  position: absolute; inset: -40%; z-index: -1; opacity: .5;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, .35), rgba(34, 197, 94, .25), transparent 40%, rgba(249, 115, 22, .25), transparent 70%);
  animation: spin 18s linear infinite; filter: blur(50px);
}
.download__card > img { margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 18px 50px -12px rgba(59, 130, 246, .7); animation: bob 6s ease-in-out infinite; }
.download__card .section__lead { max-width: 560px; margin: 14px auto 30px; }
.download__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin: 34px 0 0; }
.download__meta div { text-align: center; }
.download__meta dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.download__meta dd { margin: 4px 0 0; font-weight: 650; }
.download__more { margin: 30px auto 0; max-width: 640px; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.download__more summary { cursor: pointer; font-weight: 600; color: #c6cfdd; }
.download__more p { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.sha { display: block; margin-top: 6px; font: .82rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: #a5c8ff; word-break: break-all; background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 8px 10px; }
.download__other { margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .25s, background .25s; }
.faq__item[open] { border-color: #34405a; background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-weight: 650; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__item p { color: #a2adbf; padding-bottom: 20px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 50px 0 60px; }
.footer__inner { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); }
.footer__small { font-size: .86rem; }
.footer a { color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .tilt { transform: none; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .pages { height: 480px; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: rgba(7, 9, 13, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav__links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(7, 9, 13, .97); }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__actions .btn--small { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .section { padding: 90px 0; }
}
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; height: auto; min-height: var(--h); padding-block: 10px; line-height: 1.25; }
  .download__card .btn { width: 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  .float-card--a { left: 8px; bottom: -18px; }
  .float-card--b { right: 8px; top: -16px; font-size: .78rem; }
  .pages { height: 380px; }
  .download__card { padding: 48px 20px 36px; }
  .btn--lg { padding: 0 20px; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- inner pages: articles (guide, privacy) ---------- */
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.article { padding: 140px 0 90px; }
.article__head { margin-bottom: 40px; }
.article__head h1, .subhero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 18px; }
.article__lead { font-size: 1.15rem; color: #b6c0d1; }
.article__meta { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.article__body { color: #c3ccda; font-size: 1.04rem; line-height: 1.75; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { color: var(--text); font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2.4em; scroll-margin-top: 90px; }
.article__body h3 { color: var(--text); margin-top: 1.8em; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: .5em; }
.article__body strong { color: var(--text); }
.article__body a:not(.btn) { color: var(--accent-2); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 26px; }
.toc p { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc a { color: #c3ccda; text-decoration: none; }
.toc a:hover { color: var(--accent-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th { text-align: left; background: #0f1520; color: var(--text); font-weight: 650; padding: 12px 16px; white-space: nowrap; }
.table-wrap td { padding: 11px 16px; border-top: 1px solid var(--border); }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.defs { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.defs dt { color: var(--text); font-weight: 650; }
.defs dd { margin: 0; }
.cta-box { margin-top: 3em; text-align: center; padding: 40px 28px; border-radius: 22px; background: linear-gradient(160deg, rgba(59, 130, 246, .16), rgba(34, 197, 94, .08)); border: 1px solid rgba(96, 165, 250, .25); }
.cta-box h2 { margin: 0 0 8px !important; }
.cta-box p { margin: 0 0 22px; color: #b6c0d1; }

/* ---------- open-source page ---------- */
.subhero { padding: 150px 0 40px; text-align: center; position: relative; }
.subhero::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; background: radial-gradient(700px 320px at 50% 0%, rgba(59, 130, 246, .22), transparent 70%); }
.subhero__inner .hero__cta { justify-content: center; }
.section--tight { padding: 80px 0; }
.split--top { align-items: start; }
.crates { display: grid; gap: 12px; }
.crate { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s; }
.crate:hover { border-color: #34405a; transform: translateX(4px); }
.crate code { font: 600 .92rem ui-monospace, "Cascadia Code", Consolas, monospace; color: #a5c8ff; }
.crate p { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.code { margin: 0; background: #0a0e15; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; overflow-x: auto; font: .95rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; color: #d6e2ff; }
.note { color: var(--muted); font-size: .93rem; margin-top: 14px; text-align: center; }
.note code, .article__body code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roadmap li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: #c3ccda; }
.tag--blue { color: #93c5fd; background: rgba(59, 130, 246, .14); border-color: rgba(96, 165, 250, .35); white-space: nowrap; }
.docs-title { margin: 48px 0 14px; text-align: center; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.docs a { display: block; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: #c3ccda; transition: border-color .25s, color .25s; }
.docs a:hover { border-color: rgba(96, 165, 250, .5); color: var(--text); }
.btn.is-static { cursor: default; color: var(--muted); }
.btn.is-static:hover { transform: none; }

/* ---------- ad slots (space reserved so the page does not jump) ---------- */
.ad { display: block; margin-block: 48px; text-align: center; }
.ad__label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #5f6b80; margin-bottom: 8px; }
.ad .adsbygoogle, .ad__placeholder { min-height: 120px; border-radius: 12px; }
.ad__placeholder { display: grid; place-items: center; border: 1px dashed #3a4660; color: #5f6b80; font: .85rem ui-monospace, Consolas, monospace; }
.article__body .ad { margin-block: 2.4em; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .toc ol { columns: 1; }
  .defs { grid-template-columns: 1fr; gap: 4px; }
  .defs dd { margin-bottom: 12px; }
  .docs { grid-template-columns: 1fr; }
  .ad .adsbygoogle, .ad__placeholder { min-height: 250px; }
  .article { padding-top: 120px; }
}

/* ---------- articles ---------- */
.crumbs { margin-bottom: 18px; font-size: .92rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.post-grid--small { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.post:hover { transform: translateY(-5px); border-color: rgba(96, 165, 250, .45); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.post .tag, .feature-post .tag { align-self: flex-start; color: #93c5fd; background: rgba(59, 130, 246, .12); border-color: rgba(96, 165, 250, .3); }
.post h3 { font-size: 1.2rem; }
.post p { color: #a2adbf; font-size: .96rem; flex: 1; }
.post__meta { color: var(--muted); font-size: .85rem; }
.note a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.post-grid--small .post { padding: 20px; }
.post-grid--small .post h3 { font-size: 1.02rem; }
.post-grid--small .post p { font-size: .9rem; }
.feature-post {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center;
  padding: 34px; border-radius: 24px; text-decoration: none; color: inherit;
  background: linear-gradient(150deg, rgba(59, 130, 246, .16), rgba(34, 197, 94, .06) 60%, transparent), var(--surface);
  border: 1px solid rgba(96, 165, 250, .28); transition: transform .3s ease, box-shadow .3s ease;
}
.feature-post:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(59, 130, 246, .55); }
.feature-post h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 14px 0 12px; }
.feature-post p { color: #b6c0d1; }
.feature-post img { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow); }
.feature-post__more { display: inline-block; margin-top: 18px; color: var(--accent-2); font-weight: 650; }
.related { margin-top: 3.2em; }
.related h2 { margin-bottom: .6em !important; }
.article__body a.post, .article__body a.post:hover { color: inherit; }

@media (max-width: 1020px) {
  .feature-post { grid-template-columns: 1fr; }
  .post-grid--small { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .feature-post { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
