/* TM Paragon — site styles
   Palette mirrors the in-game UIKit: gold #FFCC40 / dim gold #BF942E on deep indigo. */

:root {
  --bg: #0d0d1c;
  --bg-2: #14142a;
  --panel: rgba(36, 36, 66, 0.98);
  --panel-dark: rgba(20, 20, 41, 0.92);
  --line: rgba(255, 204, 64, 0.16);
  --text: #d9dff2;
  --text-soft: #a4abc4;
  --gold: #ffcc40;
  --gold-dim: #bf942e;
  --gold-glow: rgba(255, 204, 64, 0.35);
  --danger: #992626;
  --radius: 16px;
  --max: 1120px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.gold { color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 100;
  background: var(--gold); color: #000; padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #1a1206; box-shadow: 0 8px 28px -8px var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 12px 36px -8px var(--gold-glow); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold-dim); }
.btn-ghost:hover { background: rgba(255, 204, 64, 0.08); }
.btn-small { padding: .5rem 1.1rem; font-size: .85rem; background: var(--gold); color: #1a1206; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 28, 0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff;
  text-decoration: none !important;
}
.brand-mark { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 0 8px var(--gold-glow)); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--gold); text-decoration: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 68px); display: grid; place-items: center;
  text-align: center; overflow: hidden; padding: 6rem 0 5rem;
}
.hero.hero-full { min-height: 100vh; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-glow {
  position: absolute; left: 50%; top: 40%; width: 70vw; max-width: 900px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 204, 64, 0.22), rgba(255, 204, 64, 0.06) 35%, transparent 65%);
  animation: pulse 7s ease-in-out infinite;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
@keyframes pulse { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.hero-inner { max-width: 820px; }
.eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold-dim); font-weight: 600; margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-soft); max-width: 640px; margin: 1.25rem auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--gold-dim); border-radius: 14px; opacity: .7;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-sub { color: var(--text-soft); font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--panel-dark); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(255, 204, 64, 0.4); transform: translateY(-2px); }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card p + .btn { margin-top: 1.25rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(255, 204, 64, 0.1); border: 1px solid rgba(255, 204, 64, 0.3);
}
.card-icon svg { width: 24px; height: 24px; fill: var(--gold); }

/* ---------- Feature card (Paragon Rush) ---------- */
.feature-card {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 3rem; align-items: center;
  background: linear-gradient(135deg, var(--panel), var(--panel-dark));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 3rem;
  position: relative; overflow: hidden;
}
.feature-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.feature-art img { width: 70%; height: auto; border-radius: 22%; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); position: relative; z-index: 1; }
.art-ring {
  position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255, 204, 64, 0.35);
  animation: spin 24s linear infinite;
}
.art-ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  background: var(--gold); border-radius: 50%; box-shadow: 0 0 14px var(--gold);
}
.art-ring-2 { inset: 0; border-style: dashed; opacity: .4; animation-duration: 40s; animation-direction: reverse; }
.art-ring-2::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-badge {
  position: absolute; bottom: 4%; z-index: 2; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 600;
  background: var(--gold); color: #1a1206; padding: .35rem .9rem; border-radius: 999px;
}
.feature-body p { color: var(--text-soft); font-size: 1.05rem; }
.feature-body strong { color: var(--gold); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.pill-list li {
  font-size: .8rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft);
}
.feature-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.studio-text p { color: var(--text-soft); font-size: 1.05rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.values li { padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold); background: var(--panel-dark); border-radius: 0 var(--radius) var(--radius) 0; }
.values h4 { margin-bottom: .25rem; }
.values p { color: var(--text-soft); margin: 0; font-size: .95rem; }

/* ---------- Press ---------- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .95rem; }
.facts dt { color: var(--gold-dim); font-weight: 600; }
.facts dd { margin: 0; color: var(--text); }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.signup { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.signup input[type="email"] {
  font: inherit; padding: .85rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--panel-dark); color: #fff; min-width: 0;
}
.signup input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 204, 64, 0.15); }
.signup input::placeholder { color: var(--text-soft); }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--text-soft); }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #ff8a8a; }

/* ---------- Contact / footer ---------- */
.contact { text-align: center; }
.contact p { margin: .25rem 0; color: var(--text-soft); }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.brand-footer { font-size: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a { color: var(--text-soft); font-size: .9rem; }
.site-footer nav a:hover { color: var(--gold); }
.copyright { width: 100%; margin: 0; color: var(--text-soft); font-size: .8rem; }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; margin-inline: auto; padding: 4rem 0; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--text-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .art-ring, .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; text-align: center; }
  .feature-art { max-width: 320px; margin-inline: auto; }
  .pill-list, .feature-actions { justify-content: center; }
  .studio, .newsletter { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 13, 28, 0.97); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-links li:last-child { border: 0; padding-top: 1rem; }
  .nav-links .btn { width: 100%; }
  .signup { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 5rem 0 6rem; }
}
