/* =========================================================================
   corelib — static site stylesheet
   Visual system ported from the approved full-page mockup. Additions are
   limited to the progressive-enhancement hooks (nav toggle, runtime tabs,
   copy buttons), the skip link, focus rings and the 404 page.
   ========================================================================= */

:root {
  --bg: #050a1c;
  --panel: rgba(13, 20, 48, .55);
  --panel-2: rgba(9, 15, 38, .8);
  --line: rgba(99, 102, 241, .18);
  --line-strong: rgba(99, 102, 241, .42);
  --text: #eef2ff;
  --muted: #93a0c7;
  --dim: #66739c;
  --violet: #7c3aed;
  --indigo: #4f46e5;
  --blue: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Keeps the JS-only panels and nav collapsed even against display:flex rules. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

/* One visible focus treatment for every link, button and tab. */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 9px;
  background: #eef2ff;
  color: #050a1c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 14px; }

.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.ambient::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80vh;
  background:
    radial-gradient(55% 55% at 18% 22%, rgba(124, 58, 237, .28), transparent 70%),
    radial-gradient(45% 45% at 82% 12%, rgba(37, 99, 235, .24), transparent 70%),
    radial-gradient(60% 50% at 55% 0%, rgba(79, 70, 229, .16), transparent 70%);
  filter: blur(10px);
}
.ambient::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -30%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .32), transparent 70%);
  filter: blur(60px);
}

.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 40px; }

code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* The shared gradient definitions live in an invisible sprite. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- nav ---------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 10, 28, .9), rgba(5, 10, 28, .55));
  border-bottom: 1px solid rgba(99, 102, 241, .10);
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px 0;
  font-size: 14px;
  flex-wrap: wrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.nav-links a { color: inherit; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pill {
  border: 1px solid rgba(129, 140, 248, .32);
  background: rgba(99, 102, 241, .10);
  color: #c7d2fe;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #2563eb);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(99, 102, 241, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* Hidden until site.js enables it; the links stay usable without JS. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(99, 102, 241, .12);
  color: #dbe4ff;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 46px;
  align-items: center;
  padding: 78px 0 96px;
}
.lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.cube { width: 74px; height: 74px; filter: drop-shadow(0 10px 30px rgba(99, 102, 241, .55)); }
/* Restore the small marks whose width/height attributes the shared .cube rule
   would otherwise override (nav and footer logos). */
.nav-logo .cube { width: 26px; height: 26px; }
.foot-logo .cube { width: 22px; height: 22px; }
.wordmark { font-size: 64px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.grad-text {
  background: linear-gradient(100deg, #8b5cf6 0%, #6366f1 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: 45px; line-height: 1.15; font-weight: 650; letter-spacing: -.028em; max-width: 16ch; }
.lede { margin-top: 18px; font-size: 16.5px; line-height: 1.62; color: var(--muted); max-width: 48ch; }
.strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: #8ea2d8;
  text-transform: uppercase;
  font-weight: 600;
  flex-wrap: wrap;
}
.strip i { color: rgba(129, 140, 248, .5); font-style: normal; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 46px; max-width: 600px; }
.feature .ico { height: 34px; display: flex; align-items: flex-end; margin-bottom: 9px; }
.feature .feature-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-top: 0; }
.feature p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.art { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.blob { position: absolute; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: linear-gradient(135deg, #7c3aed, #4338ca 55%, #1d4ed8); opacity: .9; }
.blob.b1 {
  width: 330px;
  height: 300px;
  right: -6px;
  top: 6px;
  transform: rotate(18deg);
  box-shadow: 0 40px 120px -20px rgba(79, 70, 229, .8);
}
.blob.b2 {
  width: 250px;
  height: 230px;
  left: 2%;
  bottom: 16px;
  transform: rotate(-14deg);
  opacity: .7;
  background: linear-gradient(135deg, #3b82f6, #6d28d9);
  filter: blur(26px);
}
.blob.b3 {
  width: 190px;
  height: 170px;
  left: 16%;
  top: 4px;
  opacity: .5;
  filter: blur(38px);
  background: linear-gradient(135deg, #a855f7, #2563eb);
}
.window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 16, 42, .95), rgba(7, 12, 32, .97));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(79, 70, 229, .5);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(99, 102, 241, .14); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.window-name { margin-left: auto; font: 500 11.5px ui-monospace, monospace; color: #64748b; }
pre { padding: 22px; font-size: 13px; line-height: 1.75; color: #c7d2fe; overflow-x: auto; white-space: pre; }
.c { color: #5b6b95; }
.k { color: #c084fc; }
.s { color: #86efac; }
.n { color: #f0abfc; }
.note {
  position: absolute;
  right: 4px;
  bottom: -18px;
  transform: rotate(-7deg);
  text-align: right;
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 23px;
  line-height: 1.25;
  color: #dbe4ff;
  z-index: 3;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .6);
}
.note u {
  display: block;
  height: 2px;
  width: 190px;
  margin: 10px 0 0 auto;
  text-decoration: none;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #6366f1 30%, #3b82f6);
}

/* ---------- sections ---------- */
section.block { padding: 104px 0; border-top: 1px solid var(--line); position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8ea2d8;
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  box-shadow: 0 0 14px rgba(124, 58, 237, .9);
}
h2 { font-size: 40px; line-height: 1.14; letter-spacing: -.03em; font-weight: 650; max-width: 22ch; }
.section-lede { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 58ch; }

/* package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.pkg {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 20px;
  background: linear-gradient(180deg, rgba(18, 26, 58, .72), rgba(9, 14, 36, .72));
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.pkg:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pkg::after {
  content: "";
  position: absolute;
  inset: -40% 40% 60% -40%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .22), transparent);
  pointer-events: none;
}
.pkg .badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(124, 58, 237, .35), rgba(37, 99, 235, .28));
  border: 1px solid rgba(129, 140, 248, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.pkg h3 { font: 700 15.5px ui-monospace, monospace; letter-spacing: -.02em; }
.pkg .tag { color: var(--muted); font-size: 13.5px; margin-top: 7px; line-height: 1.55; min-height: 63px; }
.pkg ul { list-style: none; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 9px; }
.pkg li { font-size: 13px; color: #b9c4e6; display: flex; gap: 9px; }
.pkg li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #a855f7, #3b82f6);
}
.pkg .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.install {
  font: 12px ui-monospace, monospace;
  color: #9fb0dd;
  background: rgba(5, 10, 28, .7);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link { color: #a5b4fc; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link:hover { color: #e0e7ff; }

/* native band */
.native { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; margin-top: 8px; }
.native .list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.native .list li { font-size: 14px; color: #b9c4e6; line-height: 1.5; display: flex; gap: 12px; }
.native .list b { color: #fff; font-weight: 650; }
.native .list .n {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font: 600 11px ui-monospace, monospace;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .16);
  border: 1px solid rgba(129, 140, 248, .3);
}

.viz {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(160deg, rgba(16, 23, 54, .9), rgba(7, 11, 30, .92));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
  overflow: hidden;
}
.viz::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(79, 70, 229, .28), transparent);
}
.viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 10.5px ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7d8cb8;
  margin-bottom: 22px;
}
.led-row { display: flex; gap: 5px; }
.led { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

/* ffi diagram */
.ffi { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; position: relative; z-index: 1; }
.ffi-box { border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px; background: rgba(8, 13, 34, .75); }
.ffi-box .k2 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7182b0; margin-bottom: 8px; }
.ffi-box strong { font-size: 13.5px; font-weight: 650; }
.ffi-box p { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.bridge { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8b9be0; font: 600 9.5px ui-monospace, monospace; letter-spacing: .08em; }
.bridge .dashline { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, #6366f1, transparent); position: relative; }
.bridge .dashline::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5b4fc;
  box-shadow: 0 0 10px #818cf8;
  animation: flow 2.4s linear infinite;
}
@keyframes flow {
  0% { left: -2px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 44px; opacity: 0; }
}
.tape { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; display: flex; gap: 8px; position: relative; z-index: 1; flex-wrap: wrap; }
.tick { font: 11.5px ui-monospace, monospace; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; color: #c7d2fe; background: rgba(5, 10, 28, .6); }
.up { color: #34d399; }
.down { color: #fb7185; }
.tick-ok { color: #86efac; }

/* feature rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 52px 0; }
.row + .row { border-top: 1px solid rgba(99, 102, 241, .10); }
.row.flip .row-text { order: 2; }
.row h3 { font-size: 27px; letter-spacing: -.025em; font-weight: 650; line-height: 1.22; }
.row p { color: var(--muted); font-size: 15px; line-height: 1.68; margin-top: 14px; }
.row .mini {
  margin-top: 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 28, .65);
  padding: 14px 16px;
  font: 12.5px/1.7 ui-monospace, monospace;
  color: #b9c4e6;
  overflow-x: auto;
  white-space: pre;
}
.rows { margin-top: 64px; }

/* retry viz */
.retry { display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 1; }
.attempt { display: grid; grid-template-columns: 64px 1fr 54px; align-items: center; gap: 12px; font: 11.5px ui-monospace, monospace; color: #8f9dc6; }
.track { height: 26px; border-radius: 7px; background: rgba(99, 102, 241, .09); position: relative; overflow: hidden; }
.fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #fff;
}
.fill.bad { background: linear-gradient(90deg, rgba(251, 113, 133, .32), rgba(251, 113, 133, .14)); color: #fecdd3; border: 1px solid rgba(251, 113, 133, .35); }
.fill.warn { background: linear-gradient(90deg, rgba(251, 191, 36, .30), rgba(251, 191, 36, .12)); color: #fde68a; border: 1px solid rgba(251, 191, 36, .35); }
.fill.good { background: linear-gradient(90deg, rgba(52, 211, 153, .34), rgba(52, 211, 153, .12)); color: #bbf7d0; border: 1px solid rgba(52, 211, 153, .4); }
.w-38 { width: 38%; }
.w-58 { width: 58%; }
.w-74 { width: 74%; }
.w-100 { width: 100%; }
.badge-status { font-size: 10px; padding: 2px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .9; }

/* log viz */
.logs { font: 11.5px/1.9 ui-monospace, monospace; position: relative; z-index: 1; overflow-x: auto; }
.logs .ln { display: block; white-space: pre; color: #8b9ac4; }
.key { color: #93c5fd; }
.key-ok { color: #34d399; }
.val { color: #f0abfc; }
.str { color: #86efac; }
.lvl { color: #c084fc; font-weight: 700; }

/* quickstart */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 54, .7), rgba(8, 13, 34, .7));
  position: relative;
}
.step .num {
  font: 700 11px ui-monospace, monospace;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #dbe4ff;
  background: linear-gradient(135deg, rgba(124, 58, 237, .45), rgba(37, 99, 235, .4));
  border: 1px solid rgba(129, 140, 248, .4);
  margin-bottom: 16px;
}
.step h3 { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; min-height: 38px; }
.step pre {
  margin: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 22, .85);
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.7;
}

/* runtime tabs (the tab buttons replace the mockup's separate runtime strip) */
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  font: 12px ui-monospace, monospace;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: #8f9dc6;
  background: rgba(99, 102, 241, .06);
  cursor: pointer;
}
.tab[aria-selected="true"] {
  color: #e0e7ff;
  border-color: rgba(129, 140, 248, .55);
  background: rgba(99, 102, 241, .2);
  box-shadow: 0 0 24px -8px rgba(124, 58, 237, .9);
}

/* copy button — a small ghost control over each code block */
.copy {
  font: 600 10.5px ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, .10);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.copy:hover { color: #e0e7ff; border-color: var(--line-strong); background: rgba(99, 102, 241, .2); }
.code-block { position: relative; }
.code-block > .copy { position: absolute; top: 7px; right: 7px; }
.code-block > pre { padding-right: 64px; }
/* A panel's copy control follows its visibility (the panel wrapper carries hidden). */
.code-block[hidden] .copy { display: none !important; }
.window-bar .copy { margin-left: 12px; }

/* CTA */
.cta-panel {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  padding: 64px;
  text-align: center;
  background: linear-gradient(160deg, rgba(39, 25, 88, .75), rgba(10, 16, 42, .92) 55%, rgba(8, 13, 34, .95));
}
.cta-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -160px;
  top: -240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .42), transparent);
  filter: blur(20px);
}
.cta-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .38), transparent);
  filter: blur(20px);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin: 0 auto; max-width: 24ch; }
.cta-panel p { color: #b6c2e6; margin: 16px auto 30px; max-width: 52ch; font-size: 15px; line-height: 1.6; }
.cta-panel .api { font: 12px ui-monospace, monospace; color: #8f9dc6; margin-top: 26px; }
.cube-cta { width: 58px; height: 58px; margin: 0 auto 22px; display: block; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #2563eb);
  box-shadow: 0 12px 34px -12px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn.ghost { background: rgba(99, 102, 241, .1); border: 1px solid rgba(129, 140, 248, .4); box-shadow: none; color: #dbe4ff; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7182b0; margin-bottom: 14px; }
.foot-grid a, .foot-grid span { display: block; color: #a9b5da; font-size: 13px; text-decoration: none; margin-bottom: 9px; }
.foot-grid a:hover { color: #fff; }
.foot-logo { margin-bottom: 12px; }
.foot-about { max-width: 30ch; }
.foot-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(99, 102, 241, .12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--dim);
  flex-wrap: wrap;
}
.foot-note a { color: #a9b5da; text-decoration: none; }
.foot-note a:hover { color: #fff; }
.foot-note-solo { margin-top: 0; padding-top: 0; border-top: 0; }

/* 404 */
.notfound { max-width: 660px; padding: 118px 0 132px; }
.notfound .cube { width: 96px; height: 96px; margin-bottom: 30px; }
.notfound h1 { max-width: 20ch; }
.notfound .lede { margin-top: 16px; }
.notfound .btns { justify-content: flex-start; margin-top: 34px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 44px; }
  h1 { max-width: 22ch; font-size: 36px; }
  .wordmark { font-size: 48px; }
  .art { min-height: 420px; margin-top: 16px; overflow-x: clip; overflow-y: visible; }
  .pkg-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .native, .row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row.flip .row-text { order: 0; }
  .features { max-width: none; }
  .cta-panel { padding: 40px 24px; }
}

/* Enhanced nav: only ever active once site.js has added data-enhanced. */
@media (max-width: 860px) {
  .nav { gap: 12px; }
  /* Without JS the source order wraps naturally (logo, links, actions); with JS
     the actions move beside the logo and the links become a full-width panel. */
  .nav[data-enhanced] .nav-logo { order: 1; }
  .nav[data-enhanced] .nav-right { order: 2; }
  .nav[data-enhanced] .nav-toggle { display: inline-flex; }
  .nav[data-enhanced] .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
    padding: 18px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(9, 15, 38, .98), rgba(5, 10, 28, .98));
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .wordmark { font-size: 40px; }
  .cta-panel h2 { font-size: 30px; }
  .notfound .btns .btn { width: 100%; text-align: center; }
}

/* Motion: the only travelling element is the N-API bridge dot. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .blob, .bridge .dashline::after { animation: none !important; }
}
