/* =============================================================================
   VYXOTECH — Technical / Engineering Design System
   Light theme · Poppins + JetBrains Mono · grid backgrounds · terminal UI
   -----------------------------------------------------------------------------
   01 Tokens            08 Hero, terminal, marquee    15 Tabs, tables
   02 Reset & base      09 Page hero & headings       16 Checks, steps, FAQ
   03 Typography        10 Cards, chips, icons        17 Forms & contact
   04 Layout            11 Mock UI & code blocks      18 CTA band
   05 Buttons           12 System map & architecture  19 Footer
   06 Header & menus    13 Pipeline & metrics         20 Utilities & motion
   07 Command palette   14 Plans, prose (legal)       21 Responsive / print
   ============================================================================= */


/* 01. TOKENS -------------------------------------------------------------- */
:root {
    --bg:         #f5f8fd;
    --bg-2:       #eef3fb;
    --surface:    #ffffff;
    --surface-2:  #f0f5fc;
    --line:       rgba(13, 30, 52, .10);
    --line-2:     rgba(13, 30, 52, .18);
    --grid:       rgba(0, 106, 222, .07);

    --ink:        #0d1e34;      /* headings */
    --text:       #4a5d78;      /* body */
    --muted:      #6b7d97;

    --primary:    #006ade;      /* logo blue */
    --primary-2:  #00aaff;      /* logo deep blue */
    --cyan:       #00b8a3;
    --ok:         #0e9f6e;
    --warn:       #c47f00;
    --danger:     #d93f3f;

    --grad:       linear-gradient(135deg, #006ade 0%, #00aaff 70%, #00c2b0 100%);
    --grad-text:  linear-gradient(90deg, #006ade 0%, #0a8cff 55%, #00b8a3 100%);

    --font:       'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius:     14px;
    --radius-lg:  20px;
    --shadow:     0 24px 60px rgba(13, 30, 52, .14);
    --glow:       0 0 0 rgba(0,0,0,0);

    --header-h:   68px;
    --container:  1200px;
    --ease:       cubic-bezier(.22, .61, .36, 1);
}


/* 02. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: light; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; font-weight: 400;
    color: var(--text); background: var(--bg); overflow-x: clip;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #7fd0ff; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(26, 176, 255, .35); color: #fff; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: var(--primary); color: #04101f; padding: 10px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { left: 12px; color: #04101f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* 03. TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 300; color: var(--text); max-width: 62ch; }
.mono, kbd { font-family: var(--mono); }
kbd { display: inline-block; padding: 1px 7px; font-size: .72em; line-height: 1.6; color: #c0cde2; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .88em; padding: 2px 7px; border-radius: 6px; background: rgba(26, 176, 255, .1); color: #8fd4ff; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
strong { color: var(--ink); font-weight: 500; }


/* 04. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding: clamp(60px, 9vw, 108px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 22px; }
.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)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > *, .grid > *, .hero-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }


/* 05. BUTTONS ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; min-height: 48px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 500; font-size: .93rem; line-height: 1.2; text-align: center; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #04101f; font-weight: 600; box-shadow: 0 0 0 1px rgba(26, 176, 255, .5), 0 10px 30px rgba(26, 176, 255, .28); }
.btn-primary:hover { color: #04101f; background: #52c4ff; box-shadow: 0 0 0 1px rgba(82, 196, 255, .8), 0 14px 40px rgba(26, 176, 255, .45); }
.btn-outline { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { color: #fff; border-color: var(--primary); background: rgba(26, 176, 255, .1); }
.btn-lg { padding: 15px 30px; min-height: 54px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: 0; width: 52px; flex: 0 0 52px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { color: var(--primary); }


/* 06. HEADER, MEGA-MENUS & DRAWER ----------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); border-bottom: 1px solid var(--line); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the position:fixed mobile drawer inside the header's box. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(5, 9, 19, .8); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.brand img { display: block; height: 32px; width: auto; }
.brand-footer img { height: 38px; }

.primary-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 8px;
    background: none; color: #bccae0; font-family: var(--font); font-weight: 500; font-size: .88rem; line-height: 1.2; cursor: pointer;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .has-menu.open > .nav-link { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.caret { font-size: .58rem; opacity: .75; transition: transform .25s var(--ease); }
.has-menu.open > .nav-link .caret { transform: rotate(180deg); }
.nav-cta { padding: 9px 18px; min-height: 40px; font-size: .86rem; }

/* Mega menu (desktop) */
.has-menu { position: relative; }
.mega { position: absolute; top: 100%; z-index: 1100; padding-top: 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.has-menu.open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega.align-left { left: -14px; }
.mega.align-center { left: 50%; translate: -50% 0; }
.mega.align-right { right: -6px; }
.mega-panel { width: min(700px, calc(100vw - 48px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(9, 16, 30, .98); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(26, 176, 255, .04); }
.mega-panel.has-feature { grid-template-columns: minmax(0, 1fr) 220px; }
.align-right .mega-panel { width: 330px; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; align-content: start; }
.align-right .mega-links { grid-template-columns: minmax(0, 1fr); }
.mega-links a { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; color: inherit; transition: background .2s var(--ease); }
.mega-links a:hover { background: rgba(26, 176, 255, .09); }
.mi { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: .95rem; color: var(--primary); background: rgba(26, 176, 255, .09); border: 1px solid rgba(26, 176, 255, .25); transition: all .2s var(--ease); }
.mega-links a:hover .mi { background: var(--primary); color: #04101f; box-shadow: 0 0 18px rgba(26, 176, 255, .5); }
.mt b { display: block; color: #fff; font-size: .88rem; font-weight: 500; line-height: 1.35; }
.mt small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.mega-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(260px 160px at 0 0, rgba(26, 176, 255, .2), transparent 70%), #0b1628; }
.mega-feature .mono { font-size: .7rem; color: var(--primary); }
.mega-feature h3 { margin: 0; font-size: 1rem; }
.mega-feature p { margin: 0 0 8px; font-size: .8rem; color: var(--text); line-height: 1.55; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-search { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #b9c9e2; font-size: .82rem; transition: all .2s var(--ease); }
.nav-search:hover { border-color: var(--primary); color: #fff; background: rgba(26, 176, 255, .08); }
.nav-search kbd { font-size: .66rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: #e6eefc; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(2, 5, 12, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.nav-extra, .mobile-cta { display: none; }


/* 07. COMMAND PALETTE ----------------------------------------------------- */
.palette { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(2, 5, 12, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 18px; background: #0a1224; box-shadow: 0 40px 120px rgba(0, 0, 0, .7), var(--glow); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input i { color: var(--primary); }
.palette-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font-size: 1rem; }
.palette-input input::placeholder { color: var(--muted); }
.palette-list { overflow-y: auto; padding: 8px; }
.pal-group { padding: 10px 12px 4px; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); cursor: pointer; }
.pal-item .mi { flex-basis: 34px; width: 34px; height: 34px; }
.pal-item b { display: block; color: #fff; font-weight: 500; font-size: .9rem; line-height: 1.3; }
.pal-item small { color: var(--muted); font-size: .76rem; }
.pal-item.is-active { background: rgba(26, 176, 255, .13); }
.pal-item.is-active .mi { background: var(--primary); color: #04101f; }
.pal-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.palette-foot kbd { margin-right: 4px; }


/* 08. HERO, TERMINAL & MARQUEE -------------------------------------------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 30%, transparent 78%); }
.hero-bg::after { content: ''; position: absolute; left: 50%; top: -280px; width: 1000px; height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(26, 176, 255, .2), transparent); }
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: .78rem; color: #b9c9e2; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--ok); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(26, 176, 255, .07); font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #9fd8ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 230, 166, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, .55); } 70% { box-shadow: 0 0 0 9px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }

.hero-visual { position: relative; }
.term { overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: #070d1a; font-family: var(--mono); box-shadow: var(--shadow), var(--glow); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #0a1222; border-bottom: 1px solid var(--line); }
.tb-dots { display: flex; gap: 6px; }
.tb-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: block; }
.tb-dots i:nth-child(2) { background: #febc2e; } .tb-dots i:nth-child(3) { background: #28c840; }
.tb-title { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tag { font-size: .62rem; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.term-body { padding: 18px 18px 22px; font-size: .79rem; line-height: 1.8; color: #c8d6ec; }
.term-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-prompt { color: var(--primary); margin-right: 8px; }
.t-ok { color: var(--ok); margin-right: 6px; }
.t-dim { color: var(--muted); }
.t-link { color: #7fd0ff; }
.cursor { display: inline-block; width: 8px; height: 1.05em; margin-left: 4px; background: var(--primary); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term .t-line { visibility: hidden; }
.js .term .t-line.show { visibility: visible; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10, 18, 36, .92); box-shadow: var(--shadow); font: 500 .72rem var(--mono); color: #d6e4fa; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: floaty 6s ease-in-out infinite; }
.float-chip i { color: var(--ok); }
.float-chip.fc-1 { top: -18px; right: 18px; }
.float-chip.fc-2 { bottom: -18px; left: 18px; animation-delay: -3s; }
.float-chip.fc-2 i { color: var(--primary); }
@keyframes floaty { 50% { transform: translateY(-7px); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 15, 30, .7); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 46px; padding: 17px 23px; }
.marquee-set li { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem var(--mono); color: #8da0be; white-space: nowrap; }
.marquee-set i { color: var(--primary); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* 09. PAGE HERO & SECTION HEADINGS ---------------------------------------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 880px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: .78rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--text); font-weight: 300; font-size: 1.04rem; }
.sec-label { display: inline-block; margin-bottom: 14px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec-label b { color: var(--primary); font-weight: 600; }


/* 10. CARDS, CHIPS, ICONS -------------------------------------------------- */
.card, .spot { position: relative; overflow: hidden; }
.card { height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(18, 31, 56, .62), rgba(9, 16, 31, .62)); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.card::before, .spot::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(26, 176, 255, .15), transparent 45%); }
.card:hover::before, .spot:hover::before { opacity: 1; }
.card > *, .spot > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-4px); border-color: rgba(26, 176, 255, .45); box-shadow: 0 22px 60px rgba(0, 0, 0, .45); }
a.card { display: block; color: var(--text); }
a.card:hover { color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; }
.card-idx { position: absolute !important; top: 22px; right: 24px; z-index: 1; font: 500 .72rem var(--mono); color: var(--muted); }
.ico { width: 48px; height: 48px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 12px; font-size: 1.1rem; color: var(--primary); background: rgba(26, 176, 255, .08); border: 1px solid rgba(26, 176, 255, .28); transition: all .3s var(--ease); }
.card:hover .ico { background: var(--primary); color: #04101f; box-shadow: 0 0 26px rgba(26, 176, 255, .55); }
.card-compact { padding: 22px; }
.card-compact .ico { width: 42px; height: 42px; margin-bottom: 14px; font-size: 1rem; }
.card-compact h3 { font-size: 1.02rem; }
.card-compact p { font-size: .88rem; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 .8rem var(--mono); }
.card-link i { transition: transform .25s var(--ease); }
.card-link:hover i { transform: translateX(5px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .025); font: 500 .74rem var(--mono); color: #b9c9e2; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--primary); color: #fff; background: rgba(26, 176, 255, .1); }
.chip i { color: var(--primary); font-size: .8rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 .62rem var(--mono); letter-spacing: .02em; }
.pill-green { background: rgba(46, 230, 166, .14); color: var(--ok); }
.pill-amber { background: rgba(255, 194, 75, .14); color: var(--warn); }
.pill-blue  { background: rgba(26, 176, 255, .16); color: #7fd0ff; }
.notice { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-left: 3px solid var(--primary); border-radius: 12px; background: rgba(26, 176, 255, .06); font-size: .9rem; }
.notice i { color: var(--primary); margin-top: 4px; }
.notice p { margin: 0; }


/* 11. MOCK UI & CODE BLOCKS ------------------------------------------------ */
.ui { overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: #08111f; box-shadow: var(--shadow); }
.ui-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #0a1222; border-bottom: 1px solid var(--line); }
.ui-bar .tb-title { text-align: right; }
.ui-body { padding: 18px; overflow-x: auto; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ui-kpi { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.ui-kpi small { display: block; font: 500 .6rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ui-kpi b { font: 600 1.05rem var(--mono); color: var(--ink); }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font: 500 .74rem var(--mono); color: #c8d6ec; }
.ui-row:last-child { border-bottom: 0; }
.doc-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.doc-title b { color: var(--ink); font: 600 .86rem var(--mono); }
.doc-table { width: 100%; min-width: 280px; border-collapse: collapse; font: 400 .74rem var(--mono); }
.doc-table th { text-align: left; padding: 8px 6px; font-weight: 500; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.doc-table td { padding: 9px 6px; color: #d6e4fa; border-bottom: 1px dashed var(--line); }
.doc-table th:last-child, .doc-table td:last-child { text-align: right; }
.doc-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(26, 176, 255, .07); font: 600 .82rem var(--mono); color: var(--ink); }
.ui-chart { display: flex; align-items: flex-end; gap: 9px; height: 110px; padding-top: 6px; }
.ui-chart i { flex: 1; display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--primary), rgba(10, 107, 255, .35)); }

.code { overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: #070d1a; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 .72rem var(--mono); color: var(--muted); background: #0a1222; }
.copy-btn { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 7px; background: rgba(255, 255, 255, .04); color: #b9c9e2; font: 500 .68rem var(--mono); transition: all .2s; }
.copy-btn:hover { border-color: var(--primary); color: #fff; }
.copy-btn.is-done { border-color: var(--ok); color: var(--ok); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 .78rem/1.75 var(--mono); color: #c8d6ec; tab-size: 2; }
.k { color: #ff7ab2; } .s { color: #8ee3a8; } .n { color: #ffcb6b; } .c { color: #5f7191; font-style: italic; } .f { color: #7fd0ff; } .v { color: #c4a7ff; }


/* 12. SYSTEM MAP & ARCHITECTURE DIAGRAMS ----------------------------------- */
.diagram { padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(500px 300px at 50% 50%, rgba(26, 176, 255, .08), transparent 70%), #08111f; }
.diagram svg { width: 100%; height: auto; }
.sm-line { fill: none; stroke: rgba(26, 176, 255, .5); stroke-width: 1.4; stroke-dasharray: 4 7; animation: dash 2.4s linear infinite; }
.sm-line.alt { stroke: rgba(46, 230, 208, .45); animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.sm-node rect, .ar-box rect { fill: #0c1729; stroke: rgba(130, 170, 255, .3); stroke-width: 1; transition: all .25s var(--ease); }
.sm-node:hover rect, .ar-box:hover rect { stroke: var(--primary); fill: #0e1c33; }
.sm-node text, .ar-box text { font-family: var(--mono); fill: #dbe8fb; font-size: 14px; font-weight: 500; }
.sm-node .sub, .ar-box .sub { fill: #7587a3; font-size: 10.5px; font-weight: 400; }
.sm-core circle.ring { fill: none; stroke: rgba(26, 176, 255, .35); stroke-width: 1; }
.sm-core circle.pulse { fill: none; stroke: rgba(26, 176, 255, .5); transform-box: fill-box; transform-origin: center; animation: ringpulse 3s ease-out infinite; }
@keyframes ringpulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.ar-layer text.lbl { font-family: var(--mono); font-size: 11px; fill: #5f7191; letter-spacing: .12em; text-transform: uppercase; }
.ar-layer rect.band { fill: rgba(26, 176, 255, .035); stroke: rgba(130, 170, 255, .12); stroke-dasharray: 3 5; }
.ar-arrow { fill: none; stroke: rgba(26, 176, 255, .55); stroke-width: 1.4; marker-end: url(#arr); }


/* 13. PIPELINE & METRICS ---------------------------------------------------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pipeline::before { content: ''; position: absolute; top: 23px; left: 7%; right: 7%; height: 1px; background: linear-gradient(90deg, var(--primary), rgba(26, 176, 255, .15)); }
.pstep { position: relative; padding: 0 8px; text-align: center; }
.pnode { position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--primary); font: 600 .9rem var(--mono); transition: all .3s var(--ease); }
.pstep:hover .pnode { background: var(--primary); color: #04101f; box-shadow: 0 0 24px rgba(26, 176, 255, .55); transform: translateY(-4px); }
.pstep h3 { font-size: .95rem; margin-bottom: 6px; }
.pstep p { font-size: .8rem; margin: 0; color: var(--muted); }
.pstep .ok { display: block; margin-top: 8px; font: 500 .66rem var(--mono); color: var(--ok); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.metric { padding: 28px 24px; border-right: 1px solid var(--line); transition: background .3s var(--ease); }
.metric:last-child { border-right: 0; }
.metric:hover { background: rgba(26, 176, 255, .06); }
.metric b { display: block; font: 600 clamp(1.6rem, 3vw, 2.2rem) var(--mono); color: var(--ink); line-height: 1.2; }
.metric span { font-size: .84rem; color: var(--muted); }


/* 14. PLANS & PROSE (legal) -------------------------------------------------- */
.plan { display: flex; flex-direction: column; }
.plan .checks { margin: 18px 0 24px; }
.plan .btn { margin-top: auto; }
.plan-tag { margin-bottom: 14px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { font-size: .98rem; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose ul li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { font: 400 .8rem var(--mono); color: var(--muted); }


/* 15. TABS & TABLES --------------------------------------------------------- */
.tab-list { display: flex; gap: 4px; margin-bottom: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn { flex: 0 0 auto; padding: 13px 18px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 .84rem var(--mono); white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.tab-btn:hover { color: #fff; }
.tab-btn[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); background: rgba(26, 176, 255, .06); }
.tab-panel[hidden] { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.spec-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: rgba(255, 255, 255, .025); }
.spec-table tbody th { color: var(--ink); font-weight: 500; }
.spec-table td { text-align: center; }
.spec-table thead th:not(:first-child) { text-align: center; }
.spec-table .yes { color: var(--ok); } .spec-table .no { color: var(--muted); }


/* 16. CHECKS, STEPS & FAQ --------------------------------------------------- */
.checks { display: grid; gap: 12px; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 32px; font-size: .94rem; }
.checks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .6rem; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: var(--ok); background: rgba(46, 230, 166, .1); border: 1px solid rgba(46, 230, 166, .32); }
.checks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; }
.checks.compact { gap: 9px; }
.step-list .step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.step-list .step:last-child { border-bottom: 1px solid var(--line); }
.step-list .num { font: 600 2rem var(--mono); line-height: 1; color: var(--primary); text-shadow: 0 0 24px rgba(26, 176, 255, .4); }
.step-list h3 { margin-bottom: 8px; }
.step-list p { margin-bottom: 0; }
.step-list .chip-row { margin-top: 14px; }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 24, 44, .6); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(26, 176, 255, .45); background: rgba(16, 28, 52, .8); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.3rem var(--mono); color: var(--primary); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: .94rem; }


/* 17. FORMS & CONTACT ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 24, 44, .6); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.info-card:hover { border-color: rgba(26, 176, 255, .45); transform: translateY(-3px); }
.info-card .ico { flex: 0 0 46px; margin: 0; }
.info-card > div:last-child { min-width: 0; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { margin: 0 0 4px; font-size: .9rem; }
.info-card a { font-weight: 500; word-break: break-word; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-row a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #b9c9e2; transition: all .25s var(--ease); }
.social-row a:hover { background: var(--primary); border-color: var(--primary); color: #04101f; transform: translateY(-3px); }
.form-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(16, 28, 52, .75), rgba(9, 16, 31, .75)); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { margin-bottom: 24px; font-size: .94rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 .78rem var(--mono); color: #c0cde2; }
.req { color: var(--danger); margin-left: 2px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .88rem; pointer-events: none; transition: color .2s; }
.input-wrap.is-textarea > i { top: 18px; transform: none; }
.input, .select, .textarea { width: 100%; padding: 13px 16px 13px 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #080f1f; color: var(--ink); font-size: .93rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237587a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.select option { background: #0b1424; color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #53647f; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(130, 170, 255, .4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); background: #0a1428; box-shadow: 0 0 0 4px rgba(26, 176, 255, .14); }
.input-wrap:focus-within > i { color: var(--primary); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); background: rgba(255, 107, 107, .06); }
.field-error { display: none; font-size: .78rem; color: var(--danger); }
.field.has-error .field-error { display: block; }
.char-count { align-self: flex-end; font: 400 .72rem var(--mono); color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 400 .86rem var(--font); color: var(--text); }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--primary); flex: 0 0 auto; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 24px; border-radius: 12px; font-size: .92rem; }
.alert i { margin-top: 4px; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.alert-success { background: rgba(46, 230, 166, .09); border: 1px solid rgba(46, 230, 166, .4); color: #b8f5de; }
.alert-error { background: rgba(255, 107, 107, .09); border: 1px solid rgba(255, 107, 107, .4); color: #ffc9c9; }
.alert strong { color: inherit; }
.form-note { margin: 14px 0 0; font: 400 .74rem var(--mono); color: var(--muted); text-align: center; }
.form-note i { color: var(--ok); margin-right: 6px; }


/* 18. CTA BAND ---------------------------------------------------------------- */
.cta-band { padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line-2); border-radius: 24px; text-align: center; background: radial-gradient(620px 300px at 0% 0%, rgba(26, 176, 255, .24), transparent 60%), radial-gradient(520px 300px at 100% 100%, rgba(46, 230, 208, .15), transparent 60%), #08111f; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.04rem; font-weight: 300; }
.cta-band .btn-row { justify-content: center; }


/* 19. FOOTER ------------------------------------------------------------------- */
.site-footer { position: relative; background: #03060d; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 40px; padding-block: 68px 48px; }
.footer-brand p { margin: 20px 0 22px; max-width: 330px; font-weight: 300; }
.footer-col h3 { margin-bottom: 18px; font-size: .74rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.footer-col li { margin-bottom: 10px; }
.site-footer a { color: #9db0cc; }
.site-footer a:hover { color: #fff; }
.footer-col li a { display: inline-block; padding: 2px 0; transition: transform .2s var(--ease), color .2s; }
.footer-col li a:hover { transform: translateX(5px); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list i { margin-top: 5px; width: 16px; text-align: center; color: var(--primary); }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #b9c9e2; transition: all .25s var(--ease); }
.social-list a:hover { background: var(--primary); border-color: var(--primary); color: #04101f; transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 22px; }
.footer-bottom p { margin: 0; font-size: .84rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .78rem; color: var(--muted); }
.legal-links .linklike { color: var(--muted); }
.legal-links kbd { font-size: .95em; }


/* 20. UTILITIES & MOTION ---------------------------------------------------------- */
.js [data-animate] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-animate="up"]    { transform: translateY(30px); }
.js [data-animate="left"]  { transform: translateX(-36px); }
.js [data-animate="right"] { transform: translateX(36px); }
.js [data-animate="zoom"]  { transform: scale(.96); }
.js [data-animate].is-visible { opacity: 1; transform: none; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10, 18, 36, .92); color: var(--primary); box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--primary); color: #04101f; }
.notfound { padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.notfound .code404 { font: 700 clamp(5rem, 18vw, 10rem) var(--mono); line-height: 1; margin-bottom: 8px; }


/* 21. RESPONSIVE ------------------------------------------------------------------ */

/* Touch screens: no sticky hover lift */
@media (hover: none) {
    .card:hover, .info-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
    .card:hover::before, .spot:hover::before { opacity: 0; }
    .btn:hover { transform: none; }
}

/* Compact search button on mid-size desktops */
@media (max-width: 1320px) {
    .nav-search-label, .nav-search kbd { display: none; }
    .nav-search { width: 40px; justify-content: center; padding: 0; }
}

/* ---- Drawer navigation ---- */
@media (max-width: 1180px) {
    .nav-toggle { display: inline-flex; }
    .nav-actions { margin-left: auto; position: relative; z-index: 1002; }
    .primary-nav {
        position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; margin: 0; width: min(88vw, 380px); height: 100vh; height: 100dvh;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px;
        padding: calc(var(--header-h) + 12px) 20px calc(22px + env(safe-area-inset-bottom));
        background: #070d1b; border-left: 1px solid var(--line-2); box-shadow: -30px 0 70px rgba(0, 0, 0, .6);
        transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s;
        overflow-y: auto; overscroll-behavior: contain;
    }
    .primary-nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1rem; border-radius: 10px; }
    .nav-link.is-active { background: rgba(26, 176, 255, .1); }
    .nav-link.is-active::after { display: none; }

    /* Accordion */
    .mega, .mega.align-left, .mega.align-center, .mega.align-right { position: static; display: none; padding: 0 0 6px; opacity: 1; visibility: visible; transform: none; translate: none; transition: none; }
    .has-menu.open > .mega { display: block; }
    .mega-panel, .align-right .mega-panel { width: auto; padding: 4px 0 0 6px; border: 0; background: none; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
    .mega-panel.has-feature { grid-template-columns: minmax(0, 1fr); }
    .mega-links, .align-right .mega-links { grid-template-columns: minmax(0, 1fr); border-left: 1px solid var(--line-2); margin-left: 12px; padding-left: 6px; }
    .mega-links a { padding: 10px 10px; }
    .mega-feature { display: none; }
    .nav-cta { width: 100%; min-height: 50px; }
    .nav-extra { display: block; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
    .nav-mail { display: flex; align-items: center; gap: 10px; padding: 8px 2px; color: var(--ink); font-weight: 500; word-break: break-all; }
    .nav-mail i { color: var(--primary); }
    .nav-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
    .nav-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #b9c9e2; }
}

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---- Tablets & phones ---- */
@media (max-width: 920px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .split.reverse > :first-child { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .js [data-animate="left"], .js [data-animate="right"] { transform: translateY(26px); }   /* vertical only: never widen the page */
    .hero-visual { max-width: 620px; }

    .pipeline { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .pipeline::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--primary), rgba(26, 176, 255, .15)); }
    .pstep { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 18px; text-align: left; padding: 0; align-items: start; }
    .pnode { margin: 0; }

    .mobile-cta { display: flex; position: fixed; z-index: 850; left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 9, 19, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
    .mobile-cta .btn { min-height: 48px; padding-block: 10px; }
    .mobile-cta .btn-primary { flex: 1; }
    .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(86px + env(safe-area-inset-bottom)); }
    .page-contact .mobile-cta { display: none; }
    .page-contact .site-footer { padding-bottom: 0; }
    .page-contact .back-to-top { bottom: 20px; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding-inline: 18px; }
    .section { padding: 50px 0; }
    .section-head { margin-bottom: 30px; }
    h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    h2 { font-size: clamp(1.45rem, 6.2vw, 1.85rem); }
    .grid-2, .grid-3, .grid-4, .form-grid, .checks.two-col { grid-template-columns: minmax(0, 1fr); }
    .grid { gap: 16px; }
    .card { padding: 24px 20px; }
    .card-compact { padding: 20px 18px; }
    .btn-row .btn { width: 100%; }
    .hero { padding-top: 30px; }
    .hero-meta { flex-direction: column; gap: 9px; }
    .eyebrow { font-size: .66rem; padding: 6px 12px; }
    .term-body { font-size: .72rem; padding: 14px 14px 18px; }
    .tb-tag { display: none; }
    .float-chip { display: none; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { padding: 22px 16px; border-bottom: 1px solid var(--line); }
    .metric:nth-child(2n) { border-right: 0; }
    .metric:nth-last-child(-n+2) { border-bottom: 0; }
    .sm-node .sub, .ar-box .sub { display: none; }
    .diagram { padding: 10px; }
    .step-list .step { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
    .step-list .num { font-size: 1.4rem; }
    .ui-body { padding: 14px; }
    .form-card { padding: 22px 18px; }
    .input, .select, .textarea { font-size: 16px; padding-top: 14px; padding-bottom: 14px; }   /* 16px stops iOS zoom */
    .info-card { padding: 18px; gap: 14px; }
    .faq summary { padding: 16px 18px; }
    .faq details p { padding: 0 18px 18px; }
    .page-hero { padding: 36px 0 40px; }
    .cta-band { padding: 34px 20px; border-radius: 18px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-block: 44px 28px; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding-block: 18px; }
    .palette { padding-top: 8vh; }
    .palette-foot { display: none; }
}

@media (max-width: 400px) {
    .container { padding-inline: 16px; }
    .brand img { height: 28px; }
    .nav-search { width: 38px; height: 38px; }
    .btn { padding-inline: 18px; }
}
@media (max-width: 340px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Reduced motion & print */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-animate] { opacity: 1; transform: none; }
    .js .term .t-line { visibility: visible; }
}
@media print {
    .site-header, .mobile-cta, .back-to-top, .palette, .nav-backdrop, .cta-band, .site-footer, .marquee { display: none !important; }
    body, html { background: #fff; color: #000; }
    h1, h2, h3, strong { color: #000; }
    .js [data-animate] { opacity: 1 !important; transform: none !important; }
}
.opt{color:var(--muted);font-weight:400;font-size:.8em}


/* =============================================================================
   22. LIGHT THEME OVERRIDES
   Dark "device" panels (terminal, code) keep a dark palette for contrast.
   ============================================================================= */
a:hover { color: var(--primary-2); }
::selection { background: rgba(0, 106, 222, .22); color: var(--ink); }
.skip-link, .skip-link:focus { color: #fff; }
kbd { color: var(--ink); background: #fff; }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 10px 26px rgba(0, 106, 222, .28); }
.btn-primary:hover { color: #fff; background: #0057b8; box-shadow: 0 14px 34px rgba(0, 106, 222, .38); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { color: var(--primary); background: #eef5ff; border-color: var(--primary); }

/* header & menus */
.site-header::before { background: rgba(255, 255, 255, .88); }
.nav-link:hover, .has-menu.open > .nav-link { color: var(--primary); background: rgba(0, 106, 222, .07); }
.mega-panel { background: rgba(255, 255, 255, .99); box-shadow: 0 30px 70px rgba(13, 30, 52, .18); }
.mega-links a:hover { background: rgba(0, 106, 222, .07); }
.mega-links a:hover .mi, .pal-item.is-active .mi, .card:hover .ico, .pstep:hover .pnode, .social-row a:hover, .social-list a:hover, .back-to-top:hover { color: #fff; box-shadow: 0 8px 22px rgba(0, 106, 222, .3); }
.mt b, .pal-item b { color: var(--ink); }
.mega-feature { background: radial-gradient(260px 160px at 0 0, rgba(0, 106, 222, .12), transparent 70%), #f3f8ff; }
.nav-search { background: #fff; color: var(--text); }
.nav-search:hover { color: var(--primary); background: #eef5ff; }
.nav-toggle { background: #fff; }
.palette-box { background: #fff; box-shadow: 0 40px 100px rgba(13, 30, 52, .3); }

/* hero / sections */
.marquee { background: #fff; }
.card { background: #fff; box-shadow: 0 1px 2px rgba(13, 30, 52, .04); }
.card:hover { border-color: rgba(0, 106, 222, .4); box-shadow: 0 20px 44px rgba(13, 30, 52, .12); }
.chip { background: #f3f7fd; color: var(--text); }
.chip:hover { color: var(--primary); background: #eaf3ff; }
.pill-blue { color: var(--primary); }
.section-alt { background: var(--bg-2); }
.ui { background: #fff; }
.ui-bar { background: #f1f5fb; }
.ui-kpi { background: #f6f9fe; }
.diagram { background: radial-gradient(500px 300px at 50% 50%, rgba(0, 106, 222, .06), transparent 70%), #fff; }
.sm-node rect, .ar-box rect { fill: #f3f8ff; stroke: rgba(0, 106, 222, .28); }
.sm-node:hover rect, .ar-box:hover rect { fill: #e6f1ff; }
.sm-core circle:not(.pulse):not(.ring) { fill: #0d1e34; }
.tab-btn:hover { color: var(--primary); }
.spec-table thead th { background: #f3f7fd; }
.faq details[open] { background: #f5f9ff; border-color: rgba(0, 106, 222, .4); }
.social-row a, .nav-social a, .social-list a, .copy-btn { background: #fff; color: var(--text); }
.form-card { background: #fff; }
.field label { color: var(--ink); }
.input, .select, .textarea { background: #fff; }
.select option { background: #fff; }
.input:focus, .select:focus, .textarea:focus { background: #fff; box-shadow: 0 0 0 4px rgba(0, 106, 222, .14); }
.cta-band { background: radial-gradient(620px 300px at 0% 0%, rgba(0, 106, 222, .12), transparent 60%), radial-gradient(520px 260px at 100% 100%, rgba(0, 184, 163, .1), transparent 60%), #fff; }

/* footer: soft navy-on-light */
.site-footer { background: #eaf1fb; }
.site-footer a:hover { color: var(--primary); }
.mobile-cta { background: rgba(255, 255, 255, .96); }

/* dark device panels keep their own palette */
.term, .code { --ink: #f1f6ff; --text: #a3b3cc; --muted: #7587a3; --line: rgba(130,170,255,.14); --line-2: rgba(130,170,255,.27); --primary: #1ab0ff; box-shadow: 0 24px 60px rgba(13, 30, 52, .28); }
.term .t-link, .code .f { color: #7fd0ff; }
.code .copy-btn { background: rgba(255, 255, 255, .06); color: #b9c9e2; }
.code .copy-btn:hover { color: #fff; }
.mobile-nav-bg, .nav-backdrop { background: rgba(13, 30, 52, .45); }
@media (max-width: 1180px) { .primary-nav { background: #fff; box-shadow: -30px 0 70px rgba(13, 30, 52, .25); } }
.palette { background: rgba(13, 30, 52, .45); }
.hero-bg::after { background: radial-gradient(closest-side, rgba(0, 170, 255, .16), transparent); }
.float-chip { background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(13, 30, 52, .14); }
code { background: rgba(0, 106, 222, .08); color: var(--primary); }
.nav-link, .nav-trigger { color: var(--text); }
.nav-link.is-active, .has-menu.active > .nav-link { color: var(--primary); }
.nav-toggle .bar { background: var(--ink); }
.hero-meta { color: var(--text); }
.eyebrow { color: var(--primary); background: rgba(0, 106, 222, .07); }
.marquee-set li { color: var(--text); }
.ui-row, .doc-table td { color: var(--ink); }
.ui-kpi small { color: var(--muted); }
.alert-success { background: #e8f8f1; border-color: rgba(14, 159, 110, .4); color: #0b6b4a; }
.alert-error { background: #fdecec; border-color: rgba(217, 63, 63, .4); color: #a52a2a; }
.input::placeholder, .textarea::placeholder { color: #93a2b8; }
.site-footer a { color: var(--text); }
.site-footer h4 { color: var(--ink); }
.back-to-top { background: var(--primary); color: #fff; border-color: var(--primary); }
.back-to-top:hover { background: #0057b8; color: #fff; }
.term-body { color: #c8d6ec; }
.term .t-prompt, .term .t-ok { color: #2ee6a6; }
.term .t-prompt { color: #1ab0ff; }
.code pre { color: #c8d6ec; }
.pal-item { color: var(--ink); }
@media (max-width: 1180px) {
    .primary-nav .nav-link, .primary-nav .nav-trigger { color: var(--ink); }
    .primary-nav .nav-link.is-active { color: var(--primary); }
    .mega-panel { background: none; box-shadow: none; }
    .mega-links a .mt b { color: var(--ink); }
    .nav-link:hover, .has-menu.open > .nav-link { background: #eaf3ff; }
}
