/* =============================================================================
   NativeX showcase stylesheet.
   Retro Windows 95/98 skin: teal desktop, gray beveled windows, navy title bars,
   system fonts, sharp corners and underlined links. Vanilla CSS; platform
   brand glyphs on the product page come from Font Awesome. The legacy variable
   names are preserved because the HTML still references them inline, but they
   are mapped to the retro palette.
   ========================================================================== */

:root {
  /* Retro Win9x palette. */
  --desk: #008080;        /* classic teal desktop */
  --face: #c0c0c0;        /* classic silver window gray */
  --face-2: #cbcbcb;
  --hi: #ffffff;          /* bevel highlight */
  --hi-2: #dfdfdf;
  --sh: #808080;          /* bevel shadow */
  --sh-2: #0a0a0a;
  --title: #000080;       /* navy title bar */
  --title-2: #1084d0;     /* navy-to-blue gradient end */
  --ink: #000000;
  --link: #0000cc;
  --link-visited: #551a8b;
  --sys: "Tahoma", "MS Sans Serif", "Segoe UI", Geneva, Verdana, sans-serif;
  --mono: "Courier New", "Lucida Console", Courier, monospace;
  --win: #d4d0c8;         /* softer Win98 window gray for content zones */
  --panel: #ffffff;       /* readable white client areas */

  /* Win9x bevel recipes. */
  --bevel-out: inset -1px -1px 0 var(--sh-2), inset 1px 1px 0 var(--hi),
               inset -2px -2px 0 var(--sh), inset 2px 2px 0 var(--hi-2);
  --bevel-in:  inset -1px -1px 0 var(--hi), inset 1px 1px 0 var(--sh-2),
               inset -2px -2px 0 var(--hi-2), inset 2px 2px 0 var(--sh);

  /* Remapped legacy variables referenced inline by the HTML. */
  --bg: var(--desk);
  --bg-2: var(--desk);
  --surface: var(--face);
  --surface-2: var(--face);
  --surface-3: var(--face);
  --border: var(--sh);
  --border-strong: var(--sh-2);
  --text: #000000;
  --text-dim: #202020;
  --text-mute: #404040;
  --teal: #008000;
  --teal-dim: #006000;
  --blue: #000080;
  --blue-dim: #000060;
  --amber: #808000;
  --rose: #800000;
  --stable: #008000;
  --beta: #000080;
  --proto: #808000;
  --roadmap: #404040;

  --maxw: 1120px;
  --nav-h: 46px;
  --ease: linear;
}

/* --- Light Reset --------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sys);
  font-size: 15px;
  background: var(--desk);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Subtle desktop grain pattern without external images. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 3px),
    var(--desk);
  pointer-events: none;
}

::selection { background: var(--title); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }

/* Period-style dotted keyboard focus. */
a:focus-visible, button:focus-visible,
[role="tab"]:focus-visible, .pill:focus-visible {
  outline: 1px dotted #000; outline-offset: -4px;
}

/* Chunky scrollbars for WebKit. */
::-webkit-scrollbar { width: 17px; height: 17px; }
::-webkit-scrollbar-track { background: #dedede; }
::-webkit-scrollbar-thumb {
  background: var(--face); box-shadow: var(--bevel-out); border: 0;
}
::-webkit-scrollbar-corner { background: var(--face); }

/* --- Utilities ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 22px 0; position: relative; }
.section--tight { padding: 14px 0; }

/* Each section becomes a gray window on the desktop. */
.section > .container,
.hero > .container {
  background: var(--win);
  box-shadow: var(--bevel-out);
  padding: 24px 30px 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
  color: var(--title);
  padding: 2px 8px; margin-bottom: 6px;
  background: var(--face);
  box-shadow: var(--bevel-out);
}
.section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.35rem; line-height: 1.25; font-weight: 700; color: var(--title);
  margin: 6px 0 16px;
  padding: 0 0 7px;
  border-bottom: 2px solid var(--title);
}
.section-title::before {
  content: "▣"; font-size: 0.85em; color: var(--title); flex: 0 0 auto;
}
.section-lead { color: #1a1a1a; max-width: 68ch; font-size: 1rem; }
.grad {
  background: var(--title); color: #fff; padding: 0 0.18em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* --- Buttons (classic 3D) ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sys); font-weight: 700; font-size: 0.85rem; line-height: 1;
  padding: 8px 16px; min-height: 30px;
  border: 0; background: var(--face); color: #000;
  box-shadow: var(--bevel-out); cursor: pointer; white-space: nowrap;
}
.btn:active { box-shadow: var(--bevel-in); padding: 9px 15px 7px 17px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
/* Default button: extra black outline. */
.btn--primary { font-weight: 700; box-shadow: var(--bevel-out), inset 0 0 0 3px var(--face), inset 0 0 0 4px #000; }
.btn--primary:active { box-shadow: var(--bevel-in), inset 0 0 0 3px var(--face), inset 0 0 0 4px #000; }
.btn--ghost { }
.btn--sm { padding: 5px 12px; min-height: 26px; font-size: 0.8rem; }
.btn[disabled], .btn.is-disabled { color: var(--sh); text-shadow: 1px 1px 0 #fff; cursor: not-allowed; }
.btn.is-soon { pointer-events: none; color: #6a6a6a; text-shadow: none; background: #d7d3cc; box-shadow: var(--bevel-in); }

/* --- Status Badges ------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
  padding: 3px 8px; color: #000; background: var(--face); box-shadow: var(--bevel-out);
}
.badge::before { content: ""; width: 8px; height: 8px; box-shadow: var(--bevel-in); }
.badge--stable::before { background: #00a000; }
.badge--beta::before { background: #0000c0; }
.badge--proto::before { background: #b0b000; }
.badge--roadmap::before { background: #808080; }

/* --- Navigation (gray toolbar) ------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100; min-height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--face); box-shadow: var(--bevel-out);
}
.nav .container {
  display: flex; align-items: center; gap: 10px;
  max-width: none; padding: 5px clamp(12px, 2vw, 26px);
}
.brand {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-weight: 700; font-size: 1.02rem; color: #000; white-space: nowrap;
}
.brand img { width: 24px; height: 24px; }
.brand span { color: var(--title); }
.nav-links {
  display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 1px;
  min-width: 0; margin-left: auto; overflow: hidden;
}
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; font-size: clamp(0.74rem, 0.86vw, 0.82rem);
  line-height: 1; color: #000; padding: 5px clamp(5px, 0.62vw, 9px);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--title); color: #fff; }
.nav-links a.active { background: var(--title); color: #fff; }
.nav-cta { flex: 0 0 auto; margin-left: 2px; }
.lang-menu { position: relative; display: inline-flex; flex: 0 0 auto; }
.lang-menu__button {
  min-width: 64px; padding-left: 9px; padding-right: 9px;
  list-style: none; user-select: none;
}
.lang-menu__button::-webkit-details-marker { display: none; }
.lang-menu__button:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.lang-menu__button::after {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.lang-menu[open] .lang-menu__button { box-shadow: var(--bevel-in); }
.lang-menu__list {
  position: absolute; top: calc(100% + 5px); right: 0; z-index: 130;
  min-width: 154px; padding: 4px; background: var(--face);
  box-shadow: var(--bevel-out);
}
.lang-menu__item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 8px; color: #000;
  font-size: 0.84rem; line-height: 1.2; white-space: nowrap;
}
.lang-menu__item:hover { background: var(--title); color: #fff; }
.lang-menu__item.is-current {
  background: #fff; color: #000; box-shadow: var(--bevel-in);
  cursor: default;
}
.lang-menu__code { min-width: 20px; text-align: left; }
.flag-icon {
  position: relative; flex: 0 0 18px; width: 18px; height: 12px;
  overflow: hidden; border: 1px solid rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.flag-icon--fr {
  background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%);
}
.flag-icon--en {
  background:
    linear-gradient(90deg, transparent 0 41%, #fff 41% 59%, transparent 59% 100%),
    linear-gradient(0deg, transparent 0 32%, #fff 32% 68%, transparent 68% 100%),
    linear-gradient(34deg, transparent 0 44%, #fff 44% 56%, transparent 56% 100%),
    linear-gradient(-34deg, transparent 0 44%, #fff 44% 56%, transparent 56% 100%),
    #012169;
}
.flag-icon--en::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0 45%, #c8102e 45% 55%, transparent 55% 100%),
    linear-gradient(0deg, transparent 0 39%, #c8102e 39% 61%, transparent 61% 100%);
}
.nav-toggle {
  display: none; position: relative; margin-left: auto; width: 34px; height: 30px; cursor: pointer;
  background: var(--face); color: #000; border: 0; box-shadow: var(--bevel-out); font-size: 1rem;
}
.nav-toggle::before {
  content: ""; position: absolute; left: 9px; top: 8px;
  width: 16px; height: 2px; background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}
.nav-toggle:active { box-shadow: var(--bevel-in); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 22px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 700;
  margin: 10px 0 16px; color: #000;
  overflow-wrap: anywhere;
}
.hero p.lead { font-size: 1.05rem; color: #000; max-width: 58ch; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-meta div {
  background: #fff; box-shadow: var(--bevel-in); padding: 8px 12px;
  font-size: 0.76rem; color: #000;
}
.hero-meta b { color: var(--title); font-weight: 700; font-size: 1.3rem; display: block; font-family: var(--mono); }

/* Hero visual: console-like window. */
.hero-visual { position: relative; width: 100%; min-width: 0; max-width: 100%; }
.hero-orb { display: none; }
.hero-card {
  position: relative; width: 100%; background: var(--face);
  box-shadow: var(--bevel-out); padding: 8px;
  min-width: 0;
}
.hero-icon { width: 64px; height: 64px; margin: 4px auto 10px; }
@media (prefers-reduced-motion: reduce) { .hero-icon { animation: none; } }

/* Black console with navy title bar and inset window. */
.term { background: #000; box-shadow: var(--bevel-in); min-width: 0; }
.term-bar {
  display: flex; align-items: center; gap: 4px; padding: 3px 4px;
  background: linear-gradient(90deg, var(--title), var(--title-2));
}
.term-bar span { color: #fff; font: 700 12px var(--sys); margin-right: auto; order: -1; padding-left: 4px; }
.term-bar i {
  width: 18px; height: 16px; display: grid; place-items: center;
  background: var(--face); box-shadow: var(--bevel-out); font: 700 11px var(--sys); color: #000;
}
.term-bar i:nth-child(1)::after { content: "_"; transform: translateY(-3px); }
.term-bar i:nth-child(2)::after { content: "❐"; }
.term-bar i:nth-child(3)::after { content: "✕"; }
.term pre { padding: 12px 14px; font: 12.5px/1.65 var(--mono); color: #c0c0c0; overflow-x: auto; max-width: 100%; }
.term .t-c { color: #00ff00; } .term .t-b { color: #00ffff; } .term .t-m { color: #a0a0a0; } .term .t-a { color: #ffff00; }

/* --- Card Grids --------------------------------------------------------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.doc-build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.doc-build-grid > * { min-width: 0; }

/* White beveled client panels. */
.card {
  position: relative; background: var(--panel); color: #000;
  border: 2px solid; border-color: #ffffff #7a7a7a #7a7a7a #ffffff;
  box-shadow: 1px 1px 0 #000;
  padding: 16px 18px 18px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; color: var(--title); }
.card p { color: #1a1a1a; font-size: 0.92rem; }
.card .ico {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--face); box-shadow: var(--bevel-out); font-size: 1.05rem; font-weight: 700; color: var(--title);
}
/* Accent card: thin navy title-strip at the top. */
.card--accent { padding-top: 30px; }
.card--accent::before {
  content: ""; position: absolute; top: 3px; left: 3px; right: 3px; height: 16px;
  background: linear-gradient(90deg, var(--title), var(--title-2));
}
a.card { display: block; }
a.card:hover h3 { text-decoration: underline; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font: 11px var(--mono); color: #000; background: #ececec; box-shadow: var(--bevel-in); padding: 2px 7px; }

/* --- API & Reference ---------------------------------------------------- */
/* Inline code gets a small monospace navy plate. */
.card code, .section-lead code, .api-example code {
  font: 0.85em var(--mono); color: var(--title);
  background: #eceae4; border: 1px solid #b7b4ab; padding: 0 4px;
}
/* API labels are explanations, not links. */
.doc-links span {
  font: 0.8rem var(--mono); color: var(--title);
  background: #eceae4; border: 1px solid #b7b4ab; padding: 2px 7px;
}
.api-subtitle {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.02rem; font-weight: 700; color: var(--title);
  margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px dotted var(--sh);
}
.api-subtitle::before { content: "▸"; color: var(--title); }
.api-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.api-stat { display: block; padding: 15px; background: var(--panel); color: #000; border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000; }
.api-stat b { display: block; color: var(--title); font: 700 1.6rem/1 var(--mono); }
.api-stat span { color: #202020; font-size: 0.8rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.doc-links a { color: var(--link); font-size: 0.82rem; text-decoration: underline; }
.doc-links a:visited { color: var(--link-visited); }
.doc-links a:hover { color: #d00000; }
.api-example { display: flex; flex-direction: column; }
.mini-code {
  display: grid; gap: 3px; margin-top: 14px; padding: 12px 14px;
  background: #000; box-shadow: var(--bevel-in); overflow-x: auto;
}
.mini-code span { color: #c0c0c0; font: 12.5px/1.5 var(--mono); white-space: nowrap; }
.mini-code span::before { content: "› "; color: #00ff00; }
.mini-code.ai-gen span::before { content: none; }
/* Generic prompt callout and arrow helpers. */
.ai-prompt { margin-top: 4px; padding: 10px 13px; background: #eceae4; box-shadow: var(--bevel-in); color: #000; font-style: italic; font-size: 0.92rem; }
.ai-prompt b { font-style: normal; }
.ai-arrow { text-align: center; color: var(--title); font-weight: 700; font-size: 0.8rem; margin: 10px 0 0; }

/* Ecosystem diagram component. */
.eco { display: grid; grid-template-columns: 1fr; gap: 12px; }
.eco-hub {
  text-align: center; padding: 10px 12px; color: var(--title); font-size: 0.95rem;
  background: var(--face); box-shadow: var(--bevel-out);
}
.eco-hub b { color: var(--title); }
.eco-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.pipe-step {
  flex: 1 1 130px; text-align: center; padding: 10px 8px; font-weight: 700; font-size: 0.85rem; color: #000;
  background: var(--face); box-shadow: var(--bevel-out);
}
.pipe-step small { display: block; color: #303030; font-weight: 400; font-size: 0.74rem; margin-top: 2px; font-family: var(--mono); }
.pipe-arrow { color: #000; font-weight: 700; flex: 0 0 auto; }

/* --- Platform Tabs ------------------------------------------------------ */
.pills { display: flex; flex-wrap: wrap; gap: 3px; margin: 18px 0 0; position: relative; z-index: 1; }
.pill {
  font-family: var(--sys); font-size: 0.82rem; font-weight: 400; padding: 6px 14px; cursor: pointer;
  background: var(--face); color: #000; box-shadow: var(--bevel-out);
}
.pill:hover { }
.pill.active, .pill[aria-selected="true"] { font-weight: 700; padding-bottom: 9px; margin-bottom: -3px; position: relative; z-index: 2; }
.pill[aria-pressed="true"] { box-shadow: var(--bevel-in); font-weight: 700; }
.platform-panel { display: none; }
.platform-panel.active { display: block; background: var(--panel); border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000; padding: 18px; }
.platform-panel .pl-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.pl-list { list-style: none; display: grid; gap: 8px; }
.pl-list li { display: flex; gap: 9px; align-items: flex-start; color: #000; font-size: 0.9rem; }
.pl-list li::before { content: "■"; color: var(--title); font-size: 0.7em; margin-top: 0.35em; }

/* --- Comparison Table --------------------------------------------------- */
.table-wrap { overflow-x: auto; background: #fff; box-shadow: var(--bevel-in); padding: 2px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.85rem; background: #fff; }
table.cmp th, table.cmp td { padding: 7px 12px; text-align: left; border: 1px solid #d0d0d0; }
/* Headers are gray beveled column buttons. */
table.cmp thead th { background: var(--face); box-shadow: var(--bevel-out); color: #000; font-weight: 700; border: 0; }
table.cmp tbody th { font-weight: 700; color: #000; background: #f4f4f4; }
table.cmp td { color: #101010; }
table.cmp .col-nx { background: #ffffcc; color: #000; font-weight: 700; }
table.cmp thead .col-nx { background: var(--title); color: #fff; box-shadow: var(--bevel-out); }
.yes { color: #008000; font-weight: 700; } .partial { color: #9a6a00; } .no { color: #808080; }

/* --- Downloads ---------------------------------------------------------- */
.dl-filter { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 22px; align-items: center; }
.dl-filter .lbl { color: #000; font-weight: 700; font-size: 0.82rem; margin-right: 6px; }
.dl-card { display: flex; flex-direction: column; gap: 0; }
.dl-card .dl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dl-os { display: flex; align-items: center; gap: 10px; }
.dl-os .ico { margin: 0; width: 38px; height: 38px; font-size: 1.05rem; }
.dl-os .platform-logo {
  margin: 0; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; color: #fff; box-shadow: var(--bevel-out);
  overflow: hidden; letter-spacing: 0;
}
.platform-logo i { font-size: 1.35rem; line-height: 1; }
.platform-logo__wordmark {
  font: 800 0.49rem/1 var(--sys); color: #fff; letter-spacing: 0;
}
.platform-logo--vxworks { background: linear-gradient(135deg, #008fbb, #4b7bff); }
.platform-logo--qnx { background: linear-gradient(135deg, #008e9b, #18b5c7); }
.platform-logo--qnx .platform-logo__wordmark { font-size: 0.72rem; }
.platform-logo--linux { background: #facc15; color: #111827; }
.platform-logo--raspberry { background: #c51f46; }
.platform-logo--windows { background: #0078d4; }
.platform-logo--macos { background: #111827; }
.platform-logo--android { background: #3ddc84; color: #073b21; }
.platform-logo--ios { background: #0a84ff; }
.dl-os-txt b { display: block; font-size: 0.98rem; font-weight: 700; color: #000; line-height: 1.15; }
.dl-os-txt span { font: 400 0.76rem var(--sys); color: #404040; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 0.82rem; margin: 4px 0 12px;
  background: #ececec; box-shadow: var(--bevel-in); padding: 8px 10px; }
.dl-meta dt { color: #404040; } .dl-meta dd { color: #000; text-align: right; font-family: var(--mono); }
.dl-file { font: 0.78rem var(--mono); color: var(--link); word-break: break-all; }
.dl-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.dl-actions .btn { flex: 1; }
.dl-note { margin-top: 20px; padding: 12px 14px; background: #fff; box-shadow: var(--bevel-in); color: #000; font-size: 0.86rem; display: flex; gap: 10px; }
.dl-note b { color: var(--title); }
/* Automatic platform detection banner. */
.dl-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 18px 0 20px; padding: 16px 20px; background: var(--panel);
  border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000, inset 0 0 0 2px var(--title); }
.dl-hero-eyebrow { font: 700 11px var(--sys); text-transform: uppercase; letter-spacing: 0; color: var(--title); }
.dl-hero-os { display: flex; align-items: center; gap: 10px; font: 700 1.4rem var(--sys); color: #000; margin: 3px 0 2px; }
.dl-hero-ico { font-size: 1.5rem; line-height: 1; }
.dl-hero-sub { color: #303030; font-size: 0.85rem; }
.dl-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Current-system ribbon and detected-card highlight. */
.dl-ribbon { position: absolute; top: 0; right: 0; z-index: 2;
  background: var(--title); color: #fff; font: 700 10px var(--sys); letter-spacing: 0; padding: 3px 9px; }
.dl-card.is-reco { box-shadow: 1px 1px 0 #000, inset 0 0 0 2px var(--title); }
.dl-hash { margin-top: 8px; font: 11px var(--mono); color: #6a6a6a; }
/* Source build block for immediate access. */
.dl-source { margin-top: 22px; padding: 14px 16px; background: #e7e4dd; box-shadow: var(--bevel-in); }
.dl-source-head { font-size: 0.92rem; color: #000; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-source-head b { color: var(--title); }
.dl-source .code-block { margin-top: 10px; }

/* --- Code Blocks And Copy Buttons -------------------------------------- */
.code-block { position: relative; background: #000; box-shadow: var(--bevel-in); margin-top: 10px; }
.code-block pre { padding: 12px 56px 12px 14px; overflow-x: auto; font: 12.5px/1.7 var(--mono); color: #c0c0c0; }
.code-block .prompt { color: #00ff00; user-select: none; }
.copy-btn {
  position: absolute; top: 6px; right: 6px; background: var(--face); color: #000;
  box-shadow: var(--bevel-out); border: 0; padding: 4px 9px; font: 700 11px var(--sys); cursor: pointer;
}
.copy-btn:active { box-shadow: var(--bevel-in); }
.copy-btn.copied { color: #008000; }

/* --- Accordions --------------------------------------------------------- */
.acc { background: transparent; }
.acc + .acc { margin-top: 8px; }
.acc-head {
  width: 100%; text-align: left; padding: 9px 14px; background: var(--face); box-shadow: var(--bevel-out);
  border: 0; color: #000; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.acc.open .acc-head { box-shadow: var(--bevel-in); }
.acc-head .chev { transition: transform 0.2s var(--ease); color: #000; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); background: #fff; }
.acc.open .acc-body { box-shadow: var(--bevel-in); margin-top: 3px; }
.acc-body-inner { padding: 14px; color: #000; font-size: 0.88rem; }

/* --- Roadmap Timeline --------------------------------------------------- */
.timeline { position: relative; margin-top: 16px; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--sh); }
.tl-item { position: relative; padding: 0 0 18px 40px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 3px; width: 15px; height: 15px; background: #fff; box-shadow: var(--bevel-in); }
.tl-item.done::before { content: "✔"; color: #008000; font-size: 11px; font-weight: 700; display: grid; place-items: center; background: #fff; }
.tl-item h4 { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #000; }
.tl-item p { color: #101010; font-size: 0.88rem; }

/* --- Versions ----------------------------------------------------------- */
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ver { padding: 15px; background: var(--panel); border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000; }
.ver .n { color: #303030; font-size: 0.8rem; }
.ver .v { font-size: 1.5rem; font-weight: 700; font-family: var(--mono); color: #000; }
.ver .v span { color: var(--title); }

/* --- Product Callout Sections ------------------------------------------ */
.vision-card { background: var(--panel); border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000; padding: 24px; position: relative; }
.vision-card::before { display: none; }
.vision-card h3 { font-size: 1.2rem; color: #000; }
.vision-card p { color: #101010 !important; }

/* --- Final CTA And Footer ---------------------------------------------- */
.cta { text-align: center; padding: 34px 26px 30px; background: var(--face); box-shadow: var(--bevel-out); position: relative; }
.cta::before {
  content: "✉  Contact"; position: absolute; top: 4px; left: 4px; right: 4px; height: 20px;
  display: flex; align-items: center; padding-left: 8px; font: 700 12px var(--sys); color: #fff;
  background: linear-gradient(90deg, var(--title), var(--title-2));
}
.cta .eyebrow { margin-top: 14px; }
.cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; color: #000; }
.cta .hero-actions { justify-content: center; }

.footer { background: var(--face); box-shadow: var(--bevel-out); padding: 26px 0 14px; margin-top: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h5 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0; color: #000; margin-bottom: 10px; border-bottom: 1px solid var(--sh); padding-bottom: 4px; }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer a { color: var(--link); font-size: 0.86rem; text-decoration: underline; }
.footer a:visited { color: var(--link-visited); }
.footer a:hover { color: #d00000; }
.footer .brand { margin-bottom: 10px; }
.footer .brand a, .footer .brand span { text-decoration: none; }
.footer .muted { color: #202020; font-size: 0.86rem; }
.footer-contact {
  display: grid; gap: 4px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--sh);
}
.footer-contact span {
  color: #000; font: 700 0.72rem var(--sys); text-transform: uppercase;
}
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { margin-top: 22px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.footer-bottom > span { background: #fff; box-shadow: var(--bevel-in); padding: 4px 10px; color: #000; font-size: 0.8rem; }
.lic { display: inline-flex; align-items: center; gap: 6px; color: #000; }

/* --- Screenshot Gallery ------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.shot {
  background: var(--panel); overflow: hidden;
  border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000;
}
.shot--wide { grid-column: 1 / -1; }
.shot-bar {
  display: flex; align-items: center; gap: 8px; padding: 5px 9px;
  font: 700 12px var(--sys); color: #fff;
  background: linear-gradient(90deg, var(--title), var(--title-2));
}
.shot-bar .tag {
  margin-left: auto; box-shadow: none; background: rgba(255,255,255,.16);
  color: #fff; border: 0; padding: 1px 7px; font: 700 10.5px var(--sys); letter-spacing: 0;
}
.shot-img { padding: 14px; background: #e7e4dd; box-shadow: inset 0 1px 0 #fff; }
.shot--wide .shot-img { padding: 20px 22px; }
.shot-img img { width: 100%; height: auto; display: block; }
.shots-note { margin-top: 14px; font-size: 0.85rem; color: #303030; }
.shots-note > span:first-child { font-weight: 600; margin-right: 6px; }

/* --- Pricing ------------------------------------------------------------ */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; align-items: stretch; }
.price {
  position: relative; background: var(--panel); display: flex; flex-direction: column;
  border: 2px solid; border-color: #fff #7a7a7a #7a7a7a #fff; box-shadow: 1px 1px 0 #000;
}
.price--featured { box-shadow: 1px 1px 0 #000, inset 0 0 0 2px var(--title); }
.price-tab {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  font: 700 12px var(--sys); color: #fff;
  background: linear-gradient(90deg, var(--title), var(--title-2));
}
.price-head { padding: 18px 20px 14px; }
.price-name { font-size: 1.1rem; font-weight: 700; color: var(--title); }
.price-amount { font: 700 2rem/1 var(--mono); color: #000; margin: 10px 0 5px; }
.price-amount small { font: 400 0.8rem var(--sys); color: #404040; }
.price-sub { color: #303030; font-size: 0.85rem; }
.price-list { list-style: none; padding: 14px 20px; display: grid; gap: 9px; border-top: 1px solid var(--sh); }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: #101010; }
.price-list li::before { content: "\2714"; color: #008000; font-weight: 700; }
.price-list li.off { color: #888; }
.price-list li.off::before { content: "\2715"; color: #b0b0b0; }
.price-cta { margin-top: auto; padding: 6px 20px 22px; }
.price-cta .btn { width: 100%; }
.shots-note a { color: var(--link); text-decoration: underline; }
.shots-note a:hover { color: #d00000; }

/* --- Scroll Reveal Disabled For Retro Fidelity -------------------------- */
.reveal { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: min(100%, 440px); margin: 4px auto 0; }
  .platform-panel .pl-grid { grid-template-columns: 1fr; }
  .doc-build-grid { grid-template-columns: 1fr; }
  .grid-4, .api-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eco-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1140px) {
  .nav .container { gap: 8px; }
  .brand { margin-right: auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--face); box-shadow: var(--bevel-out); padding: 6px; gap: 2px; z-index: 100;
    overflow: visible;
  }
  .nav-links.open a { justify-content: flex-start; padding: 8px 10px; font-size: 0.9rem; }
  .nav-toggle { display: block; margin-left: 0; font-size: 0; flex: 0 0 auto; }
}
@media (max-width: 720px) {
  html, body { max-width: 100vw; overflow-x: hidden; }
  .container,
  [data-skin="modern"] .section > .container,
  [data-skin="modern"] .hero > .container {
    width: 100%;
    max-width: 100vw;
    overflow: visible;
  }
  .hero-grid, .hero-grid > * {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  .hero h1 { font-size: 2rem !important; line-height: 1.15; max-width: 100%; }
  .hero p.lead { max-width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { max-width: 100%; }
  .lang-menu__list { left: 0; right: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 1.85rem !important; }
  .hero-grid, .hero-grid > * {
    width: min(100%, 340px);
    max-width: 340px;
  }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .grid-4, .api-stats { grid-template-columns: 1fr; }
  .eco-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 0.98rem; }
  .hero-grid, .hero-grid > * {
    width: min(100%, 320px);
    max-width: 320px;
  }
}
