:root {
  --bg: #0d0d0d;
  --bg-glow: rgba(49, 154, 170, 0.1);
  --surface: rgba(13, 13, 13, 0.92);
  --surface-strong: #151718;
  --surface-soft: #212121;
  --ink: #ececee;
  --muted: #9ba1a6;
  --line: #2b2f31;
  --line-strong: #3a4044;
  --accent: #319aaa;
  --accent-strong: #63becb;
  --accent-soft: rgba(49, 154, 170, 0.16);
  --chord: #f7aa6e;
  --chord-strong: #ffc18d;
  --chord-soft: rgba(247, 170, 110, 0.16);
  --shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top center, var(--bg-glow), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(247, 170, 110, 0.07), transparent 20%),
    linear-gradient(180deg, #0d0d0d 0%, #090a0b 100%);
}

body {
  padding: 18px 14px 34px;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.site-header,
.hero,
.content-section,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header,
.content-section,
.site-footer {
  border-radius: var(--radius-xl);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.brand {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.top-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.header-actions {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #151718;
}

.button-secondary,
.button-icon {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-icon .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 24px;
  padding: 30px;
  border-radius: 34px;
  margin-bottom: 16px;
}

.eyebrow,
.card-label,
.panel-kicker,
.store-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.feature-card h3,
.workflow-card h3,
.store-card strong {
  margin: 0;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 5.1vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.feature-card p,
.workflow-card p,
.store-card p,
.site-footer p,
.top-nav a {
  line-height: 1.65;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-card,
.feature-card,
.prototype-card,
.workflow-card,
.store-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.hero-card strong,
.feature-card h3,
.workflow-card h3,
.store-card strong {
  font-weight: 650;
}

.hero-showcase {
  display: flex;
  align-items: stretch;
}

.phone-frame {
  width: 100%;
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(180deg, #050607 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-bar,
.mini-phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px 10px;
  color: rgba(245, 240, 232, 0.72);
  font-size: 0.76rem;
}

.phone-screen,
.mini-phone-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(49, 154, 170, 0.06), transparent 18%),
    #0d0d0d;
}

.phone-screen {
  min-height: 640px;
}

.screen-chip,
.mini-search,
.app-search {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.screen-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.screen-panel-accent {
  background: var(--surface-soft);
  border-color: var(--line);
}

.screen-list,
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.screen-list li,
.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-list li:first-child,
.mini-list li:first-child {
  border-top: 0;
}

.screen-list em,
.mini-list em {
  color: var(--muted);
  font-style: normal;
}

.app-home-top,
.song-view-top,
.mini-logo-row,
.stage-preview-top,
.stage-overlay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-logo,
.mini-logo {
  color: var(--accent);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.app-count,
.mini-count,
.song-view-author {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-chip-row,
.mini-chip-row,
.song-toolbar,
.mini-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-chip,
.mini-chip,
.toolbar-pill,
.stage-badge,
.stage-overlay-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.app-chip-active,
.mini-chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #151718;
}

.toolbar-pill-accent,
.stage-overlay-pill-accent {
  background: var(--chord-soft);
  border-color: rgba(247, 170, 110, 0.24);
  color: var(--chord-strong);
}

.toolbar-circle {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.song-view-title,
.mini-song-header strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.mini-song-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-song-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.song-sheet-card,
.stage-preview-surface {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.screen-panel-stage,
.mini-phone-stage .mini-phone-body {
  background:
    linear-gradient(180deg, rgba(247, 170, 110, 0.05), transparent 20%),
    #08090a;
}

.screen-panel-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-panel-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #151718;
  font-weight: 700;
}

.song-line {
  margin: 0;
  font-family: var(--mono);
  white-space: pre-wrap;
  line-height: 1.5;
}

.song-line-chords {
  color: var(--chord);
}

.content-section {
  padding: 22px;
  margin-bottom: 16px;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 18px;
}

.section-heading p,
.feature-card p,
.workflow-card p,
.store-card p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-grid,
.prototype-grid,
.workflow-grid,
.store-grid {
  display: grid;
  gap: 12px;
}

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

.feature-icon,
.store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.prototype-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prototype-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-phone {
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, #050506 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-phone-body {
  min-height: 290px;
}

.mini-section {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.workflow-section .section-heading {
  margin-bottom: 16px;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.workflow-icon {
  margin-bottom: 10px;
}

.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-card {
  display: block;
}

.store-card-accent {
  background: rgba(49, 154, 170, 0.1);
  border-color: rgba(49, 154, 170, 0.24);
}

.legal-hero {
  display: grid;
  gap: 16px;
}

.legal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-stack {
  display: grid;
  gap: 12px;
}

.legal-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.legal-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card p + p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .top-nav {
    justify-self: center;
  }

  .hero,
  .hero-grid,
  .feature-grid,
  .prototype-grid,
  .workflow-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    min-height: 520px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    padding: 12px 10px 28px;
  }

  .site-header,
  .content-section,
  .site-footer {
    padding: 16px;
    border-radius: 22px;
  }

  .hero {
    padding: 18px;
    border-radius: 26px;
  }

  .top-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .header-actions,
  .footer-links {
    width: 100%;
  }
}
