/* ==========================================================================
   ORIGIN ROHAN · landing page (index.php)
   Builds on origin.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(100vh, 940px); padding-top: var(--header-h); overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: var(--ink-950) url('img/hero-rohan.jpg') 58% 28% / cover no-repeat; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 7, 6, .95) 0%, rgba(9, 7, 6, .78) 30%, rgba(9, 7, 6, .16) 56%, rgba(9, 7, 6, .7) 100%),
        linear-gradient(0deg, var(--ink-900) 0%, rgba(12, 9, 8, .55) 20%, transparent 46%),
        radial-gradient(ellipse at 62% 42%, rgba(127, 26, 42, .28), transparent 58%);
}
.hero-inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vh, 80px); }
.hero-copy { display: grid; justify-items: start; gap: 22px; max-width: 640px; }
.hero h1 { color: var(--text); font: 800 clamp(52px, 7.6vw, 108px)/.94 var(--font-display); letter-spacing: .015em; text-shadow: 0 6px 34px rgba(0, 0, 0, .65); }
.hero h1 em { display: block; margin-top: .22em; font-size: .46em; font-weight: 700; line-height: 1.1; letter-spacing: .16em; font-style: normal; color: var(--gold-300); background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 52%, #a67f3d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.hero .lead { max-width: 560px; color: #ded3c1; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-mirrors { color: var(--text-mute); font-size: 14px; border-bottom: 1px solid var(--line-strong); }
.hero-mirrors:hover { color: var(--gold-300); }

/* Account card */
.hero-account { display: grid; gap: 18px; padding: 30px 28px 26px; background: linear-gradient(180deg, rgba(27, 20, 16, .88), rgba(14, 10, 8, .92)); border-color: var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.hero-account > div { display: grid; gap: 18px; }
.account-head { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.account-head h2 { color: var(--text); font: 600 25px/1.2 var(--font-display); letter-spacing: .04em; overflow-wrap: anywhere; }
.account-head p { color: var(--text-mute); font-size: 15px; }
.account-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.account-links a { color: var(--text-soft); }
.account-links a:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }
.account-links a:first-child { color: var(--gold-300); font-weight: 600; }

/* Facts band */
.hero-facts-band { background: linear-gradient(180deg, rgba(12, 9, 8, .5), rgba(12, 9, 8, .86)); border-top: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-facts { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); }
.hero-facts > div { display: grid; align-content: center; gap: 6px; min-height: 104px; padding: 18px 26px; border-left: 1px solid var(--line); }
.hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dd { color: var(--gold-300); font: 700 34px/1 var(--font-display); letter-spacing: .03em; background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 55%, #a67f3d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-facts dt { color: var(--text-mute); font: 600 12px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.hero-fact-online { grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
.hero-facts .hero-fact-online dd { display: flex; align-items: center; gap: 14px; font-size: 46px; -webkit-text-fill-color: currentColor; background: none; }
.hero-fact-online dd strong { font-weight: 700; background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 55%, #a67f3d 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-fact-online dt { display: grid; gap: 5px; color: var(--text); }
.hero-fact-online dt small { color: var(--ok); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: grid; align-content: start; gap: 12px; padding: 30px 28px 28px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step::after { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--crimson-500), var(--gold-500) 55%, transparent); }
.step-num { width: max-content; min-width: 1.2em; color: var(--gold-300); font: 700 52px/1 var(--font-display); background: linear-gradient(180deg, #f8ebc8 0%, #dcbb78 55%, #8d6a30 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { color: var(--text); font: 600 21px/1.25 var(--font-display); letter-spacing: .04em; }
.step p { color: var(--text-mute); }
.step .link-arrow { margin-top: 8px; }

/* ---------- The realm ---------- */
.realm-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 76px); }
.realm-copy { display: grid; gap: 20px; }
.realm-copy > p:not(.lead) { color: var(--text-mute); }
.rate-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rate-trio > div { display: grid; gap: 6px; padding: 16px 18px; background: rgba(7, 5, 4, .5); border: 1px solid var(--line); border-radius: var(--radius); }
.rate-trio span { color: var(--text-mute); font: 600 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.rate-trio strong { color: var(--gold-300); font: 700 26px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.realm-status { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: rgba(7, 5, 4, .5); border: 1px solid var(--line); border-radius: var(--radius); }
.realm-status > div { display: grid; margin-right: auto; }
.realm-status strong { color: var(--text); font: 600 15px/1.3 var(--font-display); letter-spacing: .08em; }
.realm-status > div span { color: var(--text-mute); font-size: 14px; }
.realm-specs { display: grid; gap: 14px; }
.realm-specs .card-head { margin-bottom: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; align-content: start; gap: 14px; }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--gold-300); background: radial-gradient(circle at 30% 25%, rgba(196, 155, 82, .3), rgba(127, 26, 42, .28)); border: 1px solid var(--line-strong); border-radius: 50%; }
.feature h3 { color: var(--text); font: 600 21px/1.25 var(--font-display); letter-spacing: .04em; }
.feature > p { color: var(--text-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li { padding: 6px 12px; color: var(--text-soft); background: rgba(7, 5, 4, .5); border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; line-height: 1.35; }
.levels { display: grid; gap: 10px; margin-top: 4px; }
.levels li { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 14px; padding: 12px 14px; background: rgba(7, 5, 4, .5); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; line-height: 1.5; }
.levels b { color: var(--gold-300); font: 700 15px/1.5 var(--font-display); letter-spacing: .05em; white-space: nowrap; }

/* ---------- World showcase ---------- */
.world-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4.5vw, 64px); }
.showcase { overflow: hidden; background: var(--ink-950); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.showcase-stage { position: relative; aspect-ratio: 16 / 10; }
.showcase-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.showcase-slide.is-active { opacity: 1; visibility: visible; }
.showcase-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.showcase-caption { display: grid; gap: 4px; min-width: 0; }
.showcase-caption span { color: var(--gold-500); font: 600 12px/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.showcase-caption strong { color: var(--text); font: 600 18px/1.3 var(--font-display); letter-spacing: .04em; }
.showcase-controls { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.showcase-count { color: var(--text-mute); font-size: 13px; letter-spacing: .08em; }
.showcase-count b { color: var(--gold-300); }
.showcase-btn { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold-300); background: rgba(12, 9, 8, .6); border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .16s ease, border-color .16s ease; }
.showcase-btn:hover { background: rgba(196, 155, 82, .14); border-color: var(--gold-400); }
.world-copy { display: grid; gap: 18px; }
.world-copy .lead { min-height: 3em; }
.races { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.races h3 { color: var(--gold-400); font: 600 13px/1.2 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.races ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
.races li { display: grid; justify-items: center; gap: 3px; text-align: center; }
.races img { width: 68px; height: 68px; margin-bottom: 6px; object-fit: cover; border: 1px solid var(--gold-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(196, 155, 82, .1), 0 8px 20px rgba(0, 0, 0, .5); transition: transform .2s ease, box-shadow .2s ease; }
.races li:hover img { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 4px rgba(196, 155, 82, .22), 0 12px 24px rgba(0, 0, 0, .55); }
.races strong { color: var(--text); font: 600 14px/1.25 var(--font-display); letter-spacing: .05em; }
.races span { color: var(--text-mute); font-size: 12.5px; }

/* ---------- Rankings ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.rank-list { display: grid; }
.rank-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 58px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { display: grid; place-items: center; width: 34px; height: 34px; color: var(--text-mute); border: 1px solid var(--line); border-radius: 50%; font: 700 14px/1 var(--font-display); }
.rank-row.is-top .rank-no { color: #1d1307; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px rgba(0, 0, 0, .4); }
.rank-row.is-1 .rank-no { background: linear-gradient(180deg, #f8ebc8, #c49b52); }
.rank-row.is-2 .rank-no { background: linear-gradient(180deg, #eeeae2, #a39d92); }
.rank-row.is-3 .rank-no { background: linear-gradient(180deg, #e2b38d, #9a6a45); }
.rank-name { min-width: 0; overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { display: block; overflow: hidden; color: var(--text-mute); font-size: 13px; font-weight: 400; text-overflow: ellipsis; }
.rank-row.is-1 .rank-name { color: var(--gold-200); }
.rank-meta { color: var(--gold-300); font: 600 14px/1.2 var(--font-display); letter-spacing: .06em; white-space: nowrap; }
.rank-empty { padding: 28px 0 12px; color: var(--text-mute); text-align: center; }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; }
.discord-frame { overflow: hidden; min-height: 400px; background: #1e1f22; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.discord-frame iframe { display: block; }
.community-side { display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.count-list { display: grid; gap: 12px; }
.count-list > div { display: grid; align-content: center; gap: 6px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.count-list dd { color: var(--gold-300); font: 700 34px/1 var(--font-display); letter-spacing: .03em; }
.count-list dt { color: var(--text-mute); font: 600 12px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.community-link { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--gold-300); transition: border-color .16s ease, transform .16s ease; }
.community-link:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.community-link span { display: grid; margin-right: auto; }
.community-link strong { color: var(--text); font: 600 16px/1.3 var(--font-display); letter-spacing: .05em; }
.community-link small { color: var(--text-mute); font-size: 13.5px; }

/* ---------- Download ---------- */
.mirror-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mirror { display: grid; align-content: start; gap: 4px; padding: 24px 22px 22px; transition: transform .18s ease, border-color .18s ease; }
.mirror:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.mirror.is-primary { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(60, 43, 22, .7), rgba(19, 14, 12, .96)); }
.mirror-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; color: var(--gold-300); border: 1px solid var(--line-strong); border-radius: 50%; }
.mirror.is-primary .mirror-icon { color: #1d1307; background: linear-gradient(180deg, #f5e3ae, #b88b41); border-color: #f6e7c1; }
.mirror strong { color: var(--text); font: 600 19px/1.25 var(--font-display); letter-spacing: .05em; }
.mirror-host { color: var(--gold-300); font-weight: 600; }
.mirror small { margin-top: 6px; color: var(--text-mute); font-size: 13.5px; line-height: 1.45; }

/* ---------- Closing call ---------- */
.cta-band { position: relative; padding: clamp(56px, 8vw, 104px) 0; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(127, 26, 42, .34), transparent 62%), linear-gradient(180deg, rgba(7, 5, 4, .6), rgba(7, 5, 4, .2)); border-top: 1px solid var(--line-strong); }
.cta-band .shell-narrow { display: grid; justify-items: center; gap: 16px; }
.cta-band img { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
.cta-band .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .75; }
.cta-band .title { font-size: clamp(34px, 5vw, 60px); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.landing .site-footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) 360px; }
    .mirror-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .hero { min-height: 0; }
    .hero-art { background-position: 62% 20%; }
    .hero::before { background: linear-gradient(180deg, rgba(9, 7, 6, .55) 0%, rgba(9, 7, 6, .8) 38%, var(--ink-900) 78%); }
    .hero-inner { grid-template-columns: 1fr; padding-block: 44px 40px; }
    .hero-account { width: min(100%, 520px); }
    .hero-facts { grid-template-columns: repeat(4, 1fr); }
    .hero-facts > div { min-height: 88px; padding: 14px 18px; }
    .hero-facts > div:nth-child(2) { padding-left: 0; border-left: 0; }
    .hero-facts .hero-fact-online { grid-column: 1 / -1; justify-content: start; min-height: 84px; border-bottom: 1px solid var(--line); }
    .hero-facts dd { font-size: 28px; }
    .steps, .feature-grid { grid-template-columns: 1fr; }
    .step { grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; }
    .step-num { grid-row: span 3; }
    .realm-grid, .world-grid, .community-grid { grid-template-columns: 1fr; }
    .races ul { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .count-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .rank-grid { grid-template-columns: 1fr; }
    .races ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .count-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-account { padding: 24px 20px 22px; }
    .hero-facts { grid-template-columns: repeat(2, 1fr); }
    .hero-facts > div { padding: 14px 16px; border-top: 1px solid var(--line); }
    .hero-facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
    .hero-facts > div:nth-child(odd):not(:first-child) { padding-left: 16px; border-left: 1px solid var(--line); }
    .hero-facts .hero-fact-online { border-top: 0; }
    .hero-facts .hero-fact-online dd { font-size: 38px; }
    .step { grid-template-columns: 1fr; padding: 24px 22px; }
    .step-num { grid-row: auto; font-size: 42px; }
    .rate-trio { gap: 8px; }
    .rate-trio > div { padding: 14px 12px; }
    .rate-trio strong { font-size: 21px; }
    .showcase-stage { aspect-ratio: 4 / 3; }
    .showcase-bar { padding: 14px 16px; }
    .showcase-caption strong { font-size: 16px; }
    .showcase-count { display: none; }
    .rank-meta { font-size: 13px; }
    .mirror-grid { grid-template-columns: 1fr; }
    .mirror { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 18px; }
    .mirror-icon { grid-row: span 3; margin-bottom: 0; }
    .cta-actions .btn { flex: 1 1 100%; }
}
