@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #090b12;
    --panel: #111521;
    --panel2: #171d2b;
    --border: rgba(255,255,255,.09);
    --text: #f4f5fa;
    --muted: #9299aa;
    --accent: #9275ff;
    --accent2: #5f8cff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

.background-glow {
    position: fixed;
    width: 650px;
    height: 500px;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: #6846e8;
    filter: blur(180px);
    opacity: .19;
    pointer-events: none;
}

.topbar {
    height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 600;
}

.brand strong { color: #a895ff; }

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #9674ff, #527fff);
    font-weight: 800;
    font-size: 20px;
}

.status {
    color: var(--muted);
    font-size: 12px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e8ae52;
    border-radius: 50%;
    margin-right: 7px;
}

.container {
    width: min(920px, 92%);
    margin: auto;
    position: relative;
}

.hero {
    text-align: center;
    padding: 65px 10px 42px;
}

.eyebrow {
    color: #a895ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 49px);
    letter-spacing: -2px;
    margin: 17px 0 12px;
}

.hero h1 span {
    background: linear-gradient(90deg, #a68aff, #65a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p, .workspace-header p, .library p {
    color: var(--muted);
    font-size: 14px;
}

.workspace {
    background: rgba(17,21,33,.94);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

h2 { font-size: 19px; margin: 0 0 7px; }
.workspace-header p { margin: 0; }

.badge {
    color: #b9aaff;
    border: 1px solid rgba(160,135,255,.3);
    background: rgba(146,117,255,.1);
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: 1px;
}

.modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.mode {
    text-align: left;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--panel2);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
}

.mode.active {
    border-color: var(--accent);
    background: rgba(146,117,255,.12);
    box-shadow: inset 0 0 0 1px rgba(146,117,255,.12);
}

.mode-icon {
    display: block;
    font-size: 22px;
    color: #ae9aff;
    margin-bottom: 10px;
}

.mode span:not(.mode-icon) {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.mode small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    color: #c3c8d5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

textarea, select {
    width: 100%;
    color: var(--text);
    background: #0c101a;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 14px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

textarea { resize: vertical; min-height: 120px; }
textarea:focus, select:focus { border-color: var(--accent); }
textarea::placeholder { color: #626b7d; }

.field-footer {
    display: flex;
    justify-content: space-between;
    color: #737d90;
    font-size: 10px;
    margin-top: 8px;
}

.settings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.settings .field { margin-bottom: 8px; }

select { cursor: pointer; }

.upload-zone {
    min-height: 140px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #55516f;
    border-radius: 12px;
    background: rgba(146,117,255,.04);
    cursor: pointer;
    text-align: center;
}

.upload-icon { font-size: 28px; color: #a895ff; }
.upload-zone strong { font-size: 13px; margin: 8px 0; }
.upload-zone span:last-of-type { color: var(--muted); font-size: 11px; }
#fileName { color: #b9aaff; font-size: 12px; margin-top: 8px; }

.engine-notice {
    display: flex;
    gap: 13px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(146,117,255,.2);
    border-radius: 10px;
    background: rgba(146,117,255,.07);
}

.engine-notice > span { color: #b9aaff; font-size: 20px; }
.engine-notice strong { font-size: 12px; }
.engine-notice p { color: var(--muted); font-size: 11px; margin: 5px 0 0; line-height: 1.5; }

.generate-button {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: linear-gradient(100deg, #7256d9, #5078d9);
    font-size: 13px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: .55;
}

.generate-button span { margin-right: 8px; }

.library { padding: 45px 0 65px; }
.library > div:first-child p { margin-bottom: 22px; }

.empty-library {
    border: 1px dashed var(--border);
    border-radius: 14px;
    text-align: center;
    padding: 35px 15px;
    color: var(--muted);
}

.empty-library > span { display: block; font-size: 27px; margin-bottom: 12px; }
.empty-library strong { color: #d8dbe5; font-size: 13px; }
.empty-library p { font-size: 11px; margin-bottom: 0; }

footer {
    border-top: 1px solid var(--border);
    padding: 22px 6%;
    display: flex;
    justify-content: space-between;
    color: #697184;
    font-size: 10px;
    letter-spacing: .5px;
}

@media (max-width: 650px) {
    .topbar { padding: 0 4%; }
    .brand { font-size: 12px; }
    .status { font-size: 10px; }
    .hero { padding: 48px 5px 30px; }
    .workspace { padding: 19px 15px; }
    .modes { gap: 6px; }
    .mode { padding: 12px 8px; }
    .mode span:not(.mode-icon) { font-size: 11px; }
    .mode small { font-size: 9px; }
    .settings { grid-template-columns: 1fr; gap: 0; }
    footer { padding: 20px 4%; }
}
