/* ==========================================================================
   Core - shared stylesheet
   Core blue on black, in the same design language as vertx.info:
   Outfit for headings, Figtree for text, soft glows, glass cards.
   Desktop first, scales down to phones.
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #f3f4f6;
  --ink-2: #c7ccd3;
  --muted: #979ea8;
  --dim: #6b7280;
  --accent: #3984ff;
  --accent-hi: #6aa8ff;
  --accent-deep: #2563eb;
  --accent-soft: rgba(57,132,255,.14);
  --accent-rgb: 57,132,255;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --blurple: #5865f2;
  --display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.75,.2,1);
  --ease2: cubic-bezier(.16,1,.3,1);
  --radius: 18px;
  --wrap: 1120px;
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 16.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--accent-rgb), .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--display); color: #fff; margin: 0; line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page transition ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .16s ease-in both; }
::view-transition-new(root) { animation: vtIn .26s var(--ease2) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation: none; }
.page { animation: pageIn .32s var(--ease2) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Backgrounds ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 25%, transparent 75%);
}
.bg-glow {
  position: absolute; left: 50%; top: -260px; width: 1300px; height: 760px; transform: translateX(-50%);
  pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .22), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; } }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(7,8,10,.7); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--line); transition: background .3s; }
.nav.scrolled { background: rgba(7,8,10,.88); }
.nav .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 1.45rem var(--display); color: #fff; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 6px 16px rgba(var(--accent-rgb), .45)); transition: transform .4s var(--ease2); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; justify-self: center; }
.nav-links a { position: relative; display: block; padding: 8px 14px; color: var(--ink-2); font-size: .98rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .22s var(--ease2); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover:not(.active)::after { opacity: .45; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.user-chip { display: none; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .92rem; color: #fff; position: relative; cursor: pointer; }
.user-chip img, .user-chip .avatar-fallback { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.user-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; background: rgba(20,23,29,.96); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: .2s var(--ease2); }
.user-chip[aria-expanded="true"] .user-menu { opacity: 1; transform: none; pointer-events: auto; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); font-size: .92rem; }
.user-menu a:hover, .user-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
body.authed .user-chip { display: inline-flex; }
body.authed [data-auth="signin"] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 .98rem var(--body); white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s; position: relative; isolation: isolate; overflow: hidden; }
.btn:active { transform: scale(.985); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .92rem; border-radius: 999px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 1.04rem; border-radius: 14px; }
.btn-primary { background: linear-gradient(180deg, #5a9bff, #2f78f5); color: #fff; box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: linear-gradient(180deg, #6aa8ff, #3984ff); transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(var(--accent-rgb), 1), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-discord { background: var(--blurple); color: #fff; box-shadow: 0 12px 28px -12px rgba(88,101,242,.85); }
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-weight: 600; font-size: .96rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }

/* ---------- Text effects ---------- */
.grad-text, .hl { color: var(--accent); }
.hl-u { position: relative; display: inline-block; color: var(--accent); }
.hl-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .085em; border-radius: 99px; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .7); transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease2) .9s forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.type-line { display: inline-block; min-height: 1.05em; }
.caret { display: inline-block; width: .06em; min-width: 3px; height: .86em; margin-left: .05em; vertical-align: -0.04em; background: var(--accent); box-shadow: 0 0 14px var(--accent); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* letter blur-in for headings */
.split .w { display: inline-block; white-space: nowrap; }
.split .w > span { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(.18em); transition: opacity .5s var(--ease2), filter .5s var(--ease2), transform .5s var(--ease2); transition-delay: calc(var(--i) * 28ms); }
.split.done .w > span { filter: none; transition: none; will-change: auto; }
.split.in .w > span { opacity: 1; filter: none; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .55s var(--ease2), transform .55s var(--ease2); transition-delay: calc(var(--d, 0ms) * .6); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Common blocks ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.divider { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 999px; background: rgba(var(--accent-rgb), .1); color: var(--accent-hi); font: 700 .74rem var(--body); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.2s ease-in-out infinite; }
.eyebrow .dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.eyebrow .dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.eyebrow.warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); color: #fcd34d; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; }
.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.6; max-width: 620px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack.center { justify-content: center; }

.card { position: relative; background: linear-gradient(180deg, rgba(27,31,39,.72), rgba(16,18,23,.82)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .2s, transform .25s var(--ease2), box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card.hover:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .45); }
.card .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent-hi); box-shadow: 0 0 24px -6px rgba(var(--accent-rgb), .5); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 + p { margin-top: 10px; color: var(--muted); }
.spot { --x: 50%; --y: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--x) var(--y), rgba(var(--accent-rgb), .12), transparent 60%); }
.spot:hover::after { opacity: 1; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: center; }
.split-2.wide-left { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.list-check li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: rgba(var(--accent-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236aa8ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid rgba(var(--accent-rgb), .3); }
.list-check li b { color: #fff; font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: .76rem; font-weight: 600; border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .1); color: var(--accent-hi); white-space: nowrap; }
.badge.gray { border-color: var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); }
.badge.green { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); color: #6ee7b7; }
.badge.soon { height: 18px; padding: 0 6px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: 120px 0 100px; overflow: hidden; text-align: center; }
.page-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin: 24px auto 0; }
.page-hero .stack { margin-top: 38px; justify-content: center; }
.page-hero .eyebrow { margin-bottom: 26px; }

/* ---------- Code panel ---------- */
.code { background: #0a0c10; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 70px -40px rgba(var(--accent-rgb), .5); }
.code-head { display: flex; align-items: center; gap: 4px; padding: 0 10px 0 16px; height: 48px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.code-head .dots { display: flex; gap: 6px; margin-right: 10px; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e36; }
.code-tab { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); font: 500 .82rem var(--mono); transition: .2s; }
.code-tab:hover { color: var(--ink-2); }
.code-tab.active { background: rgba(var(--accent-rgb), .14); color: var(--accent-hi); }
.copy-btn { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.copy-btn.done { color: var(--ok); border-color: rgba(52,211,153,.4); }
.copy-btn svg { width: 14px; height: 14px; }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-size: .86rem; line-height: 1.75; color: #c9d4e5; }
.tk-c { color: #5b6476; } .tk-k { color: #7cb2ff; } .tk-s { color: #8fd6a8; } .tk-f { color: #d7b8ff; } .tk-n { color: #f5c97a; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; background: rgba(16,18,23,.8); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font: 700 .74rem var(--body); text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(var(--accent-rgb), .05); }
td.strong { color: #fff; font-weight: 600; }
.yes { color: var(--accent-hi); font-weight: 600; }
.no { color: var(--dim); }

/* ---------- Segmented ---------- */
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(20,23,29,.8); position: relative; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; font-size: .92rem; font-weight: 600; transition: color .25s; }
.seg button.active { color: #fff; }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: linear-gradient(180deg, #5a9bff, #2f78f5); box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), .9); transition: left .4s var(--ease2), width .4s var(--ease2); }

/* ---------- Accordion ---------- */
.acc { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(20,23,29,.55); transition: border-color .25s, background .25s; }
.acc-item.open { border-color: rgba(var(--accent-rgb), .3); background: rgba(20,23,29,.85); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 0; background: transparent; text-align: left; color: #fff; font: 600 1.04rem var(--body); }
.acc-q .plus { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: rgba(255,255,255,.05); transition: .3s var(--ease); color: var(--muted); }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .plus { background: var(--accent-soft); color: var(--accent-hi); }
.acc-item.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease2); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 22px 22px; color: var(--muted); max-width: 760px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 9px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.input { height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,12,16,.8); color: #fff; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input-prefix .input { padding-left: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 44px; min-width: 74px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; transition: .2s; }
.chip:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.chip.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .14); color: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .92rem; color: var(--muted); }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent-hi); }
.notice.err { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.07); color: #fecaca; }
.notice.err svg { color: var(--err); }
.notice.ok { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.07); color: #bbf7d0; }

.toasts { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 14px; background: rgba(20,23,29,.96); border: 1px solid var(--line-2); color: #fff; font-size: .92rem; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: toastIn .4s var(--ease2) both; }
.toast.out { animation: toastOut .3s ease-in both; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.toast.ok i { background: var(--ok); } .toast.err i { background: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 140px 0 150px; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), transparent); filter: blur(30px); pointer-events: none; transition: transform .6s var(--ease2); }
.cta:hover::before { transform: translate(-50%, -50%) scale(1.12); }
.cta > .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.cta p { margin: 18px auto 0; max-width: 560px; color: var(--ink-2); font-size: 1.12rem; }
.cta .stack { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 80px 0 0; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 20%; top: -220px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .12), transparent); pointer-events: none; }
.footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 64px; align-items: start; }
.footer-about { display: grid; justify-items: start; gap: 14px; }
.footer-about .brand { margin-bottom: 4px; }
.footer-tag { font: 700 1.3rem/1.25 var(--display); color: #fff; letter-spacing: -0.01em; margin: 0; }
.footer-desc { color: var(--muted); font-size: .95rem; max-width: 330px; }
.footer-about .btn { margin-top: 6px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer h4 { font: 700 .74rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { position: relative; color: var(--ink-2); font-size: .95rem; transition: color .15s; }
.footer ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease2); }
.footer ul a:hover { color: #fff; }
.footer ul a:hover::after { transform: scaleX(1); }
.footer-top { color: var(--muted); font-size: .86rem; transition: color .15s; }
.footer-top:hover { color: var(--accent-hi); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }
.footer-word { font: 800 clamp(7rem, 22vw, 17rem)/0.8 var(--display); text-align: center; letter-spacing: -0.05em; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; margin-top: 10px; pointer-events: none; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(20,23,29,.9); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .3s var(--ease2); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--accent-hi); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .nav .wrap { grid-template-columns: auto 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); z-index: 49; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 20px 40px; background: #07080a; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease2); overflow-y: auto; justify-self: stretch; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font: 600 1.3rem var(--display); padding: 15px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .nav-links a::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 3px; height: auto; transform: scaleY(0); }
  .nav-links a.active::after { transform: none; }
  .nav-links .mobile-only:last-child { margin-top: 22px; }
  .nav-links .mobile-only .btn { display: flex; height: 54px; border: 0; border-radius: 14px; color: #fff; font: 600 1rem var(--body); }
  .nav-links .mobile-only .btn::after { display: none; }
  .nav-right .btn-signin-label { display: none; }
  .nav-right .btn-sm { width: 44px; padding: 0; }
  .section { padding: 90px 0; }
  .split-2, .split-2.wide-left { grid-template-columns: 1fr; gap: 48px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 961px) { .mobile-only { display: none !important; } }
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
  .page-hero { padding: 76px 0 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .section-head { margin-bottom: 40px; }
  .section-head p, .lead { font-size: 1.04rem; }
  .stack .btn { flex: 1 1 auto; }
  .cta { padding: 96px 0 104px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-tag { font-size: 1.15rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  th, td { padding: 14px; white-space: normal; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .split .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
}
