:root {
    color-scheme: dark;
    --bg: #070a0f;
    --bg-soft: #0b1018;
    --panel: #101722;
    --panel-soft: #151e2b;
    --panel-raised: #192433;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f5f7fb;
    --muted: #98a4b7;
    --muted-bright: #bdc6d4;
    --accent: #b9ff66;
    --accent-strong: #8ee83c;
    --accent-ink: #101807;
    --blue: #78a9ff;
    --danger: #ff7c82;
    --warning: #ffd168;
    --success: #7ff2ae;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% -8%, rgba(105, 137, 255, 0.15), transparent 28rem),
        radial-gradient(circle at 85% 13%, rgba(185, 255, 102, 0.08), transparent 27rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
select,
label,
input[type="range"] {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
label,
select,
input[type="range"] {
    outline: none;
}

button:focus-visible,
a:focus-visible,
label:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    border-radius: 9px;
    padding: 10px 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(7, 10, 15, 0.76);
    backdrop-filter: blur(22px) saturate(135%);
}

.header-inner {
    width: min(1460px, calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 17px;
    font-weight: 950;
    transform: rotate(-4deg);
}

.brand-name {
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.brand-edition {
    border: 1px solid rgba(185, 255, 102, 0.35);
    border-radius: 999px;
    padding: 3px 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-bright);
    font-size: 13px;
    font-weight: 650;
}

.status-dot,
.preview-status > span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(185, 255, 102, 0.1), 0 0 16px rgba(185, 255, 102, 0.45);
}

.header-status.is-error .status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(255, 124, 130, 0.1);
}

.hero {
    position: relative;
    min-height: 515px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 88px 24px 112px;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.hero-glow-one {
    width: 520px;
    height: 520px;
    top: -310px;
    left: calc(50% - 530px);
    background: rgba(101, 132, 255, 0.17);
}

.hero-glow-two {
    width: 470px;
    height: 470px;
    right: calc(50% - 590px);
    bottom: -340px;
    background: rgba(185, 255, 102, 0.13);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    text-align: center;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow > span {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    max-width: 900px;
    margin: 22px auto 0;
    font-size: clamp(45px, 6.6vw, 88px);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 em {
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.hero-copy {
    max-width: 680px;
    margin: 25px auto 0;
    color: var(--muted-bright);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
}

.hero-facts {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-facts span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 12px;
}

.hero-facts b {
    color: var(--text);
    font-weight: 750;
}

.enhancer-shell {
    width: min(1460px, calc(100% - 48px));
    margin: -44px auto 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(13, 19, 28, 0.97);
    box-shadow: var(--shadow);
}

.workspace-bar {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
}

.workspace-bar h2 {
    margin: 5px 0 0;
    font-size: clamp(19px, 2vw, 25px);
    letter-spacing: -0.035em;
}

.steps {
    display: flex;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 10px 6px 7px;
    color: #778397;
    font-size: 11px;
    font-weight: 750;
    transition: 180ms ease;
}

.steps li > span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 10px;
}

.steps li.is-active {
    border-color: rgba(185, 255, 102, 0.22);
    background: rgba(185, 255, 102, 0.06);
    color: var(--accent);
}

.steps li.is-active > span,
.steps li.is-complete > span {
    background: var(--accent);
    color: var(--accent-ink);
}

.steps li.is-complete {
    color: var(--muted-bright);
}

.enhancer-grid {
    display: grid;
    grid-template-columns: minmax(355px, 430px) minmax(0, 1fr);
    min-height: 760px;
}

.health-notice {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
    align-items: start;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 209, 104, 0.28);
    padding: 16px 27px;
    background: rgba(255, 209, 104, 0.08);
    color: #ffe3a1;
}

.health-notice.is-error {
    border-bottom-color: rgba(255, 124, 130, 0.32);
    background: rgba(255, 124, 130, 0.09);
    color: #ffc9cc;
}

.health-notice-copy strong {
    display: block;
    font-size: 12px;
}

.health-notice-copy p,
.health-notice ul {
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.55;
}

.health-notice-copy p {
    color: var(--muted-bright);
}

.health-notice ul {
    padding-left: 17px;
}

.health-notice li + li {
    margin-top: 3px;
}

.enhancer-grid.has-4k-capacity-warning .target-featured > span {
    border-color: rgba(255, 209, 104, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 209, 104, 0.08);
}

.control-panel {
    border-right: 1px solid var(--line);
    background: var(--panel);
}

.control-section,
.process-block {
    padding: 25px 27px;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.section-number {
    min-width: 27px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.section-heading h3 {
    margin: -3px 0 2px;
    font-size: 15px;
    letter-spacing: -0.015em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.drop-zone {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(185, 255, 102, 0.34);
    border-radius: 16px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(185, 255, 102, 0.055), rgba(120, 169, 255, 0.025)),
        rgba(255, 255, 255, 0.015);
    cursor: pointer;
    text-align: center;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--accent);
    background: rgba(185, 255, 102, 0.09);
    transform: translateY(-1px);
}

.upload-symbol {
    width: 42px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border: 1px solid rgba(185, 255, 102, 0.3);
    border-radius: 13px;
    background: rgba(185, 255, 102, 0.08);
}

.upload-symbol::before {
    content: "";
    width: 12px;
    height: 13px;
    border: 2px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 3px 3px;
    transform: translateY(3px);
}

.upload-symbol i::before,
.upload-symbol i::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}

.upload-symbol i::before {
    width: 2px;
    height: 13px;
}

.upload-symbol i::after {
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    background: transparent;
    transform: translateX(-50%) rotate(45deg);
}

.drop-zone strong {
    font-size: 14px;
}

.drop-zone > span:not(.upload-symbol) {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.drop-zone u {
    color: var(--accent);
    text-decoration: none;
}

.drop-zone small {
    margin-top: 8px;
    color: #778397;
    font-size: 10px;
}

.file-card {
    min-height: 74px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(185, 255, 102, 0.21);
    border-radius: 15px;
    padding: 9px;
    background: rgba(185, 255, 102, 0.045);
}

.file-card img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #080c12;
    object-fit: cover;
}

.file-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-copy span {
    color: var(--muted);
    font-size: 10px;
}

.icon-button,
.text-button,
.secondary-button {
    border: 0;
    background: transparent;
    color: var(--muted-bright);
    cursor: pointer;
    font-weight: 750;
}

.icon-button {
    border-radius: 9px;
    padding: 8px;
    color: var(--accent);
    font-size: 10px;
}

.icon-button:hover,
.text-button:hover {
    color: var(--text);
}

.notice {
    margin-top: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px 12px;
    color: var(--muted-bright);
    font-size: 11px;
    line-height: 1.5;
}

.notice.error {
    border-color: rgba(255, 124, 130, 0.28);
    background: rgba(255, 124, 130, 0.07);
    color: #ffc1c4;
}

.notice.info {
    border-color: rgba(120, 169, 255, 0.25);
    background: rgba(120, 169, 255, 0.06);
    color: #c7dbff;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.target-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.target-option input,
.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.target-option > span {
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 7px 5px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--muted-bright);
    text-align: center;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.target-option:hover > span {
    border-color: var(--line-strong);
    color: var(--text);
}

.target-option input:focus-visible + span {
    box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent);
}

.target-option input:checked + span {
    border-color: rgba(185, 255, 102, 0.65);
    background: rgba(185, 255, 102, 0.09);
    color: var(--accent);
}

.target-option input:disabled + span,
.segmented-control input:disabled + span {
    opacity: 0.48;
    cursor: not-allowed;
}

.target-option b {
    font-size: 11px;
    font-weight: 800;
}

.target-option small {
    margin-top: 1px;
    color: #748094;
    font-size: 8px;
}

.target-option input:checked + span small {
    color: #9fb47f;
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 17px;
}

.select-field,
.range-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.select-field > span,
.range-field > span,
.detail-field legend {
    color: var(--muted-bright);
    font-size: 10px;
    font-weight: 750;
}

.select-field select {
    width: 100%;
    height: 37px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 28px 0 10px;
    background: var(--panel-soft);
    color: var(--text);
    cursor: pointer;
}

.range-field > span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.range-field output {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
}

input[type="range"] {
    width: 100%;
    height: 15px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    accent-color: var(--accent);
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.13));
}

input[type="range"]::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -5px;
    border: 2px solid var(--panel);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    -webkit-appearance: none;
}

input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

input[type="range"]::-moz-range-progress {
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

input[type="range"]::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 2px solid var(--panel);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.quality-field.is-lossless {
    opacity: 0.62;
}

.quality-field.is-lossless input {
    cursor: not-allowed;
}

.detail-field {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.detail-field legend {
    margin-bottom: 7px;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.14);
}

.segmented-control label {
    position: relative;
    cursor: pointer;
}

.segmented-control span {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    transition: 150ms ease;
}

.segmented-control input:checked + span {
    background: var(--panel-raised);
    color: var(--text);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.segmented-control input:focus-visible + span {
    box-shadow: 0 0 0 2px var(--accent);
}

.fine-tune {
    padding-top: 0;
    padding-bottom: 0;
}

.fine-tune summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}

.fine-tune summary::-webkit-details-marker {
    display: none;
}

.fine-tune summary > span {
    display: flex;
    flex-direction: column;
}

.fine-tune summary b {
    font-size: 12px;
}

.fine-tune summary small {
    color: var(--muted);
    font-size: 9px;
}

.fine-tune summary i {
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg) translate(-2px, 2px);
    transition: transform 160ms ease;
}

.fine-tune[open] summary i {
    transform: rotate(225deg) translate(-2px, 2px);
}

.slider-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 17px;
    padding: 2px 0 21px;
}

.process-block {
    border-bottom: 0;
}

.primary-button,
.download-button,
.secondary-button {
    min-height: 48px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.primary-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 0 17px;
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 11px 30px rgba(142, 232, 60, 0.13);
}

.primary-button:not(:disabled):hover,
.download-button:hover {
    background: #c7ff85;
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.button-arrow {
    font-size: 18px;
    line-height: 1;
}

.text-button {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
    padding: 8px;
    font-size: 10px;
}

.progress-panel {
    margin-top: 13px;
    border: 1px solid rgba(185, 255, 102, 0.16);
    border-radius: 11px;
    padding: 10px;
    background: rgba(185, 255, 102, 0.035);
}

.progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--muted-bright);
    font-size: 9px;
}

.progress-copy output {
    color: var(--accent);
    font-family: ui-monospace, monospace;
}

.progress-panel progress {
    width: 100%;
    height: 4px;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-panel progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.08);
}

.progress-panel progress::-webkit-progress-value {
    border-radius: 99px;
    background: var(--accent);
    transition: width 280ms ease;
}

.progress-panel progress::-moz-progress-bar {
    border-radius: 99px;
    background: var(--accent);
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
    color: #778397;
    font-size: 9px;
    text-align: center;
}

.privacy-note > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-top: 3px;
    border: 1px solid #697589;
    border-radius: 50%;
}

.preview-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background:
        radial-gradient(circle at 80% 8%, rgba(120, 169, 255, 0.055), transparent 22rem),
        var(--bg-soft);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.preview-header h3 {
    margin: 5px 0 0;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.04em;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.preview-status > span {
    width: 6px;
    height: 6px;
    background: #586475;
    box-shadow: none;
}

.preview-status.ready > span,
.preview-status.complete > span {
    background: var(--accent);
    box-shadow: 0 0 9px rgba(185, 255, 102, 0.5);
}

.preview-status.processing > span {
    background: var(--blue);
    animation: pulse 1.2s ease-in-out infinite;
}

.preview-status.error > span {
    background: var(--danger);
}

.empty-preview {
    min-height: 610px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.empty-visual {
    width: 184px;
    height: 134px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(150deg, #19263a, #101722 58%, #151d25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.empty-visual .sun {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 30px rgba(185, 255, 102, 0.25);
}

.mountain {
    position: absolute;
    bottom: -25px;
    border-radius: 18px;
    background: #26374d;
    transform: rotate(45deg);
}

.mountain-one {
    width: 100px;
    height: 100px;
    left: 5px;
}

.mountain-two {
    width: 120px;
    height: 120px;
    right: -26px;
    background: #1d2b3d;
}

.empty-visual b {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.3);
    font-size: 27px;
    letter-spacing: -0.06em;
}

.empty-preview h4 {
    margin: 26px 0 7px;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.empty-preview p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.format-row {
    display: flex;
    gap: 6px;
    margin-top: 19px;
}

.format-row span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 7px;
    color: #778397;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.active-preview {
    min-width: 0;
}

.preview-toolbar {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.image-info {
    min-width: 0;
    overflow: hidden;
    color: var(--muted-bright);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-hint {
    flex: 0 0 auto;
    color: #778397;
    font-size: 9px;
}

.comparison {
    --compare-position: 50%;
    --preview-ratio: 16 / 9;
    width: 100%;
    min-height: 360px;
    max-height: 760px;
    max-height: min(760px, 78vh);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    aspect-ratio: var(--preview-ratio);
    background:
        linear-gradient(45deg, #111925 25%, transparent 25%),
        linear-gradient(-45deg, #111925 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111925 75%),
        linear-gradient(-45deg, transparent 75%, #111925 75%),
        #0d131d;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    isolation: isolate;
}

.comparison:focus-within {
    box-shadow: 0 0 0 2px var(--accent);
}

.comparison-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.before-image {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.image-label {
    position: absolute;
    top: 14px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(4, 7, 11, 0.68);
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.label-before {
    left: 14px;
}

.label-after {
    right: 14px;
}

.comparison-divider {
    width: 2px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position);
    z-index: 5;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transform: translateX(-50%);
}

.comparison-divider > span {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(7, 10, 15, 0.82);
    color: #fff;
    font-size: 9px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
}

#compareRange {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 6;
    opacity: 0.001;
    cursor: ew-resize;
}

#compareRange:disabled {
    cursor: default;
}

.preview-help {
    margin: 9px 2px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.result-card {
    margin-top: 17px;
    border: 1px solid rgba(185, 255, 102, 0.2);
    border-radius: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at 95% -10%, rgba(185, 255, 102, 0.09), transparent 14rem),
        var(--panel);
}

.result-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.success-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 900;
}

.result-heading h4 {
    margin: 4px 0 3px;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.result-heading > div > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin: 17px 0 0;
}

.result-stats > div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.result-stats dt {
    color: #6f7b8e;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-stats dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warning-panel {
    margin-top: 12px;
    border: 1px solid rgba(255, 209, 104, 0.22);
    border-radius: 11px;
    padding: 10px 12px;
    background: rgba(255, 209, 104, 0.055);
    color: #f1d99e;
    font-size: 9px;
}

.warning-panel strong {
    display: block;
    margin-bottom: 3px;
}

.warning-panel ul {
    margin: 0;
    padding-left: 15px;
}

.warning-panel li + li {
    margin-top: 3px;
}

.result-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.7fr);
    gap: 9px;
    margin-top: 14px;
}

.download-button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 15px;
    background: var(--accent);
    color: var(--accent-ink);
}

.download-button span {
    font-size: 11px;
    font-weight: 900;
}

.download-button small {
    opacity: 0.67;
    font-size: 8px;
}

.secondary-button {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-bright);
    cursor: pointer;
    font-size: 10px;
}

.secondary-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
    transform: translateY(-1px);
}

.feature-strip {
    width: min(1360px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 58px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--line);
}

.feature-strip article {
    min-height: 150px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 16px;
    padding: 27px;
    background: var(--bg-soft);
}

.feature-index {
    color: var(--accent);
    font-family: ui-monospace, monospace;
    font-size: 10px;
}

.feature-strip h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.feature-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.site-footer {
    width: min(1360px, calc(100% - 48px));
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    color: #778397;
    font-size: 10px;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--muted-bright);
}

.noscript {
    position: fixed;
    right: 15px;
    bottom: 15px;
    left: 15px;
    z-index: 100;
    border: 1px solid rgba(255, 124, 130, 0.3);
    border-radius: 12px;
    padding: 13px;
    background: #2a1419;
    color: #ffc3c6;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1120px) {
    .enhancer-grid {
        grid-template-columns: 370px minmax(0, 1fr);
    }

    .preview-panel {
        padding: 22px;
    }

    .result-stats {
        grid-template-columns: 1fr 1fr;
    }

    .result-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 470px;
        padding-bottom: 88px;
    }

    .enhancer-shell {
        width: min(720px, calc(100% - 30px));
        margin-top: -35px;
    }

    .workspace-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

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

    .control-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .preview-panel {
        min-height: 620px;
    }

    .empty-preview {
        min-height: 500px;
    }

    .feature-strip {
        width: min(720px, calc(100% - 30px));
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner {
        width: calc(100% - 30px);
        min-height: 64px;
    }

    .header-status {
        font-size: 0;
    }

    .hero {
        min-height: 440px;
        padding: 66px 18px 86px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-facts span {
        padding: 7px 10px;
        font-size: 9px;
    }

    .enhancer-shell {
        width: calc(100% - 20px);
        border-radius: 22px;
    }

    .workspace-bar,
    .control-section,
    .process-block,
    .preview-panel {
        padding-right: 17px;
        padding-left: 17px;
    }

    .health-notice {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 17px;
    }

    .workspace-bar {
        min-height: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .steps {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .steps li {
        justify-content: center;
        padding-right: 7px;
        font-size: 9px;
    }

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

    .field-pair,
    .slider-stack {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        min-height: 560px;
        padding-top: 21px;
        padding-bottom: 21px;
    }

    .preview-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .empty-preview {
        min-height: 420px;
        padding: 24px;
    }

    .comparison {
        min-height: 240px;
        max-height: 70vh;
        max-height: 70svh;
        border-radius: 15px;
    }

    .result-card {
        padding: 15px;
    }

    .result-heading h4 {
        font-size: 15px;
    }

    .result-stats {
        grid-template-columns: 1fr 1fr;
    }

    .feature-strip {
        width: calc(100% - 20px);
        margin-top: 34px;
    }

    .feature-strip article {
        min-height: 0;
        padding: 21px;
    }

    .site-footer {
        width: calc(100% - 30px);
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
