:root {
  --bg: #f7f2e8;
  --ink: #1f2430;
  --muted: #5a6473;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffdfa;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --glow: rgba(201, 122, 74, 0.18);
  --shadow: 0 22px 70px rgba(39, 36, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 153, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(153, 214, 255, 0.3), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 88%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: var(--glow);
  filter: blur(30px);
}

.upload-panel,
.results-panel {
  padding: 28px;
}

.upload-form {
  display: grid;
  gap: 18px;
}

.dropzone {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1.5px dashed rgba(15, 118, 110, 0.34);
  border-radius: 22px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dropzone:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.58);
  background: rgba(15, 118, 110, 0.16);
}

.dropzone input {
  display: none;
}

.dropzone-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.dropzone-copy,
.meta,
.selected-file,
.status {
  color: var(--muted);
}

.selected-file,
.status {
  min-height: 24px;
  font-size: 0.95rem;
}

.submit-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 600;
  color: #f7fffe;
  background: linear-gradient(135deg, var(--accent) 0%, #155e75 100%);
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(21, 94, 117, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(21, 94, 117, 0.28);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.results-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.results-header h2,
.result-block h3 {
  margin: 0;
}

.results {
  display: grid;
  gap: 20px;
}

.result-block {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.result-block p,
.empty-state {
  line-height: 1.7;
}

.highlights {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.transcript {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font: inherit;
  line-height: 1.75;
  color: var(--ink);
}

.empty-state {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(31, 36, 48, 0.14);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .upload-panel,
  .results-panel {
    padding: 22px;
  }
}
