﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0b0f15;
  --surface: #10151d;
  --surface-raised: #151c26;
  --surface-soft: #1b2430;
  --surface-glass: rgba(16, 21, 29, 0.84);
  --line: rgba(143, 159, 178, 0.18);
  --line-strong: rgba(166, 181, 199, 0.34);
  --text: #f7f9fc;
  --muted: #929eae;
  --muted-strong: #c2cad5;
  --accent: #c4f43f;
  --accent-hover: #d2ff55;
  --accent-deep: #8fc213;
  --accent-ink: #172000;
  --cyan: #63e5d3;
  --blue: #5f83ff;
  --danger: #ff7b7b;
  --danger-deep: #d94e4e;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-xl: 0 34px 90px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-accent: 0 18px 46px rgba(196, 244, 63, 0.14)
}

html {
  scroll-behavior: smooth;
  background: var(--bg)
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, rgba(95, 131, 255, 0.1), transparent 36%), linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px), var(--bg);
  background-size: auto, 54px 54px, 54px 54px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.05), rgba(7, 9, 13, 0.78) 72%, var(--bg));
  content: "";
  pointer-events: none
}

button,
input,
a {
  font: inherit
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent
}

button:focus-visible,
a:focus-visible,
label:focus-within,
input:focus-visible {
  outline: 3px solid rgba(196, 244, 63, 0.4);
  outline-offset: 3px
}

[hidden] {
  display: none !important
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  filter: blur(125px);
  opacity: 0.13;
  pointer-events: none
}

.ambient-one {
  top: -290px;
  left: -210px;
  background: var(--accent)
}

.ambient-two {
  top: 250px;
  right: -300px;
  background: var(--blue)
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.76));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(196, 244, 63, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(196, 244, 63, 0.2), rgba(196, 244, 63, 0.04)), var(--surface-raised);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 10px 28px rgba(0, 0, 0, 0.24)
}

.brand-mark svg {
  width: 23px;
  height: 23px
}

.brand>span:last-child {
  display: flex;
  flex-direction: column
}

.brand strong {
  font-size: 1.04rem;
  letter-spacing: -0.025em
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.7rem
}

.privacy-pill,
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 21, 29, 0.76);
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 680;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04)
}

.privacy-pill {
  padding: 9px 14px
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(196, 244, 63, 0.08), 0 0 18px rgba(196, 244, 63, 0.45)
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 92px 0 62px;
  text-align: center
}

.eyebrow,
.preview-kicker {
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.18em
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(196, 244, 63, 0.18);
  border-radius: 999px;
  background: rgba(196, 244, 63, 0.05)
}

.hero .eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(196, 244, 63, 0.65);
  content: ""
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 7.2vw, 6rem);
  font-weight: 790;
  letter-spacing: -0.07em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent) 4%, #e2ff8d 52%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-copy {
  max-width: 700px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@supports (text-wrap: balance) {

  .hero h1,
  .hero-copy {
    -webkit-text-wrap: balance;
    text-wrap: balance;
  }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted-strong);
  font-size: 0.79rem
}

.hero-points span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 21, 29, 0.58)
}

.hero-points svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5
}

.workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: stretch
}

.control-card,
.preview-card,
.privacy-card,
.result-card,
.how-it-works {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 34%), var(--surface-glass);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.control-card::before,
.preview-card::before,
.privacy-card::before,
.result-card::before,
.how-it-works::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  content: "";
  pointer-events: none
}

.control-card {
  padding: clamp(24px, 4vw, 38px)
}

.card-heading,
.result-title {
  display: flex;
  align-items: center;
  gap: 14px
}

.card-heading h2,
.preview-header h2,
.result-title h2 {
  font-size: 1.07rem;
  letter-spacing: -0.025em
}

.card-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(196, 244, 63, 0.18);
  border-radius: 11px;
  background: rgba(196, 244, 63, 0.08);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06)
}

.upload-area {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 5%, rgba(196, 244, 63, 0.06), transparent 38%), rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease
}

.upload-area::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: calc(var(--radius-lg) - 7px);
  content: "";
  pointer-events: none
}

.upload-area:hover,
.upload-area.dragover {
  border-color: rgba(196, 244, 63, 0.76);
  background: radial-gradient(circle at 50% 0%, rgba(196, 244, 63, 0.12), transparent 42%), rgba(196, 244, 63, 0.03);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(196, 244, 63, 0.03)
}

.upload-area.dragover {
  transform: translateY(-2px)
}

.upload-area.is-processing {
  opacity: 0.55;
  pointer-events: none
}

.upload-label {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 246px;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 34px 22px;
  text-align: center
}

.upload-icon-wrap {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(196, 244, 63, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(196, 244, 63, 0.14), rgba(196, 244, 63, 0.045));
  color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease
}

.upload-area:hover .upload-icon-wrap,
.upload-area.dragover .upload-icon-wrap {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(145deg, rgba(196, 244, 63, 0.22), rgba(196, 244, 63, 0.07));
  box-shadow: var(--shadow-accent)
}

.upload-icon-wrap svg {
  width: 29px;
  height: 29px
}

.upload-text {
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em
}

.upload-or {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.81rem
}

.upload-hint {
  margin-top: 15px;
  color: #697687;
  font-size: 0.68rem
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(21, 28, 38, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035)
}

.file-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--cyan)
}

.file-icon svg {
  width: 20px;
  height: 20px
}

.file-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column
}

.file-copy strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap
}

.file-copy small {
  color: var(--muted);
  font-size: 0.69rem
}

.replace-file {
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  transition: background 160ms ease
}

.replace-file:hover {
  background: rgba(196, 244, 63, 0.08)
}

.output-options {
  min-width: 0;
  margin-top: 24px;
  border: 0
}

.output-options legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 740
}

.resolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 13px
}

.resolution-option {
  position: relative;
  min-width: 0;
  cursor: pointer
}

.resolution-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0
}

.resolution-option>span {
  display: flex;
  min-height: 78px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 28, 38, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease
}

.resolution-option:hover>span {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-soft)
}

.resolution-option strong {
  font-size: 0.79rem
}

.resolution-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem
}

.resolution-option input:checked+span {
  border-color: rgba(196, 244, 63, 0.64);
  background: linear-gradient(145deg, rgba(196, 244, 63, 0.12), rgba(196, 244, 63, 0.035));
  box-shadow: inset 0 0 0 1px rgba(196, 244, 63, 0.05), 0 10px 24px rgba(0, 0, 0, 0.14)
}

.resolution-option input:focus-visible+span {
  outline: 3px solid rgba(196, 244, 63, 0.35);
  outline-offset: 2px
}

.resolution-option em {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 2;
  padding: 2px 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(196, 244, 63, 0.15)
}

.option-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem
}

.primary-button,
.secondary-button,
.download-button {
  display: inline-flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease
}

.primary-button {
  width: 100%;
  margin-top: 24px;
  border: 0;
  background: linear-gradient(180deg, #d1ff56, var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.48)
}

.primary-button svg,
.secondary-button svg,
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ddff78, var(--accent-hover));
  box-shadow: 0 20px 48px rgba(196, 244, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5)
}

.primary-button:active:not(:disabled) {
  transform: translateY(0)
}

.primary-button:disabled {
  cursor: not-allowed;
  background: var(--surface-soft);
  color: #667284;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035)
}

.primary-button.is-cancel {
  background: var(--danger-deep);
  color: #fff;
  box-shadow: none
}

.status-area {
  display: flex;
  min-height: 46px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-top: 13px;
  text-align: center
}

.status-area p {
  color: var(--muted);
  font-size: 0.73rem
}

.status-area .status-loading {
  color: var(--muted-strong)
}

.progress-bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  background: var(--surface-soft)
}

.progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--cyan));
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(196, 244, 63, 0.28);
  transition: width 260ms ease;
  animation: progress-flow 1.4s linear infinite
}

.preview-card {
  display: flex;
  min-height: 100%;
  flex-direction: column
}

.preview-header,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012)
}

.preview-header h2,
.result-title h2 {
  margin-top: 3px
}

.local-badge {
  padding: 7px 11px;
  border-color: rgba(196, 244, 63, 0.2);
  color: var(--accent);
  font-size: 0.67rem
}

.local-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8
}

.image-stage {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  place-items: center
}

.original-stage {
  flex: 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.052), transparent 64%), linear-gradient(145deg, #0b0e13, #0e1218)
}

.original-stage::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-md);
  content: "";
  pointer-events: none
}

.image-stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 570px;
  object-fit: contain;
  transition: filter 240ms ease, opacity 240ms ease, transform 500ms ease
}

.preview-card.is-processing .image-stage img {
  filter: saturate(0.7) brightness(0.42);
  opacity: 0.66;
  transform: scale(1.015)
}

.processing-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(7, 9, 13, 0.15), rgba(7, 9, 13, 0.58));
  text-align: center
}

.processing-overlay strong {
  margin-top: 23px;
  font-size: 0.95rem
}

.processing-overlay>span:not(.scan-line) {
  max-width: 310px;
  margin-top: 5px;
  color: var(--muted-strong);
  font-size: 0.72rem
}

.processing-orb {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.68);
  color: var(--accent);
  box-shadow: 0 0 54px rgba(196, 244, 63, 0.14)
}

.processing-orb>svg {
  width: 34px;
  height: 34px;
  animation: processing-pulse 1.7s ease-in-out infinite
}

.processing-ring {
  position: absolute;
  border: 1px solid rgba(196, 244, 63, 0.45);
  border-radius: 50%
}

.ring-one {
  inset: 4px;
  animation: ring-spin 2.7s linear infinite;
  border-top-color: transparent
}

.ring-two {
  inset: -10px;
  animation: ring-spin 4s linear infinite reverse;
  border-right-color: transparent;
  border-bottom-color: rgba(99, 229, 211, 0.38)
}

.scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(196, 244, 63, 0.58);
  animation: image-scan 2.2s ease-in-out infinite
}

.privacy-card {
  display: flex;
  min-height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
  text-align: center
}

.privacy-visual {
  position: relative;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 244, 63, 0.085), transparent 68%)
}

.privacy-visual>svg {
  width: 58px;
  height: 58px;
  color: var(--accent);
  filter: drop-shadow(0 10px 24px rgba(196, 244, 63, 0.12))
}

.orbit {
  position: absolute;
  border: 1px solid rgba(196, 244, 63, 0.14);
  border-radius: 50%
}

.orbit-one {
  inset: 8px
}

.orbit-two {
  inset: -9px;
  border-style: dashed;
  animation: ring-spin 22s linear infinite
}

.privacy-card h2 {
  margin-top: 24px;
  font-size: 1.24rem;
  letter-spacing: -0.025em
}

.privacy-card>p {
  max-width: 390px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65
}

.download-note {
  display: flex;
  width: min(100%, 410px);
  margin-top: 26px;
  padding: 15px 17px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 28, 38, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left
}

.download-note strong {
  color: var(--cyan);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase
}

.download-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55
}

.result-card {
  margin-top: 22px
}

.result-title {
  min-width: 0
}

.success-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(196, 244, 63, 0.18);
  border-radius: 50%;
  background: rgba(196, 244, 63, 0.1);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(196, 244, 63, 0.07)
}

.success-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4
}

.result-actions {
  display: flex;
  gap: 9px
}

.secondary-button,
.download-button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 0.77rem
}

.secondary-button {
  background: rgba(21, 28, 38, 0.82);
  color: var(--text)
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-soft)
}

.download-button {
  border-color: var(--accent);
  background: linear-gradient(180deg, #d1ff56, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(196, 244, 63, 0.1)
}

.download-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ddff78, var(--accent-hover));
  box-shadow: 0 15px 32px rgba(196, 244, 63, 0.16)
}

.result-body {
  padding: 26px
}

.checker-bg {
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  background-color: #d7dade;
  background-image: linear-gradient(45deg, #bdc2c9 25%, transparent 25%), linear-gradient(-45deg, #bdc2c9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bdc2c9 75%), linear-gradient(-45deg, transparent 75%, #bdc2c9 75%);
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  background-size: 22px 22px
}

.checker-help {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.69rem;
  text-align: center
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: 48px;
  margin-top: 22px;
  padding: clamp(30px, 5vw, 52px);
  box-shadow: none
}

.how-it-works h2 {
  margin-top: 7px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.045em
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none
}

.how-it-works li {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(21, 28, 38, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025)
}

.how-it-works li>span {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 880;
  letter-spacing: 0.13em
}

.how-it-works li strong {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem
}

.how-it-works li p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.55
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 48px;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.69rem
}

footer strong {
  color: var(--muted-strong)
}

.footer-note {
  max-width: 560px;
  text-align: right
}

@keyframes progress-flow {
  to {
    background-position: -200% 0
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes processing-pulse {

  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92)
  }

  50% {
    opacity: 1;
    transform: scale(1.08)
  }
}

@keyframes image-scan {
  0% {
    top: 5%;
    opacity: 0
  }

  12%,
  88% {
    opacity: 1
  }

  100% {
    top: 95%;
    opacity: 0
  }
}

@media (max-width:980px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr)
  }

  .page-shell {
    width: min(1240px, calc(100% - 36px))
  }
}

@media (max-width:880px) {
  .hero {
    padding-top: 76px
  }

  .workspace {
    grid-template-columns: 1fr
  }

  .privacy-card {
    min-height: 400px
  }

  .preview-card {
    min-height: 520px
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 28px
  }
}

@media (max-width:620px) {
  .page-shell {
    width: 100%;
    max-width: 1240px;
    padding-right: 14px;
    padding-left: 14px
  }

  .topbar {
    min-height: 72px
  }

  .brand-mark {
    width: 40px;
    height: 40px
  }

  .brand small,
  .privacy-pill {
    display: none
  }

  .hero {
    padding: 56px 0 38px
  }

  .hero .eyebrow {
    font-size: 0.61rem;
    letter-spacing: 0.14em
  }

  .hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.35rem, 13vw, 3.6rem);
    letter-spacing: -0.065em;
    line-height: 0.98
  }

  .hero-copy {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 0.92rem;
    line-height: 1.6
  }

  .hero-points {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto
  }

  .hero-points span {
    justify-content: flex-start
  }

  .control-card,
  .preview-card,
  .privacy-card,
  .result-card,
  .how-it-works {
    border-radius: 22px
  }

  .control-card {
    padding: 20px
  }

  .card-heading {
    align-items: flex-start
  }

  .upload-label {
    min-height: 205px;
    padding: 27px 18px
  }

  .upload-icon-wrap {
    width: 58px;
    height: 58px
  }

  .resolution-grid {
    grid-template-columns: 1fr
  }

  .resolution-option>span {
    min-height: 62px;
    align-items: flex-start;
    padding-left: 18px
  }

  .resolution-option em {
    top: 50%;
    right: 12px;
    left: auto;
    transform: translateY(-50%)
  }

  .preview-header,
  .result-header {
    align-items: stretch;
    flex-direction: column;
    padding: 19px
  }

  .result-actions {
    width: 100%
  }

  .secondary-button,
  .download-button {
    flex: 1;
    padding: 0 12px
  }

  .result-body {
    padding: 12px
  }

  .image-stage,
  .checker-bg {
    min-height: 285px
  }

  .preview-card {
    min-height: 420px
  }

  .privacy-card {
    min-height: 390px;
    padding: 34px 22px
  }

  .how-it-works {
    padding: 26px 20px
  }

  .how-it-works ol {
    grid-template-columns: 1fr
  }

  .how-it-works li {
    padding: 16px
  }

  footer {
    flex-direction: column;
    margin-top: 36px
  }

  .footer-note {
    text-align: left
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important
  }
}


html,
body {
  overflow-x: clip;
}


#outputArea[hidden] {
  display: block !important;
}


.resolution-option>span {
  position: relative;
}


.resolution-option>span::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}


.resolution-option input:checked+span::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 12px rgba(196, 244, 63, 0.32);
}