/* Rivenmark — tanıtım sitesi. Oyunun kömür + altın + kor dili (docs/ui-ux). Harici istek yok: fontlar ve görseller yerel. */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-cond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0e1013;
  --bg-2: #15181d;
  --panel: #1b1f26;
  --line: #2c323c;
  --text: #e9e4da;
  --muted: #a9a294;
  --gold: #d6a84e;
  --gold-2: #f0c973;
  --ember: #e2622b;
  --radius: 4px;
  --wrap: 1180px;
  --display: "Cinzel", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Dil: html[data-lang] hangisiyse öteki gizlenir. JS yoksa TR görünür. */
html[data-lang="tr"] [lang="en"]:not(html), html[data-lang="en"] [lang="tr"]:not(html) { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 14px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Başlık çubuğu */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 16, 19, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font: 700 22px/1 var(--display); letter-spacing: .08em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--gold-2); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font: 600 15px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--gold-2); }
.langs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.langs button { font: 600 14px/1 var(--cond); letter-spacing: .1em; padding: 10px 12px; min-width: 44px; min-height: 40px; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--gold); color: #17130b; }

/* Kahraman */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,16,19,.15) 0%, rgba(14,16,19,.35) 45%, var(--bg) 100%),
              linear-gradient(90deg, rgba(14,16,19,.75) 0%, rgba(14,16,19,0) 60%); }
.hero .wrap { padding: 120px 0 72px; }
.hero h1 { font-size: clamp(46px, 9vw, 104px); letter-spacing: .08em; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero .tagline { font: 500 clamp(20px, 2.6vw, 28px)/1.35 var(--display); color: var(--gold-2); max-width: 760px; margin-bottom: 18px; }
.hero .lead { font-size: 19px; max-width: 640px; color: #ddd6c8; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 16px; border: 1px solid rgba(214,168,78,.5); background: rgba(20,17,10,.6); font: 600 15px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); border-radius: var(--radius); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }

/* Bölümler */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.quote { font: 500 21px/1.45 var(--display); color: var(--gold-2); border-left: 2px solid var(--ember); padding-left: 18px; margin: 22px 0; }

.nations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.nation { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 220px 1fr; }
.nation img { width: 100%; height: 100%; object-fit: cover; }
.nation .body { padding: 26px 24px; }
.nation .motto { font: 600 20px/1.3 var(--display); color: var(--gold-2); margin-bottom: 10px; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.class { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.class img { aspect-ratio: 7 / 9; object-fit: cover; width: 100%; }
.class .body { padding: 18px 18px 22px; }
.class .role { font: 600 13px/1.3 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.class p { font-size: 15.5px; color: #d4cdbf; margin: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 24px 26px; }
.feature h3 { font-size: 20px; }
.feature p { margin: 0; color: #d4cdbf; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fact .k { font: 600 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.fact .v { font-size: 17px; }

/* Belge sayfaları (gizlilik, hesap silme) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 2em; color: var(--gold-2); }
.doc h3 { font-size: 18px; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font: 600 13px/1.3 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.doc .updated { color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.4em; }

/* Alt bilgi */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold-2); }

@media (max-width: 960px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .split, .nations { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .classes { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero .wrap { padding: 96px 0 48px; }
  .hero .lead { font-size: 17px; }
  .nation { grid-template-columns: 1fr; }
  .nation img { aspect-ratio: 16 / 10; }
  .classes, .features { grid-template-columns: 1fr; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.callout p:last-child { margin-bottom: 0; }
