/* soundstorm.dev: black, like the app, its blue as the accent. */
:root {
  --bg: #000;
  --surface: #11151c;
  --border: #232a35;
  --text: #e8ecf2;
  --muted: #9aa3b2;
  --accent: #6aa8ff;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.small { font-size: 14px; color: var(--muted); }

/* The cloud and bolt, in the text's colour, as the app's wordmark draws it. */
.mark {
  display: inline-block;
  width: 1.4em;
  aspect-ratio: 148 / 125;
  background: currentColor;
  -webkit-mask: url(cloud.svg) center / contain no-repeat;
  mask: url(cloud.svg) center / contain no-repeat;
  vertical-align: -0.2em;
}

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-style: italic; font-size: 22px; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

main > section { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 0 0 22px; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #c9d0db; max-width: 34em; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.button {
  display: inline-block; padding: 13px 22px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 650;
}
.button:hover { text-decoration: none; border-color: #3a4558; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #04101f; }
.button.primary:hover { filter: brightness(1.08); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* The first screen: words on the left, the TV with a phone in front on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-shots { position: relative; padding-bottom: 12%; }
.shot.tv { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(80, 120, 255, 0.18); }
.shot.phone {
  position: absolute; right: -2%; bottom: 0; width: 34%;
  border-radius: 26px; border: 6px solid #1b2029; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid article p { margin: 0; color: var(--muted); }

/* Four phones in a row. */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 28px); }
.screens figure { margin: 0; text-align: center; }
.screens img { border-radius: 24px; border: 5px solid #1b2029; }
.screens figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }

.install ol { padding-left: 1.2em; display: grid; gap: 18px; max-width: 46em; }
.install .note { display: block; color: var(--muted); font-size: 15px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 24px; }
.tab { border: 0; background: none; color: var(--muted); padding: 9px 18px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.tab.on { background: #222a36; color: var(--text); }
.code { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #0a0d12; border: 1px solid var(--border); overflow-x: auto; }
.code code { font: 14px/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; color: #d6e2ff; }
.copy { flex: none; margin-left: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.apps-head { margin-top: 40px; }
.apps { color: var(--muted); padding-left: 1.2em; display: grid; gap: 8px; }
.apps strong { color: var(--text); }

.box > div {
  background: radial-gradient(120% 140% at 0% 0%, #1a2a52 0%, #0b0f17 55%);
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 56px); max-width: 860px;
}
.box p { color: #c9d0db; max-width: 36em; }

footer { border-top: 1px solid var(--border); padding: 32px clamp(16px, 5vw, 64px); text-align: center; color: var(--muted); }
footer p { margin: 6px 0; }

@media (max-width: 860px) {
  .top nav a:not(:last-child):not([href="#install"]) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
