/* ============================================================
 LuxeChain public marketing layer, 2026 redesign
 OpenRouter-grade product marketing, LuxeChain story.
 Loaded only on public pages (admin keeps luxechain.css untouched).
 ============================================================ */

body.public {
 /* palette, near-white canvas, ink, one red accent */
 --background: #FCFCFE;
 --card: #FFFFFF;
 --raised: #FFFFFF;
 --muted: #F5F5F8;
 --muted-2: #EDEDF1;
 --ink-900: #03080A;
 --ink-700: #1F2937;
 --ink-500: #4B5563;
 --ink-400: #5F6B7A;
 --border: rgba(3, 8, 10, .085);
 --border-strong: rgba(3, 8, 10, .26);
 --accent: #7C3AED;
 --accent-fg: #FFFFFF;
 --accent-hover: #6D28D9;
 --accent-soft: #F5F3FF;
 --accent-ink: #6D28D9;
  --cyan: #22D3EE;
  --cyan-ink: #0E7490;
  --night: #07080B;
  --night-2: #0B0D14;
  --night-3: #131722;
 /* Faces are owned by typography.css, which loads last. */
 --maxw: 100%;
 --r-sm: 10px;
 --r: 14px;
 --r-lg: 22px;
 --dur: 200ms;
 --dur-fast: 150ms;
 --dur-slow: 560ms;

 background-color: var(--background);
 background-image: none;
 color: var(--ink-700);
 font-family: var(--font-sans);
 letter-spacing: -0.005em;
}

body.public .bg-ambient { display: none; }
body.public .scroll-progress {
 position: fixed; top: 0; left: 0; height: 2px; width: 100%;
 background: var(--accent); transform-origin: 0 50%; z-index: 100;
}
/* :where() keeps this base heading rule at one class of specificity, so the
   component rules below (dark mastheads, footer columns, closing band) can
   still override the colour. Without it body.public h1 outranked .m-pagehead
   h1 and the footer headings, painting dark ink on dark surfaces. */
body.public :where(h1, h2, h3, h4) {
 font-family: var(--font-display);
 color: var(--ink-900);
 letter-spacing: -0.035em;
 font-weight: 600;
 line-height: 1.08;
}
body.public h1 { font-weight: 600; }
body.public a { color: inherit; }
body.public a.btn-primary { color: #fff; }
body.public ::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ header */
body.public .site-header {
 background: rgba(252, 252, 254, .82);
 backdrop-filter: saturate(180%) blur(16px);
 -webkit-backdrop-filter: saturate(180%) blur(16px);
 border-bottom: 1px solid transparent;
 transition: border-color 200ms ease, background 200ms ease;
}
body.public .site-header.scrolled {
 border-bottom-color: var(--border);
 background: rgba(252, 252, 254, .94);
}
body.public .nav { min-height: 64px; gap: 20px; }
body.public .nav-links { gap: 22px; }
body.public .nav-links a {
 color: var(--ink-500); font-size: 14px; font-weight: 500;
 letter-spacing: -0.01em;
}
body.public .nav-links a:hover,
body.public .nav-links a[aria-current="page"] { color: var(--ink-900); }
body.public .nav-actions { gap: 8px; }
body.public .ccy-btn { border-radius: 8px; }
body.public .btn { border-radius: 9px; font-weight: 600; letter-spacing: -0.01em; }
body.public .btn-primary {
 background: var(--accent); color: #fff;
 box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 24px -12px rgba(124, 58, 237, .65);
}
body.public .btn-primary:hover { background: var(--accent-hover); }
body.public .btn-primary:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------ shared */
.m-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 2.6vw, 56px); }
.m-section { padding: 92px 0; position: relative; }
.m-section.tight { padding: 64px 0; }
.m-kicker {
 display: inline-flex; align-items: center; gap: 8px;
 font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
 color: var(--accent-ink);
}
.m-kicker::before {
 content: ""; width: 6px; height: 6px; border-radius: 50%;
 background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.m-head { max-width: 720px; margin-bottom: 34px; }
.m-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.m-head h2 { font-size: clamp(29px, 3.5vw, 44px); margin: 10px 0 12px; }
.m-head p { color: var(--ink-500); font-size: 16.5px; line-height: 1.65; max-width: 62ch; }
.m-head.center p { margin-left: auto; margin-right: auto; }
.m-eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px;
 background: #fff; color: var(--ink-500); font-size: 12.5px; font-weight: 600;
 letter-spacing: .01em;
}
.m-eyebrow i {
 width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
 box-shadow: 0 0 0 4px var(--accent-soft);
}
.m-grad {
 /* Monochrome highlight: an underline, not colour or gradient-clipped text. */
 color: inherit;
 background: none;
 -webkit-text-fill-color: currentColor;
 text-decoration: underline;
 text-decoration-thickness: .055em;
 text-underline-offset: .09em;
}

/* ------------------------------------------------------------ hero */
.m-hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.m-hero::before {
 content: ""; position: absolute; inset: -260px 0 auto 0; height: 640px;
 background:
 radial-gradient(560px 320px at 22% 18%, rgba(3, 8, 10, .055), transparent 70%),
 radial-gradient(520px 300px at 82% 12%, rgba(99, 102, 241, .07), transparent 72%);
 pointer-events: none;
}
.m-hero-grid {
 position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
 gap: 44px; align-items: center;
}
.m-hero-title {
 font-size: clamp(42px, 5.6vw, 76px);
 line-height: 1.05; letter-spacing: -0.022em; margin: 18px 0 18px;
}
.m-hero-title .line {
 display: block; overflow: hidden;
 /* The glyph box is taller than a 1.02 line box; without this the top/bottom
 of the headline is clipped. The negative margin keeps the two lines tight. */
 padding: .08em 0; margin: -.08em 0;
}
.m-hero-title .line span {
 display: inline-block;
 animation: m-line 700ms var(--ease-out) both;
 animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes m-line {
 from { transform: translateY(110%); }
 to { transform: translateY(0); }
}
.m-hero-sub {
 font-size: 17px; line-height: 1.65; color: var(--ink-500);
 max-width: 54ch; margin-bottom: 26px;
}
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.m-actions .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.m-stats {
 display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
 gap: 0; border-top: 1px solid var(--border); padding-top: 20px; max-width: 560px;
}
.m-stat { padding-right: 16px; border-right: 1px solid var(--border); }
.m-stat:last-child { border-right: 0; }
.m-stat strong {
 display: block; font-size: 25px; font-weight: 600; color: var(--ink-900);
 letter-spacing: -0.022em; line-height: 1.1;
}
.m-stat span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-400); letter-spacing: .02em; }

/* hero visual */
.m-hero-visual { position: relative; min-height: 470px; }
.m-keycard {
 position: relative; z-index: 2; width: min(360px, 88%); margin-left: auto;
 border: 1px solid var(--border); border-radius: 18px; background: #fff;
 padding: 18px 20px; box-shadow: 0 30px 80px -50px rgba(3, 8, 10, .45);
 animation: m-float 7s ease-in-out infinite;
}
@keyframes m-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.m-key-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.m-key-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.m-key-balance { margin: 22px 0 18px; }
.m-key-balance small { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--ink-400); font-weight: 600; }
.m-key-balance strong { display: block; font-size: 38px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; margin-top: 2px; }
.m-key-balance em { font-style: normal; font-size: 13px; color: var(--ink-500); font-weight: 500; }
.m-key-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-400); }
.m-codecard {
 position: relative; z-index: 3; margin: 14px 0 0 0; width: min(430px, 100%);
 background: #0B0D10; color: #E5E7EB; border-radius: 16px; overflow: hidden;
 box-shadow: 0 34px 90px -46px rgba(3, 8, 10, .7); border: 1px solid rgba(255, 255, 255, .08);
}
.m-code-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.m-dots { display: flex; gap: 5px; }
.m-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3F3F46; display: block; }
.m-dots i:nth-child(1) { background: #EF4444; } .m-dots i:nth-child(2) { background: #F59E0B; } .m-dots i:nth-child(3) { background: #22C55E; }
.m-code-tabs { display: flex; gap: 2px; margin-left: 6px; }
.m-code-tabs button {
 border: 0; background: transparent; color: #9CA3AF; font: 600 11.5px var(--font-sans);
 padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.m-code-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: #fff; }
.m-code-status { margin-left: auto; font: 500 10.5px var(--font-mono); color: #4ADE80; }
.m-codecard pre {
 margin: 0; padding: 16px 16px 18px; font: 12px/1.7 var(--font-mono);
 color: #D1D5DB; overflow-x: auto; white-space: pre;
}
.m-codecard pre .k { color: #BFDBFE; } .m-codecard pre .s { color: #BBF7D0; } .m-codecard pre .c { color: #9CA3AF; }
.m-codecard [data-panel] { animation: m-fade 180ms ease both; }
@keyframes m-fade { from { opacity: 0 } to { opacity: 1 } }
.m-copy {
 margin-left: auto; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
 color: #D1D5DB; border-radius: 6px; font: 500 10.5px var(--font-sans);
 padding: 3px 7px; cursor: pointer;
}
.m-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.m-chip {
 position: absolute; display: inline-flex; align-items: center; gap: 6px;
 padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
 font-size: 11.5px; font-weight: 600; color: var(--ink-500);
 box-shadow: 0 8px 30px -20px rgba(3, 8, 10, .4); animation: m-float 9s ease-in-out infinite;
}
.m-chip b { color: var(--ink-900); font-weight: 700; }
.m-chip:nth-child(1) { left: 0; top: 16%; animation-delay: -1s; }
.m-chip:nth-child(2) { right: 2%; top: 9%; animation-delay: -3.5s; }
.m-chip:nth-child(3) { left: -2%; top: 52%; animation-delay: -5s; }
.m-chip:nth-child(4) { right: 0; top: 45%; animation-delay: -2s; }
.m-chip:nth-child(5) { left: 22%; bottom: 2%; animation-delay: -6s; }

/* ------------------------------------------------------------ logo marquee */
.m-logos { padding: 26px 0 36px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.m-logos p { text-align: center; font-size: 12px; color: var(--ink-400); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.m-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.m-marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: m-marq 34s linear infinite; }
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
@keyframes m-marq { to { transform: translateX(-50%); } }
.m-marquee-group { display: flex; align-items: center; gap: 44px; }
.m-marquee a { font-size: 15px; font-weight: 600; color: var(--ink-400); white-space: nowrap; letter-spacing: -0.01em; transition: color 150ms ease; }
.m-marquee a:hover { color: var(--ink-900); }

/* ------------------------------------------------------------ cards / grids */
.m-grid { display: grid; gap: 16px; }
.m-grid.models { grid-template-columns: repeat(3, minmax(0,1fr)); }
.m-card {
 position: relative; background: #fff; border: 1px solid var(--border);
 border-radius: var(--r); padding: 22px; overflow: hidden;
 transition: border-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}
.m-card:hover { border-color: rgba(3, 8, 10, .18); transform: translateY(-3px); box-shadow: 0 20px 50px -38px rgba(3, 8, 10, .55); }
.m-spot::after {
 content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
 transition: opacity 200ms ease;
 background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(3, 8, 10, .06), transparent 55%);
}
.m-spot:hover::after { opacity: 1; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.m-chips span {
 display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
 border: 1px solid var(--border); border-radius: 999px; background: #fff;
 font-size: 12.5px; color: var(--ink-500); font-weight: 600;
}
.m-chips b { color: var(--ink-900); font-weight: 700; }
.m-model-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.m-maker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.m-pill { font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.m-model-card h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.02em; }
.m-model-card code { font: 11.5px var(--font-mono); color: var(--ink-400); }
.m-model-price { margin: 20px 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.022em; color: var(--ink-900); }
.m-model-price small { font-size: 11.5px; font-weight: 500; color: var(--ink-400); letter-spacing: 0; }
.m-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.m-link svg { transition: transform 180ms var(--ease-out); }
.m-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ split sections */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.m-split.rev .m-split-visual { order: -1; }
.m-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.m-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-700); }
.m-checks svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.m-paymock { position: relative; display: grid; gap: 14px; max-width: 430px; margin-left: auto; }
.m-paycard {
 border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 18px 18px;
 box-shadow: 0 24px 60px -50px rgba(3, 8, 10, .45); display: flex; gap: 13px; align-items: flex-start;
}
.m-paycard .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.m-paycard.ok .ico { background: #ECFDF3; color: #15803D; }
.m-paycard.bad .ico { background: #FFFBEB; color: #B45309; }
.m-paycard strong { display: block; font-size: 14px; color: var(--ink-900); }
.m-paycard span { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.5; }
.m-paycard:nth-child(2) { margin-left: 34px; opacity: .92; }
.m-balance-card {
 border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 22px;
 box-shadow: 0 30px 80px -60px rgba(3, 8, 10, .5);
}
.m-balance-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 16px; }
.m-balance-head strong { font-size: 15px; color: var(--ink-900); }
.m-balance-head span { font: 600 12px var(--font-mono); color: var(--accent-ink); }
.m-bar-row { display: grid; grid-template-columns: 64px 1fr 42px; gap: 12px; align-items: center; padding: 7px 0; font-size: 12.5px; color: var(--ink-500); }
.m-bar { height: 7px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 900ms var(--ease-out); }
.m-bar-row:nth-child(2) i { background: #374151; } .m-bar-row:nth-child(3) i { background: #6B7280; } .m-bar-row:nth-child(4) i { background: #9CA3AF; }
.reveal.in .m-bar i { width: var(--w); }
.m-bar-row b { text-align: right; font: 600 11.5px var(--font-mono); color: var(--ink-700); }

/* ------------------------------------------------------------ dashboard mock */
.m-dash-card { border: 1px solid var(--border); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 30px 80px -60px rgba(3, 8, 10, .5); }
.m-dash-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--ink-400); }
.m-dash-top b { color: var(--ink-900); font-size: 12.5px; }
.m-dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--border); }
.m-dash-kpis div { padding: 16px; border-right: 1px solid var(--border); }
.m-dash-kpis div:last-child { border-right: 0; }
.m-dash-kpis small { display: block; font-size: 10.5px; color: var(--ink-400); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.m-dash-kpis strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.022em; margin-top: 5px; }
.m-dash-table { padding: 6px 0 4px; }
.m-dash-row { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 10px; padding: 8px 16px; font-size: 12px; color: var(--ink-500); }
.m-dash-row.head { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; }
.m-dash-row b { color: var(--ink-900); font-weight: 600; }
.m-dash-row span:last-child { text-align: right; font-family: var(--font-mono); font-size: 11px; }
.m-note { font-size: 11px; color: var(--ink-400); padding: 10px 16px; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------ code / migration */
.m-code-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.m-code-shell { border-radius: 16px; overflow: hidden; background: #0B0D10; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 34px 90px -50px rgba(3, 8, 10, .7); }
.m-code-shell .m-code-head { background: rgba(255, 255, 255, .02); }
.m-code-shell pre { margin: 0; padding: 18px; font: 12px/1.75 var(--font-mono); color: #D1D5DB; overflow-x: auto; max-height: 340px; }
.m-code-shell pre .cmd { color: #93C5FD; } .m-code-shell pre .str { color: #86EFAC; } .m-code-shell pre .flag { color: #C4B5FD; }

/* ------------------------------------------------------------ pricing */
.m-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; margin-left: auto; margin-right: auto; }
.m-plan {
 position: relative; border: 1px solid var(--border); border-radius: 18px;
 background: #fff; padding: 24px; display: flex; flex-direction: column; min-height: 100%;
 transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}
.m-plan:hover { transform: translateY(-3px); border-color: rgba(3, 8, 10, .18); box-shadow: 0 24px 60px -46px rgba(3, 8, 10, .45); }
.m-plan.featured { border-color: var(--accent); box-shadow: 0 22px 60px -44px rgba(3, 8, 10, .30); }
.m-plan-badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.m-plan h3 { font-size: 19px; margin-bottom: 4px; }
.m-plan .tag { font-size: 12.5px; color: var(--ink-400); min-height: 20px; }
.m-plan .price { font-size: 38px; font-weight: 600; letter-spacing: -0.022em; margin: 20px 0 2px; }
.m-plan .price small { font-size: 12.5px; font-weight: 500; color: var(--ink-400); letter-spacing: 0; }
.m-plan .credits { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; }
.m-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.m-plan li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-500); }
.m-plan li svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.m-plan .btn { margin-top: auto; }
.m-plan .buy { margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.m-custom-link { display: block; text-align: center; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* pricing page slider card */
.m-build {
 border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(180deg,#fff,#FBFBFF);
 padding: 28px; box-shadow: 0 30px 80px -70px rgba(3, 8, 10, .5);
}
.m-build h2 { font-size: 26px; margin: 8px 0 6px; }
.m-build .m-sub { color: var(--ink-500); font-size: 14px; }
#cp-range { width: 100%; height: 36px; accent-color: var(--accent); cursor: pointer; }
.cp-read { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 6px; }
.cp-num { font-size: 30px; font-weight: 600; color: var(--ink-900); line-height: 1.05; letter-spacing: -0.022em; }
.cp-num small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-400); margin-top: 5px; letter-spacing: .02em; }
.cp-price { color: var(--accent-ink); text-align: right; }

/* ------------------------------------------------------------ trust / faq */
.m-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.m-trust .m-card h3 { font-size: 16px; margin-bottom: 8px; }
.m-trust .m-card p { font-size: 13px; color: var(--ink-500); line-height: 1.6; }
.m-trust .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.m-faq { max-width: 820px; margin: 0 auto; }
.m-acc { border-bottom: 1px solid var(--border); }
.m-acc summary {
 list-style: none; cursor: pointer; padding: 18px 0; font-size: 15px; font-weight: 600;
 color: var(--ink-900); display: flex; justify-content: space-between; gap: 16px;
}
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary::after {
 content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-400); line-height: 1;
 transition: transform 180ms var(--ease-out);
}
.m-acc[open] summary::after { transform: rotate(45deg); }
.m-acc p { margin: 0 0 18px; color: var(--ink-500); font-size: 14px; line-height: 1.7; max-width: 70ch; }
.m-acc[open] p { animation: m-fade 200ms ease both; }

/* ------------------------------------------------------------ closing */
.m-closing { padding: 90px 0; text-align: center; border-top: 1px solid var(--border); background: #fff; }
.m-closing h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.022em; margin-bottom: 14px; }
.m-closing p { color: var(--ink-500); font-size: 16px; margin-bottom: 26px; }
.m-closing .m-actions { justify-content: center; }

/* ------------------------------------------------------------ footer */
body.public .site-footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 34px; margin-top: 0; }
body.public .site-footer .foot-grid { gap: 40px; }
body.public .site-footer .foot-brand p { color: var(--ink-500); }
body.public .site-footer .foot-col h4 { color: var(--ink-400); letter-spacing: .1em; }
body.public .site-footer .foot-col a { color: var(--ink-500); font-size: 13.5px; }
body.public .site-footer .foot-col a:hover { color: var(--ink-900); }
body.public .foot-bottom { border-top: 1px solid var(--border); color: var(--ink-400); }

/* ------------------------------------------------------------ chat widget */
body.public .luxechain-bot-launch { background: var(--ink-900); color: #fff; border-radius: 999px; }
body.public .luxechain-bot-panel { border-radius: 18px; border-color: var(--border); box-shadow: 0 30px 80px -40px rgba(3, 8, 10, .5); }
body.public .luxechain-bot-form button { background: var(--accent); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
 .m-hero-grid { gap: 34px; }
 .m-hero-visual { min-height: 420px; }
 .m-grid.models { grid-template-columns: repeat(2, minmax(0,1fr)); }
 .m-split.m-code-split { gap: 34px; }
}
@media (max-width: 900px) {
 .m-section { padding: 68px 0; }
 .m-hero { padding: 52px 0 48px; }
 .m-hero-grid { grid-template-columns: 1fr; }
 .m-hero-visual { min-height: 0; margin-top: 14px; }
 .m-keycard { margin-left: 0; width: min(360px, 100%); }
 .m-codecard { margin-top: 14px; width: 100%; }
 .m-orbit { display: none; }
 .m-stats { max-width: none; }
 .m-split.m-code-split { grid-template-columns: 1fr; }
 .m-split.rev .m-split-visual { order: 0; }
 .m-paymock { margin-left: 0; }
 .m-plan-grid.m-trust { grid-template-columns: 1fr; }
 .m-plan.featured { order: -1; }
}
@media (max-width: 620px) {
 .m-wrap { padding: 0 20px; }
 .m-hero-title { font-size: clamp(38px, 11vw, 52px); }
 .m-hero-sub { font-size: 15.5px; }
 .m-actions .btn { flex: 1 1 100%; }
 .m-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
 .m-stat { border-right: 0; padding-right: 0; }
 .m-stat:nth-child(odd) { border-right: 1px solid var(--border); }
 .m-grid.models { grid-template-columns: 1fr; }
 .m-dash-kpis { grid-template-columns: 1fr; }
 .m-dash-kpis div { border-right: 0; border-bottom: 1px solid var(--border); }
 .m-dash-kpis div:last-child { border-bottom: 0; }
 .m-head h2 { font-size: 30px; }
 .m-closing h2 { font-size: 34px; }
 .cp-num { font-size: 24px; }
 .cp-read { gap: 8px; }
}

/* reduced motion: final states, no loops */
@media (prefers-reduced-motion: reduce) {
 .m-keycard.m-chip { animation: none !important; }
 .m-marquee-track { animation: none !important; }
 .m-hero-title .line span { transform: none !important; animation: none !important; }
 .reveal.in .m-bar i { transition: none; }
}

/* Shared page frame: nav and footer must align with the new content width. */
body.public .wrap {
 max-width: var(--maxw);
 padding-left: clamp(20px, 2.6vw, 56px);
 padding-right: clamp(20px, 2.6vw, 56px);
}


/* ============================================================
 Public contact address, hello@luxechain.si

 Shown in the footer of every page and as its own card on /contact.
 The point is trust: a visitor checking whether a site is a real business
 scans for a plain, readable address. So it is rendered as text, never only
 behind a mailto:, and it must be legible at a glance on a phone.

 Contrast: the footer band is --accent #FFC72C (yellow), so the address uses
 the dark ink already set for .foot-col a (rgba(12, 10, 9, .80) on yellow =
 ~10:1) and is only made a touch heavier. On the contact card the surface is
 white, so it uses --accent-ink #8A6100 (5.30:1), the text accent, never the
 yellow itself, which is a fill colour.
 ============================================================ */
.foot-mail {
 font-weight: 600;
 letter-spacing: -0.01em;
 word-break: break-word;
}

.contact-mail {
 display: inline-block;
 font-size: 17px;
 font-weight: 600;
 letter-spacing: -0.01em;
 color: var(--accent-ink);
 text-decoration: none;
 border-bottom: 1.5px solid rgba(138, 97, 0, .35);
 padding-bottom: 1px;
 word-break: break-word;
 transition: border-color var(--dur-fast, 160ms) var(--ease-out, ease-out);
}
.contact-mail:hover { border-bottom-color: var(--accent-ink); }
.contact-mail:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

@media (max-width: 640px) {
 /* A long address on a narrow screen must wrap, not overflow the card. */
 .contact-mail { font-size: 16px; }
}


/* ------------------------------------------------------------ footer */
body.public .m-foot { border-top: 1px solid var(--border); background: #fff; padding: 56px 0 28px; }
.m-foot-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 34px; }
.m-foot-brand p { margin: 14px 0 16px; font-size: 13.5px; color: var(--ink-500); max-width: 32ch; line-height: 1.6; }
.m-foot-status { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px var(--font-mono); color: var(--ink-500); }
.m-foot-status i { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.m-foot-ph { margin-top: 20px; }
.m-foot-ph a { display: inline-block; line-height: 0; transition: opacity 150ms ease; }
.m-foot-ph a:hover { opacity: .82; }
.m-foot-col h4 { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; font-weight: 700; }
.m-foot-col a { display: block; font-size: 13.5px; color: var(--ink-500); padding: 4px 0; transition: color 150ms ease; }
.m-foot-col a:hover { color: var(--ink-900); }
.m-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 18px; font-size: 12.5px; color: var(--ink-400); }
@media (max-width: 980px) { .m-foot-grid { grid-template-columns: 1fr 1fr; } .m-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .m-foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* Full-width canvas: keep prose readable even on very wide screens. */
.m-split-copy > p.m-code-split .m-split-copy > p { max-width: 58ch; }
@media (min-width: 1500px) {
 .m-hero-visual { max-width: 620px; margin-left: auto; }
}


/* On a phone the chat launcher is a 52px circle pinned bottom-right (z-index 90),
   so it floats over whatever card happens to be last. On /contact that card is
   now the email address - the one thing a visitor is scanning for - and the
   launcher was landing on top of it. Give the page enough foot room that the
   card can always scroll clear of the widget instead of hiding behind it. */
@media (max-width: 860px) {
  .contact-page-foot-pad { padding-bottom: 78px; }
}


/* ============================================================
   RICH LAYER - cinematic hero, colour, pipeline, dark footer
   ============================================================ */

/* home header: transparent over the film, white when scrolled */
body.home-dark .site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  background: transparent; border-bottom-color: transparent;
}
body.home-dark .site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.74); }
body.home-dark .site-header:not(.scrolled) .nav-links a:hover,
body.home-dark .site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: #fff; }
body.home-dark .site-header:not(.scrolled) .lx-logo { color: #fff; }
body.home-dark .site-header:not(.scrolled) .lx-logo {
  color: #fff;
  --lx-w1: #67E8F9; --lx-w2: #C4B5FD;
  --lx-g1: #67E8F9; --lx-g2: #5CC8FF; --lx-g3: #C4B5FD;
}
body.home-dark .site-header.scrolled .lx-logo {
  color: var(--ink-900);
  --lx-w1: #0B6BCB; --lx-w2: #6D28D9;
  --lx-g1: #3EC6FF; --lx-g2: #2E7BFF; --lx-g3: #8B5CF6;
}
body.home-dark .site-header:not(.scrolled) .ccy-btn,
body.home-dark .site-header:not(.scrolled) .cart-btn,
body.home-dark .site-header:not(.scrolled) .nav-burger {
 color: #fff; border-color: rgba(255,255,255,.26);
 background: rgba(255,255,255,.07);
}
body.home-dark .site-header:not(.scrolled) .ccy-btn:hover,
body.home-dark .site-header:not(.scrolled) .cart-btn:hover,
body.home-dark .site-header:not(.scrolled) .nav-burger:hover {
 background: rgba(255,255,255,.14); color: #fff;
}
/* The burger bars were hard-coded ink, which vanished on the film header. */
body.home-dark .site-header:not(.scrolled) .nav-burger span { background: currentColor; }
body.home-dark .site-header:not(.scrolled) .btn-quiet { color: #fff; }
body.home-dark .site-header:not(.scrolled) .btn-quiet:hover { background: rgba(255,255,255,.12); color: #fff; }
/* One primary style everywhere: violet fill, white label. The old white pill
   disappeared against bright video and read as a blank button on light pages. */
body.home-dark .site-header:not(.scrolled) .btn-primary {
 background: var(--accent); color: #fff;
 box-shadow: 0 8px 24px -12px rgba(124,58,237,.9);
}
body.home-dark .site-header.scrolled { background: rgba(252,252,254,.94); border-bottom-color: var(--border); }
body.home-dark .site-header.scrolled .nav-links a { color: var(--ink-500); }
body.home-dark .site-header.scrolled .nav-links a:hover,
body.home-dark .site-header.scrolled .nav-links a[aria-current="page"] { color: var(--ink-900); }
body.home-dark .site-header.scrolled .lx-logo { color: var(--ink-900); }
body.home-dark .site-header.scrolled .ccy-btn,
body.home-dark .site-header.scrolled .cart-btn,
body.home-dark .site-header.scrolled .nav-burger { color: var(--ink-700); border-color: var(--border); }
body.home-dark .site-header.scrolled .btn-primary { background: var(--accent); color: #fff; }

/* hero film */
.m-hero-dark {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 100px; background: var(--night); overflow: hidden; color: #fff;
}
.m-hero-dark::before { display: none; }
.m-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .62; filter: saturate(1.25) contrast(1.05);
}
.m-hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 520px at 18% 8%, rgba(124,58,237,.38), transparent 68%),
    radial-gradient(620px 480px at 88% 18%, rgba(34,211,238,.22), transparent 72%),
    linear-gradient(180deg, rgba(7,8,11,.42) 0%, rgba(7,8,11,.72) 58%, rgba(7,8,11,.95) 100%);
}
.m-hero-dark .m-wrap { position: relative; z-index: 2; width: 100%; }
.m-hero-dark .m-eyebrow {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.84); backdrop-filter: blur(10px);
}
.m-hero-dark .m-eyebrow i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.14); }
.m-hero-dark .m-hero-title, .m-hero-dark .m-hero-title .line span { color: #fff; }
.m-hero-dark .m-grad { color: var(--cyan); text-decoration: none; -webkit-text-fill-color: currentColor; }
.m-hero-dark .m-hero-sub { color: rgba(255,255,255,.70); }
.m-hero-dark .m-stats { border-top-color: rgba(255,255,255,.16); }
.m-hero-dark .m-stat { border-right-color: rgba(255,255,255,.14); }
.m-hero-dark .m-stat strong { color: #fff; }
.m-hero-dark .m-stat span { color: rgba(255,255,255,.56); }
.m-hero-dark .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 40px -18px rgba(124,58,237,.95); }
.m-hero-dark .btn-primary:hover { background: var(--accent-hover); }
.m-hero-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.m-hero-dark .btn-ghost:hover { background: rgba(255,255,255,.12); }
.m-hero-dark .m-keycard {
  background: rgba(14,16,26,.62); border-color: rgba(255,255,255,.14);
  color: #fff; backdrop-filter: blur(18px);
  box-shadow: 0 34px 90px -50px rgba(0,0,0,.9), 0 0 60px -30px rgba(124,58,237,.55);
}
.m-hero-dark .m-key-top { color: rgba(255,255,255,.66); }
.m-hero-dark .m-key-balance strong { color: #fff; }
.m-hero-dark .m-key-balance em { color: rgba(255,255,255,.60); }
.m-hero-dark .m-key-balance small { color: rgba(255,255,255,.44); }
.m-hero-dark .m-key-foot { border-top-color: rgba(255,255,255,.14); color: rgba(255,255,255,.52); }
.m-hero-dark .m-codecard { box-shadow: 0 40px 110px -40px rgba(0,0,0,.95), 0 0 60px -30px rgba(34,211,238,.28); }
.m-hero-dark .m-chip {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.70); backdrop-filter: blur(10px);
}
.m-hero-dark .m-chip b { color: #fff; }
.m-hero-dark .m-chip:nth-child(1) b { color: #C4B5FD; }
.m-hero-dark .m-chip:nth-child(2) b { color: #67E8F9; }
.m-hero-dark .m-chip:nth-child(3) b { color: #93C5FD; }
.m-hero-dark .m-chip:nth-child(4) b { color: #86EFAC; }
.m-hero-dark .m-chip:nth-child(5) b { color: #FDE68A; }

/* coloured category pills */
.m-pill.coding { background: #EEF2FF; color: #3730A3; }
.m-pill.reasoning { background: #F5F3FF; color: #6D28D9; }
.m-pill.image { background: #FFF7ED; color: #C2410C; }
.m-pill.video { background: #FDF2F8; color: #BE185D; }
.m-pill.audio { background: #ECFEFF; color: #0E7490; }

/* soft tinted section */
.m-section.m-tint { background: linear-gradient(180deg, #FCFCFE 0%, #F8F6FF 100%); }

/* model grid a little richer */
.m-model-card:hover { border-color: rgba(124,58,237,.35); box-shadow: 0 24px 60px -46px rgba(124,58,237,.35); }
.m-model-price { color: var(--ink-900); }

/* pipeline */
.m-pipeline-section { background: #fff; }
.m-pipeline {
  position: relative; overflow: hidden; border-radius: 26px; padding: 46px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(124,58,237,.28), transparent 70%),
    radial-gradient(600px 300px at 90% 110%, rgba(34,211,238,.12), transparent 72%),
    linear-gradient(180deg, #0C0E16 0%, #07080B 100%);
  box-shadow: 0 40px 100px -70px rgba(7,8,11,.8);
}
.m-pipeline::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.mp-flow {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 84px 1fr 84px 1fr; align-items: center;
}
.mp-node, .mp-core {
  border-radius: 16px; padding: 18px 16px; text-align: center;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.mp-node small, .mp-core small { display: block; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 6px; }
.mp-node b, .mp-core b { display: block; font-size: 15px; font-weight: 700; }
.mp-node code { display: block; margin-top: 8px; font: 10.5px var(--font-mono);
  color: rgba(255,255,255,.55); word-break: break-all; }
.mp-core {
  border-color: rgba(124,58,237,.55);
  background: linear-gradient(180deg, rgba(124,58,237,.22), rgba(124,58,237,.06));
  box-shadow: 0 0 50px -18px rgba(124,58,237,.8);
}
.mp-core b { font-size: 17px; }
.mp-core .mp-keymark {
  display: inline-flex; align-items: center; gap: 7px; font: 600 11px var(--font-mono);
  color: #DDD6FE; margin-top: 8px;
}
.mp-core .mp-keymark i { width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.mp-models { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.mp-model {
  padding: 7px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
}
.mp-model.c1 { border-color: rgba(196,181,253,.45); }
.mp-model.c2 { border-color: rgba(103,232,249,.40); }
.mp-model.c3 { border-color: rgba(147,197,253,.40); }
.mp-model.c4 { border-color: rgba(134,239,172,.40); }
.mp-rail { position: relative; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.mp-packet {
  position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
  animation: mp-travel 2.3s linear infinite;
}
.mp-packet.rev { background: #C4B5FD; box-shadow: 0 0 14px #C4B5FD; animation: mp-travel-rev 3.1s linear infinite; }
@keyframes mp-travel { from { left: -8px } to { left: 100% } }
@keyframes mp-travel-rev { from { left: 100% } to { left: -8px } }
.mp-caption { position: relative; z-index: 1; text-align: center; margin-top: 26px;
  font-size: 12px; color: rgba(255,255,255,.48); }
@media (max-width: 820px) {
  .m-pipeline { padding: 26px 20px; }
  .mp-flow { grid-template-columns: 1fr; gap: 12px; }
  .mp-rail { width: 2px; height: 34px; margin: 0 auto; }
  .mp-packet { left: 50%; top: -8px; margin: -0px 0 0 -4px; animation: mp-travel-v 2.3s linear infinite; }
  .mp-packet.rev { animation: mp-travel-v-rev 3.1s linear infinite; }
  @keyframes mp-travel-v { from { top: -8px } to { top: 100% } }
  @keyframes mp-travel-v-rev { from { top: 100% } to { top: -8px } }
}

/* dark closing */
.m-closing { position: relative; overflow: hidden; background: var(--night); color: #fff; border-top: 0; }
.m-closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(124,58,237,.38), transparent 68%),
    radial-gradient(500px 300px at 80% 100%, rgba(34,211,238,.14), transparent 70%);
}
.m-closing .m-wrap { position: relative; z-index: 1; }
.m-closing h2 { color: #fff; }
.m-closing p { color: rgba(255,255,255,.64); }
.m-closing .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 40px -18px rgba(124,58,237,.95); }
.m-closing .btn-primary:hover { background: var(--accent-hover); }
.m-closing .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.m-closing .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* dark footer, all pages */
body.public .m-foot {
 background: var(--night); border-top: 1px solid rgba(255,255,255,.09);
 color: rgba(255,255,255,.68); position: relative; overflow: hidden;
}
/* The footer wordmark sits on near-black. Re-point the brand gradient to the
   bright pair, otherwise the "Chain" half renders in dark ink and disappears. */
.m-foot .lx-logo {
 color: #fff;
 --lx-w1: #67E8F9; --lx-w2: #C4B5FD;
 --lx-g1: #67E8F9; --lx-g2: #5CC8FF; --lx-g3: #C4B5FD;
}
body.public .m-foot::before {
 content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
 background: linear-gradient(90deg, transparent, rgba(124,58,237,.75), rgba(34,211,238,.55), transparent);
}
.m-foot .lx-logo { color: #fff; }
.m-foot-brand p { color: rgba(255,255,255,.66); }
.m-foot-status { color: rgba(255,255,255,.62); }
.m-foot-col h4 { color: rgba(255,255,255,.60); }
.m-foot-col a { color: rgba(255,255,255,.68); }
.m-foot-col a:hover { color: #fff; }
.m-foot-bottom { border-top-color: rgba(255,255,255,.09); color: rgba(255,255,255,.54); }

/* video fallback */
@media (prefers-reduced-motion: reduce) {
  .m-hero-video { display: none; }
  .mp-packet { animation: none; display: none; }
  .m-hero-dark { background: linear-gradient(150deg, #0B0714 0%, #07080B 55%, #071016 100%); }
}



/* ============================================================
   FILM HERO + LIGHT VIBRANT SITE
   The video is a fixed underlay behind the hero. Content below is light,
   so the film never washes out the page or the text.
   ============================================================ */
body.home-dark { background: #FCFCFE; }

.m-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.m-bg-video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .60; filter: saturate(1.25) contrast(1.05); }
.m-bg-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 620px at 16% 4%, rgba(124,58,237,.38), transparent 66%),
    radial-gradient(700px 520px at 88% 12%, rgba(34,211,238,.20), transparent 70%),
    linear-gradient(180deg, rgba(5,6,12,.46) 0%, rgba(5,6,12,.70) 58%, rgba(5,6,12,.92) 100%);
}
.home-dark .m-hero-dark { background: transparent; }
.home-dark main > section { position: relative; z-index: 1; }
/* The film belongs to the hero. Below it the page is solid light, so the video
   cannot tint unrelated sections and every page shares one canvas colour. */
.home-dark .m-section { background: #FCFCFE; }
.home-dark .m-section.m-tint { background: linear-gradient(180deg, #FCFCFE 0%, #F8F6FF 100%); }
.home-dark .m-logos { background: #FFFFFF; }
.home-dark .m-pipeline-section { background: #FFFFFF; }

/* colour back in the light sections */
.m-bar-row:nth-child(2) i { background: #7C3AED; }
.m-bar-row:nth-child(3) i { background: #3B82F6; }
.m-bar-row:nth-child(4) i { background: #22D3EE; }
.m-plan.featured { background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 70%); }
.m-plan .btn-primary { background: var(--accent); }
.m-model-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #7C3AED, #22D3EE); opacity: 0;
  transition: opacity 180ms ease;
}
.m-model-card:hover::before { opacity: 1; }

@media (max-width: 620px) {
  .m-bg-video { opacity: .52; }
}
@media (prefers-reduced-motion: reduce) {
  .m-bg-video { display: none; }
  .m-bg { background: linear-gradient(150deg,#0B0714,#07080B 55%,#071016); }
}

/* ============================================================
   INNER PAGES: one masthead recipe for every page
   Every public page opens with the same dark cinematic card: the film frame,
   violet/cyan aurora, fine grid and a slow sheen. Home uses the full-bleed
   film; inner pages use the same material in a contained card, so the site
   reads as one product rather than a set of different templates.
   ============================================================ */
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor),
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head,
body.public:not(.home-dark) main > section.hero:first-of-type > .wrap,
.m-pagehead > .wrap,
.m-pagehead > .wrap-narrow {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; border: 1px solid rgba(255,255,255,.12);
  padding: 46px clamp(26px, 4vw, 52px);
  color: #fff;
  background:
    radial-gradient(820px 420px at 12% 0%, rgba(124,58,237,.58), transparent 66%),
    radial-gradient(620px 360px at 92% 6%, rgba(34,211,238,.32), transparent 70%),
    linear-gradient(115deg, rgba(9,10,18,.80), rgba(9,10,18,.56)),
    url("/static/img/hero-poster.jpg") center / cover no-repeat;
  box-shadow: 0 34px 90px -70px rgba(7,8,11,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor),
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head { margin-top: 34px; }
.m-pagehead > .wrap, .m-pagehead > .wrap-narrow { max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* fine engineering grid, faded out at the edges */
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor)::before,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head::before,
body.public:not(.home-dark) main > section.hero:first-of-type > .wrap::before,
.m-pagehead > .wrap::before,
.m-pagehead > .wrap-narrow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 20%, transparent 76%);
  mask-image: radial-gradient(circle at 30% 20%, #000 20%, transparent 76%);
}
/* a single slow light sweep so the card is alive, never a static slab */
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor)::after,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head::after,
body.public:not(.home-dark) main > section.hero:first-of-type > .wrap::after,
.m-pagehead > .wrap::after,
.m-pagehead > .wrap-narrow::after {
  content: ""; position: absolute; inset: -60%; pointer-events: none; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(255,255,255,.10) 76%, transparent 84%);
  animation: m-sheen 22s linear infinite;
}
@keyframes m-sheen { to { transform: rotate(360deg); } }
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor) > *:not(.m-mast-video):not(.m-mast-scrim),
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head > *:not(.m-mast-video):not(.m-mast-scrim),
body.public:not(.home-dark) main > section.hero:first-of-type > .wrap > *:not(.m-mast-video):not(.m-mast-scrim),
.m-pagehead > .wrap > *:not(.m-mast-video):not(.m-mast-scrim),
.m-pagehead > .wrap-narrow > *:not(.m-mast-video):not(.m-mast-scrim) { position: relative; z-index: 1; }

/* film inside the masthead card, not just a still frame */
.m-mast { position: relative; }
.m-mast > .m-mast-video {
  position: absolute !important; inset: 0 !important; z-index: 0 !important;
  width: 100%; height: 100%; object-fit: cover; opacity: .46;
  pointer-events: none;
}
.m-mast > .m-mast-scrim {
  position: absolute !important; inset: 0 !important; z-index: 0 !important;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(9,10,18,.72), rgba(9,10,18,.46));
}

/* the section itself is only a gutter now; the wrapper is the card */
body.public:not(.home-dark) main > section.hero:first-of-type,
.m-pagehead {
  background: none; border: 0; overflow: visible; margin-bottom: 6px;
  padding: 22px clamp(16px, 2.6vw, 56px) 8px;
}

body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor) h1,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head h1,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head h2,
body.public:not(.home-dark) main > section.hero:first-of-type > .wrap,
body.public:not(.home-dark) main > section.hero:first-of-type h1,
.m-pagehead h1 { color: #fff; }
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor) p,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head p,
body.public:not(.home-dark) main > section.hero:first-of-type .sub,
.m-pagehead p { color: rgba(255,255,255,.72); }
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head .m-kicker,
.m-pagehead .m-kicker { color: #C4B5FD; }
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head .m-kicker::before,
.m-pagehead .m-kicker::before { background: #A78BFA; box-shadow: 0 0 0 4px rgba(167,139,250,.14); }

body.public:not(.home-dark) main > section.hero:first-of-type .eyebrow,
.m-pagehead .eyebrow,
.m-pagehead .m-eyebrow {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
}
body.public:not(.home-dark) main > section.hero:first-of-type .pip,
.m-pagehead .eyebrow .pip,
.m-pagehead .m-eyebrow i { background: #22D3EE; box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.m-pagehead h1 { max-width: 24ch; }
.m-pagehead p { max-width: 64ch; margin-top: 12px; font-size: 16px; }
.m-pagehead .card, .m-pagehead .alert { color: var(--ink-700); }
.m-pagehead .card h1, .m-pagehead .card h2, .m-pagehead .card h3 { color: var(--ink-900); }

/* the masthead card's heading scale matches the home hero */
body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor) h1,
body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head h1,
body.public:not(.home-dark) main > section.hero:first-of-type h1,
.m-pagehead h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -0.022em; }

@media (prefers-reduced-motion: reduce) {
  body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor)::after,
  body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head::after,
  body.public:not(.home-dark) main > section.hero:first-of-type > .wrap::after,
  .m-pagehead > .wrap::after,
  .m-pagehead > .wrap-narrow::after { animation: none; display: none; }
}

@media (max-width: 760px) {
  body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor),
  body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head,
  body.public:not(.home-dark) main > section.hero:first-of-type > .wrap,
  .m-pagehead > .wrap,
  .m-pagehead > .wrap-narrow { padding: 30px 24px; border-radius: 22px; }
  .m-pagehead h1 { font-size: 34px; }
}


/* A pagehead should never nest a second masthead card. Status used to, which
   put a dark card inside a dark card and dark links on a dark panel. */
.m-pagehead .sec-head {
  background: none; border: 0; box-shadow: none; padding: 0; margin: 0;
}
.m-pagehead .sec-head::before, .m-pagehead .sec-head::after { display: none; }
.m-pagehead > .wrap > p a, .m-pagehead > .wrap-narrow > p a { color: #C4B5FD; }
.m-pagehead > .wrap > p a:hover, .m-pagehead > .wrap-narrow > p a:hover { color: #fff; }

/* shared cards: colour, not grey slabs */
body.public .card {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--border); background: #fff;
  transition: border-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}
body.public .card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #7C3AED, #22D3EE);
  opacity: 0; transition: opacity 180ms ease; pointer-events: none;
}
body.public .card:hover { border-color: rgba(124,58,237,.28); transform: translateY(-2px); box-shadow: 0 24px 60px -50px rgba(124,58,237,.45); }
body.public .card:hover::before { opacity: 1; }

body.public .brand-chip {
  background: #F5F3FF; border-color: #DDD6FE; color: #5B21B6; border-radius: 999px;
}
body.public .mtag { background: #ECFEFF; color: #0E7490; border-color: #A5F3FC; }
body.public .mrow:hover { background: #F8F7FF; }
body.public .faq summary { transition: color 150ms ease; }
body.public .faq summary:hover { color: var(--accent-ink); }
/* Selected tab: ink fill, white label. The earlier rule only recoloured the
   text accent, which put dark violet on the dark fill and hid the label. */
body.public .tab[aria-selected="true"] {
 background: var(--ink-900); color: #fff; border-color: var(--ink-900);
}
body.public .tab[aria-selected="true"]:hover { background: var(--ink-900); color: #fff; }

@media (max-width: 760px) {
  body.public:not(.home-dark) main > section:first-of-type .sec-head:not(.minor),
  body.public:not(.home-dark) main > section:first-of-type > .m-wrap > .m-head { padding: 30px 24px; }
}

/* ============================================================
   HERO 2.0 - homepage only
   Scoped to .h2-* so the rest of the public site is untouched.
   ============================================================ */
.h2-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: 128px 0 76px; background: #05070D; color: #fff;
}
.h2-art, .h2-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.h2-art { z-index: 0; pointer-events: none; }
.h2-art img { object-fit: cover; object-position: 62% 50%; opacity: .92; }
.h2-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 520px at 78% 18%, rgba(34,211,238,.18), transparent 70%),
    radial-gradient(760px 520px at 16% 24%, rgba(124,58,237,.34), transparent 70%),
    linear-gradient(94deg, rgba(5,7,13,.93) 0%, rgba(5,7,13,.82) 36%, rgba(5,7,13,.38) 64%, rgba(5,7,13,.50) 100%),
    linear-gradient(180deg, rgba(5,7,13,.30), rgba(5,7,13,.82));
}
.h2-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 28% 32%, #000 16%, transparent 72%);
  mask-image: radial-gradient(circle at 28% 32%, #000 16%, transparent 72%);
}
.h2-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.03fr .97fr;
  grid-template-areas: "copy visual" "stats visual";
  gap: 26px clamp(34px, 4.6vw, 72px); align-items: center;
}
.h2-copy { grid-area: copy; min-width: 0; }
.h2-visual { grid-area: visual; min-width: 0; display: flex; justify-content: flex-end; }
.h2-stats { grid-area: stats; margin-top: 8px; }

.h2-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.h2-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: #22D3EE;
  box-shadow: 0 0 0 4px rgba(34,211,238,.16), 0 0 18px #22D3EE;
}
.h2-eyebrow span { opacity: .42; }

body.public .h2-title {
  margin: 22px 0 20px; color: #fff;
  font-size: clamp(44px, 5.5vw, 78px); line-height: 1.04;
  letter-spacing: -0.022em; font-weight: 600;
}
/* No overflow:hidden on the line: a display face this large paints its
   descenders outside the line box, and clipping them was the reason the old
   hero needed loose spacing. A clip-path wipe on the span gives the same
   reveal while keeping the headline tight and the descenders intact. */
.h2-line { display: block; }
.h2-line > span {
  display: inline-block;
  animation: h2-reveal .8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes h2-reveal {
  0% { transform: translateY(105%); clip-path: inset(0 0 100% 0); }
  100% { transform: translateY(0); clip-path: inset(0 0 -20% 0); }
}
.h2-grad {
  background: linear-gradient(92deg, #C4B5FD 0%, #A78BFA 42%, #67E8F9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) {
  .h2-grad { color: #C4B5FD; -webkit-text-fill-color: currentColor; background: none; }
}
@media (forced-colors: active) {
  .h2-grad { color: #fff; -webkit-text-fill-color: currentColor; background: none; }
}
.h2-hero :focus-visible { outline-color: #C4B5FD; outline-offset: 3px; }
.h2-sub {
  max-width: 56ch; margin: 0 0 28px;
  color: rgba(255,255,255,.80); font-size: 17.5px; line-height: 1.65;
}
.h2-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.h2-actions .btn { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 15px; }
.h2-btn-ghost {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.24); color: #fff;
}
.h2-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); color: #fff; }

.h2-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; max-width: 560px;
}
.h2-stat { padding-right: 18px; border-right: 1px solid rgba(255,255,255,.12); min-width: 0; }
.h2-stat:last-child { border-right: 0; padding-right: 0; }
.h2-stat strong {
  display: block; color: #fff; font-size: 26px; font-weight: 600;
  letter-spacing: -0.022em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.h2-stat span {
  display: block; margin-top: 5px; color: rgba(255,255,255,.58);
  font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------ floating product console */
.h2-console {
  position: relative; width: 100%; max-width: 560px; padding: 16px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(13,16,28,.78), rgba(7,9,16,.90));
  box-shadow: 0 50px 120px -55px rgba(0,0,0,.95), 0 0 80px -38px rgba(124,58,237,.6),
              inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  z-index: 1;
}
.h2-console::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.75), rgba(103,232,249,.55), transparent);
  background-size: 200% 100%;
  animation: h2-sheen 11s linear infinite;
}
@keyframes h2-sheen { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
/* Ambient light behind the console, not on it: the panel stays still so every
   control inside is a stable click target. */
.h2-visual { position: relative; }
.h2-visual::before {
  content: ""; position: absolute; right: 4%; top: 12%; width: 68%; height: 62%;
  background: radial-gradient(circle, rgba(124,58,237,.34), rgba(34,211,238,.10) 45%, transparent 70%);
  filter: blur(42px); pointer-events: none; z-index: 0;
  animation: h2-pulse 12s ease-in-out infinite;
}
@keyframes h2-pulse { 0%,100% { opacity: .55; transform: scale(.96) } 50% { opacity: .9; transform: scale(1.05) } }
.h2-console-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.h2-live {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11.5px var(--font-mono); color: rgba(255,255,255,.74);
}
.h2-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.12), 0 0 14px rgba(52,211,153,.8);
}
.h2-demo {
  margin-left: auto; font: 600 10.5px var(--font-sans); color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px 8px;
}
.h2-wallet {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 16px;
  background:
    radial-gradient(340px 120px at 0% 0%, rgba(124,58,237,.22), transparent 70%),
    rgba(255,255,255,.035);
}
.h2-wallet-main { min-width: 0; }
.h2-wallet small {
  display: block; font: 600 10px var(--font-sans); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.50);
}
.h2-wallet strong {
  display: block; margin: 5px 0 3px; color: #fff;
  font-size: 29px; font-weight: 600; letter-spacing: -.045em; line-height: 1.05;
}
.h2-wallet strong em {
  font-style: normal; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55); letter-spacing: 0;
}
.h2-wallet-main span { font-size: 11.5px; color: rgba(255,255,255,.55); }
.h2-wallet-badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 10.5px var(--font-sans); color: #6EE7B7;
  background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.24);
  border-radius: 999px; padding: 4px 8px;
}
.h2-wallet-badge i { width: 5px; height: 5px; border-radius: 50%; background: #34D399; }

.h2-key {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; background: rgba(255,255,255,.03);
}
.h2-key-ico { color: #A78BFA; display: inline-flex; }
.h2-key-ico svg { width: 16px; height: 16px; }
.h2-key code { font: 600 11.5px var(--font-mono); color: rgba(255,255,255,.82); letter-spacing: .02em; }
.h2-chip {
  margin-left: auto; white-space: nowrap;
  font: 600 10px var(--font-sans); color: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.10); border-radius: 999px; padding: 3px 8px;
}

.h2-models {
  margin-top: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; background: rgba(255,255,255,.025);
}
.h2-models-head {
  display: flex; justify-content: space-between; padding: 2px 4px 8px;
  font: 600 10px var(--font-sans); letter-spacing: .10em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.h2-provider {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.h2-provider-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  font: 700 11px var(--font-sans);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.h2-provider div { min-width: 0; }
.h2-provider.is-on {
  background: rgba(124,58,237,.14); border-radius: 10px; border-top-color: transparent;
}
.h2-on {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; font: 600 9.5px var(--font-sans); color: #C4B5FD;
}
.h2-on i { width: 5px; height: 5px; border-radius: 50%; background: #A78BFA; box-shadow: 0 0 8px rgba(167,139,250,.8); }
.h2-provider b { display: block; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.h2-provider small { display: block; margin-top: 1px; font-size: 10px; color: rgba(255,255,255,.45); }
.h2-ok {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; font: 600 9.5px var(--font-sans); color: rgba(110,231,183,.9);
}
.h2-ok i { width: 5px; height: 5px; border-radius: 50%; background: #34D399; }

.h2-code {
  margin-top: 10px; overflow: hidden; background: #080A12;
  border: 1px solid rgba(255,255,255,.10); border-radius: 14px;
}
.h2-code-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.h2-dots { display: flex; gap: 4px; }
.h2-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3F3F46; display: block; }
.h2-tabs { display: flex; gap: 2px; }
.h2-tabs button {
  border: 0; background: transparent; color: rgba(255,255,255,.48);
  font: 600 10.5px var(--font-sans); padding: 3px 7px; border-radius: 6px; cursor: pointer;
}
.h2-tabs button[aria-selected="true"] { background: rgba(255,255,255,.09); color: #fff; }
.h2-code-copy {
  margin-left: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.70);
  font: 600 10px var(--font-sans); padding: 3px 7px; cursor: pointer;
}
.h2-code-copy:hover { background: rgba(255,255,255,.10); color: #fff; }
.h2-code-body { max-height: 238px; overflow: auto; }
.h2-code pre {
  margin: 0; padding: 12px 12px 14px; font: 10.5px/1.65 var(--font-mono);
  color: #CBD5E1; white-space: pre; overflow-x: auto;
}
.h2-code .k { color: #BFDBFE; }
.h2-code .s { color: #BBF7D0; }
.h2-code .c { color: #9CA3AF; }
.h2-code-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-top: 1px solid rgba(255,255,255,.07);
  font: 500 9.5px var(--font-mono); color: rgba(255,255,255,.45);
}

@media (max-width: 1100px) {
  .h2-title { font-size: clamp(40px, 5vw, 62px); }
  .h2-console { max-width: 520px; }
}
@media (max-width: 940px) {
  .h2-hero { min-height: 0; padding: 112px 0 64px; }
  .h2-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "stats"; gap: 32px; }
  .h2-copy { max-width: 720px; }
  .h2-visual { justify-content: flex-start; }
  .h2-console { margin: 0 auto; max-width: 560px; }
  .h2-stats { max-width: none; }
}
@media (max-width: 620px) {
  .h2-hero { padding: 96px 0 52px; }
  .h2-title { font-size: clamp(36px, 10.8vw, 48px); }
  .h2-sub { font-size: 15.5px; }
  .h2-actions .btn { flex: 1 1 100%; }
  .h2-console { padding: 12px; border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .h2-visual::before { filter: blur(30px); }
  .h2-wallet strong { font-size: 26px; }
  .h2-code-foot { flex-wrap: wrap; }
  .h2-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .h2-stat { border-right: 0; padding-right: 0; }
  .h2-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .h2-console::before, .h2-visual::before { animation: none; }
  .h2-line > span { animation: none !important; transform: none !important; clip-path: none !important; }
}

/* Short desktop/laptop screens: keep the product console and the statistics
   above the fold instead of forcing a tall first screen. */
@media (min-width: 941px) and (max-height: 840px) {
  .h2-hero { padding: 108px 0 48px; }
  .h2-console { max-width: 520px; padding: 14px; }
  .h2-code-body { max-height: 186px; }
  .h2-title { font-size: clamp(38px, 4.6vw, 62px); }
}

/* ============================================================
   MODEL MARKETPLACE 2.0 - /models only
   Dark, catalogue-driven, scoped to .models-dark / .mk-*
   ============================================================ */
body.models-dark { background: #05070D; color: #fff; }
body.models-dark :where(h1, h2, h3, h4) { color: #fff; }

/* header over the dark marketplace */
body.models-dark .site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.models-dark .site-header.scrolled {
  background: rgba(7, 8, 11, .95); border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
}
body.models-dark .site-header .nav-links a { color: rgba(255, 255, 255, .72); }
body.models-dark .site-header .nav-links a:hover,
body.models-dark .site-header .nav-links a[aria-current="page"] { color: #fff; }
body.models-dark .site-header .lx-logo {
  color: #fff;
  --lx-w1: #67E8F9; --lx-w2: #C4B5FD;
  --lx-g1: #67E8F9; --lx-g2: #5CC8FF; --lx-g3: #C4B5FD;
}
body.models-dark .site-header .ccy-btn,
body.models-dark .site-header .cart-btn,
body.models-dark .site-header .nav-burger {
  color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
}
body.models-dark .site-header .ccy-btn:hover,
body.models-dark .site-header .cart-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.models-dark .site-header .nav-burger span { background: currentColor; }
body.models-dark .site-header .btn-quiet { color: #fff; }
body.models-dark .site-header .btn-quiet:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.models-dark .site-header .btn-primary { background: var(--accent); color: #fff; }
body.models-dark .mobile-menu {
  background: #0B0D14; border-top-color: rgba(255, 255, 255, .1);
}
body.models-dark .mobile-menu a { color: #fff; }
body.models-dark .mobile-menu .ccy-mobile { border-top-color: rgba(255, 255, 255, .1); }
body.models-dark .mobile-menu .ccy-mobile .lbl { color: rgba(255, 255, 255, .5); }
body.models-dark .mobile-menu .ccy-row button { color: #fff; border-color: rgba(255, 255, 255, .22); }
body.models-dark .mobile-menu .ccy-row button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* shared bits */
.mk-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #C4B5FD;
}
.mk-kicker i {
  width: 6px; height: 6px; border-radius: 50%; background: #22D3EE;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 14px rgba(34, 211, 238, .7);
}
.mk-kicker span { opacity: .45; }
.mk-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .48); }
.mk-hint code { font-family: var(--font-mono); color: rgba(255, 255, 255, .72); }

/* ------------------------------ hero */
.mk-hero {
  position: relative; overflow: hidden; padding: 150px 0 44px;
  background:
    radial-gradient(760px 420px at 18% 0%, rgba(124, 58, 237, .34), transparent 68%),
    radial-gradient(620px 360px at 92% 8%, rgba(34, 211, 238, .16), transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 13, .62), #05070D 92%),
    url("/static/img/hero-2-art-1920.webp") center 38% / cover no-repeat;
}
.mk-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 24% 30%, #000 12%, transparent 70%);
  mask-image: radial-gradient(circle at 24% 30%, #000 12%, transparent 70%);
}
.mk-hero-glow {
  position: absolute; right: 4%; top: 10%; width: 420px; height: 320px;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 68%);
  filter: blur(40px); pointer-events: none;
}
.mk-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.mk-title {
  margin: 16px 0 14px;
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06;
  letter-spacing: -0.022em; font-weight: 600;
}
.mk-title em {
  font-style: normal;
  background: linear-gradient(92deg, #C4B5FD 0%, #A78BFA 45%, #67E8F9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) {
  .mk-title em { color: #C4B5FD; -webkit-text-fill-color: currentColor; background: none; }
}
.mk-sub { max-width: 62ch; margin: 0 0 24px; color: rgba(255, 255, 255, .76); font-size: 16.5px; line-height: 1.65; }
.mk-hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px;
}
.mk-hero-stats div { padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .12); }
.mk-hero-stats div:last-child { border-right: 0; padding-right: 0; }
.mk-hero-stats strong {
  display: block; font-size: 28px; font-weight: 600; color: #fff;
  letter-spacing: -0.022em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.mk-hero-stats span {
  display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .52);
}
.mk-hero-search { align-self: end; }
.mk-search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 56px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 12, 22, .78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mk-search svg { color: rgba(255, 255, 255, .48); flex: 0 0 auto; }
.mk-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0;
  background: transparent; color: #fff; font: 500 15px var(--font-sans);
}
.mk-search input::placeholder { color: rgba(255, 255, 255, .42); }
.mk-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.7); }
.mk-search kbd {
  flex: 0 0 auto; font: 600 10px var(--font-mono); color: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; padding: 2px 6px;
  background: rgba(255, 255, 255, .04);
}
.mk-hero-search p { margin: 10px 2px 0; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.mk-hero-search p button {
  border: 0; background: none; padding: 0; color: #C4B5FD;
  font: 600 12.5px var(--font-sans); cursor: pointer;
}
.mk-hero-search p button:hover { color: #fff; }

/* ------------------------------ category cards */
.mk-cats { padding: 8px 0 26px; }
.mk-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mk-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-width: 0; padding: 15px 15px 13px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  background: rgba(255, 255, 255, .035); color: #fff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--ease-out);
}
.mk-cat:hover { border-color: rgba(124, 58, 237, .45); background: rgba(124, 58, 237, .09); transform: translateY(-2px); }
.mk-cat.on { border-color: rgba(167, 139, 250, .7); background: rgba(124, 58, 237, .16); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .18); }
.mk-cat-ico { display: inline-flex; color: #C4B5FD; }
.mk-cat-ico svg { width: 19px; height: 19px; }
.mk-cat-label { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .84); }
.mk-cat.on .mk-cat-label { color: #fff; }
.mk-cat-count { font: 600 10.5px var(--font-mono); color: rgba(255, 255, 255, .45); }
.mk-cat.on .mk-cat-count { color: #C4B5FD; }

/* ------------------------------ shell / sidebar */
.mk-main { padding: 8px 0 64px; }
.mk-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 24px; align-items: start; }
.mk-filters {
  position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto;
  padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 16, 28, .9), rgba(8, 10, 18, .96));
  box-shadow: 0 30px 80px -60px rgba(0, 0, 0, .95);
}
.mk-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-filters-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.mk-filter-close {
  display: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  color: #fff; font-size: 20px; line-height: 1;
}
.mk-filter-group { padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mk-filters-head + .mk-filter-group { margin-top: 12px; }
.mk-filter-group h3 {
  margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .46);
}
.mk-filter-group h3 span { float: right; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .32); }
.mk-scroll { max-height: 212px; overflow: auto; padding-right: 4px; }
.mk-check {
  display: flex; align-items: center; gap: 9px; padding: 5px 2px;
  font-size: 12.5px; color: rgba(255, 255, 255, .72); cursor: pointer;
}
.mk-check:hover { color: #fff; }
.mk-check input {
  width: 15px; height: 15px; flex: 0 0 auto; accent-color: #7C3AED; cursor: pointer;
}
.mk-check span { min-width: 0; }
.mk-check b { margin-left: auto; font: 600 10.5px var(--font-mono); color: rgba(255, 255, 255, .4); }
.mk-price-filter {
  display: grid; grid-template-columns: 44px 1fr 1fr; align-items: center; gap: 6px;
  margin-top: 8px;
}
.mk-price-filter > span { font-size: 11.5px; color: rgba(255, 255, 255, .48); }
.mk-price-filter label {
  display: flex; align-items: center; gap: 3px; min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px;
  background: rgba(255, 255, 255, .03); padding: 5px 6px;
}
.mk-price-filter .mk-cur { font-size: 10.5px; color: rgba(255, 255, 255, .4); }
.mk-price-filter input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #fff; font: 500 11.5px var(--font-mono);
}
.mk-price-filter input::placeholder { color: rgba(255, 255, 255, .3); }
.mk-btn-clear { width: 100%; margin-top: 14px; background: rgba(255, 255, 255, .05); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.mk-btn-clear:hover { background: rgba(255, 255, 255, .1); }

/* ------------------------------ results toolbar */
.mk-results { min-width: 0; }
.mk-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mk-result-count { font-size: 13px; color: rgba(255, 255, 255, .52); }
.mk-result-count strong { color: #fff; font-size: 15px; }
.mk-result-count span { color: rgba(255, 255, 255, .52); }
.mk-updating {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 6px;
  font-size: 11px; color: #C4B5FD;
}
.mk-updating[hidden] { display: none; }
.mk-updating i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(196, 181, 253, .3); border-top-color: #C4B5FD;
  animation: mk-spin .7s linear infinite;
}
@keyframes mk-spin { to { transform: rotate(360deg); } }
.mk-filter-toggle {
  display: none; align-items: center; gap: 7px; margin-left: auto;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  color: #fff; font: 600 12.5px var(--font-sans);
}
.mk-active-count {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #7C3AED; color: #fff; font: 700 9.5px/17px var(--font-sans); text-align: center;
}
.mk-active-count[hidden] { display: none; }
.mk-sort { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.mk-sort select {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: #0B0D14; color: #fff; font: 500 12px var(--font-sans);
  padding: 7px 9px; cursor: pointer; outline: 0;
}
.mk-sort select:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 2px; }
.mk-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mk-active-filters[hidden] { display: none; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, .28); background: rgba(124, 58, 237, .12);
  color: #DDD6FE; font-size: 10.5px; font-weight: 600;
}
.mk-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.mk-noscript { margin: 0 0 14px; font-size: 12.5px; color: #FCA5A5; }
.mk-error {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, .3); border-radius: 10px;
  background: rgba(127, 29, 29, .18); color: #FECACA; font-size: 12.5px;
}
.mk-error[hidden] { display: none; }
.mk-error strong { color: #FEE2E2; }

/* ------------------------------ cards */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.mk-card {
  display: flex; flex-direction: column; min-width: 0; padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 18, 30, .82), rgba(9, 11, 19, .92));
  transition: border-color 170ms ease, transform 170ms var(--ease-out), box-shadow 170ms ease;
}
.mk-card:hover { border-color: rgba(124, 58, 237, .45); transform: translateY(-2px); box-shadow: 0 20px 46px -40px rgba(124, 58, 237, .75); }
.mk-card[hidden] { display: none !important; }
.mk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mk-maker { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.mk-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: #6EE7B7; }
.mk-status i { width: 5px; height: 5px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, .7); }
.mk-model-name {
  margin: 0 0 8px; font-size: 17px; line-height: 1.25; letter-spacing: -0.014em;
  color: #fff; font-weight: 600;
}
.mk-id-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-id-row code {
  min-width: 0; overflow-wrap: anywhere; font: 500 10.5px var(--font-mono);
  color: rgba(255, 255, 255, .48);
}
.mk-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
}
.mk-icon-btn:hover { color: #fff; border-color: rgba(167, 139, 250, .5); background: rgba(124, 58, 237, .14); }
.mk-prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 14px 0 12px; padding: 12px; border-radius: 11px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07);
}
.mk-prices.single { grid-template-columns: 1fr; }
.mk-prices small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.mk-prices strong { display: block; margin-top: 3px; font-size: 18px; font-weight: 600; letter-spacing: -0.022em; color: #fff; font-variant-numeric: tabular-nums; }
.mk-prices span { display: block; margin-top: 2px; font-size: 9.5px; color: rgba(255, 255, 255, .42); }
.mk-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.mk-tags span {
  padding: 3px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600;
  color: #C4B5FD; background: rgba(124, 58, 237, .12); border: 1px solid rgba(167, 139, 250, .2);
}
.mk-card-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.mk-compare { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .58); cursor: pointer; }
.mk-compare input { width: 14px; height: 14px; accent-color: #7C3AED; cursor: pointer; }
.mk-details {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px;
  background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer;
  font: 600 11px var(--font-sans); padding: 6px 9px;
}
.mk-details:hover { background: rgba(124, 58, 237, .18); border-color: rgba(167, 139, 250, .45); }

/* empty state */
.mk-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 54px 24px; border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 16px; background: rgba(255, 255, 255, .02);
}
.mk-empty[hidden] { display: none; }
.mk-empty-ico { display: inline-flex; color: #A78BFA; margin-bottom: 10px; }
.mk-empty h2 { margin: 0 0 6px; font-size: 20px; }
.mk-empty p { margin: 0 0 16px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ------------------------------ compare bar */
.mk-comparebar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 12px;
  width: min(920px, calc(100vw - 32px)); padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px;
  background: rgba(9, 11, 19, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .95);
}
.mk-comparebar[hidden] { display: none; }
.mk-compare-chips { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: auto; }
.mk-compare-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .78); font-size: 10.5px;
}
.mk-compare-chip button { border: 0; background: none; color: rgba(255, 255, 255, .5); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.mk-compare-chip button:hover { color: #fff; }
.mk-compare-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.mk-compare-clear { border: 0; background: none; color: rgba(255, 255, 255, .5); font: 600 11.5px var(--font-sans); cursor: pointer; }
.mk-compare-clear:hover { color: #fff; }
.mk-comparebar .btn { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.mk-comparebar .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------ dialogs */
.mk-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: 86vh; padding: 0;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  background: #0B0D14; color: #fff; overflow: auto;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95);
}
.mk-dialog::backdrop { background: rgba(2, 3, 8, .74); backdrop-filter: blur(6px); }
.mk-dialog-wide { width: min(980px, calc(100vw - 32px)); }
.mk-dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(11, 13, 20, .96); backdrop-filter: blur(12px);
}
.mk-dialog-head h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.03em; }
.mk-dialog-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C4B5FD; }
.mk-dialog-close {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  color: #fff; font-size: 21px; line-height: 1;
}
.mk-dialog-close:hover { background: rgba(255, 255, 255, .1); }
.mk-detail-body { padding: 20px; }
.mk-detail-id {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.mk-detail-id code { font: 500 12px var(--font-mono); color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.mk-detail-desc { margin: 0 0 18px; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.65; }
.mk-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.mk-detail-grid div { padding: 12px 14px; background: #0B0D14; }
.mk-detail-grid small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.mk-detail-grid strong { display: block; margin-top: 4px; font-size: 13px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.mk-detail-grid strong.mono { font-family: var(--font-mono); font-size: 12px; }
.mk-detail-section { margin-top: 18px; }
.mk-detail-section h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .48); }
.mk-detail-section pre {
  margin: 0; padding: 14px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08);
  background: #070910; color: #CBD5E1; font: 10.5px/1.7 var(--font-mono);
  overflow: auto; max-height: 240px; white-space: pre;
}
.mk-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mk-detail-actions .btn { min-height: 38px; font-size: 12px; }

/* compare table */
.mk-compare-wrap { padding: 18px 20px 22px; }
.mk-compare-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-compare-table th, .mk-compare-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08);
  vertical-align: top; min-width: 170px;
}
.mk-compare-table th:first-child, .mk-compare-table td:first-child {
  position: sticky; left: 0; z-index: 1; min-width: 130px;
  background: #0B0D14; color: rgba(255, 255, 255, .45);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.mk-compare-table thead th { color: #fff; font-size: 13px; border-bottom-color: rgba(255, 255, 255, .14); }
.mk-compare-table thead th small { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.mk-compare-table td code { font: 10.5px var(--font-mono); color: rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.mk-compare-table .mk-np { color: rgba(255, 255, 255, .32); }

/* ------------------------------ developer card */
.mk-dev { border-top: 1px solid rgba(255, 255, 255, .08); padding: 58px 0 78px; background: #05070D; }
.mk-dev-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: center; }
.mk-dev-copy h2 { margin: 12px 0 10px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.04em; }
.mk-dev-copy p { margin: 0 0 16px; max-width: 52ch; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.65; }
.mk-endpoint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px;
  background: rgba(255, 255, 255, .035);
}
.mk-endpoint code { min-width: 0; font: 600 12px var(--font-mono); color: #DDD6FE; overflow-wrap: anywhere; }
.mk-dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mk-dev-code {
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  background: #080A12; box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .9);
}
.mk-code-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 500 10.5px var(--font-mono); color: rgba(255, 255, 255, .42);
}
.mk-dots { display: flex; gap: 4px; }
.mk-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3F3F46; display: block; }
.mk-code-copy {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px;
  background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .68);
  font: 600 10px var(--font-sans); padding: 3px 7px; cursor: pointer;
}
.mk-code-copy:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.mk-dev-code pre {
  margin: 0; padding: 14px 16px; max-height: 360px; overflow: auto;
  color: #CBD5E1; font: 10.5px/1.7 var(--font-mono); white-space: pre;
}

/* toast */
.mk-toast {
  position: fixed; left: 50%; bottom: 86px; transform: translate(-50%, 8px);
  z-index: 80; max-width: calc(100vw - 32px); padding: 9px 14px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(15, 18, 30, .97); color: #fff; font-size: 12px;
  opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease;
}
.mk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* hidden helper */
.mk-card[hidden], .mk-empty[hidden], .mk-error[hidden], .mk-comparebar[hidden] { display: none !important; }

/* ------------------------------ responsive */
@media (max-width: 1180px) {
  .mk-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .mk-shell { grid-template-columns: 1fr; }
  .mk-filters {
    display: none; position: fixed; inset: 64px 0 0; z-index: 55;
    max-height: none; border-radius: 0; border-left: 0; border-right: 0;
    padding: 20px; background: #07080F; overflow: auto;
  }
  .mk-filters.open { display: block; }
  .mk-filter-close { display: grid; place-items: center; }
  .mk-filter-toggle { display: inline-flex; }
  .mk-sort { margin-left: 0; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mk-hero { padding-top: 118px; }
  .mk-hero-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .mk-hero-stats { max-width: none; }
  .mk-dev-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .mk-title { font-size: clamp(34px, 9.4vw, 44px); }
  .mk-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-grid { grid-template-columns: 1fr; }
  .mk-detail-grid { grid-template-columns: 1fr; }
  .mk-toolbar { gap: 10px; }
  .mk-sort { width: 100%; }
  .mk-sort select { flex: 1; }
  .mk-comparebar { bottom: 10px; flex-wrap: wrap; padding: 9px; }
  .mk-compare-chips { width: 100%; }
  .mk-compare-actions { width: 100%; justify-content: flex-end; }
  .mk-dialog { width: calc(100vw - 20px); max-height: 90vh; }
  .mk-dev-code pre { max-height: 300px; }
  .mk-hero-stats strong { font-size: 24px; }
}
@media (max-width: 420px) {
  .mk-hero-stats { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .mk-hero-stats div:nth-child(2) { border-right: 0; }
  .mk-hero-stats div:nth-child(3) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-cat, .mk-card, .mk-toast { transition: none; }
  .mk-updating i { animation: none; }
}
body.mk-lock { overflow: hidden; }
.mk-compare-wrap { overflow-x: auto; }

/* ============================================================
   Site chrome: brand scrollbars + no decorative status dots
   ============================================================ */
/* A violet thumb on a transparent track adapts to both the light editorial
   pages and the dark marketplace/hero without inventing a white strip. */
* { scrollbar-width: thin; scrollbar-color: #6D28D9 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #6D28D9; border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #7C3AED; }
*::-webkit-scrollbar-corner { background: transparent; }

/* The small coloured dots before labels read as status LEDs and were
   inconsistent across pages. Remove the dots everywhere; keep the words. */
.m-kicker::before,
.m-eyebrow i,
.h2-eyebrow i,
.mk-kicker i,
.eyebrow .pip,
.m-foot-status i,
.mk-status i,
.h2-ok i,
.h2-on i,
.h2-live i,
.h2-wallet-badge i,
.mp-core .mp-keymark i,
.m-key-dot,
.luxechain-bot-live,
.mascot-status,
.status-dot::before,
.live-dot { display: none !important; }
body.models-dark :focus-visible { outline-color: #C4B5FD; }
.mk-search:focus-within {
  border-color: rgba(196, 181, 253, .65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18), 0 20px 50px -30px rgba(0, 0, 0, .9);
}
body.mk-has-compare .mk-dev { padding-bottom: 132px; }

/* The chat panel is a light island on every page. Define the two tokens the
   widget expects but the public theme never set, so bot text cannot inherit
   the dark page's white text and disappear into the white panel. */
body.public .luxechain-bot-panel {
  --ink-800: #1F2937;
  --bg: #FAFAFA;
  color: var(--ink-700);
}

/* The catalogue is a bounded scroll window. Without this, 83 cards push the
   developer section and footer several screens down. */
.mk-scroll-window {
  max-height: min(76vh, 920px);
  overflow-y: auto; overflow-x: hidden;
  padding: 6px 8px 14px 6px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px;
  background: rgba(255, 255, 255, .012);
  scrollbar-gutter: stable;
  outline: none;
}
.mk-scroll-window:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.mk-scroll-window[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .mk-scroll-window { max-height: 72svh; }
}
@media (max-width: 700px) {
  .mk-scroll-window { max-height: 68svh; padding: 4px 4px 10px; }
}

/* ============================================================
   Site naming: LuxeChain AI · An API Marketplace
   ============================================================ */
.brand-tag {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--border-strong);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-400); white-space: nowrap;
}
.brand-tag-sep, .brandline-sep { opacity: .5; font-weight: 400; }
body.models-dark .brand-tag,
body.home-dark .site-header:not(.scrolled) .brand-tag {
  color: rgba(255, 255, 255, .52); border-left-color: rgba(255, 255, 255, .18);
}
body.home-dark .site-header.scrolled .brand-tag {
  color: var(--ink-400); border-left-color: var(--border-strong);
}
@media (max-width: 1280px) { .brand-tag { display: none; } }

.brandline {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent-ink); line-height: 1.4;
}
body.models-dark .brandline,
body.home-dark .brandline,
.m-pagehead .brandline,
.hero .brandline,
.sec-head .brandline,
.m-head .brandline { color: #C4B5FD; }

.m-foot-name {
  margin: 14px 0 6px !important; font-size: 13.5px !important;
  font-weight: 700; color: #fff !important; letter-spacing: -.01em;
}
.m-foot-brand p.m-foot-name + p { margin-top: 0; }
.brand-lockup { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.brandline { margin: 0 0 6px; }
.h2-eyebrow .brandline { margin-bottom: 0; }
@media (max-width: 620px) {
  .site-header .nav .lx-logo { font-size: 20px !important; gap: 10px !important; }
  .site-header .nav .lx-logo-mark { width: 23px !important; height: 23px !important; }
  .site-header .nav-actions .btn-primary { display: none; }
}

/* Tablet header: the logo now includes "AI", which made the six desktop links
   plus all actions too tight between 900 and 1024. Move the links into the
   same drawer the phone uses a little earlier. */
@media (max-width: 1024px) {
  body.public .nav-links { display: none; }
  body.public .nav { gap: 10px; }
  body.public .nav-actions { gap: 8px; }
  body.public .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0 9px; background: transparent;
    border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer;
  }
  body.public .nav-burger span {
    display: block; height: 2px; width: 100%; background: var(--ink-700);
    border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out),
      opacity var(--dur-fast) var(--ease-out);
  }
  body.public .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.public .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  body.public .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body.public .mobile-menu {
    display: block; border-top: 1px solid var(--border);
    background: var(--card); padding: 8px 0 14px;
  }
  body.public .mobile-menu[hidden] { display: none; }
  body.public .mobile-menu a {
    display: block; padding: 13px 0; font-size: 16px; color: var(--ink-700);
    border-bottom: 1px solid var(--border); text-decoration: none;
  }
  body.public .mobile-menu a:last-child { border-bottom: 0; }
  body.public .mobile-menu a.mm-cta { color: var(--accent-ink); font-weight: 600; }
}
body.models-dark .mobile-menu a { color: #fff; }
body.models-dark .mobile-menu a.mm-cta { color: #C4B5FD; }
body.models-dark .mobile-menu { border-top-color: rgba(255, 255, 255, .1); }
body.models-dark .site-header .mobile-menu {
  background: #0B0D14; border-top-color: rgba(255, 255, 255, .1);
}
