:root {
  color-scheme: dark;
  --bg: #050508;
  --bg-soft: #0a0d14;
  --panel: #151720;
  --panel-2: #1c1e27;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f5fb;
  --muted: #a9a8b3;
  --faint: #73727f;
  --purple: #d834f4;
  --purple-2: #9b4dea;
  --blue: #158cff;
  --green: #28d85f;
  --danger: #ff465a;
  --radius: 8px;
  --pill: 999px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 48% 18%, rgba(124, 79, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #07070d 0%, var(--bg) 38%, #050508 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0 18px;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.94), rgba(5, 5, 8, 0.78) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span span {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #dddce7;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover,
.text-link:hover {
  color: white;
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: white;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  background: linear-gradient(135deg, #9337e4, #cb50ec);
  box-shadow: 0 10px 32px rgba(189, 62, 235, 0.25);
}

.button-primary {
  background: linear-gradient(135deg, #d432f4, #9b45e7);
  box-shadow: 0 14px 42px rgba(189, 62, 235, 0.26);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.app-store-badge-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.app-store-badge-image {
  display: block;
  width: 180px;
  height: auto;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f1f8;
}

.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: 42px;
  min-height: 690px;
  padding: 34px 0 56px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 30%;
  left: 12%;
  width: min(460px, 60vw);
  height: 180px;
  content: "";
  opacity: 0.14;
  border-top: 2px solid rgba(255, 255, 255, 0.44);
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
  transform: rotate(-18deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: #c5b8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 5.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1::after {
  display: block;
  content: "your piano ideas";
  color: var(--purple);
}

.hero-text {
  max-width: 550px;
  color: #dddbe7;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.trust-item + .trust-item {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.trust-item div strong,
.trust-item div span {
  display: block;
}

.trust-item div strong {
  color: white;
  line-height: 1.25;
}

.trust-item div span {
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-icon,
.feature-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.trust-icon {
  width: 48px;
  height: 48px;
  place-self: center;
}

.trust-icon::before,
.feature-icon::before {
  content: none;
}

.trust-icon svg,
.feature-icon svg {
  display: block;
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon svg {
  width: 66%;
  height: 66%;
}

.sparkle-icon svg,
.continue-icon svg {
  fill: currentColor;
  stroke: none;
}

.lock-icon {
  color: #f7f6ff;
}

.sparkle-icon,
.continue-icon,
.note-icon {
  color: var(--purple);
}

.midi-icon,
.takes-icon,
.export-icon {
  color: #d9bdff;
}

.device-stage {
  position: relative;
  min-height: 540px;
}

.ipad-frame,
.iphone-frame {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #07070b;
  box-shadow: var(--shadow);
}

.ipad-frame {
  width: min(760px, 100%);
  margin-left: auto;
  padding: 10px;
  border-radius: 28px;
}

.ipad-frame img {
  width: 100%;
  border-radius: 18px;
}

.iphone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(230px, 30vw);
  padding: 7px;
  border-radius: 28px;
}

.iphone-frame img {
  border-radius: 21px;
}

.video-band {
  margin-top: -34px;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.52fr) minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  width: min(640px, 100%);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.video-card:hover {
  border-color: rgba(213, 52, 244, 0.46);
}

.video-card:focus-visible {
  outline: 3px solid rgba(216, 52, 244, 0.72);
  outline-offset: 4px;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0b0d12;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18% 18.5%, transparent 18.5% 100%);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
}

.play-button::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  content: "";
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid white;
  transform: translate(-35%, -50%);
}

.video-copy span {
  display: block;
}

.video-copy span:first-child {
  margin-bottom: 8px;
  color: white;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.video-copy span:last-child {
  color: var(--muted);
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 2, 6, 0.86);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
}

.video-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(1040px, 100%);
  max-height: min(90vh, 980px);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 30, 39, 0.98), rgba(12, 13, 20, 0.98));
  box-shadow: var(--shadow);
}

.video-lightbox-heading {
  padding-right: 52px;
}

.video-lightbox-heading .eyebrow {
  margin-bottom: 4px;
}

.video-lightbox-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.video-lightbox-dialog video {
  width: 100%;
  max-height: calc(90vh - 132px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: black;
}

.video-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(28, 30, 39, 0.96);
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.features,
.screenshots,
.about,
.lower-band {
  padding-top: 70px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 10px;
  color: white;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.text-link {
  color: #c795ff;
  font-weight: 800;
  white-space: nowrap;
}

.text-link::after {
  content: " ->";
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(213, 52, 244, 0.28), rgba(255, 255, 255, 0.06));
}

.feature-card h3 {
  margin-bottom: 8px;
  color: white;
  font-size: 1.08rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.screenshot-card {
  margin: 0;
}

.screenshot-wide {
  grid-column: span 2;
}

.screenshot-card img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
  transition: border-color 160ms ease, transform 160ms ease;
}

.screenshot-card img:hover,
.screenshot-card img:focus-visible {
  border-color: rgba(213, 52, 244, 0.62);
  transform: translateY(-2px);
  outline: none;
}

.screenshot-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshot-phone img {
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.screenshot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 2, 6, 0.82);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
}

.screenshot-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  margin: 0;
}

.screenshot-lightbox-dialog img {
  width: 100%;
  max-height: calc(86vh - 58px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.screenshot-lightbox-dialog figcaption {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.screenshot-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(28, 30, 39, 0.96);
  color: white;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, rgba(213, 52, 244, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.about-panel .section-heading {
  margin-bottom: 0;
}

.about-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.about-copy p {
  margin-bottom: 0;
}

.lower-band {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 42px;
  padding-bottom: 68px;
}

.contact-panel,
.privacy-panel {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.compact-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 5, 8, 0.76);
  color: white;
  outline: none;
}

.contact-form input {
  height: 42px;
  padding: 0 12px;
}

.contact-form textarea {
  resize: vertical;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(213, 52, 244, 0.72);
  box-shadow: 0 0 0 3px rgba(213, 52, 244, 0.14);
}

.message-field {
  grid-column: 1 / -1;
}

.contact-form .button {
  justify-self: end;
  min-width: 150px;
  grid-column: 1 / -1;
}

.contact-status,
.captcha-status {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-status {
  grid-column: 1 / -1;
}

.contact-status[data-kind="success"],
.captcha-status[data-kind="success"] {
  color: #7ef1a2;
}

.contact-status[data-kind="error"],
.captcha-status[data-kind="error"] {
  color: #ff7f8c;
}

.captcha-modal[hidden] {
  display: none;
}

.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.captcha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 6, 0.72);
  backdrop-filter: blur(16px);
}

.captcha-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 52, 244, 0.18), transparent 15rem),
    linear-gradient(180deg, rgba(28, 30, 39, 0.98), rgba(15, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.captcha-dialog h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.captcha-copy {
  color: var(--muted);
}

.captcha-box {
  min-height: 78px;
  margin: 18px 0 12px;
}

.captcha-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
}

.privacy-panel p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  font-size: 1.15rem;
  color: white;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a:not(.brand):hover {
  color: white;
}

.legal-page {
  padding-bottom: 64px;
}

.legal-hero {
  padding: 64px 0 30px;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
}

.legal-hero h1::after {
  content: none;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-date {
  color: #d8c4ff;
  font-weight: 750;
}

.legal-content {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.legal-content article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.legal-content h2 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.28rem;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--muted);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: #c795ff;
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 26px;
  }

  .device-stage {
    min-height: 520px;
  }

  .ipad-frame {
    margin-left: 0;
  }

  .iphone-frame {
    width: min(220px, 34vw);
  }

  .trust-strip,
  .about-panel,
  .feature-grid,
  .screenshot-grid,
  .lower-band {
    grid-template-columns: 1fr 1fr;
  }

  .video-card {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav-links {
    justify-content: space-between;
    gap: 10px;
    overflow-x: visible;
    font-size: 0.88rem;
  }

  .button-small {
    padding: 0 14px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero-actions,
  .contact-form,
  .split-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .about-panel,
  .feature-grid,
  .screenshot-grid,
  .lower-band,
  .video-card {
    grid-template-columns: 1fr;
  }

  .screenshot-wide {
    grid-column: auto;
  }

  .trust-item,
  .trust-item + .trust-item {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .device-stage {
    min-height: 390px;
  }

  .iphone-frame {
    width: 145px;
  }

  .screenshot-phone img {
    max-height: none;
  }

  .screenshot-lightbox {
    padding: 14px;
  }

  .screenshot-lightbox-dialog {
    max-height: 88vh;
  }

  .screenshot-lightbox-dialog img {
    max-height: calc(88vh - 54px);
  }

  .screenshot-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .video-lightbox {
    padding: 14px;
  }

  .video-lightbox-dialog {
    padding: 14px;
    border-radius: 12px;
  }

  .video-lightbox-dialog video {
    max-height: calc(90vh - 130px);
  }

  .video-lightbox-close {
    top: 8px;
    right: 8px;
  }
}
