/* Xogos Nexus — tokens and HUD details match Jarvis (frontend/src/theme.css). */
:root {
  --bg: #09090b;          /* zinc-950 */
  --panel: #18181b;       /* zinc-900 */
  --panel-2: #111113;
  --line: rgba(92, 225, 230, .13);
  --line-2: rgba(92, 225, 230, .22);
  --ink: #e4e4e7;         /* zinc-200 */
  --mute: #8e9aa6;
  --dim: #71717a;         /* zinc-500 */
  --cy: #5ce1e6;
  --cy-hi: #8aeef1;
  --am: #f59e0b;
  --on-cy: #041417;
  --disp: "Chakra Petch", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(92, 225, 230, .10), transparent 62%),
    var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.disp { font-family: var(--disp); }
.cy { color: var(--cy); }
.am { color: var(--am); }
.mute { color: var(--mute); }
.small { font-size: .875rem; }
.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;
}
:where(a, button, summary):focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 2px; }
.link { color: var(--cy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(92, 225, 230, .45); }
.link:hover { text-decoration-color: var(--cy); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--cy); color: var(--on-cy); padding: .5rem .9rem; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* HUD panel — same corner brackets as Jarvis */
.hud { position: relative; background: rgba(92, 225, 230, .035); border: 1px solid var(--line); }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--cy); border-style: solid; pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.scan { background-image: repeating-linear-gradient(0deg, rgba(92, 225, 230, .045) 0 1px, transparent 1px 3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1rem; font: 500 .95rem/1.2 var(--body); border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-cy { background: var(--cy); color: var(--on-cy); font-weight: 600; }
.btn-cy:hover { background: var(--cy-hi); }
.btn-gh { border-color: rgba(92, 225, 230, .35); color: var(--cy); }
.btn-gh:hover { background: rgba(92, 225, 230, .1); }
.btn-am { border-color: rgba(245, 158, 11, .6); color: var(--am); }
.btn-am:hover { background: rgba(245, 158, 11, .1); }
.btn-sm { padding: .35rem .7rem; font-size: .875rem; }
.btn-lg { padding: .8rem 1.35rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 225, 230, .09);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cy); }
.mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--disp); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; color: var(--ink); }
.wordmark span { color: var(--cy); }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link { padding: .45rem .75rem; font-size: .925rem; color: var(--mute); border-radius: 2px; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 599px) { .hide-sm { display: none; } }

/* Sign-in menu (works without JS) */
.menu { position: relative; margin-left: .35rem; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.chev { width: 12px; height: 12px; transition: transform .15s; }
.menu[open] .chev { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px;
  background: var(--panel-2); padding: .4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.menu-panel a { display: block; padding: .65rem .75rem; border-radius: 2px; }
.menu-panel a:hover { background: rgba(92, 225, 230, .08); }
.menu-title { display: block; font-family: var(--disp); font-weight: 600; color: var(--cy); }
.menu-sub { display: block; font-size: .85rem; color: var(--mute); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--disp); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cy); padding: .3rem .7rem; border: 1px solid var(--line-2); background: rgba(92, 225, 230, .05);
}
.dot { width: 6px; height: 6px; background: var(--am); border-radius: 50%; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 7.2vw, 4.1rem); line-height: 1.04; font-weight: 700; letter-spacing: -.01em;
}
.hero h1 .cy { display: block; }
.lede { margin-top: 22px; max-width: 34rem; font-size: 1.125rem; color: #b4b9c0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; font-size: .9rem; color: var(--mute); }
.hero-facts li { display: flex; gap: .5rem; align-items: baseline; }
.hero-facts span { font-family: var(--disp); font-weight: 600; font-size: .8rem; }

.hero-visual { padding: 14px 16px 16px; }
.hv-top, .hv-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--disp); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.hv-top span:first-child { color: var(--cy); }
.hv-status { display: inline-flex; align-items: center; gap: .45rem; }
.hv-status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.hub { width: 100%; height: auto; margin: 6px 0; }
.orbit { transform-origin: 200px 160px; transform-box: view-box; }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid rgba(92, 225, 230, .07); }
.section-alt { background: linear-gradient(180deg, rgba(24, 24, 27, .55), rgba(24, 24, 27, .15)); }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.kicker { font-family: var(--disp); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cy); }
.kicker.am { color: var(--am); }
.section h2 { margin-top: 10px; font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.12; font-weight: 700; }
.section-sub { margin-top: 14px; color: var(--mute); font-size: 1.05rem; }

/* Tools */
.tool-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: 1.15fr 1fr .8fr; } }
.card { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; background-color: rgba(24, 24, 27, .7); }
.card > .btn { align-self: flex-start; margin-top: auto; }
.card-head { display: flex; gap: 14px; align-items: center; }
.card h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.card-tag { font-size: .9rem; color: var(--mute); }
.card-tag.am { color: var(--am); font-family: var(--disp); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--cy); background: rgba(92, 225, 230, .08); border: 1px solid var(--line-2); border-radius: 2px;
}
.icon svg { width: 24px; height: 24px; }
.icon-soon { color: var(--am); background: rgba(245, 158, 11, .07); border-color: rgba(245, 158, 11, .3); }
.ticks { display: grid; gap: 10px; font-size: .95rem; color: #c9cdd2; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  border: 1.5px solid var(--cy); transform: rotate(45deg);
}
.card-note { font-size: .875rem; color: var(--mute); border-left: 2px solid var(--am); padding-left: 12px; }
.card-soon { border: 1px dashed rgba(113, 113, 122, .55); background: rgba(24, 24, 27, .35); }
.soon-copy { color: var(--mute); font-size: .95rem; }
.soon-slots { display: grid; gap: 10px; margin-top: auto; }
.soon-slots span {
  height: 44px; border: 1px dashed rgba(113, 113, 122, .45);
  background: repeating-linear-gradient(135deg, rgba(113, 113, 122, .08) 0 6px, transparent 6px 12px);
}

/* How it fits */
.flow { padding: 24px; background-color: rgba(9, 9, 11, .6); overflow: hidden; }
.flow svg { width: 100%; height: auto; }
@media (max-width: 639px) { .flow { display: none; } }
.steps { display: grid; gap: 20px; margin-top: 28px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; border: 1px solid rgba(92, 225, 230, .09); background: rgba(9, 9, 11, .45); }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  font-family: var(--disp); font-weight: 700; color: var(--on-cy); background: var(--cy);
}
.step h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 600; }
.step p { margin-top: 8px; color: var(--mute); font-size: .95rem; }

/* For businesses */
.biz {
  display: grid; gap: 32px; padding: 36px 24px;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(245, 158, 11, .10), transparent 70%),
    rgba(24, 24, 27, .7);
}
@media (min-width: 900px) { .biz { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 56px; gap: 48px; } }
.biz-copy p:not(.kicker) { margin-top: 14px; font-size: 1.05rem; color: #c9cdd2; max-width: 36rem; }
.biz-copy p.mute { color: var(--mute); }
.biz-cta { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 900px) { .biz-cta { justify-items: end; text-align: right; } }
.biz-cta .small { overflow-wrap: anywhere; }

/* Security */
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .sec-grid { grid-template-columns: repeat(6, 1fr); }
  .sec { grid-column: span 2; }
  .sec:nth-child(n+4) { grid-column: span 3; }
}
.sec { padding: 24px; border: 1px solid rgba(92, 225, 230, .09); background: rgba(9, 9, 11, .45); }
.sec h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 600; }
.sec p { margin-top: 6px; color: var(--mute); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid rgba(92, 225, 230, .09); padding: 40px 0 48px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: grid; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .925rem; }
.footer-links a { color: var(--mute); padding: 2px 0; }
.footer-links a:hover { color: var(--cy); }

/* 404 */
.nf { min-height: calc(100vh - 64px - 140px); display: grid; place-items: center; padding: 64px 0; }
.nf-box { max-width: 34rem; padding: 40px 28px; text-align: center; }
.nf-code { font-family: var(--disp); font-size: clamp(3.5rem, 14vw, 6rem); font-weight: 700; line-height: 1; color: var(--cy); }
.nf h1 { margin-top: 12px; font-size: 1.6rem; }
.nf p:not(.nf-code) { margin-top: 10px; color: var(--mute); }
.nf .cta-row { justify-content: center; }

/* Motion (same keyframes as Jarvis) */
@keyframes jvspin { to { transform: rotate(360deg); } }
.spin-slow { animation: jvspin 30s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes materialize {
  0% { opacity: 0; transform: translateY(10px) scaleY(.94); filter: blur(4px); }
  55% { opacity: .75; } 70% { opacity: .4; }
  100% { opacity: 1; transform: none; filter: none; }
}
.hero-copy, .hero-visual { animation: materialize .7s ease-out both; }
.hero-visual { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-slow, .pulse, .hero-copy, .hero-visual { animation: none; }
  .btn, .chev { transition: none; }
}

/* Compact security cards on phones */
@media (max-width: 639px) {
  .sec { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .sec .icon { grid-row: span 2; }
  .sec h3 { margin-top: 0; align-self: center; }
  .sec p { grid-column: 2; }
}
