:root {
  --bg: #10131d;
  --panel: #171b27;
  --raised: #202635;
  --line: #2b3141;
  --text: #eef3ff;
  --muted: #aab3c9;
  --dim: #747d96;

  --cyan: #48c7d9;
  --green: #42d576;
  --orange: #ffae45;
  --purple: #985cf4;
  --pink: #e96abb;
  --yellow: #f4c85a;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(152 92 244 / 0.16), transparent 70%),
    radial-gradient(700px 400px at 0% 10%, rgb(72 199 217 / 0.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Comfortaa", ui-rounded, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* header / footer */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.bars i {
  width: 4px;
  border-radius: 2px;
}

.bars i:nth-child(1) { height: 10px; background: var(--cyan); }
.bars i:nth-child(2) { height: 16px; background: var(--green); }
.bars i:nth-child(3) { height: 12px; background: var(--orange); }
.bars i:nth-child(4) { height: 18px; background: var(--pink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

a.chip:hover {
  color: var(--text);
  border-color: var(--dim);
}

.nav {
  display: flex;
  gap: 8px;
}

/* shared bits */

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 1.12;
}

h1 em {
  font-style: normal;
  color: var(--cyan);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.lead {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--c);
  color: #10131d;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 10px 30px -12px var(--c);
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn.dl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  line-height: 1.2;
}

.btn.dl img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.btn.dl span {
  display: grid;
  gap: 2px;
  font-size: 16px;
}

.btn.dl small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.btn.dl svg {
  width: 12px;
  height: 12px;
  margin-top: -2px;
}

/* hero */

.hero {
  padding-top: 110px;
  padding-bottom: 110px;
}

.sub {
  max-width: 560px;
  margin: 28px 0 36px;
  font-size: 18px;
  color: var(--muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.piano {
  height: 150px;
  margin-top: 80px;
  padding: 14px 14px 0;
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: var(--panel);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.piano .keys {
  position: relative;
  display: flex;
  height: 100%;
}

.piano .w {
  flex: 1;
  margin: 0 1.5px;
  border-radius: 0 0 8px 8px;
  background: #d8dce6;
  cursor: pointer;
  transition: background 0.08s, transform 0.08s;
}

.piano .b {
  position: absolute;
  top: 0;
  z-index: 1;
  height: 62%;
  border-radius: 0 0 6px 6px;
  background: #1a1d26;
  box-shadow: 0 0 0 1.5px var(--panel);
  cursor: pointer;
  transition: background 0.08s;
}

.piano .on {
  background: var(--k);
}

.piano .w.on {
  transform: translateY(2px);
}

.hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--dim);
}

/* free */

.free {
  padding-bottom: 110px;
}

.free .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
  padding: 36px 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(420px 220px at 0% 50%, rgb(66 213 118 / 0.14), transparent 70%),
    var(--panel);
}

.free .card > div {
  flex: 1;
  min-width: 260px;
}

.price {
  margin: 0;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}

.free h2 {
  font-size: clamp(24px, 3vw, 30px);
}

.free .lead {
  max-width: 480px;
}

/* cloud */

.cloud {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 110px;
  padding-bottom: 82px;
}

.points {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--muted);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.sounds {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(70% 60% at 50% 50%, rgb(255 174 69 / 0.10), transparent 70%),
    var(--panel);
  list-style: none;
}

.sounds li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}

.sounds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background: var(--c);
}

.sounds small {
  grid-column: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}

.state {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}

.state.ok {
  color: var(--green);
}

.state.up {
  background: var(--pink);
  color: var(--bg);
}

.sounds .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 62%;
  background: var(--c);
  animation: fill 3.2s ease-in-out infinite;
}

@keyframes fill {
  from { width: 8%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sounds .bar {
    animation: none;
  }
}

/* app sections */

.app {
  padding-top: 0;
  padding-bottom: 0;
}

.app > * {
  position: relative;
}

.head,
.feats,
.shot {
  margin-left: 0;
  margin-right: 0;
}

.app .head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 44px 44px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--panel);
}

.app .label {
  color: var(--c);
}

.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 36px 44px 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel);
  list-style: none;
  counter-reset: f;
}

.feats li {
  counter-increment: f;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.feats b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text);
}

.feats b::before {
  content: counter(f);
  margin-right: 8px;
  font-size: 12px;
  color: var(--c);
}

.shot {
  margin: 0;
  padding: 28px 24px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    var(--panel);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.plus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--dim);
}

.plus span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--text);
}

/* install */

.install {
  padding-top: 120px;
  padding-bottom: 120px;
}

.install .lead {
  max-width: 560px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  font-size: 15px;
  color: var(--muted);
}

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--c);
  font-weight: 700;
  color: #10131d;
}

.steps b {
  color: var(--text);
}

/* open source */

.oss {
  padding-bottom: 96px;
}

.oss .card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(500px 260px at 100% 100%, rgb(244 200 90 / 0.12), transparent 70%),
    var(--panel);
}

.oss .lead {
  max-width: 520px;
}

/* footer */

.bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--dim);
}

.bottom a {
  margin-left: auto;
  text-decoration: none;
}

.bottom a:hover {
  color: var(--text);
}

/* modal */

.modal {
  width: min(520px, calc(100% - 32px));
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgb(244 200 90 / 0.12), transparent 70%),
    var(--panel);
  color: var(--text);
  font-family: inherit;
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.6);
}

.modal::backdrop {
  background: rgb(8 10 16 / 0.7);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: pop 0.18s ease-out;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.modal h2 {
  font-size: 28px;
}

.modal form {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--muted);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  color: var(--text);
}

.close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.rows {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 16px;
  background: var(--raised);
  font-weight: 700;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.row small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}

.row .btn {
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .feats {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cloud {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .piano {
    height: 120px;
    margin-top: 56px;
    padding: 10px 10px 0;
  }

  .app .head {
    padding: 30px 22px 0;
    border-radius: 22px 22px 0 0;
  }

  .feats {
    grid-template-columns: 1fr;
    padding: 26px 22px 0;
  }

  .shot {
    padding: 18px 10px 10px;
    border-radius: 0 0 22px 22px;
  }

  .install {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .oss {
    padding-bottom: 64px;
  }

  .free {
    padding-bottom: 72px;
  }

  .free .card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .cloud {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .modal {
    padding: 30px 22px;
  }

  .row {
    flex-wrap: wrap;
  }

  .oss .card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .bottom {
    flex-wrap: wrap;
  }
}
