/* Noderyx website: home page, documentation pages, shared header and footer.
   Calm, document-like surfaces with the logo's violet-to-cyan gradient as the accent. */

.nx-site {
  --brand-violet: #7c3aed;
  --brand-violet-hover: #6d28d9;
  --brand-cyan: #22d3ee;
  --brand-gradient: linear-gradient(120deg, #7c3aed 0%, #5b5cf0 45%, #22d3ee 100%);
  --brand-soft: rgb(124 58 237 / 8%);
  --brand-text: #6d28d9;

  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-hover: rgb(55 53 47 / 6%);
  --surface: #ffffff;
  --text: #191918;
  --text-soft: #37352f;
  --muted: #787774;
  --faint: #a5a4a0;
  --border: #e9e9e7;
  --border-strong: #dcdcd9;
  --code-bg: #f7f6f3;
  --code-text: #eb5757;
  --shadow-sm: 0 1px 2px rgb(15 15 15 / 6%);
  --shadow: 0 1px 2px rgb(15 15 15 / 4%), 0 8px 24px rgb(15 15 15 / 6%);
  --shadow-lg: 0 2px 4px rgb(15 15 15 / 4%), 0 24px 64px rgb(15 15 15 / 10%);

  --tile-blue-bg: #e7f3f8; --tile-blue: #337ea9;
  --tile-purple-bg: #f4effd; --tile-purple: #7c3aed;
  --tile-green-bg: #edf3ec; --tile-green: #448361;
  --tile-orange-bg: #fbecdd; --tile-orange: #d9730d;
  --tile-yellow-bg: #fbf3db; --tile-yellow: #b5821c;
  --tile-pink-bg: #fae9f1; --tile-pink: #c14c8a;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 64px;
  --page-w: 1200px;

  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, "Apple Color Emoji", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] .nx-site {
  --brand-soft: rgb(139 92 246 / 16%);
  --brand-text: #a78bfa;
  --bg: #191919;
  --bg-alt: #202020;
  --bg-hover: rgb(255 255 255 / 6%);
  --surface: #232323;
  --text: #ebebea;
  --text-soft: #d4d4d2;
  --muted: #9b9b98;
  --faint: #6f6f6c;
  --border: #2f2f2f;
  --border-strong: #3a3a3a;
  --code-bg: #2a2a2a;
  --code-text: #ff7369;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 1px 2px rgb(0 0 0 / 25%), 0 8px 24px rgb(0 0 0 / 30%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 25%), 0 24px 64px rgb(0 0 0 / 45%);
  --tile-blue-bg: #1f2c35; --tile-blue: #5fa8d3;
  --tile-purple-bg: #2a2238; --tile-purple: #b197fc;
  --tile-green-bg: #1f2b23; --tile-green: #6bb38a;
  --tile-orange-bg: #33261b; --tile-orange: #f09a4d;
  --tile-yellow-bg: #312a18; --tile-yellow: #dcb253;
  --tile-pink-bg: #33202b; --tile-pink: #e58bbd;
}

.nx-site::before { display: none; }
.nx-site *, .nx-site *::before, .nx-site *::after { box-sizing: border-box; }
:where(.nx-site) a { color: inherit; text-decoration: none; }
:where(.nx-site) :where(h1, h2, h3, p) { margin-top: 0; }
.nx-site code { font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }
.nx-site :focus-visible { outline: 2px solid var(--brand-violet); outline-offset: 2px; border-radius: 4px; }
.nx-wrap { width: min(var(--page-w), calc(100% - 48px)); margin-inline: auto; }

/* --- Buttons -------------------------------------------------------------- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.nx-btn-primary { color: #fff !important; background: var(--brand-violet); box-shadow: 0 1px 2px rgb(124 58 237 / 30%), inset 0 1px 0 rgb(255 255 255 / 14%); }
.nx-btn-primary:hover { background: var(--brand-violet-hover); }
.nx-btn-secondary { color: var(--text); background: var(--bg-alt); border-color: var(--border); }
.nx-btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.nx-btn-ghost { color: var(--text-soft); background: transparent; }
.nx-btn-ghost:hover { background: var(--bg-hover); }
.nx-btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 8px; }
.nx-btn-sm { min-height: 32px; padding: 0 12px; font-size: 14px; }
.nx-link { color: var(--brand-text); font-weight: 500; }
.nx-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Shared header -------------------------------------------------------- */
.nx-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: border-color .2s; }
.nx-header.is-scrolled { border-bottom-color: var(--border); }
.nx-header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nx-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.nx-brand img { display: block; width: 28px; height: 28px; }
.nx-menu { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nx-menu a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.nx-menu a:hover, .nx-menu a[aria-current="page"] { color: var(--text); background: var(--bg-hover); }
.nx-header-end { display: flex; align-items: center; gap: 6px; }
.nx-header-end .nx-github { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 15px; font-weight: 500; }
.nx-header-end .nx-github:hover { background: var(--bg-hover); }
.nx-version { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
.nx-version-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.nx-theme-btn { min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft); background: transparent; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.nx-theme-btn:hover { background: var(--bg-hover); }
.nx-menu-toggle { display: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.nx-menu-toggle span { display: block; width: 16px; height: 1.5px; margin: 4px auto; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nx-header.is-open .nx-menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nx-header.is-open .nx-menu-toggle span:nth-child(2) { opacity: 0; }
.nx-header.is-open .nx-menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- Shared footer -------------------------------------------------------- */
.nx-footer { border-top: 1px solid var(--border); background: var(--bg); }
.nx-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 64px 0 48px; }
.nx-footer-brand p { max-width: 300px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.nx-footer-col h3 { margin: 0 0 14px; color: var(--text); font-size: 14px; font-weight: 600; }
.nx-footer-col nav { display: grid; gap: 10px; }
.nx-footer-col a { width: fit-content; color: var(--muted); font-size: 14px; transition: color .15s; }
.nx-footer-col a:hover { color: var(--text); }
.nx-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.nx-footer-bottom p { margin: 0; }
.nx-footer-bottom .nx-footer-legal { display: flex; gap: 20px; }

/* --- Home: shared section pieces ----------------------------------------- */
.nx-section { padding: 112px 0; }
.nx-section-alt { background: var(--bg-alt); }
.nx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--brand-text); font-size: 14px; font-weight: 600; }
.nx-heading { max-width: 720px; margin-bottom: 56px; }
.nx-heading-center { margin-inline: auto; text-align: center; }
.nx-heading h2 { margin-bottom: 16px; font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.nx-heading p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.nx-gradient-text { color: transparent; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; }

/* --- Home: hero ----------------------------------------------------------- */
.nx-hero { position: relative; padding: 96px 16px 0; overflow: hidden; text-align: center; }
.nx-hero::before { content: ""; position: absolute; top: -260px; left: 50%; z-index: 0; width: 1100px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgb(124 58 237 / 12%), rgb(34 211 238 / 6%) 60%, transparent); transform: translateX(-50%); pointer-events: none; }
.nx-hero > * { position: relative; z-index: 1; }
.nx-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 5px 6px 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 14px; transition: border-color .15s; }
.nx-pill:hover { border-color: var(--border-strong); }
.nx-pill strong { padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--brand-gradient); font-size: 12px; font-weight: 600; }
.nx-hero h1 { max-width: 900px; margin: 0 auto 22px; font-size: clamp(44px, 7.2vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.nx-hero h1 span { display: block; }
.nx-hero-lead { max-width: 640px; margin: 0 auto 36px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.nx-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.nx-hero-cmd { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 6px 6px 6px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); font-size: 14px; }
.nx-hero-cmd code { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.nx-hero-cmd code span:first-child { margin-right: 8px; color: var(--faint); }
.nx-copy { min-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--surface); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.nx-copy:hover { color: var(--text); }

/* Product window */
.nx-showcase { width: min(1080px, calc(100% - 16px)); margin: 72px auto 0; }
.nx-window { overflow: hidden; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); box-shadow: var(--shadow-lg); text-align: left; }
.nx-window-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.nx-dots { display: flex; gap: 7px; }
.nx-dots span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.nx-dots span:nth-child(2) { background: #febc2e; }
.nx-dots span:nth-child(3) { background: #28c840; }
.nx-window-title { flex: 1; color: var(--muted); font-size: 13px; text-align: center; }
.nx-window-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 380px; }
.nx-window-side { padding: 16px 10px; border-right: 1px solid var(--border); background: var(--bg-alt); font-size: 14px; }
.nx-window-side p { margin: 0 0 6px; padding: 0 8px; color: var(--faint); font-size: 12px; font-weight: 600; }
.nx-window-side span { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 5px; color: var(--text-soft); }
.nx-window-side span.is-active { color: var(--text); background: var(--bg-hover); font-weight: 500; }
.nx-window-side .nx-file-icon { width: 16px; color: var(--faint); font-size: 12px; text-align: center; }
.nx-window-side .nx-side-gap { height: 14px; }
.nx-window-main { min-width: 0; padding: 28px 32px; }
.nx-window-main h3 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.nx-window-main > p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.nx-code { display: grid; padding: 18px 20px; overflow-x: auto; border-radius: 8px; background: var(--code-bg); font-size: 13.5px; line-height: 1.75; }
.nx-code code { display: flex; width: max-content; min-width: 100%; min-height: 1.75em; white-space: pre; color: var(--text-soft); }
.nx-code code span { flex: 0 0 auto; }
.nx-tok-k { color: #a855f7; }
.nx-tok-s { color: #0f9d76; }
.nx-tok-f { color: #2f7fd1; }
.nx-tok-c { color: var(--faint); }
:root[data-theme="dark"] .nx-tok-s { color: #4ade80; }
:root[data-theme="dark"] .nx-tok-f { color: #60a5fa; }
:root[data-theme="dark"] .nx-tok-k { color: #c084fc; }
.nx-targets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.nx-target { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 5px; font-size: 13px; font-weight: 500; }

/* Highlights strip */
.nx-strip { border-block: 1px solid var(--border); background: var(--bg); }
.nx-strip-inner { display: flex; align-items: center; justify-content: center; gap: 12px 36px; flex-wrap: wrap; padding: 28px 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.nx-strip-inner span { display: inline-flex; align-items: center; gap: 8px; }
.nx-strip-inner span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gradient); }

/* Feature cards */
.nx-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nx-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.nx-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.nx-tile { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 8px; font-size: 18px; font-weight: 700; }
.nx-tile-blue { color: var(--tile-blue); background: var(--tile-blue-bg); }
.nx-tile-purple { color: var(--tile-purple); background: var(--tile-purple-bg); }
.nx-tile-green { color: var(--tile-green); background: var(--tile-green-bg); }
.nx-tile-orange { color: var(--tile-orange); background: var(--tile-orange-bg); }
.nx-tile-yellow { color: var(--tile-yellow); background: var(--tile-yellow-bg); }
.nx-tile-pink { color: var(--tile-pink); background: var(--tile-pink-bg); }
.nx-card h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.nx-card p { margin-bottom: 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.nx-card > code { margin-top: auto; overflow: hidden; padding: 6px 10px; border-radius: 5px; color: var(--code-text); background: var(--code-bg); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

/* Philosophy quote */
.nx-quote { max-width: 880px; margin-inline: auto; text-align: center; }
.nx-quote > p:first-child { margin-bottom: 18px; color: var(--muted); font-size: 18px; }
.nx-quote h2 { margin-bottom: 28px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.nx-quote-foot { max-width: 640px; margin: 0 auto 24px; color: var(--muted); font-size: 17px; }

/* Why: three columns */
.nx-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nx-why-grid article { padding-top: 22px; border-top: 1px solid var(--border-strong); }
.nx-why-grid h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 600; }
.nx-why-grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* What's new */
.nx-release-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nx-tag { display: inline-flex; width: fit-content; margin-bottom: 14px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nx-section-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* Mobile Studio demo */
.nx-studio { --accent: #7c3aed; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.nx-studio-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.nx-studio-panel { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-right: 1px solid var(--border); }
.nx-studio-label { margin: 10px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nx-studio-label:first-child { margin-top: 0; }
.nx-swatches, .nx-sizes { display: flex; gap: 8px; }
.nx-swatch { width: 28px; height: 28px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.nx-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.nx-swatch.is-violet { background: #7c3aed; }
.nx-swatch.is-blue { background: #2563eb; }
.nx-swatch.is-green { background: #16a34a; }
.nx-swatch.is-orange { background: #ea580c; }
.nx-studio-input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); background: var(--bg); font: inherit; font-size: 14px; }
.nx-studio-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nx-studio-flags { display: grid; gap: 6px; }
.nx-flag { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft); background: transparent; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; cursor: pointer; }
.nx-switch { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--border-strong); transition: background .15s; }
.nx-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.nx-flag[aria-checked="true"] .nx-switch { background: var(--accent); }
.nx-flag[aria-checked="true"] .nx-switch::after { transform: translateX(12px); }
.nx-sizes button { flex: 1; padding: 5px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nx-sizes button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--brand-soft); }
.nx-studio-stage { display: grid; place-items: center; min-height: 420px; padding: 24px 16px; background: var(--bg-alt); }
.nx-phone { width: 210px; padding: 8px; border-radius: 30px; background: #111; box-shadow: var(--shadow-lg); transition: width .2s; }
.nx-phone[data-size="small"] { width: 180px; }
.nx-phone[data-size="large"] { width: 240px; }
.nx-phone-screen { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 14px 14px 46px; overflow: hidden; border-radius: 23px; color: #191918; background: #fff; }
.nx-phone-status { display: flex; justify-content: space-between; color: #787774; font-size: 10px; font-weight: 600; }
.nx-phone-hello { margin: 6px 0 0; color: #787774; font-size: 12px; }
.nx-phone-title { margin: -8px 0 4px; overflow-wrap: anywhere; color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1.2; }
.nx-phone-card { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px; border: 1px solid #e9e9e7; border-radius: 12px; font-size: 12px; }
.nx-phone-card strong { font-size: 16px; }
.nx-phone-offer { border-color: transparent; color: #fff; background: var(--accent); }
.nx-phone-btn { padding: 9px; border-radius: 10px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 600; text-align: center; }
.nx-phone-chat { position: absolute; right: 12px; bottom: 44px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 14px; font-weight: 700; }
.nx-phone-chat[hidden], .nx-phone-card[hidden] { display: none; }
.nx-phone-tabs { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid #e9e9e7; }
.nx-phone-tabs span { width: 18px; height: 4px; border-radius: 2px; background: #dcdcd9; }
.nx-phone-tabs .is-active { background: var(--accent); }

/* QA split */
.nx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 64px; }
.nx-split .nx-heading { margin-bottom: 28px; }
.nx-checks { display: grid; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.nx-checks li { display: flex; gap: 12px; color: var(--text-soft); font-size: 16px; }
.nx-checks li::before { content: "✓"; display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; color: var(--brand-text); background: var(--brand-soft); font-size: 12px; font-weight: 700; }
.nx-terminal { overflow: hidden; border-radius: var(--radius-lg); color: #e6e6e6; background: #1e1e1e; box-shadow: var(--shadow-lg); }
.nx-terminal .nx-window-bar { border-bottom-color: #2e2e2e; background: #262626; }
.nx-terminal .nx-window-title { color: #8a8a8a; }
.nx-terminal-body { display: grid; gap: 4px; padding: 22px 24px 26px; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.nx-terminal-body span { white-space: pre-wrap; overflow-wrap: anywhere; color: #a9a9a9; }
.nx-terminal-body .nx-term-cmd { margin-bottom: 10px; color: #fff; }
.nx-terminal-body .nx-term-cmd::before { content: "$ "; color: var(--brand-cyan); }
.nx-term-warn { color: #f5c451 !important; }
.nx-term-pass { margin-top: 8px; color: #4ade80 !important; font-weight: 600; }
.nx-terminal-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Profiles */
.nx-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nx-profile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nx-profile-head code { padding: 2px 8px; border-radius: 4px; color: var(--code-text); background: var(--code-bg); font-size: 12.5px; }
.nx-profile-spec { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; }

/* Final CTA */
.nx-cta { position: relative; overflow: hidden; padding: 72px 48px; border-radius: 20px; color: #fff; background: var(--brand-gradient); text-align: center; }
.nx-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgb(255 255 255 / 18%), transparent 45%); pointer-events: none; }
.nx-cta > * { position: relative; z-index: 1; }
.nx-cta h2 { max-width: 700px; margin: 0 auto 14px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.nx-cta > p { max-width: 520px; margin: 0 auto 32px; color: rgb(255 255 255 / 84%); font-size: 18px; }
.nx-cta-cmd { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: 28px; padding: 8px 8px 8px 18px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 10px; background: rgb(10 10 20 / 28%); font-size: 15px; }
.nx-cta-cmd code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-cta-cmd code span:first-child { margin-right: 8px; color: rgb(255 255 255 / 60%); }
.nx-cta-cmd .nx-copy { color: #fff; border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 12%); }
.nx-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nx-btn-white { color: #4c1d95 !important; background: #fff; }
.nx-btn-white:hover { background: #f3f0ff; }
.nx-btn-outline-white { color: #fff !important; border-color: rgb(255 255 255 / 40%); background: transparent; }
.nx-btn-outline-white:hover { background: rgb(255 255 255 / 10%); }
.nx-steps { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: rgb(255 255 255 / 78%); font-size: 14px; font-weight: 500; }

/* --- Documentation pages -------------------------------------------------- */
.nd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.nd-sidebar { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); padding: 24px 12px 40px; overflow-y: auto; border-right: 1px solid var(--border); background: var(--bg-alt); scrollbar-width: thin; }
.nd-side-version { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 20px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; }
.nd-side-version-label { color: var(--muted); }
.nd-side-version-value { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; }
.nd-side-title { margin: 22px 0 4px; padding: 0 10px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nd-sidebar .nd-side-title:first-of-type { margin-top: 0; }
.nd-sidebar nav { display: grid; gap: 1px; }
.nd-side-link { display: block; padding: 5px 10px; border-radius: 5px; color: var(--text-soft); font-size: 14px; transition: background .12s; }
.nd-side-link:hover { background: var(--bg-hover); }
.nd-side-current { color: var(--text); background: var(--bg-hover); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand-violet); }
.nd-main { min-width: 0; padding: 48px clamp(24px, 6vw, 96px) 96px; }
.nd-article { max-width: 780px; margin: 0 auto; }
.nd-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; color: var(--muted); font-size: 14px; }
.nd-breadcrumb a { padding: 2px 6px; border-radius: 4px; }
.nd-breadcrumb a:hover { color: var(--text); background: var(--bg-hover); }
.nd-breadcrumb span { color: var(--faint); }
.nd-breadcrumb .nd-crumb-current { color: var(--text-soft); }
.nd-hero { padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.nd-eyebrow { display: inline-flex; margin-bottom: 14px; padding: 2px 8px; border-radius: 4px; color: var(--tile-purple); background: var(--tile-purple-bg); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.nd-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.nd-hero p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.nd-contents { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.nd-contents-title { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nd-contents ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 20px; margin: 0; padding: 0; list-style: none; }
.nd-contents a { display: flex; gap: 10px; padding: 4px 0; color: var(--text-soft); font-size: 14px; }
.nd-contents a:hover { color: var(--brand-text); }
.nd-contents-number { min-width: 20px; color: var(--faint); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.9; }
.nd-content, .nd-doc-section, .nd-section-copy { min-width: 0; }
.nd-doc-section { padding-top: 44px; scroll-margin-top: calc(var(--header-h) + 24px); }
.nd-section-number { display: none; }
.nd-section-copy h2 { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.nd-section-copy > p { margin-bottom: 18px; color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.nd-points { display: grid; gap: 6px; margin: 0 0 20px; padding: 0 0 0 4px; list-style: none; }
.nd-points li { position: relative; padding-left: 22px; color: var(--text-soft); line-height: 1.7; }
.nd-points li::before { content: ""; position: absolute; top: .72em; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nd-table { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nd-table-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; padding: 10px 14px; }
.nd-table-row + .nd-table-row { border-top: 1px solid var(--border); }
.nd-table-term { color: var(--code-text); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.nd-table-detail { color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.nd-code-block { margin-top: 18px; }
.nd-code-label { display: inline-block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.nd-code { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--code-bg); }
.nd-code code { color: var(--text-soft); font-size: 13.5px; line-height: 1.7; white-space: pre; }
.nd-note { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); }
.nd-note span { flex: 0 0 auto; padding: 1px 7px; height: fit-content; border-radius: 4px; color: var(--tile-blue); background: var(--tile-blue-bg); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.nd-note p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.nd-page-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); }
.nd-page-end a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.nd-page-end a:hover { border-color: var(--brand-violet); background: var(--brand-soft); }
.nd-page-end span { color: var(--muted); font-size: 13px; }
.nd-page-end strong { color: var(--text); font-size: 16px; font-weight: 600; }
.nd-page-next { text-align: right; }

/* --- Mobile Studio page --------------------------------------------------- */
.ms-hero { position: relative; padding: 80px 0 88px; overflow: hidden; }
.ms-hero::before { content: ""; position: absolute; top: -240px; right: -200px; width: 900px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgb(124 58 237 / 14%), rgb(34 211 238 / 7%) 60%, transparent); pointer-events: none; }
.ms-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; }
.ms-hero h1 { margin: 0 0 22px; font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.ms-hero h1 span { display: block; }
.ms-hero .nx-hero-lead { margin: 0 0 32px; }
.ms-hero-actions { justify-content: flex-start; }
.ms-hero-art img, .ms-art img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
.ms-hero-art img { animation: ms-float 7s ease-in-out infinite; }
@keyframes ms-float { 50% { transform: translateY(-10px); } }

/* Scroll reveal, only once site.js has marked the page as able to undo it. */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

.ms-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ms-step { padding: 14px 14px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ms-step:nth-child(2) { transition-delay: .1s; }
.ms-step:nth-child(3) { transition-delay: .2s; }
.ms-step img { display: block; width: 100%; height: auto; margin-bottom: 18px; border-radius: 12px; }
.ms-step-no { display: block; padding-inline: 8px; color: var(--brand-text); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.ms-step h3 { margin: 4px 0 8px; padding-inline: 8px; font-size: 20px; font-weight: 600; }
.ms-step p { margin: 0; padding-inline: 8px; color: var(--muted); font-size: 15px; }

/* Playground */
.ms-play { --accent: #7c3aed; --radius: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.ms-play [hidden] { display: none !important; }
.ms-dirty { padding: 2px 8px; border-radius: 999px; color: var(--tile-orange); background: var(--tile-orange-bg); font-size: 12px; font-weight: 600; }
.ms-play-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ms-controls { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-right: 1px solid var(--border); }
.ms-label { margin: 12px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ms-controls > .ms-label:first-child { margin-top: 0; }
.ms-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-presets button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: transparent; font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.ms-presets button[aria-pressed="true"] { border-color: var(--text); background: var(--bg-hover); }
.ms-dot { width: 16px; height: 16px; border-radius: 50%; }
.ms-dot.is-violet { background: #7c3aed; }
.ms-dot.is-ocean { background: #0891b2; }
.ms-dot.is-forest { background: #16a34a; }
.ms-dot.is-sunset { background: #ea580c; }
.ms-dot.is-midnight { background: linear-gradient(135deg, #141416 50%, #a78bfa 50%); }
.ms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-field { display: flex; flex-direction: column; gap: 8px; }
.ms-inline { display: flex; align-items: center; gap: 10px; }
.ms-inline code { color: var(--muted); font-size: 12.5px; }
.ms-color { width: 40px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: none; cursor: pointer; }
.ms-range { flex: 1; min-width: 0; accent-color: var(--accent); }
.ms-mode { margin-top: 12px; }
.ms-actions { display: flex; gap: 8px; margin-top: 18px; }
.ms-actions .nx-btn { flex: 1; }
.ms-play .nx-btn-primary { background: var(--accent); }

.ms-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg-alt); }
.ms-phone { width: 260px; max-width: 100%; padding: 10px; border-radius: 40px; background: #111; box-shadow: var(--shadow-lg); transition: width .3s ease; }
.ms-phone[data-size="small"] { width: 228px; }
.ms-phone[data-size="large"] { width: 296px; }
.ms-screen { --ms-bg: #fff; --ms-text: #191918; --ms-muted: #787774; --ms-border: #e9e9e7; position: relative; min-height: 480px; padding: 16px 16px 70px; overflow: hidden; border-radius: 31px; color: var(--ms-text); background: var(--ms-bg); transition: background .3s, color .3s; }
.ms-play.is-dark .ms-screen { --ms-bg: #141416; --ms-text: #f2f2f2; --ms-muted: #9b9b98; --ms-border: #2e2e33; }
.ms-screen .nx-phone-status { color: var(--ms-muted); }
.ms-view { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; animation: ms-view-in .3s ease; }
@keyframes ms-view-in { from { opacity: 0; transform: translateX(12px); } }
.ms-hello { margin: 4px 0 -6px; color: var(--ms-muted); font-size: 12px; }
.ms-title { margin: 0; overflow-wrap: anywhere; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1.2; transition: color .3s; }
.ms-sub { margin: -4px 0 4px; overflow-wrap: anywhere; color: var(--ms-muted); font-size: 13px; }
.ms-card { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--ms-border); border-radius: var(--radius); font-size: 12.5px; transition: border-radius .2s, background .3s; }
.ms-card strong { font-size: 17px; }
.ms-view > div[data-pg-flag] { display: flex; flex-direction: column; gap: 10px; }
.ms-card-accent { border-color: transparent; color: #fff; background: var(--accent); animation: ms-pop .35s ease; }
@keyframes ms-pop { from { opacity: 0; transform: scale(.94); } }
.ms-cta { padding: 12px; border-radius: var(--radius); color: #fff; background: var(--accent); font-size: 13px; font-weight: 600; text-align: center; transition: border-radius .2s, background .3s; }
.ms-empty { padding: 48px 12px; border: 1px dashed var(--ms-border); border-radius: var(--radius); color: var(--ms-muted); font-size: 13px; text-align: center; }
.ms-avatar { display: grid; place-items: center; width: 60px; height: 60px; margin-top: 8px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 24px; font-weight: 700; }
.ms-row-item { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--ms-border); font-size: 13px; }
.ms-row-item span:last-child { color: var(--ms-muted); }
.ms-row-item .ms-pill-on { color: var(--accent); font-weight: 700; }
.ms-chat { position: absolute; right: 14px; bottom: 72px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgb(0 0 0 / 22%); font-size: 18px; font-weight: 700; animation: ms-pop .35s ease; }
.ms-tabs { position: absolute; right: 0; bottom: 0; left: 0; display: flex; border-top: 1px solid var(--ms-border); background: var(--ms-bg); }
.ms-tabs button { position: relative; flex: 1; padding: 14px 0 18px; border: 0; color: var(--ms-muted); background: transparent; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ms-tabs button[aria-pressed="true"] { color: var(--accent); }
.ms-tabs button[aria-pressed="true"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.ms-stage-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.ms-deploy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; padding: 20px 24px 24px; border-top: 1px solid var(--border); }
.ms-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-device { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: border-color .3s, background .3s; }
.ms-device-screen { display: flex; flex-direction: column; gap: 4px; width: 46px; height: 80px; padding: 9px 6px; box-sizing: border-box; border: 3px solid #111; border-radius: 10px; background: #fff; transition: box-shadow .3s; }
.ms-device-screen span { height: 6px; border-radius: 3px; background: var(--dev-accent, #7c3aed); transition: background .4s; }
.ms-device-screen span:nth-child(2) { height: 18px; }
.ms-device-screen span:nth-child(3) { opacity: .35; }
.ms-device strong { font-size: 13px; font-weight: 600; }
.ms-device-state { color: var(--muted); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11.5px; }
.ms-device.is-syncing .ms-device-screen { animation: ms-ring 1s ease-out infinite; }
.ms-device.is-updated { border-color: var(--tile-green); background: var(--tile-green-bg); }
.ms-device.is-updated .ms-device-state { color: var(--tile-green); font-weight: 600; }
.ms-device.is-waiting .ms-device-state { color: var(--tile-orange); }
@keyframes ms-ring { from { box-shadow: 0 0 0 0 rgb(34 211 238 / 60%); } to { box-shadow: 0 0 0 12px rgb(34 211 238 / 0%); } }
.ms-log { display: grid; align-content: start; gap: 4px; max-height: 172px; margin: 0; padding: 14px 16px; overflow: auto; border-radius: var(--radius); color: #a9a9a9; background: #1e1e1e; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.55; list-style: none; }
.ms-log li { overflow-wrap: anywhere; animation: ms-log-in .25s ease; }
.ms-log .is-ok { color: #7ee2a8; }
.ms-log .is-warn { color: #f5c26b; }
@keyframes ms-log-in { from { opacity: 0; transform: translateY(4px); } }

.ms-code .ms-tok-k { color: #c4b5fd; }
.ms-code .ms-tok-c { color: #6b7280; }
.ms-code span { color: #e6e6e6; }

.ms-faq-wrap { max-width: 820px; }
.ms-faq-item { border-bottom: 1px solid var(--border-strong); }
.ms-faq h3 { margin: 0; }
.ms-faq button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0; border: 0; color: var(--text); background: none; font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
.ms-faq button::after { content: "+"; flex: 0 0 auto; color: var(--brand-text); font-size: 22px; font-weight: 400; transition: transform .2s; }
.ms-faq button[aria-expanded="true"]::after { transform: rotate(45deg); }
.ms-faq-panel p { margin: -6px 0 22px; color: var(--muted); animation: ms-log-in .25s ease; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nx-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-release-grid, .nx-profile-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-header-end .nx-github, .nx-version { display: none; }
}

@media (max-width: 900px) {
  .nx-menu-toggle { display: block; }
  .nx-header-inner { gap: 12px; }
  .nx-header-end { margin-left: auto; }
  .nx-menu { position: absolute; top: var(--header-h); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow); }
  .nx-header.is-open .nx-menu { display: flex; }
  .nx-menu a { padding: 10px 12px; font-size: 16px; }
  .nx-header-end .nx-btn-primary { display: none; }
  .nx-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ms-hero { padding: 56px 0 64px; }
  .ms-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ms-steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .ms-play-body, .ms-deploy { grid-template-columns: minmax(0, 1fr); }
  .ms-controls { border-right: 0; border-bottom: 1px solid var(--border); }
  .nx-why-grid { grid-template-columns: 1fr; gap: 28px; }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-footer-brand { grid-column: 1 / -1; }
  .nd-layout { display: block; }
  .nd-sidebar { position: static; display: flex; gap: 6px; height: auto; padding: 10px 16px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .nd-sidebar::-webkit-scrollbar { display: none; }
  .nd-side-title, .nd-side-version { display: none; }
  .nd-sidebar nav { display: flex; flex: 0 0 auto; gap: 6px; }
  .nd-side-link { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
  .nd-side-current { box-shadow: none; border-color: var(--brand-violet); color: var(--brand-text); }
  .nd-main { padding: 32px 20px 72px; }
}

@media (max-width: 720px) {
  .nx-wrap { width: calc(100% - 32px); }
  .nx-showcase { width: 100%; }
  .nx-section { padding: 72px 0; }
  .nx-hero { padding-top: 64px; }
  .nx-hero-actions .nx-btn { flex: 1 1 100%; }
  .nx-window-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nx-window-side { display: none; }
  .nx-window-main { padding: 20px; }
  .nx-feature-grid, .nx-release-grid, .nx-profile-grid { grid-template-columns: 1fr; }
  .nx-cta { padding: 48px 20px; border-radius: 14px; }
  .nx-cta-actions .nx-btn { flex: 1 1 100%; }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
  .nx-footer-bottom { flex-direction: column; align-items: flex-start; }
  .nx-studio-body { grid-template-columns: minmax(0, 1fr); }
  .ms-hero-actions .nx-btn { flex: 1 1 100%; }
  .ms-controls, .ms-deploy { padding: 18px 16px; }
  .ms-field-row { grid-template-columns: minmax(0, 1fr); }
  .ms-actions { position: sticky; bottom: 12px; z-index: 2; padding: 8px; margin-inline: -8px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .ms-stage { padding: 24px 12px; }
  .ms-devices { gap: 6px; }
  .ms-device { padding: 12px 4px; }
  .nx-studio-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .nd-table-row { grid-template-columns: 1fr; gap: 4px; }
  .nd-page-end { grid-template-columns: 1fr; }
  .nd-page-next { text-align: left; }
}

@media (max-width: 420px) {
  .nx-theme-btn { display: none; }
  .nx-hero-cmd, .nx-cta-cmd { width: 100%; }
  .nx-hero-cmd code, .nx-cta-cmd code { flex: 1; text-align: left; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-card, .nx-btn, .nx-phone, .nx-switch, .nx-switch::after { transition: none; }
  .ms-hero-art img, .ms-view, .ms-card-accent, .ms-chat, .ms-log li, .ms-faq-panel p, .ms-device.is-syncing .ms-device-screen { animation: none; }
  .ms-phone, .ms-screen, .ms-title, .ms-card, .ms-cta, .ms-device, .ms-device-screen span { transition: none; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nx-card:hover { transform: none; }
}
