:root {
    color-scheme: dark;
    --bg: #06101d;
    --panel: #0b1726;
    --panel-2: #0f1e30;
    --border: rgba(255, 255, 255, 0.11);
    --text: #f3f7fb;
    --muted: #93a4b7;
    --accent: #63e6be;
    --accent-strong: #38d9a9;
    --danger: #ff8787;
    --success: #69db7c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 4%, rgba(99, 230, 190, 0.11), transparent 28rem),
        radial-gradient(circle at 88% 28%, rgba(76, 110, 245, 0.09), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.tool-header { border-bottom: 1px solid var(--border); background: rgba(6, 16, 29, 0.78); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(99, 230, 190, 0.42); border-radius: 12px; color: var(--accent); font-weight: 800; letter-spacing: -0.04em; background: rgba(99, 230, 190, 0.06); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.mvp-badge, .eyebrow, .step-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.mvp-badge { padding: 7px 10px; border: 1px solid rgba(99, 230, 190, 0.28); border-radius: 999px; background: rgba(99, 230, 190, 0.05); }
.main-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr); gap: 54px; align-items: start; padding: 88px 0 70px; }
.hero-copy { position: sticky; top: 40px; padding-top: 20px; }
.hero-copy h1 { margin: 13px 0 18px; font-size: clamp(48px, 7vw, 82px); line-height: 0.96; letter-spacing: -0.055em; }
.lead { max-width: 560px; margin: 0; color: #c8d3df; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.feature-list { display: grid; gap: 10px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.feature-list span::before { content: "✓"; margin-right: 10px; color: var(--accent); font-weight: 800; }
.converter-card { padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, rgba(15, 30, 48, 0.94), rgba(9, 21, 35, 0.96)); box-shadow: var(--shadow); }
.card-heading, .beta-note, .tool-footer .shell { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.card-heading { margin-bottom: 20px; }
.card-heading h2, .beta-note h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.privacy-note { color: var(--muted); font-size: 12px; }
.drop-zone { min-height: 230px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed rgba(99, 230, 190, 0.42); border-radius: 18px; background: rgba(99, 230, 190, 0.035); text-align: center; cursor: pointer; transition: 160ms ease; }
.drop-zone:hover, .drop-zone.is-dragging { transform: translateY(-1px); border-color: var(--accent); background: rgba(99, 230, 190, 0.075); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 16px; background: rgba(99, 230, 190, 0.11); color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; }
.drop-zone strong { font-size: 16px; }
.drop-zone > span:last-child { color: var(--muted); font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; outline: none; background: #081523; color: var(--text); }
.field input:focus, .field select:focus { border-color: rgba(99, 230, 190, 0.7); box-shadow: 0 0 0 3px rgba(99, 230, 190, 0.08); }
.field small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.custom-scale { margin-top: 14px; }
.cleanup-option { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border: 1px solid rgba(99, 230, 190, 0.24); border-radius: 14px; background: rgba(99, 230, 190, 0.045); cursor: pointer; }
.cleanup-option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.cleanup-option span { display: grid; gap: 4px; }
.cleanup-option strong { font-size: 13px; }
.cleanup-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.convert-button { width: 100%; min-height: 54px; margin-top: 20px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; background: var(--accent); color: #062018; font-weight: 900; cursor: pointer; transition: 160ms ease; }
.convert-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.convert-button:disabled { cursor: wait; opacity: 0.72; transform: none; }
.button-arrow { font-size: 23px; }
.status-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.status-panel.is-error { border-color: rgba(255, 135, 135, 0.28); }
.status-panel.is-error strong { color: var(--danger); }
.status-panel.is-success { border-color: rgba(105, 219, 124, 0.25); }
.status-panel.is-success strong { color: var(--success); }
.status-panel p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stats span { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: 12px; }
.stats b { color: var(--text); }
.beta-note { grid-column: 1 / -1; margin-top: 12px; padding: 26px 0 0; border-top: 1px solid var(--border); }
.beta-note p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
.tool-footer { padding: 26px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; } .hero-copy { position: static; padding-top: 0; } .converter-card { padding: 20px; } }
@media (max-width: 620px) { .shell { width: min(100% - 24px, 1160px); } .header-inner { min-height: 68px; } .brand small { display: none; } .main-grid { padding: 42px 0 54px; } .hero-copy h1 { font-size: 52px; } .settings-grid, .stats { grid-template-columns: 1fr; } .drop-zone { min-height: 190px; padding: 22px 16px; } .card-heading, .beta-note, .tool-footer .shell { flex-direction: column; gap: 12px; } }

@media (max-width: 620px) {
    .main-grid { grid-template-columns: minmax(0, 1fr); }
    body[data-zatforge-embedded="1"] .main-grid { gap: 20px; padding-block: 16px 30px; }
    body[data-zatforge-embedded="1"] .hero-copy h1 { font-size: clamp(30px, 9vw, 42px); }
    body[data-zatforge-embedded="1"] .hero-copy .lead { font-size: 15px; margin: 10px 0 0; }
    body[data-zatforge-embedded="1"] .feature-list { display: none; }
    .converter-card { min-width: 0; padding: 14px; }
    .field { min-width: 0; }
    .field input, .field select { min-width: 0; font-size: 16px; }
    .drop-zone strong { overflow-wrap: anywhere; }
}
