/* =========================================================================
 * XCORE — public website + auth design system.
 * Self-contained (self-hosted Inter, no external deps). Light + dark.
 * Linked by every page under platform_control/www that is public-facing:
 *   <link rel="stylesheet" href="/assets/platform_control/css/xcore.css">
 * ========================================================================= */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/platform_control/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/platform_control/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* brand */
  --violet: #7c3aed; --violet-600: #6d28d9; --violet-700: #5b21b6;
  --indigo: #4f46e5; --cyan: #06b6d4; --sky: #38bdf8; --pink: #ec4899; --amber: #f59e0b; --emerald: #10b981;
  --brand: var(--violet); --brand-strong: var(--violet-600); --brand-text: #6d28d9;
  --brand-soft: #f1ecfe; --brand-ring: rgba(124, 58, 237, .32);
  --grad: linear-gradient(120deg, #6d28d9 0%, #7c3aed 45%, #4f46e5 100%);
  --grad-text: linear-gradient(100deg, #6d28d9 0%, #7c3aed 35%, #2563eb 70%, #06b6d4 100%);

  /* surfaces (light) */
  --bg: #fbfbfe; --bg-2: #f4f4fb; --surface: #ffffff; --surface-2: #f6f6fb; --surface-3: #ecedf6;
  --ink: #0b0d1a; --text: #141730; --text-2: #3b4160; --muted: #646b86; --faint: #9298b0;
  --border: #e6e7f0; --border-2: #d8dae6; --border-strong: #c4c8da;
  --glass: rgba(255,255,255,.72); --glass-border: rgba(255,255,255,.55);
  --code-bg: #0e1020; --code-text: #dfe3ff;
  --ok: #059669; --ok-soft: #ecfdf5; --danger: #dc2626; --danger-soft: #fef2f2; --danger-border: #fecaca;
  --warn: #b45309; --warn-soft: #fffbeb;

  --sh-sm: 0 1px 2px rgba(11,13,26,.06), 0 1px 3px rgba(11,13,26,.05);
  --sh-md: 0 8px 24px -8px rgba(11,13,26,.14), 0 2px 6px -2px rgba(11,13,26,.06);
  --sh-lg: 0 30px 70px -24px rgba(30,27,75,.28), 0 12px 28px -16px rgba(11,13,26,.18);
  --sh-glow: 0 18px 50px -14px rgba(124,58,237,.45);
  --ring: 0 0 0 3px var(--brand-ring);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-full: 999px;
  --container: 1180px; --nav-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080f; --bg-2: #0c0e1a; --surface: #10121f; --surface-2: #151827; --surface-3: #1c2033;
    --ink: #ffffff; --text: #eceefb; --text-2: #c3c7de; --muted: #8f96b3; --faint: #5f6685;
    --border: #1f2337; --border-2: #2a2f48; --border-strong: #394062;
    --brand: #8b5cf6; --brand-text: #c4b5fd; --brand-soft: #1e1a36; --brand-ring: rgba(139,92,246,.4);
    --glass: rgba(12,14,26,.66); --glass-border: rgba(255,255,255,.08);
    --code-bg: #0b0d1a; --code-text: #dfe3ff;
    --ok-soft: #0b2419; --danger-soft: #2a1113; --danger-border: #5f1a1f; --warn-soft: #2a1d06;
    --sh-sm: 0 1px 2px rgba(0,0,0,.5); --sh-md: 0 10px 30px -10px rgba(0,0,0,.7);
    --sh-lg: 0 40px 90px -30px rgba(0,0,0,.85); --sh-glow: 0 18px 60px -14px rgba(139,92,246,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #07080f; --bg-2: #0c0e1a; --surface: #10121f; --surface-2: #151827; --surface-3: #1c2033;
  --ink: #ffffff; --text: #eceefb; --text-2: #c3c7de; --muted: #8f96b3; --faint: #5f6685;
  --border: #1f2337; --border-2: #2a2f48; --border-strong: #394062;
  --brand: #8b5cf6; --brand-text: #c4b5fd; --brand-soft: #1e1a36; --brand-ring: rgba(139,92,246,.4);
  --glass: rgba(12,14,26,.66); --glass-border: rgba(255,255,255,.08);
  --code-bg: #0b0d1a; --code-text: #dfe3ff;
  --ok-soft: #0b2419; --danger-soft: #2a1113; --danger-border: #5f1a1f; --warn-soft: #2a1d06;
  --sh-sm: 0 1px 2px rgba(0,0,0,.5); --sh-md: 0 10px 30px -10px rgba(0,0,0,.7);
  --sh-lg: 0 40px 90px -30px rgba(0,0,0,.85); --sh-glow: 0 18px 60px -14px rgba(139,92,246,.5);
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "calt"; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.025em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; font-weight: 800; }
h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; } p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .9rem; } .xs { font-size: .8rem; }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-3); padding: .12em .42em; border-radius: 6px; color: var(--text); overflow-wrap: anywhere; }
pre { margin: 0; }
::selection { background: rgba(124,58,237,.22); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }
.text-center { text-align: center; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- layout ---------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.container.narrow { max-width: 820px; } .container.wide { max-width: 1320px; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { margin-top: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 2; } }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; }
.check-row svg, .check-row .tag { flex: none; margin-top: .15rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}

/* ---------------- eyebrow / pills ---------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-text); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem .38rem .5rem; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--sh-sm); font-size: .84rem; font-weight: 600; color: var(--text-2); }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; color: #fff; font-size: .7rem; }
.pill .dot svg { width: 12px; height: 12px; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: var(--r-full); font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  background: var(--brand-soft); color: var(--brand-text); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .74rem 1.25rem; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: .96rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  border: 1px solid transparent; transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, filter .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 1px 2px rgba(11,13,26,.2), 0 8px 22px -8px rgba(124,58,237,.7); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11,13,26,.2), 0 14px 30px -10px rgba(124,58,237,.75); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: var(--sh-sm); }
.btn.secondary:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn.lg { padding: .95rem 1.6rem; font-size: 1.04rem; border-radius: 14px; }
.btn.sm { padding: .5rem .9rem; font-size: .86rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; filter: none !important; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------- brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(124,58,237,.35)); }
.brand-mark.lg { width: 48px; height: 48px; }
.brand .word { background: linear-gradient(90deg, var(--ink), var(--text-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- nav ---------------- */
.site-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px -18px rgba(11,13,26,.25); }
.site-nav .container { display: flex; align-items: center; gap: 1.5rem; }
.site-nav .links { display: flex; align-items: center; gap: .25rem; margin-left: 1rem; }
.site-nav .links a { padding: .5rem .8rem; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.site-nav .links a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav .links a.active { color: var(--ink); background: var(--surface-3); }
.site-nav .actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; place-items: center; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; } .nav-toggle[aria-expanded="true"] .x { display: block; }
.mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg); padding: 1.25rem clamp(1.1rem,4vw,2rem) 2rem; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a.item { display: block; padding: .95rem .25rem; font-size: 1.15rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-menu .cta { display: grid; gap: .6rem; margin-top: 1.25rem; }
@media (max-width: 900px) {
  .site-nav .links, .site-nav .actions { display: none; }
  .nav-toggle { display: grid; }
}
body.menu-open { overflow: hidden; }

/* ---------------- aurora / backdrops ---------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; mix-blend-mode: multiply; }
.aurora .a1 { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; left: -12vw; top: -20vw; background: radial-gradient(circle at 30% 30%, #c4b5fd, #7c3aed 45%, transparent 70%); }
.aurora .a2 { width: 50vw; height: 50vw; max-width: 680px; max-height: 680px; right: -14vw; top: -10vw; background: radial-gradient(circle at 50% 50%, #a5f3fc, #22d3ee 40%, transparent 70%); }
.aurora .a3 { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; right: 18vw; top: 28vw; background: radial-gradient(circle at 50% 50%, #fbcfe8, #ec4899 40%, transparent 70%); opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora span { mix-blend-mode: screen; opacity: .32; } :root:not([data-theme="light"]) .aurora .a3 { opacity: .18; } }
:root[data-theme="dark"] .aurora span { mix-blend-mode: screen; opacity: .32; } :root[data-theme="dark"] .aurora .a3 { opacity: .18; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .7; }
.section > .container { position: relative; z-index: 1; }
.split > *, .grid > *, .ui > *, .shots > *, .arch > *, .plans > * { min-width: 0; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem); position: relative; overflow: visible; }
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 16ch; margin: 1.25rem auto 0; }
.hero .lead { max-width: 58ch; margin: 1.4rem auto 0; }
.hero .cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero .proof { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.hero .proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero .proof svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------------- product mockup (browser frame) ---------------- */
.mock-wrap { position: relative; margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 1080px; perspective: 1800px; }
.mock-wrap::before { content: ""; position: absolute; inset: 10% 0 -10%; background: radial-gradient(60% 60% at 50% 40%, rgba(124,58,237,.28), transparent 70%); filter: blur(40px); z-index: 0; }
.browser { position: relative; z-index: 1; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--sh-lg);
  overflow: hidden; transform: rotateX(4deg); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.mock-wrap.in .browser { transform: rotateX(0deg); }
.browser .bar { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.browser .bar i:nth-child(1){background:#fb7185}.browser .bar i:nth-child(2){background:#fbbf24}.browser .bar i:nth-child(3){background:#34d399}
.browser .url { margin: 0 auto; padding: .3rem .9rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: .78rem; color: var(--muted); font-family: var(--mono); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; display: block; }
/* CSS-drawn console UI inside the browser */
.ui { display: grid; grid-template-columns: 220px 1fr; min-height: 460px; text-align: left; font-size: .84rem; }
.ui .side { border-right: 1px solid var(--border); padding: 1rem .8rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .25rem; }
.ui .side .lbl { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: .9rem .5rem .3rem; }
.ui .side .it { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 8px; color: var(--text-2); }
.ui .side .it.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.ui .side .it i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .35; }
.ui .main { padding: 1.25rem 1.4rem; background: var(--surface); min-width: 0; overflow: hidden; }
.ui .main .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ui .main .top h5 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); }
.ui .main .top .btn { padding: .4rem .7rem; font-size: .76rem; border-radius: 8px; }
.ui .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.ui .kpi { border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; background: var(--surface); }
.ui .kpi b { display: block; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.ui .kpi small { color: var(--muted); font-size: .72rem; }
.ui .kpi em { font-style: normal; color: var(--ok); font-size: .72rem; font-weight: 600; }
.ui .tbl { border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.ui table { width: 100%; border-collapse: collapse; }
.ui th, .ui td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ui th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); background: var(--surface-2); }
.ui tr:last-child td { border-bottom: 0; }
.ui .st { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .76rem; }
.ui .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ui .st.p::before { background: var(--amber); }
.ui .chip { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.ui .spark { height: 90px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; background: var(--surface); overflow: hidden; }
.ui .spark svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .ui { grid-template-columns: 1fr; min-height: 0; } .ui .side { display: none; } .ui .kpis { grid-template-columns: repeat(2,1fr); } .ui .main { padding: 1rem; } }

/* ---------------- facts strip ---------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.facts div { text-align: center; }
.facts b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; color: var(--ink); font-weight: 800; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- feature cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-2); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--brand-soft); color: var(--brand-text); }
.card .icon svg { width: 22px; height: 22px; }
.card.tint-cyan .icon { background: rgba(6,182,212,.12); color: #0e7490; }
.card.tint-pink .icon { background: rgba(236,72,153,.12); color: #be185d; }
.card.tint-amber .icon { background: rgba(245,158,11,.14); color: #b45309; }
.card.tint-emerald .icon { background: rgba(16,185,129,.13); color: #047857; }
.card.tint-indigo .icon { background: rgba(79,70,229,.12); color: #4338ca; }
.card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { margin-top: .9rem; font-size: .9rem; }
.card.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--glass-border); }
.card.featured { grid-column: span 2; }
@media (max-width: 680px) { .card.featured { grid-column: span 1; } }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; counter-reset: step; }
.steps > * { min-width: 0; }
.step { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: "0" counter(step); display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1020px) { .steps.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .steps.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps.five { grid-template-columns: 1fr; } }

/* ---------------- code block ---------------- */
.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sh-lg); overflow: hidden; text-align: left; }
.code .head { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .76rem; color: #9aa0c3; font-family: var(--mono); }
.code .head i { width: 10px; height: 10px; border-radius: 50%; background: #3b3f5c; display: inline-block; }
.code .head .tabs { margin-left: auto; display: flex; gap: .25rem; }
.code .head .tabs button { font: inherit; font-size: .72rem; padding: .25rem .6rem; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #9aa0c3; cursor: pointer; }
.code .head .tabs button[aria-selected="true"] { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.1); }
.code pre { padding: 1.1rem 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.65; tab-size: 2; }
.code .c { color: #6b7194; } .code .k { color: #c4b5fd; } .code .s { color: #86efac; } .code .n { color: #fcd34d; } .code .f { color: #7dd3fc; } .code .p { color: #f9a8d4; }

/* ---------------- architecture diagram ---------------- */
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: stretch; }
.arch .node { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 1.25rem; box-shadow: var(--sh-sm); }
.arch .node .host { font-family: var(--mono); font-size: .78rem; color: var(--brand-text); background: var(--brand-soft); display: inline-block; padding: .2rem .55rem; border-radius: 6px; margin-bottom: .6rem; }
.arch .node h4 { margin-bottom: .35rem; }
.arch .node ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.arch .node ul li { margin: .2rem 0; }
.arch .link { display: grid; place-items: center; color: var(--faint); }
.arch .link svg { width: 40px; height: 40px; }
.arch .tenants { display: grid; gap: .75rem; }
.arch .tenant { border: 1px dashed var(--border-strong); border-radius: var(--r); padding: .9rem 1rem; background: var(--surface-2); }
.arch .tenant .host { margin-bottom: .35rem; }
@media (max-width: 820px) { .arch { grid-template-columns: 1fr; } .arch .link svg { transform: rotate(90deg); } }

/* ---------------- screenshots ---------------- */
.shots { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: start; }
.shot { border-radius: var(--r-xl); border: 1px solid var(--border-2); background: var(--surface); overflow: hidden; box-shadow: var(--sh-md); }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.shot figcaption { padding: .9rem 1.1rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--border); }
.shot figcaption b { color: var(--ink); display: block; margin-bottom: .1rem; }
.shots .col { display: grid; gap: 1.25rem; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.9rem; box-shadow: var(--sh-sm); }
.plan.hot { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--sh-glow); }
.plan .badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); padding: .3rem .8rem; border-radius: var(--r-full); background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; }
.plan .desc { color: var(--muted); font-size: .93rem; margin: .3rem 0 1.1rem; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1.25rem; }
.plan .price b { font-size: 2.6rem; letter-spacing: -.04em; color: var(--ink); font-weight: 800; line-height: 1; }
.plan .price small { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; font-size: .93rem; color: var(--text-2); }
.plan ul li { display: flex; gap: .55rem; align-items: flex-start; }
.plan ul svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: .1rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.hot { order: -1; } }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.compare th { font-weight: 700; color: var(--ink); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 500; color: var(--text-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table-scroll table { min-width: 640px; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 0 1.25rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.2rem; color: var(--muted); }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center;
  background: #0b0d1a; color: #fff; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sh-lg); }
.cta-band::before { content: ""; position: absolute; inset: -40% -10%; background:
  radial-gradient(40% 50% at 20% 30%, rgba(124,58,237,.75), transparent 60%),
  radial-gradient(35% 45% at 80% 20%, rgba(6,182,212,.55), transparent 60%),
  radial-gradient(30% 40% at 60% 90%, rgba(236,72,153,.45), transparent 60%); filter: blur(30px); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 52ch; margin: 1rem auto 1.75rem; }
.cta-band .btn.secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.cta-band .btn.secondary:hover { background: rgba(255,255,255,.16); }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3.5rem 0 2rem; margin-top: auto; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer ul a { color: var(--text-2); font-size: .93rem; }
.site-footer ul a:hover { color: var(--ink); }
.site-footer .about { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-top: .9rem; }
.site-footer .bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.site-footer .status { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: span 2; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } .site-footer .cols > :first-child { grid-column: span 1; } }

/* ---------------- prose (legal / about) ---------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; } .prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--text-2); } .prose ul { padding-left: 1.25rem; }
.prose .meta { color: var(--muted); font-size: .9rem; }
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { max-width: 60ch; margin-top: 1rem; }
.page-hero.center { text-align: center; } .page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .field input, .field textarea, .field select { width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 10px; padding: .72rem .9rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .pw { position: relative; }
.field .pw input { padding-right: 3rem; }
.field .pw button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .4rem; border-radius: 8px; display: grid; place-items: center; }
.field .pw button:hover { color: var(--ink); background: var(--surface-2); }
.field .pw button svg { width: 18px; height: 18px; }
.field .row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.strength { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: .2rem; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .3s var(--ease), background .3s; }
.strength i.s2 { width: 50%; background: var(--amber); } .strength i.s3 { width: 75%; background: var(--sky); } .strength i.s4 { width: 100%; background: var(--emerald); } .strength i.s1 { width: 25%; }
.alert { padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; border: 1px solid var(--border); background: var(--surface-2); }
.alert.err { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.alert.ok { background: var(--ok-soft); border-color: rgba(16,185,129,.35); color: var(--ok); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--brand); flex: none; }

/* ---------------- auth layout ---------------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth .visual { position: relative; overflow: hidden; background: #0b0d1a; color: #fff; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.auth .visual::before { content: ""; position: absolute; inset: -30% -20%; background:
  radial-gradient(45% 50% at 25% 22%, rgba(139,92,246,1), transparent 62%),
  radial-gradient(40% 45% at 88% 12%, rgba(34,211,238,.8), transparent 60%),
  radial-gradient(38% 42% at 72% 92%, rgba(236,72,153,.7), transparent 60%),
  radial-gradient(32% 36% at 8% 88%, rgba(79,70,229,.9), transparent 60%); filter: blur(36px); opacity: .9; }
.auth .visual::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%); }
.auth .visual > * { position: relative; z-index: 1; }
.auth .visual .brand { color: #fff; } .auth .visual .brand .word { background: none; color: #fff; }
.auth .visual .pitch { margin-top: auto; }
.auth .visual h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.4rem); max-width: 16ch; }
.auth .visual p { color: rgba(255,255,255,.78); max-width: 42ch; margin-top: 1rem; }
.auth .visual .feats { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.auth .visual .feats li { display: flex; gap: .6rem; align-items: center; color: rgba(255,255,255,.92); font-size: .95rem; }
.auth .visual .feats svg { width: 18px; height: 18px; flex: none; color: #a5f3fc; }
.auth .visual .glass { margin-top: 2rem; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); padding: 1rem 1.1rem; font-size: .86rem; color: rgba(255,255,255,.85); }
.auth .visual .glass b { color: #fff; }
.auth .form-side { display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 2.5rem); }
.auth .form-side .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth .form-side .top .brand { display: none; }
.auth .form-side .top .alt { font-size: .9rem; color: var(--muted); margin-left: auto; }
.auth .form-side .top .alt a { font-weight: 600; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 2rem 0; }
.auth-card h1 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.auth-card .sub { color: var(--muted); margin: .5rem 0 1.75rem; }
.auth-card .legal { font-size: .8rem; color: var(--muted); margin-top: 1.25rem; text-align: center; }
.auth .form-side .foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .8rem; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth .visual { display: none; }
  .auth .form-side .top .brand { display: inline-flex; }
}

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------- misc ---------------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; color: var(--faint); font-weight: 600; font-size: .9rem; }
.logo-row span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); }
.logo-row svg { width: 16px; height: 16px; color: var(--brand-text); }
.kbd { font-family: var(--mono); font-size: .78rem; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 6px; padding: .1rem .4rem; background: var(--surface-2); }
.notfound { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound .big { font-size: clamp(5rem, 16vw, 10rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 10px; font-size: .9rem; box-shadow: var(--sh-lg); transition: .3s var(--ease); z-index: 100; pointer-events: none; max-width: calc(100vw - 2rem); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
