:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #ff5722;
  --accent-2: #ff7a50;
  --good: #3ddc84;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1f2b 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

.wrap { width: min(820px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { color: var(--accent); letter-spacing: -2px; }
.brand-name { font-size: 18px; }

/* Hero */
.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }
.hero strong { color: var(--text); }

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* Panels */
.panel { display: none; }
.panel.is-active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.panel h2 { margin: 0 0 4px; font-size: 22px; }
.panel-desc { color: var(--muted); margin: 0 0 18px; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  background: var(--panel);
  transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--accent); background: var(--panel-2); }
.dropzone p { margin: 6px 0; }
.link-btn {
  background: none; border: none; color: var(--accent-2);
  cursor: pointer; font-size: inherit; text-decoration: underline; padding: 0;
}
.file-name { color: var(--good); font-size: 14px; margin-top: 10px !important; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.file-list li { color: var(--good); font-size: 14px; padding: 2px 0; }

/* Options */
.options {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 20px 0;
}
.options label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; color: var(--muted);
}
.options select, .options input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  min-width: 160px;
}

/* Run button */
.run-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .05s;
}
.run-btn:hover { opacity: .92; }
.run-btn:active { transform: translateY(1px); }
.run-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Status */
.status { margin: 28px 0; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.status-text { color: var(--muted); font-size: 14px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Result */
.result {
  margin: 28px 0; padding: 24px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.result h3 { color: var(--good); margin: 0 0 16px; }
.result audio { width: 100%; margin-bottom: 16px; }
.download-btn {
  display: inline-block;
  background: var(--good); color: #04210f;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}

/* Support */
.support {
  margin: 56px 0 32px; padding: 32px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.support h2 { margin: 0 0 10px; }
.support p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.ko-fi {
  color: var(--accent-2); text-decoration: none; font-weight: 600;
}
.ko-fi.big {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 12px 26px; border-radius: 10px;
}
.support-note { font-size: 13px; margin-top: 16px !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
  text-align: center;
}
.site-footer p { margin: 4px 0; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); opacity: .7; }

/* Footer nav (interlinking) */
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  justify-content: center; margin: 0 0 18px; padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--accent-2); }

/* ---- Landing pages ---- */
.lp-hero { text-align: center; padding: 56px 0 24px; }
.lp-hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.lp-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 26px; }
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 14px 30px; border-radius: 10px;
}
.cta-btn:hover { opacity: .92; }
.cta-sub { font-size: 13px; margin-top: 14px !important; }

.lp-section { margin: 44px 0; }
.lp-section h2 { font-size: 24px; margin: 0 0 18px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; list-style: none; }
.steps li {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--panel-2); color: var(--accent-2); font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.feature-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-list li { color: var(--muted); padding-left: 24px; position: relative; }
.feature-list li::before { content: "✓"; color: var(--good); position: absolute; left: 0; }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px;
  padding: 8px 16px; color: var(--text); text-decoration: none; font-size: 14px;
}
.related a:hover { border-color: var(--accent); }

.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 18px; }
.breadcrumb a { color: var(--accent-2); text-decoration: none; }
