/* The look of iolaris.com, taken from hawd.ng (whose reports under /reports/ use it too). */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050505;
    --panel: #0d0d0d;
    --panel-2: #121212;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --grey: #8a8a8a;
    --grey-dark: #4a4a4a;
    --white: #f2f2f2;
    --blue: #409cff;
    --blue-dim: rgba(64, 156, 255, 0.15);
    --blue-glow: rgba(64, 156, 255, 0.35);
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }

.accent { color: var(--blue); }

.mono {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

/* ---------- Background circuit canvas ---------- */
.circuit-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.circuit-canvas { width: 100%; height: 100%; display: block; }

main, nav, footer { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 26px; width: auto; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    color: var(--grey);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary { background: var(--blue); color: #030d1a; border: none; }
.btn-primary:hover { background: #8cc4ff; box-shadow: 0 0 40px var(--blue-glow); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 11px 20px; font-size: 11px; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 48px 80px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 10%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(64, 156, 255, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 13, 13, 0.8);
    margin-bottom: 36px;
    color: var(--grey);
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.hero h1 {
    font-size: clamp(44px, 6.2vw, 92px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -3px;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--grey-dark);
}

.hero p.lead {
    font-size: 20px;
    color: var(--grey);
    max-width: 620px;
    margin-bottom: 44px;
    font-weight: 300;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hero-meta div { color: var(--grey); }
.hero-meta strong {
    display: block;
    color: var(--white);
    font-family: var(--sans);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    margin-top: 4px;
}

/* ---------- Section scaffolding ---------- */
section { padding: 120px 48px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blue);
    margin-bottom: 20px;
}
.section-label::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--blue);
}

.section-title {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.section-sub { color: var(--grey); font-size: 18px; max-width: 560px; font-weight: 300; }

/* ---------- Featured game ---------- */
.game { background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.85) 15%, rgba(13, 13, 13, 0.85) 85%, transparent); }

.game-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 64px;
}

.arena-frame {
    position: relative;
    border: 1px solid var(--line-strong);
    background: #07080b;
    padding: 10px;
}
.arena-frame::before, .arena-frame::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border-color: var(--blue);
    border-style: solid;
}
.arena-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.arena-frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.arena {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.arena video { width: 100%; height: 100%; display: block; object-fit: cover; background: #07080b; }
.arena::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 18%, transparent 80%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.hud { z-index: 1; }

/* Hero key art */
.hero-top {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-art { position: relative; }
.hero-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hero-art .arena-frame { padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(64,156,255,0.06); }
.hero-art-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--grey);
}

.hud {
    position: absolute;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    pointer-events: none;
}
.hud-tl { top: 12px; left: 14px; color: var(--white); font-weight: 700; }
.hud-tr { top: 12px; right: 14px; display: flex; align-items: center; gap: 8px; color: var(--blue); }
.hud-bl { bottom: 12px; left: 14px; }
.hud-br { bottom: 12px; right: 14px; }

.game-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 20px;
}
.game-title span { color: var(--blue); }

.game-desc { color: var(--grey); font-size: 17px; margin-bottom: 32px; font-weight: 300; }

.spec-list { list-style: none; margin-bottom: 40px; border-top: 1px solid var(--line); }
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.spec-list li .mono { color: var(--grey); font-size: 11px; padding-top: 3px; }

.platform-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--grey);
}

/* ---------- Story timeline ---------- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}
.story-intro { position: sticky; top: 120px; }

.timeline { list-style: none; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(var(--blue), var(--line) 70%);
}
.timeline li { position: relative; padding: 0 0 56px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 15px; height: 15px;
    background: var(--bg);
    border: 1px solid var(--grey-dark);
    transform: rotate(45deg);
}
.timeline li.done::before { border-color: var(--blue); background: var(--blue-dim); }
.timeline li.now::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 18px var(--blue-glow); }

.timeline .step { color: var(--blue); margin-bottom: 8px; display: block; }
.timeline .step .num { margin-right: 8px; }
.timeline li.next .step { color: var(--grey); }
.timeline h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.timeline p { color: var(--grey); font-size: 16px; max-width: 520px; }

/* ---------- Principles ---------- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 64px;
}
.principle {
    background: rgba(10, 10, 10, 0.92);
    padding: 44px 36px;
    transition: background 0.25s ease;
}
.principle:hover { background: rgba(17, 19, 24, 0.95); }
.principle .idx { color: var(--grey-dark); margin-bottom: 40px; display: block; }
.principle:hover .idx { color: var(--blue); }
.principle h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: -0.3px; }
.principle p { color: var(--grey); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; }
.cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 48px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 8, 8, 0.9);
    position: relative;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: var(--blue);
    box-shadow: 0 0 24px var(--blue);
}
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--grey); font-size: 18px; max-width: 520px; margin: 0 auto 40px; font-weight: 300; }
.cta .hero-buttons { justify-content: center; }

/* ---------- Footer ---------- */
footer {
    padding: 48px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg);
}
.footer-logo svg { height: 20px; width: auto; opacity: 0.7; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { color: var(--grey); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { color: var(--grey-dark); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Motion extras ---------- */
/* Headline: lines rise in once on load */
.hero h1 .line { display: block; overflow: hidden; padding: 0.04em 0; margin: -0.04em 0; }
.hero h1 .line-in {
    display: inline-block;
    transform: translateY(110%);
    animation: lineUp 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line:nth-child(2) .line-in { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) .line-in { animation-delay: 0.24s; }
.hero h1 .accent { animation: playFlash 1.4s ease-out 0.95s both; }
@keyframes lineUp { to { transform: none; } }
@keyframes playFlash {
    0% { text-shadow: 0 0 0 transparent; }
    25% { text-shadow: 0 0 48px var(--blue), 0 0 12px var(--blue); }
    100% { text-shadow: 0 0 0 transparent; }
}

/* Primary button: sheen on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.btn-primary:hover::after { animation: sheen 0.6s ease; }
@keyframes sheen { to { left: 130%; } }

/* Hero key art: gunsight that tracks the pointer and fires on click */
.hero-art .arena-frame {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.3s ease-out;
}
.arena-frame.aimable { cursor: none; }
.reticle {
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2;
}
.aiming .reticle { opacity: 1; }
.reticle svg {
    position: absolute;
    left: -40px; top: -40px;
    width: 80px; height: 80px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 6px var(--blue-glow));
}
.reticle .dot { fill: var(--blue); stroke: none; }
.fired .reticle svg { animation: reticleKick 0.28s ease-out; }
.fired img { animation: recoil 0.28s ease-out; }
.shot {
    position: absolute;
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 24px 6px var(--blue-glow), inset 0 0 8px #fff;
    pointer-events: none;
    z-index: 2;
    animation: shot 0.5s ease-out forwards;
}
@keyframes reticleKick { 30% { transform: scale(0.72) rotate(12deg); } }
@keyframes recoil { 20% { filter: brightness(1.7) contrast(1.1); transform: scale(1.012); } }
@keyframes shot { to { transform: scale(10); opacity: 0; border-color: var(--blue); } }

/* Story timeline: line fills as you scroll, up to the current step */
.timeline::after {
    content: '';
    position: absolute;
    left: 6px; top: 8px;
    width: 3px;
    height: var(--fill, 0px);
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue-glow);
}
.timeline li::before { z-index: 1; }
.timeline li.now::after {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 15px; height: 15px;
    border: 1px solid var(--blue);
    transform: rotate(45deg);
    opacity: 0;
}
.timeline li.now.reached::after { animation: ping 1.8s ease-out infinite; }
@keyframes ping {
    0% { opacity: 0.8; transform: rotate(45deg) scale(1); }
    100% { opacity: 0; transform: rotate(45deg) scale(2.8); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .game-grid, .story-grid, .hero-top { grid-template-columns: 1fr; gap: 48px; }
    .story-intro { position: static; }
    .principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 14px 16px; }
    .nav-links { display: none; }
    .hero { padding: 120px 16px 60px; }
    .hero h1 { letter-spacing: -1.5px; }
    .hero-meta { gap: 28px; margin-top: 56px; }
    section { padding: 80px 16px; }
    .cta-box { padding: 56px 20px; }
    footer { padding: 36px 16px; flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .hud { font-size: 9px; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .status-dot { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero h1 .line-in { transform: none; animation: none; }
    .hero h1 .accent, .btn-primary:hover::after, .timeline li.now.reached::after { animation: none; }
    .hero-art .arena-frame { transition: none; }
}
