:root {
  --ink: #101727;
  --muted: #647086;
  --line: #dfe5ef;
  --paper: #f6f8fc;
  --white: #ffffff;
  --blue: #2268ff;
  --blue-dark: #114ccc;
  --aqua: #5ce1d5;
  --success: #087c58;
  --error: #b42318;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }

.hero {
  min-height: 720px;
  padding: 28px clamp(24px, 6vw, 96px) 0;
  color: white;
  background:
    radial-gradient(circle at 75% 30%, rgba(92, 225, 213, .26), transparent 24%),
    radial-gradient(circle at 20% 110%, rgba(52, 115, 255, .65), transparent 35%),
    linear-gradient(135deg, #071226 0%, #102f74 55%, #0d5d88 100%);
  overflow: hidden;
}

.nav { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.brand { font-size: 1.4rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.nav-link { padding: 9px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.hero-copy { max-width: 1240px; margin: 105px auto 82px; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: .73rem; font-weight: 800; color: var(--aqua); }
.eyebrow.dark { color: var(--blue); }
h1 { max-width: 850px; margin: 0; font-size: clamp(3.3rem, 8vw, 7.2rem); line-height: .9; letter-spacing: -.07em; }
h1 span { color: var(--aqua); }
.lede { max-width: 680px; margin: 32px 0; color: #d7e3ff; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--aqua); color: #08283a; }
.button.secondary { border: 1px solid rgba(255,255,255,.36); background: rgba(255,255,255,.06); }
.spec-strip { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.spec-strip div { padding: 22px 0 28px; }
.spec-strip strong, .spec-strip span { display: block; }
.spec-strip strong { font-size: 1.35rem; }
.spec-strip span { color: #b9c9e8; font-size: .85rem; }

.section { max-width: 1240px; margin: 0 auto; padding: 110px clamp(20px, 4vw, 48px); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2, .note-section h2 { margin: 0 0 15px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.section-heading > p:last-child, .split-heading > p { color: var(--muted); }
.live-section { margin-top: -1px; }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.upload-column, .result-column { border-radius: 20px; }
.upload-column { padding: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(31, 51, 93, .08); }
.drop-zone { min-height: 250px; padding: 32px; border: 1.5px dashed #aebbd2; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; cursor: pointer; background: #f9fbff; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: #f0f5ff; transform: translateY(-2px); }
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.drop-zone strong { margin: 12px 0 3px; }
.drop-zone span:last-of-type, .file-details { color: var(--muted); font-size: .9rem; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: white; background: var(--blue); font-size: 1.5rem; }
.file-details { min-height: 24px; margin: 16px 2px 10px; overflow-wrap: anywhere; }
.run-button { width: 100%; min-height: 52px; border: 0; border-radius: 11px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.run-button:hover:not(:disabled) { background: var(--blue-dark); }
.run-button:disabled { cursor: not-allowed; opacity: .48; }
.model-state { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ba6b9; }
.model-state.loading .state-dot { background: #e4a11b; animation: pulse 1.2s infinite; }
.model-state.ready .state-dot { background: #17a673; }
.model-state.error .state-dot { background: var(--error); }
@keyframes pulse { 50% { opacity: .25; } }
.result-column { padding: 24px; background: #eaf0fb; display: flex; flex-direction: column; justify-content: center; }
.player-card { padding: 22px; border-radius: 14px; background: white; border: 1px solid #dbe3f1; }
.player-card audio { width: 100%; margin-top: 18px; }
.output-card { border-color: #a8c3ff; box-shadow: 0 13px 35px rgba(34, 104, 255, .1); }
.player-label { display: flex; align-items: center; gap: 12px; }
.player-label > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--blue); background: #edf3ff; font-weight: 850; font-size: .78rem; }
.player-label strong, .player-label small { display: block; }
.player-label small { color: var(--muted); }
.arrow { align-self: center; padding: 8px; color: var(--blue); font-size: 1.35rem; }
.download-link { display: inline-block; margin-top: 12px; color: var(--blue-dark); font-weight: 750; font-size: .9rem; }
.status-message { margin: 22px 0 0; padding: 12px 15px; border-radius: 9px; color: #46536b; background: #edf1f8; }
.status-message[data-kind="success"] { color: var(--success); background: #e8f8f2; }
.status-message[data-kind="error"] { color: var(--error); background: #ffefed; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }

.examples-section { max-width: none; background: white; }
.examples-section > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.split-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 48px; max-width: 1144px; }
.split-heading > p { margin: 0; }
.example-list { border-top: 1px solid var(--line); }
.example-row { padding: 28px 0; display: grid; grid-template-columns: 170px 1fr 160px; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.example-index span, .example-index small { display: block; }
.example-index span { font-size: 1.5rem; font-weight: 900; color: var(--blue); }
.example-index small { margin-top: 4px; color: var(--muted); }
.audio-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.audio-pair label { font-size: .8rem; font-weight: 780; text-transform: uppercase; letter-spacing: .06em; color: #4e5c75; }
.audio-pair audio { display: block; width: 100%; margin-top: 7px; }
.sample-button { padding: 10px 13px; border: 1px solid #bdc9dc; border-radius: 9px; color: #293a59; background: white; cursor: pointer; font-weight: 700; font-size: .82rem; }
.sample-button:hover { border-color: var(--blue); color: var(--blue); }
.note-section { text-align: center; }
.note-section p { max-width: 780px; margin: 0 auto 24px; color: var(--muted); }
.note-section a { color: var(--blue-dark); font-weight: 800; }
footer { max-width: 1240px; margin: 0 auto; padding: 28px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; }

.comparison-page { background: white; }
.comparison-hero { padding: 28px clamp(24px, 6vw, 96px) 80px; color: white; background: radial-gradient(circle at 78% 22%, rgba(92, 225, 213, .28), transparent 24%), linear-gradient(135deg, #071226, #173f8d 62%, #087a88); }
.comparison-hero-copy { max-width: 1240px; margin: 85px auto 0; }
.comparison-hero-copy h1 { max-width: 920px; }
.comparison-intro { padding-bottom: 70px; }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
.metric-table { width: 100%; border-collapse: collapse; background: white; }
.metric-table th, .metric-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.metric-table th:first-child { text-align: left; }
.metric-table thead th { color: #46536b; background: #f3f6fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.metric-table tbody tr:last-child th, .metric-table tbody tr:last-child td { border-bottom: 0; }
.metric-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.comparison-section { max-width: none; background: var(--paper); }
.comparison-section > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.comparison-list { display: grid; gap: 30px; margin-top: 26px; }
.comparison-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 14px 45px rgba(31, 51, 93, .07); }
.comparison-card > header { display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.comparison-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: white; background: var(--blue); font-weight: 900; }
.comparison-card h3 { margin: 0; font-size: 1.25rem; }
.comparison-card header p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.subheading { margin: 25px 0 12px; font-size: .82rem; color: #46536b; text-transform: uppercase; letter-spacing: .08em; }
.comparison-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.comparison-outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comparison-player { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbff; }
.comparison-player strong, .comparison-player small { display: block; }
.comparison-player strong { font-size: .88rem; }
.comparison-player small { min-height: 37px; margin: 3px 0 10px; color: var(--muted); font-size: .75rem; }
.comparison-player audio { display: block; width: 100%; }

@media (max-width: 850px) {
  .hero { min-height: auto; }
  .hero-copy { margin: 80px auto 65px; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .workspace, .split-heading { grid-template-columns: 1fr; }
  .comparison-inputs, .comparison-outputs { grid-template-columns: 1fr 1fr; }
  .example-row { grid-template-columns: 1fr; gap: 15px; }
  .sample-button { justify-self: start; }
}

@media (max-width: 560px) {
  .hero { padding-inline: 20px; }
  h1 { font-size: 3.25rem; }
  .section { padding: 78px 18px; }
  .audio-pair { grid-template-columns: 1fr; }
  .nav-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .nav-link { padding: 6px 10px; text-align: center; }
  .comparison-inputs, .comparison-outputs { grid-template-columns: 1fr; }
  .upload-column, .result-column { padding: 16px; }
  .drop-zone { min-height: 215px; padding: 22px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; }
}
