/* ============================================================
   SpringMelody — main stylesheet
   Theme: DARK green-black with SPRING GREEN accent #22C55E
   ============================================================ */

:root {
  --bg: #0E1210;
  --bg-2: #121815;
  --bg-3: #0B1F14;
  --surface: #162019;
  --surface-2: #1A241D;
  --line: #24352A;
  --line-2: #2E4434;
  --text: #ECF3EA;
  --muted: #A3B8AA;
  --muted-2: #7E9588;
  --accent: #22C55E;
  --accent-dark: #16A34A;
  --accent-deep: #15803D;
  --accent-light: #86EFAC;
  --accent-tint: #0B1F14;
  --white: #F4F4EE;
  --black: #0A0D0B;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ============================================================
   PIANO-KEY NAVIGATION
   ============================================================ */

.piano-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.piano-nav .piano-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 14px;
}

.piano-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.piano-nav .brand-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #07130B;
  font-size: 1.15rem;
  font-weight: 800;
}

.piano-nav .brand-text span {
  color: var(--accent);
}

.piano-nav .piano-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.piano-nav .piano-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
}

.piano-nav .piano-links a:hover {
  color: var(--text);
}

.piano-nav .piano-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.22s ease;
}

.piano-nav .piano-links a:hover::after {
  width: 100%;
}

.piano-nav .piano-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-accent {
  background: var(--accent);
  color: #07130B;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: #07130B;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

/* nav toggle (mobile) */
.piano-nav .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}

.piano-nav .nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.piano-nav .nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.piano-nav .nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.piano-nav .nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* piano keyboard strip */
.piano-nav .piano-keyboard {
  position: relative;
  height: 30px;
  overflow: hidden;
  background: #E9E9E0;
  border-top: 1px solid #C9C9BE;
}

.piano-nav .wkey {
  display: block;
  float: left;
  width: 7.142857%;
  height: 100%;
  background: #F7F7F0;
  border-right: 1px solid #D6D6CB;
  border-radius: 0 0 3px 3px;
}

.piano-nav .wkey:nth-child(14) {
  border-right: none;
}

.piano-nav .bkey {
  position: absolute;
  top: 0;
  width: 4.4%;
  height: 62%;
  background: #0E1210;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.piano-nav .bkey.b1  { left: 4.9%; }
.piano-nav .bkey.b2  { left: 12.04%; }
.piano-nav .bkey.b3  { left: 26.32%; }
.piano-nav .bkey.b4  { left: 33.46%; }
.piano-nav .bkey.b5  { left: 40.61%; }
.piano-nav .bkey.b6  { left: 54.89%; }
.piano-nav .bkey.b7  { left: 62.04%; }
.piano-nav .bkey.b8  { left: 76.32%; }
.piano-nav .bkey.b9  { left: 83.46%; }
.piano-nav .bkey.b10 { left: 90.61%; }

/* ============================================================
   HERO — MUSIC NOTES / SHEET MUSIC
   ============================================================ */

.melody-hero {
  position: relative;
  background:
    radial-gradient(1000px 520px at 88% -10%, #12351D 0%, transparent 60%),
    radial-gradient(700px 420px at 10% 110%, #0E2A18 0%, transparent 55%),
    var(--bg);
  padding: 88px 0 96px;
  overflow: hidden;
}

.melody-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.melody-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 22px;
}

.melody-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.melody-hero .lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.melody-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.melody-hero .hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.melody-hero .hero-meta strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-light);
  line-height: 1.1;
}

.melody-hero .hero-meta span {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* score panel */
.score-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 40px 34px 46px;
  box-shadow: var(--shadow);
}

.score-panel .score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.score-panel .score-head .tempo {
  color: var(--accent-light);
}

.score-panel .staff {
  position: relative;
  height: 128px;
}

.score-panel .staff-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}

.score-panel .staff-line:nth-child(1) { top: 0; }
.score-panel .staff-line:nth-child(2) { top: 32px; }
.score-panel .staff-line:nth-child(3) { top: 64px; }
.score-panel .staff-line:nth-child(4) { top: 96px; }
.score-panel .staff-line:nth-child(5) { top: 128px; }

.score-panel .clef {
  position: absolute;
  left: 14px;
  top: 8px;
  width: 18px;
  height: 74px;
}

.score-panel .clef::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--accent-light);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-38deg);
}

.score-panel .clef::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 12px;
  width: 3px;
  height: 58px;
  background: var(--accent-light);
  border-radius: 2px;
}

.note {
  position: absolute;
  width: 22px;
  height: 46px;
}

.note::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 14px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.note::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 0;
  width: 2px;
  height: 38px;
  background: var(--accent);
  border-radius: 1px;
}

.note .flag {
  position: absolute;
  right: 3px;
  top: 0;
  width: 10px;
  height: 13px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-bottom-left-radius: 12px;
  transform: skewY(-18deg);
}

.note.n1 { left: 22%; top: 34px; }
.note.n2 { left: 40%; top: 2px; }
.note.n3 { left: 56%; top: 40px; }
.note.n4 { left: 74%; top: 10px; }

.score-panel .score-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.score-panel .score-foot .bar {
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* ============================================================
   STATEMENT ROW (full-width)
   ============================================================ */

.statement-row {
  background: var(--accent);
  padding: 72px 0;
  text-align: center;
}

.statement-row .statement {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: #07130B;
  line-height: 1.3;
  max-width: 920px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ============================================================
   SERVICES / WHAT WE BUILD
   ============================================================ */

.services-section {
  background: var(--bg);
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}

.service-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 30px 96px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-item:hover {
  border-color: var(--accent-dark);
  transform: translateY(-3px);
}

.service-item .svc-num {
  position: absolute;
  left: 26px;
  top: 30px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.service-item h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============================================================
   STATS (big numerals)
   ============================================================ */

.stats-section {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}

.stat .stat-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat .stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   PROCESS (numbered 01–04 with connecting lines)
   ============================================================ */

.process-section {
  background: var(--bg);
}

.process-section .process-list {
  margin-top: 56px;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 44px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step .step-rail {
  position: relative;
  text-align: center;
}

.process-step .step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.process-step .step-line {
  position: absolute;
  top: 46px;
  left: 50%;
  width: 2px;
  height: calc(100% - 46px);
  background: var(--line-2);
}

.process-step:last-child .step-line {
  display: none;
}

.process-step .step-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.process-step .step-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.process-step .step-body p {
  color: var(--muted);
}

/* ============================================================
   COMPARISON TABLE (two column)
   ============================================================ */

.compare-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table {
  margin-top: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-head > div {
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--surface-2);
  color: var(--text);
}

.compare-head > div:first-child {
  border-right: 1px solid var(--line);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.compare-row > div {
  padding: 22px 26px;
  font-size: 0.98rem;
}

.compare-row .cmp-dim {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.compare-row .cmp-old {
  color: var(--muted);
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.compare-row .cmp-old .cmp-dim {
  color: var(--muted-2);
}

.compare-row .cmp-new {
  color: var(--text);
  background: var(--accent-tint);
}

.compare-row .cmp-new .cmp-dim {
  color: var(--accent-light);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-section {
  background: var(--bg);
}

.faq-list {
  margin-top: 40px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  font-family: var(--font-sans);
}

.faq-item .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item .faq-answer p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ============================================================
   SPLIT CTA / CONTACT
   ============================================================ */

.contact-section {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}

.contact-section .contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-detail .cd-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail span {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.contact-detail a {
  color: var(--text);
  font-weight: 600;
}

.contact-detail a:hover {
  color: var(--accent-light);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-size: 0.98rem;
  font-family: var(--font-sans);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  border: 1px solid var(--accent-dark);
  color: var(--accent-light);
  font-size: 0.92rem;
}

/* ============================================================
   FOOTER (compact multi-column, thin spring-green top rule)
   ============================================================ */

.site-footer {
  background: var(--bg-2);
  border-top: 3px solid var(--accent);
  padding: 60px 0 30px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.site-footer .brand-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #07130B;
  font-size: 1.15rem;
  font-weight: 800;
}

.site-footer .brand-text span {
  color: var(--accent);
}

.site-footer .footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 300px;
}

.site-footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul a {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer ul a:hover {
  color: var(--accent-light);
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .melody-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .score-panel {
    max-width: 520px;
  }

  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .contact-section .contact-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .piano-nav .piano-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-2);
    padding: 10px 24px 18px;
  }

  .piano-nav .piano-links.open {
    display: flex;
  }

  .piano-nav .piano-links a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }

  .piano-nav .piano-links a::after {
    display: none;
  }

  .piano-nav .piano-cta {
    display: none;
  }

  .piano-nav .nav-toggle {
    display: flex;
  }

  .piano-nav .piano-bar {
    padding: 14px 18px 12px;
  }

  .services-section .services-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-head > div:first-child,
  .compare-row .cmp-old {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .compare-row > div {
    padding: 14px 18px;
  }

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