:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --panel: #14171f;
  --panel-2: #191d27;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #eef1f7;
  --ink-dim: #9aa2b4;
  --ink-faint: #616a7d;
  --azure: #4f7cff;
  --cyan: #26d6e6;
  --violet: #8b5cf6;
  --amber: #f6b545;
  --green: #34d399;
  --red: #f2545b;
  --grad: linear-gradient(120deg, var(--azure), var(--cyan));
  --font-hero: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1, h2 { font-family: var(--font-hero); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-family: var(--font-display); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-fx::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(79,124,255,0.18), transparent 70%); filter: blur(20px); }
.bg-fx::after { content: ''; position: absolute; top: 40%; right: -10%; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(38,214,230,0.10), transparent 70%); }
.hexgrid { position: fixed; inset: 0; z-index: -1; opacity: 0.5; background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 80%); }

nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10,11,15,0.72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--ink-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 500; font-size: 14px; padding: 10px 18px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--grad); color: #05070c; box-shadow: 0 8px 30px -8px rgba(79,124,255,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(79,124,255,0.7); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.nav .btn { padding: 8px 15px; }

.hero { padding: 92px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; margin-bottom: 26px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: 54px; font-weight: 700; }
.hero p.lead { color: var(--ink-dim); font-size: 18px; margin: 22px 0 32px; max-width: 32em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

.subhero { padding: 76px 0 40px; text-align: center; }
.subhero h1 { font-size: 46px; font-weight: 700; max-width: 16em; margin: 16px auto 18px; }
.subhero p { color: var(--ink-dim); font-size: 18px; max-width: 40em; margin: 0 auto; }

.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; }
.glass { background: rgba(20,23,31,0.6); border: 1px solid var(--line-2); border-radius: 16px; backdrop-filter: blur(8px); }

.mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.mock-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .t { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.mock-body { background: var(--bg-2); padding: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.stat .v { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-top: 6px; }
.stat .v small { font-size: 13px; color: var(--ink-dim); font-weight: 400; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--font-mono); padding: 2px 8px; border-radius: 6px; }
.chip.red { background: rgba(242,84,91,0.14); color: #ff8b90; }
.chip.green { background: rgba(52,211,153,0.14); color: #6ee7b7; }
.chip.amber { background: rgba(246,181,69,0.14); color: #fcd68a; }
.chip.azure { background: rgba(79,124,255,0.16); color: #9db6ff; }
.chip.violet { background: rgba(139,92,246,0.16); color: #c4b5fd; }

.row-list { display: flex; flex-direction: column; gap: 8px; }
.member { display: flex; align-items: center; gap: 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.member .av { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #05070c; }
.member .nm { font-size: 13px; font-weight: 500; }
.member .rk { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.member .spacer { margin-left: auto; }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); }

section { padding: 80px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: 36px; margin: 14px 0 16px; }
.sec-head p { color: var(--ink-dim); font-size: 16px; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* service cards (home) */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; transition: border-color .2s, transform .2s; overflow: hidden; }
.svc:hover { transform: translateY(-4px); border-color: rgba(79,124,255,0.5); }
.svc .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(79,124,255,0.12); color: var(--cyan); margin-bottom: 18px; }
.svc .ic svg { width: 25px; height: 25px; }
.svc h3 { font-size: 22px; margin-bottom: 10px; }
.svc p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.svc .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--cyan); }
.svc .go svg { width: 15px; height: 15px; transition: transform .2s; }
.svc:hover .go svg { transform: translateX(4px); }

/* module toggle cards */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: border-color .2s, transform .2s; }
.mod.on { border-color: rgba(79,124,255,0.5); box-shadow: inset 0 0 0 1px rgba(79,124,255,0.15); }
.mod:hover { transform: translateY(-3px); }
.mod .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(79,124,255,0.12); color: var(--cyan); margin-bottom: 14px; }
.mod .ic svg { width: 21px; height: 21px; }
.mod h3 { font-size: 16px; margin-bottom: 7px; }
.mod p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; }
.mod .price { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.toggle { position: absolute; top: 20px; right: 20px; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd6e6; transition: transform .2s; }
.mod.on .toggle { background: var(--grad); }
.mod.on .toggle::after { transform: translateX(18px); background: #fff; }

/* feature blocks */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 30px; }
.feat.rev .feat-copy { order: 2; }
.feat-copy .num { font-family: var(--font-mono); font-size: 13px; color: var(--azure); }
.feat-copy h3 { font-size: 27px; margin: 12px 0 14px; }
.feat-copy p { color: var(--ink-dim); font-size: 15.5px; }
.feat-copy ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.feat-copy li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); }
.feat-copy li svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

.mini-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-title .h { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.mini-title .s { font-size: 11px; font-family: var(--font-mono); color: var(--ink-faint); }

.vote { display: flex; flex-direction: column; gap: 10px; }
.vote-opt { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.vote-opt .l { width: 44px; color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px; }
.anon { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); margin-top: 6px; }
.feedback { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--violet); border-radius: 0 8px 8px 0; padding: 9px 12px; font-size: 12.5px; color: var(--ink-dim); font-style: italic; }

.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; }
.matrix td.c { text-align: center; }
.ck { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; }
.ck.on { background: var(--grad); color: #05070c; }
.ck.off { border: 1px solid var(--line-2); }
.ck svg { width: 12px; height: 12px; }

.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org .node { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 500; text-align: center; }
.org .node .r { font-size: 10.5px; font-family: var(--font-mono); color: var(--cyan); display: block; }
.org .connector { width: 1px; height: 20px; background: var(--line-2); }
.org .tier { display: flex; flex-direction: row; gap: 14px; }
.org .tier .node { background: var(--bg-2); }

.note { border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 9px; }
.note .meta { font-size: 11px; font-family: var(--font-mono); color: var(--ink-faint); margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.note.staff { background: var(--panel); border: 1px solid var(--line); }
.note.lead { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.3); }
.lock { font-size: 10px; padding: 1px 6px; border-radius: 5px; background: rgba(139,92,246,0.2); color: #c4b5fd; }

/* logs / timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.log { position: relative; padding: 7px 0; font-size: 13px; }
.log::before { content: ''; position: absolute; left: -19px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.log .when { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.log .who { color: var(--ink); font-weight: 500; }

.sync-wrap { padding: 10px; }

/* consultation / contact */
.contact-card { background: linear-gradient(180deg, rgba(79,124,255,0.09), var(--panel)); border: 1px solid rgba(79,124,255,0.4); border-radius: 20px; padding: 44px; text-align: center; }
.contact-card h2 { font-size: 34px; margin-bottom: 14px; }
.contact-card p { color: var(--ink-dim); font-size: 16px; max-width: 34em; margin: 0 auto 26px; }
.contact-methods { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta { text-align: center; padding: 90px 0; }
.cta h2 { font-size: 42px; margin-bottom: 18px; }
.cta p { color: var(--ink-dim); font-size: 17px; margin-bottom: 30px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-faint); font-size: 13px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--ink); }

/* prose (about) */
.prose { max-width: 44em; margin: 0 auto; }
.prose p { color: var(--ink-dim); font-size: 16.5px; margin-bottom: 20px; line-height: 1.8; }
.prose p strong { color: var(--ink); font-weight: 500; }
.pull { border-left: 2px solid var(--cyan); padding: 4px 0 4px 20px; margin: 30px 0; font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 500; line-height: 1.35; }

.spec { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.spec .item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.spec .item .ic { color: var(--cyan); margin-bottom: 12px; }
.spec .item .ic svg { width: 24px; height: 24px; }
.spec .item h3 { font-size: 16px; margin-bottom: 7px; }
.spec .item p { font-size: 13.5px; color: var(--ink-dim); }

.game-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; font-size: 13px; font-weight: 500; transition: border-color .2s, transform .2s; }
.game:hover { border-color: rgba(79,124,255,0.5); transform: translateY(-3px); }
.game .g-ic { color: var(--cyan); margin-bottom: 9px; }
.game .g-ic svg { width: 22px; height: 22px; }
.game small { display: block; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; font-weight: 400; margin-top: 3px; }

@media (max-width: 900px) {
  .hero-grid, .feat, .feat.rev .feat-copy, .services { grid-template-columns: 1fr; }
  .feat.rev .feat-copy { order: 0; }
  .mod-grid, .stat-row, .spec { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 40px; }
  .subhero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .mod-grid, .stat-row, .spec { grid-template-columns: 1fr; }
}
