/* Kingdom Defender landing page — night-sky navy + royal gold, matching the in-game UI */
:root {
  --night: #070d1c;
  --navy: #0f1a33;
  --panel: #15223f;
  --line: #c9932e;
  --gold: #ffd54a;
  --gold-deep: #b47a1c;
  --ember: #ff7a1a;
  --frost: #8fd8ff;
  --text: #eef3fb;
  --muted: #a8b6cc;
  --display: 'Lilita One', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* Gold-stroked display type, like the game's titles */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .5px; color: var(--gold);
  -webkit-text-stroke: 2px #3b1d05; paint-order: stroke fill; text-shadow: 0 4px 0 #7a3d0a, 0 10px 24px rgba(0,0,0,.55); }
.eyebrow { font: 800 13px/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--frost); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--body); text-decoration: none; border-radius: 14px;
  padding: 16px 26px; border: 2px solid #ffe28a; color: #3b1d05; background: linear-gradient(180deg, #ffe07a, #f0a92a 55%, #c97c16);
  box-shadow: 0 5px 0 #7a4a0c, 0 10px 30px rgba(255, 170, 40, .35); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #7a4a0c, 0 16px 40px rgba(255, 170, 40, .5); }
.btn.ghost { background: rgba(15, 26, 51, .7); color: var(--text); border-color: #6f86ad; box-shadow: 0 5px 0 #0a1224; }
.btn svg { width: 22px; height: 22px; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(7, 13, 28, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(201, 147, 46, .35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; color: var(--gold); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 700; opacity: .85; }
.top nav a:hover { opacity: 1; color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -6% 0 0; background: url(img/auth-bg-wide.webp) center 30% / cover; z-index: -2; transform: scale(1.06); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,13,28,.92) 0%, rgba(7,13,28,.6) 45%, rgba(7,13,28,.05) 75%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px; padding: 110px 0 60px; }
.hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .95; margin: 14px 0 6px; }
.hero h1 small { display: block; font-size: .5em; color: #ffe9a8; margin-top: 8px; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: #d6e0f0; max-width: 34ch; margin: 18px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(360px, 70vw); filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: bob 4s ease-in-out infinite; }
.hero-art::before { content: ''; position: absolute; inset: 20% 0 0; background: radial-gradient(closest-side, rgba(255,200,80,.45), transparent); z-index: -1; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(3deg); } }
.stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 12px; line-height: 1.05; }
.section-head p { color: var(--muted); margin: 0; }
.frame { border: 3px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--navy);
  box-shadow: 0 0 0 2px #3b1d05, 0 24px 60px rgba(0,0,0,.55); }

/* Key art: the painted hero in a tilted gold frame */
.key-frame { width: min(380px, 72vw); aspect-ratio: 1; border-radius: 28px; border: 4px solid var(--line); transform: rotate(3deg);
  box-shadow: 0 0 0 3px #3b1d05, 0 30px 70px rgba(0,0,0,.6), 0 0 80px rgba(255, 190, 70, .25); }
