/* AELORU website. Layout after norisk.gg, tokens from the client (core/data/ui/client.css). */
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(fonts/chakra-petch-latin-600.ttf); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(fonts/chakra-petch-latin-700.ttf); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500.ttf); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600.ttf); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700.ttf); }

:root {
  --bg: #06080f; --panel: #12162b; --rail: #0d1124; --card: #181d36; --card-hi: #1f2545; --field: #0d1124;
  --line: rgba(255,255,255,.08); --text: #e9ecff; --muted: #8d95bd; --faint: #5d6488;
  --accent: #5ef2c6; --violet: #8b7bff; --ink: #06110d;
  --a10: rgba(94,242,198,.10); --a16: rgba(94,242,198,.16); --a50: rgba(94,242,198,.5);
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 14px; height: 14px; }

/* logo ring (same as launcher) */
.ring { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(45deg, var(--accent), var(--violet)); flex: none; }
.ring.s { width: 22px; height: 22px; }
.hole { width: 58%; height: 58%; border-radius: 50%; background: var(--bg); }
.m-rail .hole { background: var(--rail); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; font-weight: 700; padding: 12px 22px; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, background .15s; }
.btn.primary { background: var(--accent); color: var(--ink); border-color: transparent; box-shadow: 0 6px 28px rgba(94,242,198,.28), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(94,242,198,.38), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn.sm { padding: 9px 18px; font-size: 14px; border-radius: 999px; }
.btn.big { padding: 16px 28px; font-size: 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6,8,15,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.navin { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.bname { font: 700 21px var(--display); letter-spacing: .14em; }
.links { display: flex; gap: 28px; flex: 1; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }

/* headings: first line white, second line in the accent gradient */
.h-big, .h-sec { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.04; letter-spacing: -.01em; }
.h-big { font-size: clamp(44px, 5vw, 72px); }
.h-sec { font-size: clamp(34px, 4vw, 54px); }
.hl { display: block; background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* hero */
.hero { position: relative; margin-top: -72px; padding-top: 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(img/hero.webp) center 30% / cover; filter: blur(3px) saturate(.8); transform: scale(1.04); opacity: .32; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 45%, rgba(139,123,255,.22), transparent 70%), linear-gradient(180deg, rgba(6,8,15,.5), var(--bg) 92%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; min-height: 640px; padding: 70px 0 40px; }
.lede { font-size: 18px; color: var(--muted); max-width: 30em; margin: 26px 0 32px; }
.sub { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; width: max-content; }
.stats { position: relative; text-align: center; color: var(--muted); font-size: 18px; margin: 10px 0 0; padding: 26px 0 90px; }
.stats b { font: 700 36px var(--display); color: var(--text); margin: 0 6px 0 14px; vertical-align: -4px; }
.stats b:first-child { margin-left: 0; }

/* hero mockup: the in-game menu */
.mock-wrap { perspective: 1400px; }
.mock { display: flex; gap: 8px; padding: 10px; height: 430px; border-radius: 22px; background: rgba(13,17,36,.72); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.03), 0 0 90px rgba(139,123,255,.18);
  transform: rotateY(-11deg) rotateX(5deg); transform-origin: left center; transition: transform .5s; }
.mock:hover { transform: rotateY(-4deg) rotateX(2deg); }
.m-rail { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; background: var(--rail); border: 1px solid var(--line); border-radius: 14px; }
.m-rail .ring { margin-bottom: 14px; }
.m-ri { width: 50px; height: 50px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font: 700 8.5px var(--body); letter-spacing: .5px; text-transform: uppercase; }
.m-ri .ico { width: 17px; height: 17px; }
.m-ri.on { background: var(--a10); color: var(--accent); }
.m-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.m-tabs { display: flex; gap: 4px; }
.tab { border: 1px solid transparent; background: none; padding: 5px 10px; border-radius: 8px; font: 700 10.5px var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); border-color: var(--a50); background: var(--a10); }
.m-search { display: flex; align-items: center; gap: 6px; width: 140px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); color: var(--faint); }
.m-search:focus-within { border-color: var(--a50); }
.m-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 12px; color: var(--text); }
.m-cards { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; padding: 2px 14px 12px; scrollbar-width: thin; scrollbar-color: var(--card-hi) transparent; }
.m-foot { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--line); font: 600 10px var(--display); letter-spacing: 1.4px; color: var(--faint); }
.m-foot > span:last-child { font: 600 11px var(--body); letter-spacing: 0; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--a50); }
.card { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; }
.card:hover { background: var(--card-hi); }
.card.on { background: linear-gradient(180deg, rgba(94,242,198,.11), rgba(94,242,198,.05)); border-color: rgba(94,242,198,.32); }
.tile { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--field); color: var(--muted); }
.card.on .tile { color: var(--accent); background: var(--a16); }
.tile .ico { width: 17px; height: 17px; }
.cbody { flex: 1; min-width: 0; }
.cbody b { display: block; font: 700 12.5px var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbody small { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.switch { width: 30px; height: 17px; flex: none; border-radius: 9px; background: var(--field); border: 1px solid var(--line); position: relative; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--faint); transition: transform .15s, background .15s; }
.card.on .switch { background: var(--accent); border-color: transparent; }
.card.on .switch::after { transform: translateX(13px); background: var(--ink); }
.m-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 20px 4px; }

/* sections */
.sec { padding: 110px 0; }
.sec + .sec { border-top: 1px solid rgba(255,255,255,.04); }

/* feature tabs */
.ftabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; margin: 46px auto 0; border-bottom: 1px solid var(--line); width: max-content; max-width: 100%; }
.ftab { position: relative; border: 0; background: none; padding: 10px 2px 14px; cursor: pointer; color: var(--muted); font-size: 16px; }
.ftab:hover { color: var(--text); }
.ftab[aria-selected="true"] { color: var(--text); }
.ftab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.ftext { max-width: 36em; margin: 28px auto 36px; text-align: center; font-size: 18px; color: var(--muted); min-height: 3.2em; }
.shot { margin: 0 auto; max-width: 1040px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 100px rgba(94,242,198,.08); background: var(--panel); }
.shot img, .lwin img { width: 100%; transition: opacity .2s; }
.fade { opacity: 0; }

/* launcher */
.launch { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
.launch .h-sec { font-size: clamp(34px, 3.3vw, 46px); }
.acc { margin-top: 40px; display: grid; gap: 6px; }
.acc button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid var(--line); padding: 14px 20px; cursor: pointer; color: var(--muted); font-size: 16px; }
.acc button:hover { color: var(--text); }
.acc button[aria-expanded="true"] { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(94,242,198,.07), transparent); color: var(--text); }
.acc button span { display: none; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.acc button[aria-expanded="true"] span { display: block; }
.lwin { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(94,242,198,.28); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.55), 0 0 70px rgba(94,242,198,.12); }

/* news */
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.sechead p { margin: 0; max-width: 24em; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.post { padding: 24px; border-radius: 18px; background: linear-gradient(180deg, #11152a, #0c0f1e); border: 1px solid var(--line); }
.post.lead { grid-column: 1 / -1; }
.meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--a10); color: var(--accent); }
.tag.Fix { background: rgba(139,123,255,.14); color: #b3a8ff; }
.post h3 { font: 700 20px/1.25 var(--display); margin: 14px 0 10px; }
.post.lead h3 { font-size: 26px; }
.post p { margin: 0; color: var(--muted); font-size: 14.5px; }
.more { display: block; margin: 30px auto 0; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; color: var(--text); cursor: pointer; }
.more:hover { border-color: var(--a50); }

/* faq */
.lead2 { margin: 18px 0 40px; font-size: 17px; }
.faq { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.qa { display: grid; gap: 12px; }
.q { border-radius: 16px; background: #0d1020; border: 1px solid var(--line); transition: border-color .15s; }
.q.open { border-color: rgba(94,242,198,.35); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 700; font-size: 16.5px; }
.pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: background .15s, transform .2s; }
.q.open .pm { background: var(--accent); color: var(--ink); transform: rotate(45deg); border-color: transparent; }
.q .ans { display: none; margin: 0 22px; padding: 16px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.q.open .ans { display: block; }
.side { display: grid; gap: 16px; }
.scard { position: relative; overflow: hidden; display: block; padding: 24px; border-radius: 18px; background: #0d1020; border: 1px solid var(--line); transition: border-color .15s; }
.scard:hover { border-color: rgba(94,242,198,.35); }
.sico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.scard h3 { font: 700 20px var(--display); margin: 18px 0 6px; }
.scard p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; max-width: 26em; }
.slink { color: var(--accent); font-weight: 700; font-size: 14.5px; }
.bigico { position: absolute; right: -14px; bottom: -18px; width: 110px; height: 110px; fill: none; stroke: rgba(255,255,255,.05); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* final cta */
.cta { background: radial-gradient(50% 60% at 50% 40%, rgba(139,123,255,.13), transparent 70%); }
.kicker { font: 700 16px var(--display); letter-spacing: .03em; color: var(--accent); margin: 0 0 18px; }
.cta .muted { max-width: 34em; margin: 22px auto 34px; font-size: 17px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 56px auto 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 66px; border-radius: 16px; background: #0d1020; border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--a10); color: var(--accent); font: 700 15px var(--display); }
.steps b { color: var(--text); display: block; margin-bottom: 4px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.fin { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.fin p { max-width: 26em; font-size: 14.5px; }
.fin h3 { font: 700 14px var(--display); letter-spacing: .08em; margin: 4px 0 14px; }
.fin nav a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.fin nav a:hover { color: var(--text); }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.04); font-size: 13px; color: var(--faint); }

/* responsive */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 50px; }
  .mock { transform: none; }
  .launch { grid-template-columns: 1fr; gap: 30px; }
  .news { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .links { display: none; }
  .navin { justify-content: space-between; }
  .wrap { width: calc(100% - 32px); }
  .sec { padding: 76px 0; }
  .mock { height: 380px; }
  .m-rail { display: none; }
  .m-cards { grid-template-columns: 1fr; }
  .m-search { display: none; }
  .stats { font-size: 16px; padding-bottom: 60px; }
  .stats b { font-size: 28px; }
  .ftabs { gap: 2px 18px; }
  .ftab { font-size: 14.5px; }
  .news, .steps { grid-template-columns: 1fr; }
  .post.lead { grid-column: auto; }
  .fin { grid-template-columns: 1fr 1fr; }
  .fin > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
