:root {
  --ink: #f7f6fb;
  --muted: #9ba0b5;
  --muted-2: #697087;
  --page: #090b17;
  --surface: #111427;
  --surface-2: #171b30;
  --line: rgba(219, 222, 255, 0.12);
  --line-strong: rgba(219, 222, 255, 0.2);
  --pink: #ed3ba8;
  --pink-light: #ff82ce;
  --violet: #805cf8;
  --lime: #c9f56a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behaviour: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.hidden { display: none !important; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.site-header { width: min(1320px, calc(100% - 64px)); margin: 0 auto; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: centre; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; letter-spacing: -.055em; font-size: 20px; font-weight: 700; }
.brand > span:last-child > span { color: var(--pink-light); }
.brand-mark { display: inline-flex; gap: 2px; height: 18px; align-items: flex-end; transform: skewY(-24deg); }
.brand-mark i { display: block; width: 4px; border-radius: 3px; background: var(--pink-light); }
.brand-mark i:nth-child(1) { height: 8px; opacity: .65; }.brand-mark i:nth-child(2) { height: 14px; }.brand-mark i:nth-child(3) { height: 18px; background: var(--violet); }
.privacy-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,245,106,.1); }

main { overflow: hidden; }
.hero { width: min(980px, calc(100% - 40px)); padding: 78px 0 118px; margin: 0 auto; text-align: center; }
.eyebrow { color: var(--pink-light); display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .125em; text-transform: uppercase; }
.eyebrow > span { width: 16px; height: 1px; background: currentColor; }
.eyebrow.success { color: var(--lime); }
.hero h1 { max-width: 760px; margin: 20px auto 18px; letter-spacing: -.062em; font-size: clamp(48px, 7vw, 82px); line-height: .95; font-weight: 600; }
h1 em { color: var(--pink-light); font-family: var(--serif); font-size: 1.06em; font-weight: 400; letter-spacing: -.085em; }
.hero-copy { max-width: 475px; margin: 0 auto 39px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.upload-panel { width: 100%; min-height: 268px; overflow: hidden; display: grid; grid-template-columns: 43% 57%; text-align: left; border: 1px solid var(--line-strong); border-radius: 14px; background: linear-gradient(135deg, rgba(128,92,248,.11), rgba(237,59,168,.05) 57%, rgba(255,255,255,.02)); box-shadow: 0 20px 50px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.04); transition: border-color .2s, transform .2s; }
.upload-panel.dragover { border-color: var(--pink); transform: translateY(-3px); }
.upload-art { position: relative; min-height: 268px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 28% 20%, rgba(237,59,168,.32), transparent 34%), radial-gradient(circle at 84% 74%, rgba(128,92,248,.5), transparent 35%), #15172a; }
.art-grid { position: absolute; inset: -40px; background-size: 26px 26px; background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px); transform: rotate(-15deg) scale(1.18); opacity: .65; }
.art-photo { position: absolute; z-index: 1; width: 130px; height: 164px; top: 54px; left: calc(50% - 65px); border: 1px solid rgba(255,255,255,.44); border-radius: 5px; background: linear-gradient(146deg, #f4b4a2 0 24%, #774f71 24% 51%, #242649 51%); box-shadow: 17px 17px 0 rgba(5,6,17,.28); transform: rotate(-7deg); }
.art-photo:before { content: ''; position: absolute; width: 50px; height: 50px; border-radius: 99px; top: 30px; left: 42px; background: rgba(255,221,190,.8); box-shadow: 0 55px 0 17px rgba(28,30,61,.9); }.art-photo span { position: absolute; display: grid; place-items: center; inset: 0; color: white; font-size: 78px; font-family: var(--mono); font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.upload-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 35px 48px; }
.upload-content h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.04em; }.upload-content p { margin: 0 0 23px; color: var(--muted); font-size: 14px; }.upload-content small { margin-top: 15px; color: var(--muted-2); font-size: 11px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 46px; border-radius: 7px; padding: 0 19px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform .18s, filter .18s, background .18s, border-color .18s; }.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }.button:active:not(:disabled) { transform: translateY(0); }.button.primary { color: #15091a; background: linear-gradient(102deg, var(--pink-light), var(--pink)); box-shadow: 0 8px 22px rgba(237,59,168,.19); }.button.primary:disabled { opacity: .42; box-shadow: none; }.button.secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }.button-icon { font-size: 19px; font-weight: 400; line-height: 1; }.consent { max-width: 640px; margin: 19px auto 0; color: var(--muted-2); font-size: 11px; line-height: 1.55; }

.workspace, .result-section { width: min(1210px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 110px; }.workspace-top, .result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }.workspace h2, .result-section h2 { margin: 10px 0 0; letter-spacing: -.05em; font-size: clamp(28px, 4vw, 42px); }.text-button { padding: 8px 0; border: none; color: var(--muted); background: transparent; font-size: 13px; }.text-button:hover { color: var(--pink-light); }.text-button span { margin-left: 4px; color: var(--pink-light); }
.editor-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; }.canvas-card, .control-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }.canvas-toolbar { display: flex; gap: 8px; align-items: center; height: 67px; padding: 0 17px; border-bottom: 1px solid var(--line); }.tool { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 12px; }.tool.active { color: var(--ink); background: #25293f; border-color: rgba(255,255,255,.07); }.tool:hover:not(:disabled) { color: var(--ink); }.tool:disabled { opacity: .35; }.tool-symbol { display: inline-block; width: 14px; height: 14px; }.brush-symbol { border: 2px solid currentColor; border-radius: 99px; border-top-color: transparent; transform: rotate(-38deg); }.box-symbol { border: 1.5px solid currentColor; }.toolbar-rule { height: 21px; width: 1px; margin: 0 4px; background: var(--line); }.brush-size { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }.brush-size output, .radius-label output { color: var(--pink-light); font-family: var(--mono); font-size: 11px; }input[type='range'] { accent-color: var(--pink); cursor: pointer; width: 70px; }.undo { margin-left: auto; }
.canvas-stage { position: relative; display: grid; min-height: 490px; place-items: center; overflow: auto; background-color: #0c0f1d; background-image: linear-gradient(45deg, #111424 25%, transparent 25%), linear-gradient(-45deg, #111424 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #111424 75%), linear-gradient(-45deg, transparent 75%, #111424 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }.canvas-stage canvas { position: absolute; max-width: calc(100% - 38px); max-height: calc(100% - 38px); object-fit: contain; touch-action: none; }.canvas-stage #maskCanvas { cursor: crosshair; }.canvas-placeholder { position: absolute; color: var(--muted); font-size: 13px; }.canvas-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }.canvas-hint span { width: 10px; height: 10px; border-radius: 99px; background: var(--pink); opacity: .8; }
.control-card { display: flex; flex-direction: column; }.control-section { padding: 24px 24px 22px; border-bottom: 1px solid var(--line); }.control-kicker { color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }.control-section h3 { margin: 8px 0 16px; font-size: 15px; letter-spacing: -.025em; }.mode-options { display: grid; gap: 8px; }.option-card { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: .18s; }.option-card:has(input:checked) { border-color: rgba(255,130,206,.55); background: rgba(237,59,168,.08); }.option-card input { display: none; }.radio { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 2px; border: 1px solid var(--muted-2); border-radius: 99px; }.option-card:has(input:checked) .radio { border: 4px solid var(--pink-light); }.option-card strong { display: block; font-size: 12px; }.option-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }.select-wrap { position: relative; }.select-wrap:after { content: '⌄'; position: absolute; top: 8px; right: 10px; color: var(--muted); pointer-events: none; }.select-wrap select { width: 100%; height: 36px; padding: 0 27px 0 10px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 5px; outline: none; appearance: none; background: #0d1020; font-size: 11px; }.radius-label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 17px; color: var(--muted); font-size: 11px; }.radius-label input { width: 100%; flex-basis: 100%; }.remove-button { margin: auto 24px 0; }.processing-note { margin: 13px 24px 20px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }

.result-section { padding-top: 12px; }.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }.comparison-image { position: relative; display: grid; place-items: center; overflow: hidden; background: #101323; }.comparison-image img { display: block; max-width: 100%; max-height: 600px; object-fit: contain; }.image-label { position: absolute; top: 15px; left: 15px; padding: 5px 8px; border-radius: 3px; color: #fff; background: rgba(6,7,16,.7); backdrop-filter: blur(5px); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }.after .image-label { color: var(--lime); }.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }.download { min-width: 176px; }

.how-it-works { width: min(1210px, calc(100% - 64px)); margin: 0 auto 96px; padding-top: 36px; border-top: 1px solid var(--line); }.section-label { margin-bottom: 26px; color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }.steps { display: grid; grid-template-columns: repeat(3,1fr); }.steps article { min-height: 150px; padding: 4px 32px; border-left: 1px solid var(--line); }.steps article:first-child { padding-left: 0; border-left: none; }.step-number { color: var(--pink-light); font-family: var(--mono); font-size: 11px; }.steps h3 { margin: 18px 0 7px; font-size: 19px; letter-spacing: -.04em; }.steps p { max-width: 205px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer { width: min(1320px, calc(100% - 64px)); display: flex; align-items: center; justify-content: space-between; min-height: 92px; margin: 0 auto; border-top: 1px solid var(--line); }footer .brand { font-size: 16px; }footer p { color: var(--muted-2); font-size: 10px; }
.modal { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,5,14,.73); backdrop-filter: blur(8px); }.modal-card { width: min(390px, 100%); padding: 36px; text-align: center; border: 1px solid var(--line-strong); border-radius: 12px; background: #161a2d; box-shadow: 0 25px 80px rgba(0,0,0,.6); }.loader { width: 37px; height: 37px; margin: 0 auto 20px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--pink-light); border-radius: 99px; animation: spin .8s linear infinite; }.modal-icon { display: grid; place-items: center; width: 37px; height: 37px; margin: 0 auto 20px; border: 1px solid #ff6b9a; border-radius: 99px; color: #ff6b9a; font-weight: 700; }.modal-card h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }.modal-card p { margin: 8px auto 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }.modal-card .button { width: 100%; }@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 840px) { .site-header { width: calc(100% - 40px); }.hero { padding-top: 52px; }.upload-panel { grid-template-columns: 1fr; }.upload-art { display: none; }.upload-content { align-items: center; padding: 46px 25px; text-align: center; }.editor-grid { grid-template-columns: 1fr; }.canvas-stage { min-height: 430px; }.control-card { min-height: auto; }.remove-button { margin-top: 23px; }.workspace, .result-section, .how-it-works { width: calc(100% - 40px); }.steps article { padding: 4px 17px; }.steps article:first-child { padding-left: 0; }.comparison { min-height: 300px; } }
@media (max-width: 560px) { .site-header { height: 70px; width: calc(100% - 28px); }.privacy-note { display: none; }.hero { width: calc(100% - 28px); padding: 47px 0 75px; }.hero h1 { font-size: 48px; }.hero-copy { font-size: 14px; }.workspace, .result-section, .how-it-works { width: calc(100% - 28px); }.workspace-top, .result-heading { align-items: flex-start; flex-direction: column; gap: 9px; }.canvas-toolbar { gap: 4px; padding: 0 8px; }.tool { padding: 0 5px; font-size: 10px; }.toolbar-rule { margin: 0 1px; }.brush-size { display: none; }.undo { font-size: 0; }.undo:first-letter { font-size: 18px; }.canvas-stage { min-height: 340px; }.comparison { grid-template-columns: 1fr; min-height: unset; }.comparison-image { min-height: 240px; }.result-actions { flex-direction: column; align-items: stretch; }.result-actions .button { width: 100%; }.steps { grid-template-columns: 1fr; gap: 20px; }.steps article { min-height: 0; padding: 0 0 20px; border: none; border-bottom: 1px solid var(--line); }.steps article:last-child { border-bottom: none; }footer { width: calc(100% - 28px); flex-direction: column; align-items: flex-start; gap: 13px; padding: 26px 0; }footer p { margin: 0; }.control-section { padding: 22px 18px; }.remove-button { margin-right: 18px; margin-left: 18px; }.processing-note { margin-right: 18px; margin-left: 18px; } }
