/* ---------------------------------------------------------------
   WoW Action Bars — landing page
   Palette: "Ember" — warm coral accent on near-black.
   --gold / --gold-bright are the accent pair; --ink is text drawn on it.
   --------------------------------------------------------------- */

:root {
  --bg: #12100f;
  --bg-raised: #1c1917;
  --border: #332c28;
  --border-soft: #272220;
  --text: #f2ece8;
  --muted: #9d918a;
  --gold: #e2643c;
  --gold-bright: #ff8355;
  --ink: #1a0c07;

  --radius: 12px;
  --wrap: 60rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.25;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

/* Keyboard users get a visible ring everywhere */
a:focus-visible, .btn:focus-visible, .dl:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s;
}
.topbar-cta:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

/* Warm glow behind the hero, echoing the logo's molten core */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 20% 40%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--gold) 17%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--gold) 24%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--gold-bright) 85%, white), var(--gold-bright));
}

.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* Deck illustration — 3x3 keys showing real ability icons.
   Capped so the keys sit near real Stream Deck size rather than filling the column. */
.deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 18.5rem;
  justify-self: end;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}

/* A bevelled key housing; the artwork sits inside it */
.key {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #0b0806;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),   /* bevel highlight */
    inset 0 -6px 12px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Real ability artwork, inset slightly so the bevel still reads as a key */
.key img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* The plugin's own default key, shown on slots whose icon isn't resolved yet */
.k-default { display: grid; place-items: center; }
.k-default::before { background: linear-gradient(180deg, #23252f, #111219); }
.k-default::after { display: none; }
.k-default b {
  position: relative;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2c884;
  text-shadow: 0 0 10px rgba(226, 200, 132, 0.35);
}
/* thin gold rule, as on the shipped icon */
.k-default { box-shadow:
    inset 0 0 0 2px rgba(199, 156, 55, 0.75),
    inset 0 -6px 12px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ---------- Shared layout ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { margin-bottom: 5rem; }

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.aside {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

code {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 0.12em 0.42em;
  font-size: 0.86em;
  color: var(--gold-bright);
  word-break: break-word;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border); }

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--gold-bright);
}

.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  counter-increment: step;
  padding-left: 3.5rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.steps h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.steps p { color: var(--muted); }

/* ---------- Download ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.dl {
  display: block;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.15s;
}
.dl:hover { transform: translateY(-2px); border-color: var(--gold); }

.dl-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  color: var(--ink);
}
.dl-primary:hover {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--gold-bright) 85%, white), var(--gold-bright));
}

.dl-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.dl-name {
  display: block;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.dl-meta { display: block; font-size: 0.85rem; opacity: 0.72; }

.reqs {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.reqs strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.footer-mark { opacity: 0.85; }

.footer-brand {
  font-family: Georgia, "Palatino Linotype", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.9rem;
}

.fine {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .deck { max-width: 17rem; margin: 0 auto; transform: none; }
  .hero::before { inset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
