:root {
  --bg: #f4f7fb;
  --ink: #101725;
  --muted: #66758a;
  --card: #ffffff;
  --soft: #eef5ff;
  --line: #dbe5f2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(30, 64, 130, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: #f5f6f8;
}

body.workspace-mode {
  background: #f5f6f8;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 66px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-radius: 0;
  background: #050505;
  box-shadow: none;
}

.brand,
.nav-links,
.preview-toolbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  flex: 1 1 auto;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: clamp(250px, 30vw, 390px);
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand > span {
  display: none;
}

.brand small,
p,
li,
.dropzone small,
.status-message,
.empty-state,
.preview-toolbar span,
.site-footer {
  color: var(--muted);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover {
  background: #242424;
}

main {
  padding: 0 0 34px;
}

body.workspace-mode .site-header,
body.workspace-mode .site-footer,
body.workspace-mode .back-to-top,
body.workspace-mode main > section:not(#tool),
body.workspace-mode .hero-heading,
body.workspace-mode .hero-workspace,
body.workspace-mode .stats-row {
  display: none;
}

body.workspace-mode main {
  width: 100%;
  padding: 0;
}

body.workspace-mode .hero-section {
  min-height: 100vh;
  display: grid;
  align-items: start;
  padding-top: clamp(18px, 4vw, 44px);
  padding-bottom: clamp(24px, 5vw, 58px);
}

.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 28px max(24px, calc((100vw - 1180px) / 2)) 40px;
  background: #f5f6f8;
}

.hero-heading {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center;
}

.hero-heading h1 {
  max-width: none;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  letter-spacing: 0.08em;
}

.hero-heading p:not(.eyebrow) {
  max-width: 850px;
  margin: 14px auto 0;
  color: #111827;
  font-size: 1.05rem;
}

.hero-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.95fr);
  gap: 30px;
  align-items: start;
}

.comparison-area {
  display: grid;
  gap: 18px;
}

.comparison-window {
  position: relative;
  --split: 50%;
  --sample-image: url("/static/sample-dog.svg");
  min-height: 365px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
  touch-action: none;
}

.comparison-window::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
}

.comparison-label {
  position: absolute;
  z-index: 3;
  top: 0;
  padding: 10px 12px;
  color: #ffffff;
  background: #050505;
  font-weight: 900;
}

.original-label {
  left: 0;
}

.enhanced-label {
  right: 0;
}

.comparison-split {
  position: relative;
  height: 365px;
}

.preview-half {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.original-half {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.enhanced-half {
  z-index: 1;
}

.preview-half img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.preview-half img:not([src]) {
  display: none;
}

.demo-photo {
  width: 100%;
  height: 100%;
  background-image: var(--sample-image);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #dff3ff;
}

.demo-photo span {
  display: none;
}

.demo-photo span:nth-child(2) {
  width: 68%;
}

.demo-photo span:nth-child(3) {
  width: 46%;
}

.blurry-demo {
  filter: blur(4px) saturate(0.92) contrast(0.92);
}

.sharp-demo {
  filter: saturate(1.18) contrast(1.15);
}

.slider-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--split);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #334155;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%);
  font-weight: 900;
  cursor: ew-resize;
  user-select: none;
}

.sample-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sample-thumb {
  width: 72px;
  height: 58px;
  border-radius: 7px;
  border: 4px solid #ffffff;
  padding: 0;
  background: var(--thumb-image) center / contain no-repeat #eef6ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.sample-thumb:hover,
.sample-thumb.is-active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.thumb-photo {
  --thumb-image: url("/static/sample-dog.svg");
}

.thumb-portrait {
  --thumb-image: url("/static/sample-portrait.svg");
}

.thumb-doc {
  --thumb-image: url("/static/sample-document.svg");
}

.thumb-product {
  --thumb-image: url("/static/sample-product.svg");
}

.thumb-night {
  --thumb-image: url("/static/sample-city.svg");
}

.compact-toolbar {
  justify-content: center;
  gap: 18px;
  min-height: auto;
}

.upload-card {
  min-height: 452px;
  display: grid;
  align-content: center;
  padding: 34px;
  border: 1px solid #dde2ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.tool-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 56px auto 0;
  text-align: center;
}

.stats-row div {
  display: grid;
  gap: 8px;
}

.stats-row strong {
  color: #020617;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: 0.04em;
}

.stats-row span {
  color: #111827;
  font-weight: 700;
}

.upload-workspace {
  width: 100%;
  margin-top: 36px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #d9e6f7;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff, #eaf4ff);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
}

body.workspace-mode .upload-workspace {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 4px solid #74b6ff;
  background: linear-gradient(180deg, #f8fcff, #dcedff);
}

.upload-workspace[hidden] {
  display: none;
}

.workspace-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.workspace-topbar-copy {
  text-align: center;
}

.workspace-topbar-copy h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.55rem);
}

.ghost-btn,
.secondary-btn {
  border: 1px solid #cdd9ea;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ghost-btn:hover,
.secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.full-strength {
  width: 100%;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #d7e2f0;
  border-radius: 18px;
  background: #ffffff;
}

.operation-card {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d7e2f0;
  border-radius: 20px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.operation-card:hover,
.operation-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.operation-card strong {
  font-size: 1.05rem;
}

.operation-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.uploaded-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 18px;
}

.uploaded-preview-card[hidden],
.result-comparison-panel[hidden] {
  display: none;
}

.uploaded-image-frame {
  min-height: 340px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d7e2f0;
  border-radius: 22px;
  background: #ffffff;
}

.uploaded-image-frame img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: contain;
  border-radius: 16px;
  background: #f1f5f9;
}

.uploaded-image-frame img:not([src]) {
  display: none;
}

.workspace-instructions {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid #d7e2f0;
  border-radius: 22px;
  background: #ffffff;
}

.workspace-instructions p {
  margin: 0;
}

.result-comparison-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #b7d7ff;
  border-radius: 24px;
  background: #dcedff;
}

.result-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.result-headline h3 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.operation-result-note {
  max-width: 520px;
  margin: 8px 0 0;
  color: #1e3a8a;
  font-weight: 800;
  line-height: 1.45;
}

.real-comparison {
  position: relative;
  --split: 50%;
  --split-number: 50;
  --result-width: min(100%, 760px);
  --result-aspect: 4 / 3;
  width: var(--result-width);
  aspect-ratio: var(--result-aspect);
  margin-inline: auto;
  overflow: hidden;
  border: 2px solid var(--primary-dark);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  touch-action: none;
}

.real-comparison::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
}

.real-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.real-layer img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  background: #f8fafc;
}

.original-real {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.enhanced-real {
  z-index: 1;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.process-btn {
  max-width: 320px;
  margin: 22px auto 0;
  display: block;
}

.process-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.workspace-status {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 800;
}

.loading-bar {
  max-width: 520px;
  margin: 18px auto 0;
  display: grid;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}

.loading-bar[hidden] {
  display: none;
}

.loading-bar div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.loading-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: progress-slide 1.15s ease-in-out infinite;
}

.content-section,
.final-cta {
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.75;
}

.hero-text {
  max-width: 760px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.primary-link,
.secondary-link,
.primary-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
}

.primary-link,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.secondary-link {
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.tag-cloud span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.content-section {
  margin-top: 42px;
  padding: clamp(22px, 4vw, 42px);
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.content-section {
  padding-inline: 0;
}

.final-cta {
  margin-top: 42px;
  padding: clamp(28px, 5vw, 54px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.feature-card,
.keyword-card,
.use-case-list article,
.steps-grid article,
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.dropzone {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 22px;
  border: 1.5px dashed rgba(37, 99, 235, 0.42);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff, #eef5ff);
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dropzone.dragover {
  transform: scale(1.01);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.14);
}

.dropzone input {
  display: none;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--primary);
  background: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 900;
}

.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
}

.strength-field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.strength-field strong {
  color: var(--primary);
}

.strength-field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.strength-field small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.primary-btn {
  width: 100%;
  margin-top: 16px;
  padding: 15px 18px;
}

.status-message {
  min-height: 42px;
  margin-bottom: 0;
  line-height: 1.45;
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--danger);
}

.preview-toolbar {
  min-height: 34px;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.download-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.download-link.disabled {
  color: var(--muted);
  pointer-events: none;
}

.empty-state {
  width: min(280px, calc(100% - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 24px;
}

.keyword-card,
.feature-card,
.steps-grid article,
.use-case-list article,
.faq-list details {
  padding: 22px;
}

.check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
}

.feature-grid,
.steps-grid,
.use-case-list {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.open-grid .feature-card,
.benefit-list article,
.clean-steps article {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.benefit-list article {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.soft-panel {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.keyword-card.soft-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-comparison {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin-bottom: 0;
  border: 6px solid #dff3ff;
  border-radius: 18px;
  background: #dff3ff;
  box-shadow: 0 18px 42px rgba(30, 64, 130, 0.1);
}

.section-comparison .comparison-split {
  height: 100%;
  min-height: 0;
}

.section-comparison .slider-handle {
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.wide-comparison {
  max-width: 760px;
  margin: 24px auto 0;
}

.feature-card span,
.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--soft);
  font-weight: 900;
}

.use-case-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.soft-doc {
  filter: blur(1.1px);
  opacity: 0.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-options a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  color: #1d4ed8;
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.tag-options a::before {
  content: "+";
  margin-right: 8px;
  color: var(--primary);
}

.safety-note {
  padding: 16px;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  background: var(--soft);
  color: #334155;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin-bottom: 0;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--primary), #0f172a);
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta .primary-link {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: none;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 34px;
  font-size: 0.92rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.legal-page {
  padding: 38px 0 60px;
}

.legal-hero,
.legal-content {
  width: min(900px, 100%);
  margin-inline: auto;
}

.legal-hero {
  padding: 54px 0 28px;
  text-align: left;
}

.legal-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.legal-hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.legal-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.01em;
}

.legal-content h2:first-of-type {
  margin-top: 8px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 900;
}

.contact-content {
  display: grid;
  gap: 18px;
}

.contact-highlight {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.contact-highlight span {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.86;
}

.contact-highlight a {
  color: #ffffff;
  font-size: clamp(1.25rem, 4vw, 2.1rem);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-tags {
  margin-bottom: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin: 10px 0 20px;
  padding: 26px;
  border: 1px solid #d7e2f0;
  border-radius: 28px;
  background: #f8fbff;
}

.form-heading h2 {
  margin: 0 0 8px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cdd9ea;
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-form .primary-btn {
  width: fit-content;
}

.status-message.is-error {
  color: var(--danger);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.26);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 900;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-105%);
  }

  50% {
    transform: translateX(85%);
  }

  100% {
    transform: translateX(245%);
  }
}

@media (max-width: 1120px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-workspace {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .feature-grid,
  .steps-grid,
  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .uploaded-preview-card {
    grid-template-columns: 1fr;
  }

  .use-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  body.workspace-mode .hero-section {
    padding: 10px;
  }

  body.workspace-mode .upload-workspace {
    width: 100%;
    padding: 14px;
    border-width: 2px;
    border-radius: 20px;
  }

  .site-header {
    position: static;
    align-items: center;
    flex-direction: column;
    padding-block: 12px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .brand-logo {
    width: min(100%, 320px);
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .hero-heading h1 {
    letter-spacing: 0.04em;
  }

  .comparison-window,
  .comparison-split {
    min-height: 300px;
    height: 300px;
  }

  .section-comparison,
  .section-comparison .comparison-split {
    min-height: 0;
    height: auto;
  }

  .tool-controls,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
  }

  .operation-card {
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .operation-card span {
    font-size: 0.84rem;
  }

  .full-strength,
  .uploaded-image-frame,
  .workspace-instructions,
  .result-comparison-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .uploaded-image-frame {
    min-height: auto;
  }

  .uploaded-image-frame img {
    height: auto;
    max-height: 46vh;
  }

  .feature-grid,
  .steps-grid,
  .use-case-list,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-topbar,
  .result-headline {
    grid-template-columns: 1fr;
    display: grid;
    text-align: center;
  }

  .workspace-topbar .ghost-btn,
  .result-headline .download-link,
  .contact-form .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 18px, 1180px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 8px;
    text-align: center;
    font-size: 0.78rem;
  }

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

  .workspace-topbar-copy h2 {
    font-size: clamp(1.35rem, 10vw, 2rem);
  }

  .result-meta {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .content-section,
  .final-cta,
  .upload-card,
  .legal-content,
  .contact-form {
    padding: 20px;
  }

  .legal-page {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .comparison-window,
  .comparison-split {
    min-height: 250px;
    height: 250px;
  }

  .section-comparison,
  .section-comparison .comparison-split {
    min-height: 0;
    height: auto;
  }

  .sample-thumb {
    width: 54px;
    height: 44px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
