:root {
  --ink: #171716;
  --muted: #6e6c67;
  --paper: #f3f0e9;
  --white: #fffdf8;
  --line: rgba(23, 23, 22, 0.15);
  --red: #ef4a33;
  --red-dark: #ce311d;
  --green: #3b8c6e;
  --shadow: 0 24px 70px rgba(37, 30, 19, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  min-height: 100vh;
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.ambient { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .25; pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: #ff826e; top: -170px; right: -90px; }
.ambient-two { width: 360px; height: 360px; background: #f1b64f; top: 48vh; left: -240px; opacity: .16; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 15px; letter-spacing: -.02em; }
.brand b { font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: flex; gap: 2px; justify-content: center; align-items: center; border-radius: 50%; background: var(--ink); }
.brand-mark i { display: block; width: 2px; border-radius: 5px; background: var(--paper); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 7px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 14px; }
.brand-mark i:nth-child(3) { height: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { text-decoration: none; font-weight: 600; }
.live-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.35); color: var(--muted); }
.live-pill span { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); margin-right: 7px; box-shadow: 0 0 0 4px rgba(59,140,110,.12); }

.hero { padding: 96px 0 100px; }
.eyebrow, .section-number { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.hero h1 { margin: 22px 0 28px; font-size: clamp(64px, 10vw, 126px); line-height: .86; letter-spacing: -.075em; font-weight: 600; }
.hero h1 em { color: var(--red); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 580px; margin: 0 0 52px auto; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; letter-spacing: -.025em; color: #494742; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: min(670px, 100%); margin-left: auto; border-top: 1px solid var(--line); padding-top: 22px; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-size: 22px; }
.stats span { font-size: 12px; color: var(--muted); }

.studio { background: var(--white); border-radius: 4px; box-shadow: var(--shadow); padding: 46px; }
.studio-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.studio-heading h2, .about h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; margin: 10px 0 0; line-height: 1; }
.studio-heading p { max-width: 370px; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.tab { background: none; border: 0; color: var(--muted); text-align: left; padding: 15px 10px 17px 0; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 600; }
.tab span { font-size: 10px; margin-right: 10px; }
.tab.active { color: var(--red); border-bottom-color: var(--red); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin: 0 0 10px; }
.field-label span { color: var(--muted); font-weight: 400; }
.field-label.spaced { margin-top: 20px; }
.dropzone { min-height: 220px; border: 1px dashed #aaa69e; border-radius: 3px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; cursor: pointer; transition: .2s ease; background: #faf8f3; }
.dropzone:hover { border-color: var(--red); background: #fff8f5; }
.dropzone.compact { min-height: 155px; }
.dropzone input { display: none; }
.upload-icon { font-size: 33px; color: var(--red); line-height: 1; margin-bottom: 12px; transform: rotate(90deg); }
.dropzone strong { font-size: 15px; }
.dropzone small { margin-top: 7px; color: var(--muted); }
.filename { margin-top: 18px; font-size: 11px; color: var(--red-dark); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 14px 15px; resize: vertical; background: #faf8f3; color: var(--ink); outline: none; }
textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,74,51,.08); }
.char-count { text-align: right; font-size: 11px; color: var(--muted); margin-top: 6px; }
.action { width: 100%; margin-top: 20px; border: 0; padding: 15px 17px; background: var(--red); color: white; cursor: pointer; border-radius: 2px; display: flex; justify-content: space-between; font-weight: 700; transition: .2s ease; }
.action:hover { background: var(--red-dark); transform: translateY(-1px); }
.action:disabled { cursor: wait; opacity: .65; transform: none; }
.output-card { min-height: 330px; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; background: #f7f4ed; }
.output-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.copy { border: 0; background: none; padding: 3px; color: var(--muted); font-size: 11px; cursor: pointer; }
.text-output { white-space: pre-wrap; font-size: 17px; line-height: 1.65; padding: 24px 3px; flex: 1; }
.text-output.empty { color: #9b9890; }
.status { min-height: 20px; font-size: 11px; line-height: 1.45; color: var(--muted); margin-top: auto; }
.status.loading::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; animation: pulse 1s infinite; }
.status.error { color: var(--red-dark); }
@keyframes pulse { 50% { opacity: .25; transform: scale(.75); } }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
summary { list-style: none; padding: 14px 0; cursor: pointer; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
.details-body { padding: 8px 0 18px; }
.file-control { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 12px 0; }
.check-row input { accent-color: var(--red); }
.check-row.consent { color: var(--ink); }
.format { color: var(--muted); font-weight: 400; }
.audio-result { justify-content: flex-start; }
.audio-visual { height: 160px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.audio-visual i { width: 3px; background: var(--red); border-radius: 4px; opacity: .75; }
.audio-visual i:nth-child(3n) { height: 82px; }
.audio-visual i:nth-child(3n+1) { height: 36px; }
.audio-visual i:nth-child(3n+2) { height: 58px; }
.audio-result audio { width: 100%; display: none; }
.empty-audio { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }

.about { padding: 125px 0 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 16px; }
.about-grid p { font-size: 19px; line-height: 1.55; color: #4f4c46; margin: 0 0 35px; }
.about ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.about li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.about li span { font-size: 10px; color: var(--red); display: inline-block; width: 42px; }
footer { border-top: 1px solid var(--line); padding: 35px 0 45px; display: flex; justify-content: space-between; font-size: 12px; }
footer p { color: var(--muted); margin: 7px 0 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; font-weight: 600; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 70px; }
  .live-pill { display: none; }
  .nav-links { gap: 15px; }
  .hero { padding: 68px 0 72px; }
  .hero h1 { font-size: clamp(58px, 20vw, 86px); }
  .hero-copy { margin-top: 40px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats div { flex-direction: row; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .studio { padding: 24px 18px; margin-inline: -4px; }
  .studio-heading { display: block; }
  .studio-heading p { margin-top: 20px; }
  .tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .panel-grid, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .output-card { min-height: 280px; }
  .about { padding: 90px 0; }
  .about-grid { gap: 40px; }
  footer { flex-direction: column; gap: 25px; }
}

