:root {
  --bg: #030305;
  --panel: #0d0b16;
  --line: #1d1a2e;
  --line-2: #2c2747;
  --text: #eeeaf8;
  --soft: #c9c4dc;
  --muted: #9d98b5;
  --dim: #6c6785;
  --purple: #7c3aed;
  --purple-h: #8b4cf6;
  --purple-2: #a78bfa;
  --gold: #e8b64c;
  --green: #4ade80;
  --red: #f87171;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; color-scheme: dark; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav, main, .foot { position: relative; z-index: 1; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 clamp(16px, 4vw, 48px); background: rgba(3, 3, 5, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px var(--display); letter-spacing: .2px; }
.brand img { transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(60deg); }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.links a { position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }
.lang { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font: 500 12px var(--mono); padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: border-color .2s, color .2s; }
.lang:hover { border-color: var(--gold); color: var(--gold); }

/* type */
.eyebrow { font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h1 { font: 700 clamp(44px, 7.4vw, 100px)/1 var(--display); letter-spacing: -.035em; margin: 16px 0 22px; }
h1 span { color: var(--purple-2); }
h2 { font: 700 clamp(32px, 4.2vw, 50px)/1.1 var(--display); letter-spacing: -.02em; margin: 10px 0 12px; }
h3 { font: 600 22px/1.25 var(--display); }
.lead { max-width: 36ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); }
.muted { color: var(--muted); }

/* buttons */
.cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-h); box-shadow: 0 10px 34px -10px rgba(124, 58, 237, .8); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* highlighter status */
.mark { position: relative; z-index: 0; display: inline-block; padding: 0 9px; font: 700 12px/1.75 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #0b0a10; white-space: nowrap; }
.mark::before { content: ""; position: absolute; inset: 1px -3px; z-index: -1; background: var(--mk, #8f8aa8); border-radius: 3px 8px 4px 9px / 7px 3px 8px 4px; transform: skewX(-9deg) rotate(-1.4deg); }
.mark .det { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .72; margin-left: 5px; }
.mark[data-state="online"] { --mk: var(--green); }
.mark[data-state="offline"] { --mk: var(--red); }
.mark[data-state="working"] { --mk: var(--gold); }
.mark[data-state="loading"]::before { animation: pulse 1.2s ease-in-out infinite; }
.mark.swipe::before { animation: swipe .55s var(--ease); }
@keyframes swipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pulse { 50% { opacity: .45; } }

/* hero */
.hero { min-height: calc(100svh - 64px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px); max-width: 1280px; margin: 0 auto; padding: clamp(24px, 5vh, 64px) clamp(16px, 6vw, 96px); }
.hero-logo img { width: min(100%, 440px); margin: auto; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 30px 90px rgba(124, 58, 237, .38)); }
@keyframes float { 50% { transform: translateY(-12px) rotate(1deg); } }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(13, 11, 22, .6); transition: border-color .2s; }
.live:hover { border-color: var(--line-2); }
.live-name { color: var(--text); font-weight: 500; }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(72px, 12vh, 128px) clamp(16px, 5vw, 48px); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head > p:last-child { color: var(--muted); }
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }

/* servers */
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.server { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 10, 20, .82); transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.server:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(124, 58, 237, .5); }
.server-art { align-self: start; aspect-ratio: 1; display: grid; place-items: center; background: #07060c; border: 1px solid var(--line); border-radius: 14px; }
.server-art img { width: 78%; transition: transform .6s var(--ease); }
.server:hover .server-art img { transform: translateY(-5px) rotate(-4deg); }
.server-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.server-tag { color: var(--muted); margin: 4px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 16px; }
.chips li { font: 500 12px var(--mono); color: var(--purple-2); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 999px; }
.server-desc { color: var(--soft); font-size: 15px; margin-bottom: 14px; }
.feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.feats li { display: flex; align-items: baseline; gap: 10px; }
.feats li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg) translateY(-2px); }
.server-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.players { font-size: 14px; color: var(--muted); }
.players b { color: var(--text); font: 600 18px var(--display); }
.ip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #07060c; cursor: pointer; transition: border-color .2s, transform .15s; }
.ip:hover { border-color: var(--purple); }
.ip:active { transform: scale(.98); }
.ip code { font: 500 13px var(--mono); color: var(--text); }
.ip span { font-size: 12px; font-weight: 600; background: var(--purple); color: #fff; padding: 5px 10px; border-radius: 7px; transition: background .2s, color .2s; }
.ip.ok span { background: var(--green); color: #06140b; }
.server.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 240px; border-style: dashed; background: transparent; color: var(--muted); }
.server.soon:hover { transform: none; box-shadow: none; }
.soon-hex { width: 64px; height: 72px; clip-path: var(--hex); background: var(--line-2); display: grid; place-items: center; margin-bottom: 10px; }
.soon-hex::after { content: "+"; display: grid; place-items: center; width: 60px; height: 68px; clip-path: var(--hex); background: var(--bg); color: var(--dim); font: 600 26px var(--display); }
.soon h3 { color: var(--text); font-size: 18px; }
.soon p { max-width: 34ch; font-size: 14px; }

/* launcher */
.launcher { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feat-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; }
.feat-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--soft); font-size: 15px; }
.feat-list li::before { content: ""; width: 10px; height: 11px; margin-top: 7px; background: var(--purple-2); clip-path: var(--hex); }

.mock { container-type: inline-size; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2); background-color: #000;
  background-image:
    radial-gradient(circle at 8% 22%, #fff 0 .6px, transparent 1.4px), radial-gradient(circle at 19% 61%, #fff 0 .6px, transparent 1.4px),
    radial-gradient(circle at 27% 34%, #fff 0 .5px, transparent 1.2px), radial-gradient(circle at 33% 82%, #fff 0 .6px, transparent 1.4px),
    radial-gradient(circle at 44% 14%, #fff 0 .5px, transparent 1.2px), radial-gradient(circle at 58% 27%, #fff 0 .6px, transparent 1.4px),
    radial-gradient(circle at 66% 71%, #fff 0 .5px, transparent 1.2px), radial-gradient(circle at 74% 42%, #fff 0 .6px, transparent 1.4px),
    radial-gradient(circle at 83% 19%, #fff 0 .5px, transparent 1.2px), radial-gradient(circle at 91% 58%, #fff 0 .6px, transparent 1.4px),
    radial-gradient(circle at 87% 86%, #fff 0 .5px, transparent 1.2px), radial-gradient(circle at 12% 88%, #fff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 52% 52%, rgba(124, 58, 237, .14), transparent 45%);
  box-shadow: 0 40px 120px -40px rgba(124, 58, 237, .45); }
.mock-top { position: absolute; top: 0; left: 15%; right: 15%; height: 15%; display: flex; justify-content: center; align-items: center; gap: 1.1cqw; background: #0c0c11; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); }
.mhx { width: 5.6cqw; height: 6.3cqw; border: 0; clip-path: var(--hex); background: #16161d; color: #5d5975; font: 600 1.6cqw var(--display); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.mhx:hover { background: #221d36; color: var(--soft); }
.mhx.on { background: #2a2147; }
.mhx img { width: 68%; }
.mhx.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(.6cqw); } }
.mock-center { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.mock-count { height: 4cqw; font: 500 1.7cqw/4cqw var(--mono); color: var(--gold); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.mock.waking .mock-count, .mock.joining .mock-count { opacity: 1; }
.cube-wrap { position: relative; width: 22cqw; height: 22cqw; display: grid; place-items: center; perspective: 70cqw; cursor: help; border-radius: 2cqw; }
.cube { position: relative; width: 11cqw; height: 11cqw; transform-style: preserve-3d; animation: spin 18s linear infinite; }
.cube i { position: absolute; inset: 0; background: #15111f; border: .25cqw solid #2c2747; box-shadow: inset 0 0 0 1cqw #15111f, inset 0 0 0 1.25cqw rgba(232, 182, 76, .75); }
.cube i:nth-child(1) { transform: translateZ(5.5cqw); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(5.5cqw); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(5.5cqw); background: #110e1b; box-shadow: inset 0 0 0 1cqw #110e1b, inset 0 0 0 1.25cqw rgba(124, 58, 237, .9); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(5.5cqw); background: #1a1529; box-shadow: inset 0 0 0 1cqw #1a1529, inset 0 0 0 1.25cqw rgba(167, 139, 250, .85); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(5.5cqw); background: #2a2240; }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(5.5cqw); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.cube-wrap:hover .cube, .cube-wrap:focus .cube { animation-play-state: paused; }
.mock-tip { position: absolute; left: 88%; top: 8%; z-index: 2; width: 31cqw; padding: 1.6cqw 1.9cqw; background: rgba(12, 10, 20, .95); border: 1px solid var(--line-2); border-radius: 1.3cqw; font-size: 1.45cqw; line-height: 1.55; text-align: left; opacity: 0; transform: translateX(-1cqw); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.cube-wrap:hover .mock-tip, .cube-wrap:focus .mock-tip { opacity: 1; transform: none; }
.tip-title { font: 600 1.5cqw var(--display); color: var(--gold); margin-bottom: .8cqw; }
.mock-tip dl { display: grid; grid-template-columns: 1fr auto; gap: .35cqw 1.6cqw; }
.mock-tip dt { color: var(--muted); }
.mock-tip dd { color: var(--text); font-weight: 600; text-align: right; }
.mock-name { font: 600 2.7cqw var(--display); margin-top: .2cqw; }
.mock-play, .mock-menu { position: absolute; top: 55%; width: 10cqw; height: 11.3cqw; border: 0; clip-path: var(--hex); background: #121218; font: 700 1.9cqw var(--display); letter-spacing: .08em; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.mock-play { left: 18%; }
.mock-menu { right: 18%; }
.mock-play:hover { background: var(--purple); transform: scale(1.06); }
.mock-menu:hover { background: #221d36; transform: scale(1.06); }
.mock-play:active, .mock-menu:active { transform: scale(.96); }
.mock-menu span { display: block; width: 4.4cqw; height: .75cqw; margin: .6cqw auto; background: var(--text); border-radius: 1cqw; }
.mock-drop { position: absolute; top: 17%; right: 5%; z-index: 3; width: 27cqw; list-style: none; padding: 1cqw; background: rgba(12, 10, 20, .97); border: 1px solid var(--line-2); border-radius: 1.3cqw; opacity: 0; transform: translateY(-1cqw); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.mock.menu-open .mock-drop { opacity: 1; transform: none; pointer-events: auto; }
.mock-drop li { padding: .9cqw 1.3cqw; border-radius: .8cqw; font-size: 1.55cqw; color: var(--soft); cursor: default; }
.mock-drop li:hover { background: #1d1830; color: var(--text); }
.mock-bottom { position: absolute; bottom: 0; left: 18%; right: 18%; height: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5cqw; background: #0c0c11; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.mock-bottom .count { font: 700 2.7cqw/1 var(--display); }
.mock-bottom .row { display: flex; gap: 1.4cqw; align-items: center; font-size: 1.45cqw; color: var(--muted); }
.mock .mark { font-size: 1.25cqw; }
.hint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--dim); }

/* studio */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 10, 20, .7); transition: border-color .25s, transform .35s var(--ease); }
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar h3 { font-size: 18px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 15px; }
.ic { display: block; width: 30px; height: 34px; margin-bottom: 18px; clip-path: var(--hex); background: var(--purple); }
.ic-gold { background: var(--gold); }
.ic-soft { background: var(--purple-2); }
.contact { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: var(--muted); font-size: 15px; }

/* footer + toast */
.foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 5vw, 48px) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; align-content: center; gap: 8px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(42vw, 200px); }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; margin-top: 26px; }
  .live { margin-top: 24px; }
  .launcher { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .links { display: none; }
  .lang { margin-left: auto; }
  .server { grid-template-columns: 1fr; }
  .server-art { width: 96px; }
  .feats { grid-template-columns: 1fr; }
  .ip code { font-size: 12px; }
  h1 { margin: 10px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; }
}
