:root {
    --bg: #090b10;
    --bg-soft: #10141b;
    --panel: rgba(17, 21, 29, .88);
    --panel-solid: #141922;
    --line: rgba(255, 255, 255, .11);
    --text: #f5f1e8;
    --muted: #9ca5b4;
    --gold: #d9b36c;
    --gold-light: #f1d596;
    --crimson: #bd3f3f;
    --crimson-light: #e16758;
    --cyan: #4ba8b5;
    --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: linear-gradient(180deg, rgba(4,6,9,.72), rgba(4,6,9,.12));
    backdrop-filter: blur(7px);
}
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
    width: 42px; height: 48px; display: grid; place-items: center;
    color: var(--gold-light); font: 700 25px/1 Georgia, serif;
    border: 1px solid rgba(217,179,108,.58);
    clip-path: polygon(50% 0, 94% 18%, 84% 77%, 50% 100%, 16% 77%, 6% 18%);
    background: linear-gradient(145deg, rgba(189,63,63,.35), rgba(75,168,181,.12));
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font: 600 23px/1 Georgia, serif; letter-spacing: .04em; }
.brand-copy small { margin-top: 7px; color: #8e96a2; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { color: #c9ced5; font-size: 14px; transition: color .2s ease; }
.main-nav a:hover { color: var(--gold-light); }

.button {
    min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: 3px; cursor: pointer;
    font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    color: #fff; background: linear-gradient(135deg, #a83038, #d35a4d);
    border-color: rgba(255,190,150,.18); box-shadow: 0 12px 35px rgba(161,37,43,.28);
}
.button-primary:hover { box-shadow: 0 16px 42px rgba(192,54,55,.4); }
.button-ghost { color: #e7ddca; border-color: rgba(217,179,108,.42); background: rgba(9,11,16,.35); }
.button-ghost:hover { border-color: var(--gold); background: rgba(217,179,108,.08); }
.button-compact { min-height: 42px; padding-inline: 18px; font-size: 11px; }
.button-link { padding-inline: 5px; color: #d9dce1; font-size: 12px; }
.button-link span { margin-left: 10px; color: var(--gold); font-size: 19px; }
.button-full { width: 100%; }

.hero { min-height: 860px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 142px 0 110px; }
.hero-art { position: absolute; inset: 0; background: url('/assets/home/neverworlds-hero-v1.png') center/cover no-repeat; transform: scale(1.012); }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,6,10,.22) 0%, rgba(4,6,10,.12) 40%, rgba(4,6,10,.65) 72%, rgba(4,6,10,.88) 100%),
        linear-gradient(180deg, rgba(4,6,9,.2), rgba(4,6,9,.08) 55%, #090b10 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) 420px; align-items: center; gap: 90px; }
.hero-copy { max-width: 660px; padding-top: 52px; text-shadow: 0 2px 24px rgba(0,0,0,.56); }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }
.hero h1 { margin: 0; max-width: 650px; font: 500 clamp(54px, 6vw, 84px)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lead { max-width: 570px; margin: 30px 0 34px; color: #c8cdd4; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.hero-note { margin-top: 27px; color: #969eaa; font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #62b29e; box-shadow: 0 0 0 4px rgba(98,178,158,.12); }

.login-card {
    position: relative; padding: 42px 42px 34px; overflow: hidden;
    border: 1px solid rgba(217,179,108,.27); border-radius: 6px;
    background: linear-gradient(155deg, rgba(22,26,34,.94), rgba(11,14,20,.91));
    box-shadow: 0 32px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(15px);
}
.login-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; }
.card-rune { position: absolute; top: 27px; right: 32px; color: rgba(217,179,108,.45); font-size: 31px; }
.card-kicker { margin: 0 0 8px; color: var(--crimson-light); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-card h2 { margin: 0; font: 500 32px/1.2 Georgia, serif; }
.card-subtitle { margin: 8px 0 27px; color: var(--muted); font-size: 13px; }
.login-form label { display: block; margin-bottom: 17px; }
.login-form label > span:first-child { display: block; margin-bottom: 8px; color: #bdc3cc; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field-wrap { position: relative; display: block; }
.field-wrap svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #737d89; stroke-width: 1.5; }
.field-wrap input {
    width: 100%; height: 52px; padding: 0 15px 0 46px; color: #f4f1ea; outline: 0;
    border: 1px solid rgba(255,255,255,.13); border-radius: 3px; background: rgba(4,7,11,.66);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field-wrap input::placeholder { color: #626b77; }
.field-wrap input:focus { border-color: rgba(217,179,108,.68); box-shadow: 0 0 0 3px rgba(217,179,108,.08); }
.login-form .button { margin-top: 6px; }
.login-links { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 15px; color: #969ea9; font-size: 12px; }
.login-links span { width: 1px; height: 13px; background: #3f4650; }
.login-links a:hover { color: var(--gold-light); }
.login-alert, .referral-note { margin: 0 0 17px; padding: 11px 13px; border-radius: 3px; font-size: 12px; }
.login-alert { display: flex; flex-direction: column; border: 1px solid rgba(209,83,77,.45); background: rgba(151,41,42,.15); }
.login-alert strong { color: #ff8b7b; }
.login-alert span { color: #e3c0ba; }
.login-alert-notice, .referral-note { border: 1px solid rgba(75,168,181,.35); background: rgba(75,168,181,.1); color: #acd5da; }
.scroll-hint { position: absolute; z-index: 3; bottom: 38px; left: 50%; transform: translateX(-50%); color: #707986; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint span { width: 1px; height: 30px; margin: 0 auto 9px; display: block; background: linear-gradient(var(--gold), transparent); }

.world-stats { position: relative; z-index: 5; margin-top: -2px; border-block: 1px solid var(--line); background: #0c0f15; }
.stats-grid { min-height: 142px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid article { display: flex; align-items: center; justify-content: center; gap: 18px; border-right: 1px solid var(--line); }
.stats-grid article:first-child { border-left: 1px solid var(--line); }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(217,179,108,.28); transform: rotate(45deg); }
.stat-icon::first-letter { transform: rotate(-45deg); }
.stat-live { color: #69b9a6; }
.stats-grid article div { display: flex; flex-direction: column; }
.stats-grid strong { font: 500 29px/1 Georgia, serif; }
.stats-grid small { margin-top: 8px; color: #7f8895; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.section { padding: 116px 0; }
.features { background: radial-gradient(circle at 50% -15%, rgba(75,168,181,.08), transparent 35%), #0b0e13; }
.section-heading { max-width: 700px; margin: 0 auto 58px; text-align: center; }
.eyebrow.centered { justify-content: center; }
.section-heading h2, .callout h2 { margin: 0; font: 500 clamp(38px, 4.4vw, 58px)/1.1 Georgia, serif; }
.section-heading > p:last-child { max-width: 600px; margin: 21px auto 0; color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.feature-card {
    min-height: 285px; position: relative; padding: 38px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(145deg, #141922, #10141b);
    transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(217,179,108,.34); }
.feature-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; bottom: -85px; border: 1px solid rgba(217,179,108,.09); transform: rotate(45deg); }
.feature-card-large { grid-row: span 2; min-height: 586px; padding-top: 64px; background: linear-gradient(150deg, rgba(139,41,45,.19), transparent 48%), #141922; }
.feature-card-wide { grid-column: span 2; min-height: 285px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 25px; align-items: center; }
.feature-number { position: absolute; top: 24px; right: 27px; color: #434b57; font: 500 12px Georgia, serif; }
.feature-glyph { width: 60px; height: 60px; margin-bottom: 28px; display: grid; place-items: center; color: var(--gold-light); font-size: 25px; border: 1px solid rgba(217,179,108,.3); background: rgba(217,179,108,.05); }
.feature-card h3 { margin: 0 0 15px; font: 500 27px/1.2 Georgia, serif; }
.feature-card p { margin: 0; color: #929ba7; font-size: 14px; line-height: 1.75; }
.feature-tag { position: absolute; bottom: 30px; left: 38px; color: var(--crimson-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.project-links { background: radial-gradient(circle at 50% 10%, rgba(217,179,108,.06), transparent 35%), #090b10; }
.project-link-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.project-link-grid .project-link-card { padding-inline: 30px; }
.project-link-card { min-height: 230px; padding: 38px; display: grid; grid-template-columns: 42px 1fr auto; gap: 25px; align-items: start; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(145deg, #141922, #10141b); transition: transform .25s ease, border-color .25s ease; }
.project-link-card:hover { transform: translateY(-4px); border-color: rgba(217,179,108,.4); }
.project-link-number { color: var(--gold); font: 500 12px Georgia, serif; }
.project-link-card small { color: var(--crimson-light); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-link-card h3 { margin: 12px 0 10px; font: 500 29px/1.15 Georgia, serif; }
.project-link-card p { margin: 0; color: #929ba7; font-size: 13px; line-height: 1.7; }
.project-link-card b { color: var(--gold); font-size: 25px; font-weight: 400; }

.callout { padding-top: 35px; background: #0b0e13; }
.callout-inner { padding: 68px 70px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border: 1px solid rgba(217,179,108,.24); background: linear-gradient(100deg, rgba(123,33,38,.22), rgba(11,14,19,.2) 48%, rgba(75,168,181,.1)); }
.callout-inner > div:first-child { max-width: 650px; }
.callout h2 { font-size: 44px; }
.callout p:last-child { margin: 17px 0 0; color: var(--muted); }
.callout-actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

.site-footer { border-top: 1px solid var(--line); background: #080a0e; }
.footer-inner { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #6f7884; font-size: 11px; }
.brand-small { min-width: 190px; }
.brand-small .brand-mark { width: 34px; height: 39px; font-size: 19px; }
.brand-small .brand-copy strong { color: #d9d7d1; font-size: 18px; }
.footer-inner > div { display: flex; gap: 24px; }
.footer-inner a:hover { color: var(--gold-light); }

@media (max-width: 1020px) {
    .main-nav { display: none; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr 380px; gap: 40px; }
    .hero h1 { font-size: 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .project-link-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid article { min-height: 120px; border-bottom: 1px solid var(--line); }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card-large { grid-row: auto; min-height: 330px; }
    .feature-card-wide { grid-column: span 2; }
}

@media (max-width: 760px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .header-inner { height: 74px; }
    .header-inner > .button { display: none; }
    .brand { min-width: 0; }
    .brand-copy strong { font-size: 20px; }
    .hero { padding: 118px 0 86px; }
    .hero-art { background-position: 34% center; }
    .hero-shade { background: linear-gradient(180deg, rgba(5,7,10,.3), rgba(5,7,10,.78) 44%, #090b10 82%); }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-copy { padding-top: 45px; text-align: center; }
    .eyebrow { justify-content: center; }
    .hero h1 { font-size: clamp(45px, 14vw, 64px); }
    .hero-lead { margin-inline: auto; font-size: 16px; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-note { line-height: 1.7; }
    .login-card { width: 100%; max-width: 440px; margin-inline: auto; padding: 34px 25px 28px; }
    .scroll-hint { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid article { min-height: 112px; padding: 16px 10px; gap: 13px; }
    .stat-icon { width: 35px; height: 35px; }
    .stats-grid strong { font-size: 24px; }
    .stats-grid small { font-size: 8px; }
    .section { padding: 82px 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card, .feature-card-large, .feature-card-wide { grid-column: auto; min-height: 300px; display: block; }
    .feature-card-wide p { margin-top: 0; }
    .project-link-grid { grid-template-columns: 1fr; }
    .project-link-card { min-height: auto; padding: 28px 23px; grid-template-columns: 28px 1fr auto; gap: 13px; }
    .callout { padding-top: 10px; }
    .callout-inner { padding: 48px 25px; flex-direction: column; align-items: flex-start; }
    .callout h2 { font-size: 37px; }
    .callout-actions { width: 100%; }
    .footer-inner { padding: 36px 0; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
