:root {
  color-scheme: dark;
  --bg: #090d0b;
  --panel: #101713;
  --panel-2: #151e19;
  --line: rgba(220, 231, 224, .13);
  --line-strong: rgba(220, 231, 224, .24);
  --text: #f2f5f2;
  --muted: #a6b2aa;
  --soft: #7f8c84;
  --accent: #c6df88;
  --accent-deep: #78984a;
  --danger: #ff9b8f;
  --warning: #efd38d;
  --success: #a9dc91;
  --radius: 24px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(116, 153, 75, .12), transparent 32rem),
    radial-gradient(circle at 0% 45%, rgba(95, 127, 104, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #10160f;
  font-weight: 750;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.tool-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.tool-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 11, .78);
  backdrop-filter: blur(18px);
}
.header-inner, .footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 720;
  letter-spacing: .02em;
}
.tool-brand svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.tool-brand .brand-core { fill: var(--accent); stroke: none; }
.tool-header nav { display: flex; gap: 28px; }
.tool-header nav a {
  color: var(--muted);
  font-size: .93rem;
  text-decoration: none;
  transition: color .2s ease;
}
.tool-header nav a:hover, .tool-header nav a:focus-visible { color: var(--text); }

.tools-hero { padding: clamp(92px, 12vw, 170px) 0 80px; }
.eyebrow, .section-heading > p {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 1px; background: var(--accent); }
.tools-hero h1 {
  max-width: 850px;
  margin: 22px 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 730;
}
.tools-hero h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.tools-hero > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust-row span {
  padding: .58rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c5cec8;
  font-size: .82rem;
  background: rgba(255, 255, 255, .025);
}

.tool-catalog, .principles { padding: 70px 0 110px; }
.section-heading { margin-bottom: 32px; }
.section-heading > p { margin: 0 0 8px; }
.section-heading h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.tool-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(198, 223, 136, .07);
  transition: transform .35s ease, background .35s ease;
}
.tool-card-live { transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.tool-card-live:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 223, 136, .38);
  background: linear-gradient(145deg, rgba(198,223,136,.09), rgba(255,255,255,.018));
}
.tool-card-live:hover::after { transform: scale(1.18); background: rgba(198,223,136,.11); }
.tool-card-soon { opacity: .68; }
.tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tool-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--accent);
}
.tool-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.status {
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(198,223,136,.09);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.tool-format { margin: 0 0 13px; color: var(--accent); font-weight: 800; letter-spacing: .03em; }
.tool-format b { margin-inline: .25rem; }
.tool-card h3 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.tool-card p:not(.tool-format) { max-width: 500px; margin: 0; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; justify-content: space-between; margin-top: 32px; color: var(--text); font-weight: 720; }
.card-link b { color: var(--accent); font-size: 1.3rem; }
.card-link.muted { color: var(--soft); }

.principles { border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.principle-grid article { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.principle-grid span { color: var(--accent); font-size: .74rem; font-weight: 800; }
.principle-grid h3 { margin: 28px 0 10px; font-size: 1.18rem; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.tool-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: .82rem; }
.footer-inner { min-height: 94px; }
.footer-inner p { margin: 0; }

/* Converter */
.converter-page { min-height: 100vh; }
.converter-main { padding: 62px 0 110px; }
.converter-intro { max-width: 780px; margin-bottom: 34px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.back-link:hover { color: var(--text); }
.converter-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.converter-intro h1 span { color: var(--accent); }
.converter-intro > p { max-width: 670px; margin: 0; color: var(--muted); font-size: 1.08rem; }

.converter-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px; align-items: start; }
.converter-card, .info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 19, .86);
  box-shadow: var(--shadow);
}
.converter-card { padding: clamp(20px, 4vw, 40px); }
.info-stack { display: grid; gap: 18px; }
.info-card { padding: 26px; }
.info-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.info-card p, .info-card li { color: var(--muted); font-size: .88rem; }
.info-card p { margin: 0; }
.info-card ul { margin: 0; padding-left: 1.1rem; }
.info-card li + li { margin-top: 7px; }
.privacy-card { border-color: rgba(198, 223, 136, .26); background: linear-gradient(145deg, rgba(198,223,136,.07), rgba(16,23,19,.88)); }
.privacy-lock { width: 36px; height: 36px; margin-bottom: 18px; color: var(--accent); }
.privacy-lock svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }

.input-tabs { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.2); }
.tab-button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.tab-button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 5px 18px rgba(0,0,0,.2); }
.tab-panel { margin-top: 22px; }
.tab-panel[hidden] { display: none; }

.drop-zone {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1.5px dashed rgba(198, 223, 136, .34);
  border-radius: 20px;
  background: rgba(198, 223, 136, .025);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--accent); background: rgba(198,223,136,.065); transform: translateY(-2px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-visual { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: rgba(198,223,136,.08); color: var(--accent); }
.drop-visual svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.drop-zone strong { display: block; margin-bottom: 7px; font-size: 1.12rem; }
.drop-zone span { color: var(--muted); font-size: .9rem; }
.drop-zone .drop-visual { color: var(--accent); }
.drop-zone small { display: block; margin-top: 12px; color: var(--soft); }

.url-field label, .field-group label { display: block; margin-bottom: 9px; color: #d7ded9; font-size: .82rem; font-weight: 720; }
.url-control { display: flex; gap: 10px; }
.url-control input, .field-group select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b100d;
  color: var(--text);
  outline: none;
}
.url-control input { padding: 0 15px; }
.field-group select { padding: 0 40px 0 14px; }
.url-control input:focus, .field-group select:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(198,223,136,.08); }
.url-field > p { margin: 11px 0 0; color: var(--soft); font-size: .8rem; }
.secondary-button, .primary-button, .download-button, .ghost-button {
  min-height: 50px;
  border-radius: 12px;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 790;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.secondary-button { flex: 0 0 auto; background: var(--panel-2); border: 1px solid var(--line-strong); }
.secondary-button:hover, .ghost-button:hover { background: #1b2720; }
.primary-button, .download-button { background: var(--accent); color: #11170f; }
.primary-button:hover, .download-button:hover { transform: translateY(-1px); background: #d3e99a; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; }

.file-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.file-summary[hidden] { display: none; }
.file-type { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(198,223,136,.08); color: var(--accent); font-size: .72rem; font-weight: 850; }
.file-details { min-width: 0; }
.file-details strong, .file-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details strong { font-size: .93rem; }
.file-details span { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.remove-file { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.25rem; }
.remove-file:hover { color: var(--text); background: rgba(255,255,255,.05); }

.settings-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.action-row { display: flex; gap: 10px; margin-top: 20px; }
.primary-button { flex: 1; }
.ghost-button { display: none; flex: 0 0 auto; border: 1px solid var(--line-strong); background: transparent; }
.ghost-button.is-visible { display: inline-flex; align-items: center; }

.status-box { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.status-box[hidden] { display: none; }
.status-line { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: .83rem; }
.status-line span:first-child { color: #dbe2dd; }
.status-line span:last-child { color: var(--muted); }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #080b09; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width .2s ease; }
.status-note { margin: 10px 0 0; color: var(--soft); font-size: .77rem; }

.message { margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-size: .84rem; }
.message[hidden] { display: none; }
.message.error { border: 1px solid rgba(255,155,143,.3); background: rgba(255,155,143,.08); color: #ffc4bc; }
.message.warning { border: 1px solid rgba(239,211,141,.28); background: rgba(239,211,141,.07); color: #f7df9e; }
.message.success { border: 1px solid rgba(169,220,145,.28); background: rgba(169,220,145,.07); color: #c2edaf; }

.result-card { margin-top: 22px; padding: 20px; border: 1px solid rgba(169,220,145,.25); border-radius: 18px; background: rgba(169,220,145,.055); }
.result-card[hidden] { display: none; }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-check { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(169,220,145,.13); color: var(--success); }
.result-head strong, .result-head span { display: block; }
.result-head span { color: var(--muted); font-size: .78rem; }
.result-card audio { width: 100%; height: 42px; }
.result-actions { display: flex; gap: 10px; margin-top: 16px; }
.download-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.new-conversion { min-height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 18px; background: transparent; color: var(--text); cursor: pointer; font-weight: 720; }
.new-conversion:hover { background: rgba(255,255,255,.045); }

.faq { padding: 40px 0 110px; }
.faq-list { max-width: 840px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 0; cursor: pointer; font-weight: 720; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.25rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 700px; margin: -5px 0 24px; color: var(--muted); }

@media (max-width: 860px) {
  .tool-grid, .converter-layout { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; gap: 20px; }
  .info-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-card { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .tool-shell { width: min(100% - 28px, 1160px); }
  .tool-header nav { gap: 14px; }
  .tool-header nav a { font-size: .82rem; }
  .tools-hero { padding-top: 76px; }
  .tool-card { min-height: 370px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  .settings-row, .info-stack { grid-template-columns: 1fr; }
  .url-control { flex-direction: column; }
  .secondary-button { width: 100%; }
  .action-row, .result-actions { flex-direction: column; }
  .ghost-button.is-visible { justify-content: center; }
  .file-summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .converter-main { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
