/* Spotiamp+ website. The logo's colours: lightning orange and amber on black. */
:root {
  --bg: #08080a;
  --panel: #111115;
  --panel-2: #17171c;
  --line: #26262e;
  --text: #ececf2;
  --muted: #a3a3ae;
  --orange: #ff6512;
  --amber: #ffb000;
  --grad: linear-gradient(95deg, #ffc12e 0%, #ff8a1a 45%, #ff5a0a 100%);
  --radius: 16px;
  --wide: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.9em Consolas, "Cascadia Mono", monospace; background: #1d1d23; border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  font: 600 0.85em "Segoe UI", system-ui, sans-serif;
  text-align: center;
  color: var(--text);
  background: linear-gradient(#2a2a32, #1c1c22);
  border: 1px solid #3a3a44;
  border-bottom-width: 3px;
  border-radius: 6px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- nav --- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - var(--wide)) / 2));
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--orange); }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--muted); font-size: 15px; }
.links a:hover { color: var(--text); text-decoration: none; }

/* --- buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #1a0b00 !important;
  background: var(--grad);
  box-shadow: 0 6px 24px rgba(255, 101, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(255, 101, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.button.small { padding: 7px 14px; font-size: 14px; }
.button.big { padding: 14px 24px; font-size: 17px; }
.button.ghost { color: var(--text) !important; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); box-shadow: none; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* --- hero --- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 72px 16px 56px;
}
.spectrum {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  z-index: -1;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -120px calc(50% - 50vw) 0;
  background:
    radial-gradient(600px 380px at 78% 45%, rgba(255, 101, 18, 0.22), transparent 70%),
    radial-gradient(520px 340px at 15% 30%, rgba(255, 176, 0, 0.10), transparent 70%);
}
.pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 176, 0, 0.07);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.5px;
}
h1 .grad { display: inline-block; padding-right: 0.08em; }
.lead { margin: 22px 0 30px; max-width: 34em; color: #d4d4dd; font-size: 19px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.meta .version { color: var(--text); font-weight: 600; }

.screen { position: relative; margin: 0; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform 0.6s ease; }
.screen:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.screen-glow { position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(255, 101, 18, 0.55), transparent); filter: blur(40px); z-index: -1; }
.screen .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.screen .shot:first-of-type { position: relative; }
.screen .shot.on { opacity: 1; }
.screen figcaption { position: absolute; right: 14px; bottom: -36px; }
.lcd {
  font: 12px/1 Consolas, monospace;
  letter-spacing: 2px;
  color: #3cff6a;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 6px 10px;
  text-shadow: 0 0 6px rgba(60, 255, 106, 0.7);
}

/* --- numbers strip --- */
.strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--wide);
  margin: 40px auto 0;
  padding: 0 16px;
  gap: 1px;
}
.strip div {
  padding: 22px 12px;
  text-align: center;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div:first-child { border-left: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.strip div:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.strip b { display: block; font-size: 30px; font-weight: 900; font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 14px; }

/* --- sections --- */
.section { max-width: var(--wide); margin: 0 auto; padding: 110px 16px 0; }
.head { max-width: 760px; margin-bottom: 36px; }
.kicker { margin: 0 0 10px; color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -0.8px; }
.head p, .text p { color: #c3c3cd; }
h3 { margin: 0 0 8px; font-size: 19px; }

/* skins */
.skin-picker { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 15px "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.chip.on { color: var(--text); background: rgba(255, 101, 18, 0.12); border-color: rgba(255, 101, 18, 0.45); }
.skin-view { grid-column: 2; margin: 0; padding: 14px; background: #050506; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.skin-view img { border-radius: 8px; transition: opacity 0.25s ease; }
.skin-view img.fading { opacity: 0.25; }
.credit { grid-column: 2; margin: 0; color: var(--muted); font-size: 13px; }

/* split sections */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split .media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(255, 101, 18, 0.12), 0 30px 90px rgba(255, 101, 18, 0.18); image-rendering: auto; }

/* Lala */
.lala-strip { width: 100%; image-rendering: pixelated; border-radius: var(--radius); border: 1px solid var(--line); background: #0c0c10; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(255, 101, 18, 0.45); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: #1a0b00;
  font-size: 22px;
  font-weight: 900;
  background: var(--grad);
}
.ico.eq { gap: 3px; align-items: flex-end; padding: 10px 9px; }
.ico.eq i { width: 3px; background: #1a0b00; border-radius: 2px; animation: bar 1.1s ease-in-out infinite; }
.ico.eq i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.ico.eq i:nth-child(2) { height: 75%; animation-delay: -0.5s; }
.ico.eq i:nth-child(3) { height: 55%; animation-delay: -0.8s; }
.ico.eq i:nth-child(4) { height: 90%; animation-delay: -0.1s; }
.ico.eq i:nth-child(5) { height: 60%; animation-delay: -0.6s; }
.ico.eq i:nth-child(6) { height: 35%; animation-delay: -0.35s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.ico.eq i { transform-origin: bottom; }
.shots.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }

/* close-ups: the windows, pixel for pixel */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 101, 18, 0.10), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover { border-color: rgba(255, 101, 18, 0.45); transform: translateY(-2px); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile img { width: 100%; max-width: 100%; margin: 0 auto; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.tile:not(.wide):not(.full) img { max-height: 300px; width: auto; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.px { image-rendering: pixelated; }
.cards.four { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.meta .stars { color: var(--amber); }
footer .more a { color: var(--muted); }
footer .more a:hover { color: var(--text); }

/* keys */
.keys { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.key { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.key kbd { font-size: 30px; width: 72px; height: 72px; line-height: 64px; border-radius: 14px; border-bottom-width: 6px; }
.key:nth-child(2) kbd { color: var(--amber); }
.key span { color: var(--muted); font-size: 14px; }
.keys-section .head { margin-left: auto; margin-right: auto; text-align: center; }
.keys-more { text-align: center; color: var(--muted); margin-top: 28px; }

/* FAQ */
.faq details {
  max-width: 820px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; color: var(--orange); font-weight: 800; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* end */
.final { max-width: 760px; margin: 120px auto 0; padding: 60px 16px; text-align: center; }
.final img { margin: 0 auto 16px; filter: drop-shadow(0 10px 30px rgba(255, 101, 18, 0.45)); }
.final h2 { font-size: clamp(36px, 5vw, 60px); }
.final p { color: var(--muted); margin: 0 0 26px; }
.final .cta { justify-content: center; }
footer { margin-top: 60px; padding: 32px 16px 48px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
footer p { margin: 6px 0; }
footer .small { font-size: 13px; opacity: 0.8; }

/* topic pages */
.page-hero { max-width: 900px; margin: 0 auto; padding: 80px 16px 24px; text-align: center; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero .cta { justify-content: center; }
.page-hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 520px; background: radial-gradient(700px 360px at 50% 20%, rgba(255, 101, 18, 0.16), transparent 70%); }
.prose { max-width: 820px; margin: 0 auto; padding: 24px 16px 0; }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 56px; }
.prose p, .prose li { color: #c6c6d0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 12px 0; }
.ticks li::before { content: "▶"; position: absolute; left: 0; top: 1px; color: var(--orange); font-size: 13px; }
.wide-shot { margin: 32px 0 0; }
.wide-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 101, 18, 0.12); }
.wide-shot.small img { width: auto; margin: 0 auto; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.shot-grid img { border-radius: 10px; border: 1px solid var(--line); }
.topic .final { margin-top: 80px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* --- narrow screens --- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 64px; }
  .screen { transform: none; }
  .screen:hover { transform: none; }
  .skin-picker { grid-template-columns: 1fr; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .skin-view, .credit { grid-column: 1; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cards, .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.full { grid-column: span 2; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip div { border: 1px solid var(--line) !important; border-radius: 12px !important; }
  .strip { gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links a:not(.button) { display: none; }
  .cards, .cards.three, .cards.four, .shots.two { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: span 1; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:last-child { grid-column: span 2; }
  .section { padding-top: 80px; }
  .key kbd { width: 56px; height: 56px; line-height: 48px; font-size: 24px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ico.eq i { animation: none; }
  .screen, .screen:hover { transform: none; }
}
