:root {
  --bg: #070707;
  --surface: #151515;
  --surface-hover: #1b1b1b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7f5;
  --muted: #9b9b98;
  --accent: #12d6d0;
  --display: 'Sofia Sans Extra Condensed', Impact, sans-serif;
  --body: Inter, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(900px 480px at 50% -120px, rgba(18, 214, 208, 0.14), transparent 70%), var(--bg);
  color: var(--text);
  font-family: var(--body);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap {
  flex-grow: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.page { padding-top: 40px; }

/* Logo */
.logo { display: block; margin: 0 auto; }
.logo img { display: block; width: 100%; height: auto; }
.logo-big { width: 780px; max-width: 88%; }
.logo-small { width: 420px; max-width: 80%; margin-top: 28px; }

/* Home */
.hero { position: relative; padding: 40px 0 48px; text-align: center; }
.tagline { margin: -10px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }

.sticker {
  position: absolute;
  top: 46px;
  right: 0;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  color: #06201f;
  filter: drop-shadow(0 18px 26px rgba(18, 214, 208, 0.3));
  animation: st-float 5.5s ease-in-out infinite;
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: st-spin 30s linear infinite; }
.sticker span {
  position: relative;
  transform: rotate(-12deg);
  font-family: var(--display);
  font-weight: 900;
  font-size: 50px;
  line-height: 0.82;
  text-transform: uppercase;
}
@keyframes st-float {
  0% { transform: translate(0, 0) rotate(5deg); }
  20% { transform: translate(-14px, -22px) rotate(11deg); }
  45% { transform: translate(10px, -34px) rotate(3deg); }
  70% { transform: translate(18px, -10px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(5deg); }
}
@keyframes st-spin { to { transform: rotate(360deg); } }

.toolz {
  padding: 24px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
}
.tool { display: flex; flex-direction: column; align-items: center; gap: 16px; }
a.tool { transition: transform 0.18s ease; }
a.tool:hover { transform: translateY(-8px); }
.tool-name { font-size: 17px; font-weight: 700; }
.tool-desc { max-width: 200px; margin-top: -8px; font-size: 14px; line-height: 1.4; text-align: center; color: var(--muted); }
.tool.soon .tool-name { color: var(--muted); }

.tile {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 23%;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.tile span { font-family: var(--display); font-weight: 900; line-height: 1; font-size: 132px; color: #fff; }
.tile.dashed { background: none; box-shadow: none; border: 2px dashed rgba(255, 255, 255, 0.22); }
.tile.dashed span { font-family: var(--body); font-size: 60px; font-weight: 400; color: var(--muted); }

/* Tool page */
.tool-head { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.tile-xl {
  flex: 0 1 380px;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  container-type: inline-size;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tile-xl span { font-size: 71cqw; }
.tool-info { flex: 1 1 420px; min-width: 0; }

.chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c2, var(--accent)) 22%, transparent);
  color: color-mix(in srgb, var(--c1, var(--accent)) 75%, white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip.accent { background: rgba(18, 214, 208, 0.14); color: var(--accent); }

.title { margin: 0; font-size: 58px; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.title em { font-style: normal; color: var(--accent); }
.lead { margin: 16px 0 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-block;
  margin-top: 32px;
  min-width: 260px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a0a0a;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn[disabled] { border-color: var(--line-strong); background: var(--surface); color: var(--muted); cursor: not-allowed; filter: none; }

.shots-empty {
  margin-top: 56px;
  padding: 76px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}
.features { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.features li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); line-height: 1.45; }
.shots { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.shots img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 16px; }

/* Free beats */
.beats { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.beat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.beat:hover, .beat.playing { background: var(--surface-hover); border-color: var(--line-strong); }
.play {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  cursor: pointer;
}
.play .i-pause, .beat.playing .play .i-play { display: none; }
.beat.playing .play .i-pause { display: block; }
.beat-meta { flex: 1 1 220px; min-width: 0; }
.beat-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-sub { font-size: 14px; color: var(--muted); }
.wave {
  position: relative;
  flex: 2 1 320px;
  height: 34px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 3px, transparent 3px 7px);
  cursor: pointer;
}
.wave::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 1%);
  border-radius: 6px 0 0 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, var(--surface-hover) 3px 7px);
}
.time { min-width: 36px; font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dl {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dl:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.empty { margin: 44px 0 0; padding: 56px 24px; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 24px; text-align: center; color: var(--muted); }

/* hmu */
.hmu { padding-top: 150px; text-align: center; }
.socials { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.social {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.16s ease;
}
.social:hover { transform: translateY(-5px); }
.social img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 20, 26, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
footer { margin-top: 80px; border-top: 1px solid var(--line); }
.foot {
  max-width: 1180px;
  min-height: 80px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.hmu-btn {
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}
.hmu-btn:hover { background: var(--accent); color: #0a0a0a; }
.hmu-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Small screens: simple readable stack */
@media (max-width: 900px) {
  .sticker { position: relative; top: 0; right: 0; width: 150px; height: 150px; margin: 0 auto 12px; }
  .sticker span { font-size: 40px; }
  .toolz { gap: 40px 28px; }
  .tool-head { gap: 32px; justify-content: center; }
  .title { font-size: 44px; }
  .hmu { padding-top: 80px; }
}
@media (max-width: 800px) {
  .wave, .time { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .foot { padding: 20px; }
  .tagline { font-size: 26px; margin-top: 0; }
  .tile { width: 132px; height: 132px; }
  .tile span { font-size: 102px; }
  .tile-xl { flex-basis: 240px; width: auto; height: auto; }
  .tile-xl span { font-size: 71cqw; }
  .tool-desc { max-width: 150px; }
  .title { font-size: 36px; }
  .btn { min-width: 0; width: 100%; }
  .beat { gap: 12px; padding: 12px; }
  .social { width: 64px; height: 64px; }
  .socials { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker, .sticker svg { animation: none; }
  a.tool, .social { transition: none; }
}
