/* LeagueVault site: the app's own hextech theme (gold and teal on void navy) */
@font-face { font-family: 'Cinzel'; src: url('assets/fonts/Cinzel.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #010a13;
  --navy: #091428;
  --navy-2: #0e1d33;
  --line: #1e2d40;
  --gold: #c8aa6e;
  --gold-dark: #785a28;
  --bone: #f0e6d2;
  --ash: #a09b8c;
  --teal: #0ac8b9;
  --gold-line: linear-gradient(90deg, #785a28, #c8aa6e 50%, #785a28);
  --display: 'Cinzel', 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--bone); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: .01em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: .02em; }
p { margin: 0; }
.muted { color: var(--ash); }
kbd { font: 600 13px var(--body); padding: 1px 6px; border: 1px solid var(--gold-dark); border-bottom-width: 2px; border-radius: 3px; color: var(--bone); background: var(--navy); }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--void); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Buttons: the app's gold primary and ghost styles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn-gold { color: #1a1408; background: linear-gradient(180deg, #d8bd84, #b8975a); border: 1px solid #e3cc98; }
.btn-gold:hover { color: #1a1408; background: linear-gradient(180deg, #e6cd96, #c8aa6e); box-shadow: 0 0 22px rgba(200, 170, 110, .5); }
.btn-ghost { color: var(--ash); border: 1px solid #3c3c41; }
.btn-ghost:hover { color: var(--bone); border-color: var(--gold); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 12px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(1, 10, 19, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font: 700 19px var(--display); letter-spacing: .04em; }
.brand img { border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--ash); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--bone); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(900px 520px at 78% 18%, #0b2440 0%, transparent 70%), radial-gradient(700px 400px at 10% 0%, #0a1a2e 0%, transparent 70%);
}
.hero-copy { max-width: var(--wrap); }
.hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.08; max-width: 19ch; font-weight: 700; }
.lead { margin-top: 26px; max-width: 54ch; font-size: 19px; line-height: 1.6; color: #cfc6b2; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--ash); }

.hero-shot { margin: 64px 0 0; padding-left: max(24px, calc((100vw - var(--wrap)) / 2)); }
.hero-shot .frame { width: min(1500px, 118%); }
.hero-shot figcaption { margin-top: 14px; font-size: 13px; color: var(--ash); padding-left: 0; width: auto; }

/* The client frame: gold hairline with a brighter top edge, like the League client's windows */
.frame { position: relative; border: 1px solid var(--gold-dark); background: var(--void); padding: 4px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px #000; }
.frame::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold-line); }
.frame img { border: 1px solid #0f1c2d; }
/* Crop the empty space under the eight sample rows */
.hero-shot img { aspect-ratio: 2880 / 1340; object-fit: cover; object-position: top left; }
/* The site's sidebar stands in for the app's, so crop the app's own sidebar out */
.tour-view img { aspect-ratio: 2730 / 1722; object-fit: cover; object-position: right top; }

/* One orchestrated entrance: the screenshot rises in once */
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .frame { animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) .15s both; }
  .hero-shot .frame::before { transform-origin: left; animation: draw 1.2s ease-out .5s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(46px); } }
@keyframes draw { from { transform: scaleX(0); } }

/* ---------- Sections ---------- */
.tour, .switching, .more, .privacy, .faq { padding: 128px 0 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--ash); max-width: 52ch; }

/* ---------- Tour: the app's sidebar is the tab control ---------- */
.tour-app { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); border: 1px solid var(--gold-dark); background: var(--void); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.tour-app::before { content: ''; position: absolute; z-index: 1; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold-line); }
.tour-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px; border-right: 1px solid var(--line); background: #06101e; }
.tour-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px;
  font: 13px var(--body); color: var(--ash); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.tour-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tour-nav button:hover { color: var(--bone); background: #0e1d33; }
.tour-nav button[aria-selected="true"] { color: var(--gold); background: #0e1d33; }
.tour-nav button[aria-selected="true"]::before { content: ''; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; background: var(--gold); border-radius: 0 2px 2px 0; }
.tour-view { padding: 0; min-width: 0; }
.tour-view:focus-visible { outline-offset: -3px; }
.tour-view .frame { box-shadow: none; padding: 0; border: 0; }
.tour-view .frame::before { display: none; }
.tour-view img { transition: opacity .2s; }
.tour-view img.swapping { opacity: 0; }
.tour-caption { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 32px; padding: 26px 28px 28px; border-top: 1px solid var(--line); }
.tour-caption h3 { color: var(--gold); }
.tour-caption p { color: #cfc6b2; max-width: 64ch; }

/* ---------- Switching ---------- */
.switch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.switch-intro p { margin-top: 22px; color: var(--ash); max-width: 46ch; }
.login-demo { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.login-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px;
  border: 1px solid var(--teal); background: linear-gradient(180deg, #0a323c, #06222b); color: #cdfafa;
  font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 22px rgba(10, 200, 185, .35);
}
.login-btn svg { width: 10px; height: 10px; fill: currentColor; }
.login-note { font-size: 14px; color: var(--ash); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font: 600 34px/1 var(--display); color: var(--gold); }
.steps p { margin-top: 8px; color: var(--ash); }
.steps strong { color: var(--bone); font-weight: 600; }

/* ---------- Also in the app ---------- */
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; margin: 48px 0 0; }
.more-list dt { font: 600 18px var(--display); color: var(--bone); letter-spacing: .02em; padding-top: 18px; border-top: 1px solid var(--gold-dark); }
.more-list dd { margin: 10px 0 0; color: var(--ash); font-size: 16px; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 80px; padding: 64px; border: 1px solid var(--line); background: radial-gradient(600px 300px at 0% 0%, #0b2440 0%, transparent 70%), var(--navy); position: relative; }
.privacy-grid::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold-line); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; color: var(--ash); }
.facts strong { color: var(--bone); font-weight: 600; display: block; margin-bottom: 2px; }
.text-link { grid-column: 2; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.faq-grid > div:first-child p { margin-top: 18px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 8px; top: 30px; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq-list summary:hover { color: var(--gold); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ash); max-width: 64ch; }

/* ---------- Download ---------- */
.download { padding: 160px 0 128px; text-align: center; position: relative; isolation: isolate; }
.download::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(600px 340px at 50% 60%, #0b2440 0%, transparent 70%); }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download img { border-radius: 16px; margin-bottom: 28px; }
.download h2 { font-size: clamp(36px, 5vw, 60px); }
.download-inner > p:not(.fine) { margin: 18px 0 34px; color: var(--ash); max-width: 46ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ash); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ash); text-decoration: none; }
.foot nav a:hover { color: var(--bone); }
.legal { margin-top: 28px; font-size: 13px; color: #6f6b62; max-width: 100ch; }

/* ---------- Privacy policy page ---------- */
.policy { max-width: 72ch; padding: 80px 0 120px; }
.policy h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.15; }
.policy h1 + p { margin-top: 12px; color: var(--ash); }
.policy h2 { font-size: 24px; margin: 48px 0 12px; }
.policy p, .policy li { color: #cfc6b2; }
.policy p + p { margin-top: 14px; }
.policy ul { padding-left: 20px; display: grid; gap: 10px; }
.policy strong { color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .switch-grid, .faq-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .text-link { grid-column: 1; }
  .privacy-grid { padding: 40px 28px; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-caption { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .switch-grid { gap: 48px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 48px; }
  .hero-shot .frame { width: 180%; }
  .tour, .switching, .more, .privacy, .faq { padding-top: 88px; }
  .tour-app { grid-template-columns: minmax(0, 1fr); }
  .tour-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .tour-nav button { flex: 0 0 auto; min-width: 84px; }
  .tour-nav button[aria-selected="true"]::before { left: 12px; right: 12px; top: auto; bottom: -8px; width: auto; height: 3px; }
  
  .more-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .download { padding: 112px 0 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
