@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
	--bg: #faf7f2;
	--surface: #fff;
	--surface-alt: #f0ebe3;
	--border: #e0d8cd;
	--text: #2a2520;
	--text-dim: #7a7068;
	--green: #1a7a4a;
	--green-light: #e6f2ec;
	--green-dark: #145f39;
	--serif: 'Playfair Display', Georgia, serif;
	--sans: 'Source Sans 3', -apple-system, sans-serif;
	--radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 26px; height: 26px; }
.logo em { font-style: normal; color: var(--green); }
.header-nav a { color: var(--text-dim); font-size: 14px; font-weight: 500; margin-left: 20px; }
.header-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-desc { color: var(--text-dim); font-size: 17px; max-width: 500px; margin: 0 auto 36px; line-height: 1.6; font-weight: 300; }

/* Search */
.search-box { max-width: 580px; margin: 0 auto; display: flex; background: var(--surface); border: 2px solid var(--border); border-radius: 50px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 4px 20px rgba(26,122,74,0.08); }
.search-box input { flex: 1; min-width: 0; padding: 15px 20px; border: none; background: transparent; font-family: var(--sans); font-size: 15px; color: var(--text); outline: none; }
.search-box input::placeholder { color: #b5aa9e; }
.search-box button { padding: 15px 28px; background: var(--green); color: #fff; border: none; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.search-box button:hover { background: var(--green-dark); }
.search-box button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Status */
.status { max-width: 580px; margin: 10px auto 0; font-size: 14px; color: var(--text-dim); }
.status.error { color: #c53030; }
.result-section { padding: 16px 0; }

/* Steps */
.steps { padding: 50px 0; }
.steps h2 { font-family: var(--serif); font-size: 28px; text-align: center; margin-bottom: 36px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; font-weight: 300; }

/* Features */
.features { padding: 40px 0 50px; border-top: 1px solid var(--border); }
.features h2 { font-family: var(--serif); font-size: 28px; text-align: center; margin-bottom: 36px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.15s, box-shadow 0.15s; }
.feat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.feat-card .icon { font-size: 26px; margin-bottom: 12px; }
.feat-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; font-weight: 300; }

/* FAQ */
.faq { padding: 40px 0 50px; border-top: 1px solid var(--border); }
.faq h2 { font-family: var(--serif); font-size: 28px; text-align: center; margin-bottom: 36px; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; font-weight: 300; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-links a { color: var(--text-dim); font-size: 13px; margin: 0 10px; font-weight: 500; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: #b5aa9e; margin-top: 8px; }

/* Download */
.dl-info { margin-top: 20px; text-align: center; }
.dl-info img { max-height: 240px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.dl-info h3 { font-family: var(--serif); font-size: 20px; margin: 14px 0 4px; }
.dl-info .artist { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.dl-btn { display: inline-block; padding: 12px 32px; background: var(--green); color: #fff; border-radius: 50px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.1s; margin: 4px; }
.dl-btn:hover { background: var(--green-dark); transform: scale(1.03); text-decoration: none; color: #fff; }
.dl-btn.secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.dl-btn.secondary:hover { border-color: var(--green); background: var(--green-light); }
.dl-btn.loading { opacity: 0.5; pointer-events: none; }

/* Track list */
.track-list { margin-top: 16px; text-align: left; }
.track-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; transition: background 0.1s; }
.track-item:hover { background: var(--surface-alt); }
.track-item .num { color: var(--text-dim); font-size: 14px; width: 24px; text-align: center; flex-shrink: 0; }
.track-item img { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.track-item .info { flex: 1; min-width: 0; }
.track-item .info .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item .info .meta { font-size: 12px; color: var(--text-dim); }
.track-item .action { flex-shrink: 0; }
.track-item .action a, .track-item .action button { padding: 6px 16px; background: transparent; color: var(--green); border: 1.5px solid var(--green); border-radius: 50px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: var(--sans); transition: all 0.15s; }
.track-item .action a:hover, .track-item .action button:hover { background: var(--green); color: #fff; text-decoration: none; }

@media (max-width: 640px) {
	.hero { padding: 40px 0 28px; }
	.search-box { flex-direction: column; border-radius: var(--radius); }
	.search-box button { border-radius: 0; }
	.steps-row { grid-template-columns: 1fr; }
	.header-nav { display: none; }
	.track-item img { display: none; }
}
