@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0e1117;
  --surface: #171b23;
  --surface-light: #1d222c;
  --line: #2b323e;
  --muted: #8d96a6;
  --text: #f3f5f7;
  --accent: #c9f269;
  --accent-dark: #18220b;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 75% -10%, #27352a55, transparent 38%); }
button, input, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 28px 0 34px; }
.topbar, .preview-header, .section-heading, footer { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.15rem "Space Grotesk", sans-serif; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent); font-weight: 700; }
.privacy { color: var(--muted); font-size: .78rem; }
.privacy-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #c9f26920; }
.intro { max-width: 700px; padding: 82px 0 54px; }
.eyebrow, .step { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 16px 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-style: normal; }
.intro > p:last-child { max-width: 490px; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 26px; align-items: start; }
.editor-column, .preview-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.step span { color: var(--muted); }
h2 { margin: 8px 0 24px; font-size: 1.35rem; letter-spacing: -.04em; }
.text-button { padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: .8rem; cursor: pointer; }
.text-button:hover { color: var(--text); }
.dropzone, .audio-dropzone { display: flex; cursor: pointer; }
.dropzone { min-height: 174px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #495361; border-radius: 12px; background: #11151c; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: #1a2117; }
.dropzone strong { font-size: .95rem; }
.dropzone > span:not(.drop-icon), .audio-copy small { color: var(--muted); font-size: .76rem; }
.drop-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 5px; border: 1px solid #536044; border-radius: 50%; color: var(--accent); font-size: 1.6rem; font-weight: 300; }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.file-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-light); }
.file-card img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.file-card span { display: block; overflow: hidden; padding: 7px 8px; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.file-number { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 4px; color: #fff; background: #0e1117cc; font-size: .65rem; }
.audio-dropzone { align-items: center; gap: 12px; margin-top: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: #11151c; }
.audio-dropzone:hover { border-color: #687654; }
.audio-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent); font-size: 1.35rem; }
.audio-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.audio-copy strong { font-size: .84rem; }
.audio-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-action { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: .72rem; }
.settings-heading { margin-top: 34px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #d7dce4; font-size: .79rem; }
.field small { color: var(--muted); font-size: .68rem; }
.input-with-suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #11151c; }
.input-with-suffix input, select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--text); background: #11151c; }
.input-with-suffix { border: 0; }
.input-with-suffix input { border-radius: 7px 0 0 7px; }
.input-with-suffix span { padding: 0 10px; color: var(--muted); font-size: .72rem; }
select:focus, input:focus { border-color: var(--accent); }
.primary-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 27px; padding: 15px 17px; border: 0; border-radius: 8px; color: var(--accent-dark); background: var(--accent); font-weight: 700; cursor: pointer; transition: transform .2s, opacity .2s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.button-arrow { font-size: 1.25rem; }
.status { min-height: 1.1em; margin: 12px 0 0; color: var(--muted); font-size: .75rem; }
.preview-card { position: sticky; top: 20px; }
.preview-header { align-items: flex-start; }
.preview-header h2 { margin-bottom: 0; }
.preview-badge { padding: 5px 8px; border-radius: 5px; color: var(--muted); background: #232a34; font-size: .65rem; }
.preview-badge.ready { color: var(--accent-dark); background: var(--accent); }
.video-frame { display: grid; min-height: 285px; margin-top: 22px; place-items: center; overflow: hidden; border-radius: 10px; background: #0c0f14; }
video { display: block; width: 100%; max-height: 65vh; }
.empty-preview { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 30px; text-align: center; }
.play-icon { display: grid; width: 46px; height: 46px; place-items: center; padding-left: 3px; border: 1px solid #3b444f; border-radius: 50%; color: var(--accent); font-size: .9rem; }
.empty-preview p { margin: 4px 0 0; font-size: .85rem; }
.empty-preview small, .preview-note { color: var(--muted); font-size: .7rem; }
.download-button { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 13px 15px; border: 1px solid #647c39; border-radius: 8px; color: var(--accent); font-size: .8rem; text-decoration: none; }
.download-button:hover { background: #1f2b17; }
.preview-note { margin: 17px 0 0; line-height: 1.5; }
footer { margin-top: 70px; color: #697280; font-size: .72rem; }
footer span:first-child { color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 600; }
@media (max-width: 820px) { .workspace { grid-template-columns: 1fr; } .preview-card { position: static; } .intro { padding: 65px 0 42px; } }
@media (max-width: 920px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .app-shell { width: min(100% - 28px, 1180px); } .privacy { display: none; } .editor-column, .preview-card { padding: 20px; } h1 { font-size: 3.4rem; } .settings-grid { grid-template-columns: 1fr; } .video-frame { min-height: 235px; } }
