/* Aion 2 Market — home page (index.html). Same tokens as the tracker's dark skin and its three themes. */
:root {
  --bg: #0b0e14; --panel: #11151d; --card: #161b26; --line: #232a38; --text: #e7ebf3; --dim: #8a94a7;
  --accent: #5b8cff; --accent-fill: #3d6be6; --kinah: #e3b54f; --up: #34d399; --wall: url(../bg/abyss.svg);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Marcellus', Georgia, serif;
  color-scheme: dark;
}
:root[data-theme="asmodian"] { --bg: #0e0a12; --panel: #15101b; --card: #1d1625; --line: #2e2337; --accent: #e879a9; --accent-fill: #c8326f; --wall: url(../bg/asmodian.svg); }
:root[data-theme="elyos"] { --bg: #ece2c8; --panel: #f6eedb; --card: #f8f1df; --line: #dccb9f; --text: #2b2414; --dim: #6c624b; --accent: #8a5a0c; --accent-fill: #8a5a0c; --kinah: #9a6b0e; --up: #1d7a4a; --wall: url(../bg/elyos.svg); color-scheme: light; }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }

/* header: same pills as the other pages */
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px 18px; padding: 14px 24px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1.5px #f0c43f; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--dim); padding: 6px 14px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--card) 85%, transparent); }
.top nav a:hover { color: var(--text); border-color: var(--accent); }
.top .go { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--card); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.top .btn { min-height: 38px; padding: 7px 16px; font-size: 14px; }

main { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* hero: pitch + live numbers on the left, the video on the right, wallpaper behind */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 48px 0 64px; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: -120px -50vw 0; background: var(--wall) center top / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.kicker { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.lead { margin: 0 0 28px; color: var(--dim); font-size: 19px; max-width: 34em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel) 88%, transparent); overflow: hidden; }
.live div { padding: 14px 16px; border-left: 1px solid var(--line); }
.live div:first-child { border-left: 0; }
.live dt { color: var(--dim); font-size: 13px; }
.live dd { margin: 2px 0 0; font-family: var(--display); font-size: 26px; white-space: nowrap; }
.live .up { color: var(--up); } .live .gold { color: var(--kinah); }
.server { margin: 10px 0 0; color: var(--dim); font-size: 14px; }
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.video figcaption { margin-top: 10px; color: var(--dim); font-size: 14px; text-align: center; }

/* sections */
h2 { font-size: 34px; margin: 0 0 20px; }
.features { padding: 24px 0 56px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, translate .15s; }
.card:hover { border-color: var(--accent); translate: 0 -3px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card h3 { margin: 16px 18px 6px; font-size: 24px; }
.card p { margin: 0 18px 18px; color: var(--dim); font-size: 15px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-bottom: 64px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel h2 { font-size: 28px; margin-bottom: 10px; }
.panel > p { color: var(--dim); margin: 0 0 18px; }
.cmds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmds li { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmds code { font: 600 15px var(--font); color: var(--accent); min-width: 7.5em; }
.cmds span { color: var(--text); font-size: 15px; }
.guild { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-fill) 22%, var(--card)), var(--card)); }

footer { max-width: 1280px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer p { margin: 0 0 8px; }
.langs { display: inline-flex; gap: 4px; }
.langs button { font: inherit; font-size: 13px; color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; min-height: 26px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: #fff; background: var(--accent-fill); border-color: var(--accent-fill); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 12px 16px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .top nav a { flex: none; }
  main, footer { padding-left: 16px; padding-right: 16px; }
  .live dd { font-size: 22px; }
  .live div { padding: 12px; }
  .grid { grid-template-columns: 1fr; }
  .lead { font-size: 17px; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { translate: none; } }
