:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --navy: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --green: #16a34a;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 60px rgba(37, 99, 235, 0.13);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    font-synthesis: none;
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; }
body { min-width: 320px; margin: 0; background: #fff; color: var(--text); line-height: 1.6; }
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner { display: flex; align-items: center; min-height: 76px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); box-shadow: 0 7px 16px rgba(37, 99, 235, 0.24); }
.brand-mark svg { width: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { position: relative; padding: 27px 0 23px; color: #475569; font-size: 0.92rem; font-weight: 600; transition: color 180ms ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-600); }
.main-nav a.active::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; border-radius: 99px; background: var(--blue-600); content: ""; }
.free-badge, .eyebrow, .panel-label { display: inline-flex; align-items: center; }
.free-badge { gap: 7px; padding: 8px 13px; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: 0.78rem; font-weight: 750; }
.free-badge svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-toggle { display: none; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px; border-radius: 10px; background: var(--navy); transition: transform 180ms ease, opacity 180ms ease; }

.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow-one { top: 90px; left: -130px; width: 310px; height: 310px; background: rgba(219, 234, 254, 0.55); }
.hero-glow-two { right: -100px; bottom: -100px; width: 270px; height: 270px; background: rgba(191, 219, 254, 0.32); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr) minmax(320px, 0.9fr); align-items: center; gap: clamp(22px, 2.5vw, 38px); }
.hero-grid.container { width: min(1400px, calc(100% - 40px)); }
.hero-content h1 { font-size: clamp(2.5rem, 3.7vw, 3.65rem); }
.eyebrow { gap: 8px; margin-bottom: 20px; padding: 7px 13px; border: 1px solid var(--blue-100); border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.02em; }
.eyebrow svg { width: 16px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; }
h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(2.6rem, 5vw, 4.25rem); letter-spacing: -0.055em; }
h1 span { color: var(--blue-600); }
.hero-copy { max-width: 610px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); }
.benefit-list { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 28px; margin: 0; padding: 0; list-style: none; color: #475569; font-size: 0.91rem; font-weight: 600; }
.benefit-list li { display: flex; align-items: center; gap: 8px; }
.check { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dcfce7; color: var(--green); }
.check svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }

.upload-card { padding: 12px; border: 1px solid #e6edf7; border-radius: 28px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-lg); }
.upload-zone { display: flex; min-height: 390px; align-items: center; flex-direction: column; justify-content: center; padding: 38px 28px 28px; border: 2px dashed #bfdbfe; border-radius: 20px; background: linear-gradient(145deg, #fbfdff, var(--blue-50)); text-align: center; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.upload-zone.is-dragging { border-color: var(--blue-600); background: #eaf2ff; transform: scale(1.01); }
.upload-zone.has-file { border-color: #86efac; background: #f0fdf4; }
.upload-zone.is-processing .primary-button { opacity: 0.55; pointer-events: none; }
.upload-icon { display: grid; width: 76px; height: 76px; margin-bottom: 19px; place-items: center; border-radius: 22px; background: #fff; color: var(--blue-600); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14); }
.upload-icon svg { width: 36px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.upload-zone h2 { margin-bottom: 7px; font-size: 1.25rem; letter-spacing: -0.02em; }
.upload-zone > p { margin-bottom: 21px; color: var(--muted); font-size: 0.91rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 205px; padding: 12px 20px; border-radius: 11px; background: var(--blue-600); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22); color: #fff; font-size: 0.9rem; font-weight: 750; cursor: pointer; transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.primary-button:hover { background: var(--blue-700); box-shadow: 0 13px 26px rgba(37, 99, 235, 0.28); transform: translateY(-1px); }
.primary-button:focus-within, .primary-button:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.28); outline-offset: 3px; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.upload-zone small { margin-top: 16px; color: #94a3b8; font-size: 0.72rem; }
.upload-zone .file-feedback { min-height: 22px; margin: 8px 0 -12px; color: #15803d; font-size: 0.78rem; font-weight: 650; }
.steps-section, .faq-section { padding: 96px 0; }
.section-heading { max-width: 590px; margin: 0 auto 50px; text-align: center; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--blue-600); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading h2, .faq-intro h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.045em; }
.section-heading p, .faq-intro p { margin: 0; color: var(--muted); }
.compact-heading { margin-bottom: 38px; }
.comparison-column { width: 100%; min-width: 0; }
.comparison-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: auto; padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.hero .comparison-card { width: 100%; max-width: none; margin: 0; padding: 12px; gap: 12px; }
.comparison-panel { position: relative; overflow: hidden; border-radius: 18px; }
.panel-label { position: absolute; z-index: 2; top: 14px; left: 14px; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 23, 42, 0.75); color: #fff; font-size: 0.72rem; font-weight: 750; backdrop-filter: blur(8px); }
.label-result { background: rgba(22, 163, 74, 0.9); }
.label-result svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.5; }
.sample-art { position: relative; overflow: hidden; aspect-ratio: 4 / 3.1; }
.sample-art > svg { width: 100%; height: 100%; }
.comparison-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sample-original { background: #f1f5f9; }
.transparent-grid { background-color: #fff; background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%); background-position: 0 0, 0 12px, 12px -12px, -12px 0; background-size: 24px 24px; }
.process-status { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 20px; background: rgba(255, 255, 255, 0.86); color: var(--navy); text-align: center; backdrop-filter: blur(4px); }
.process-status strong { margin-top: 12px; font-size: 0.86rem; }
.process-status small { margin-top: 3px; color: var(--muted); font-size: 0.66rem; }
.process-status.is-error { background: rgba(255, 247, 247, 0.94); color: #b91c1c; }
.process-status.is-error .loader { display: none; }
.loader { width: 30px; height: 30px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin 0.75s linear infinite; }
.comparison-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.download-button, .reset-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 10px; font-size: 0.78rem; font-weight: 750; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.download-button { flex: 1; gap: 7px; padding: 10px 14px; background: var(--blue-600); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2); }
.download-button:hover { background: var(--blue-700); transform: translateY(-1px); }
.download-button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.reset-button { padding: 10px 13px; border: 1px solid var(--line); background: #fff; color: #475569; }
.reset-button:hover { border-color: var(--blue-100); background: var(--blue-50); color: var(--blue-700); }
.comparison-arrow { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 5px solid #fff; border-radius: 50%; background: var(--blue-600); color: #fff; transform: translate(-50%, -50%); }
.comparison-arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.steps-section { background: #f8fafc; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 265px; padding: 30px 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(15, 23, 42, 0.035); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.step-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.step-number { position: absolute; top: 17px; right: 18px; color: #cbd5e1; font-size: 1.8rem; font-weight: 800; }
.step-icon { display: grid; width: 53px; height: 53px; margin-bottom: 23px; place-items: center; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.step-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.step-card h3 { margin-bottom: 11px; font-size: 1.03rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 90px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 4px; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 8px; left: 2px; width: 14px; height: 2px; border-radius: 3px; background: var(--blue-600); content: ""; }
.faq-list summary span::after { transform: rotate(90deg); transition: transform 180ms ease; }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { max-width: 650px; margin: -6px 38px 21px 4px; color: var(--muted); font-size: 0.91rem; }

.feature-strip { padding: 37px 0; background: var(--blue-600); color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-item { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 3px 20px; border-right: 1px solid rgba(255, 255, 255, 0.2); }
.feature-item:last-child { border-right: 0; }
.feature-item > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.14); }
.feature-item svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.feature-item div { min-width: 0; }
.feature-item strong, .feature-item small { display: block; }
.feature-item strong { font-size: 0.85rem; line-height: 1.35; }
.feature-item small { color: #bfdbfe; font-size: 0.69rem; }

.site-footer { padding: 28px 0; background: var(--navy); color: #94a3b8; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer-inner p { margin: 0 auto 0 0; font-size: 0.82rem; }
.footer-inner small { font-size: 0.72rem; }

@media (max-width: 980px) {
    .header-inner { gap: 18px; }
    .main-nav { gap: 20px; }
    .free-badge { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-grid.container { width: min(100% - 40px, 620px); }
    .benefit-list { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
    .feature-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 32px, 620px); }
    .header-inner { min-height: 68px; }
    .menu-toggle { z-index: 102; display: block; margin-left: auto; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .main-nav { position: fixed; z-index: 101; inset: 68px 0 auto; display: grid; gap: 0; padding: 18px 24px 28px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 180ms ease, transform 180ms ease; }
    .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .main-nav a { padding: 13px 4px; }
    .main-nav a.active::after { display: none; }
    .hero { padding: 60px 0 76px; }
    .hero-grid { grid-template-columns: 1fr; gap: 45px; }
    .hero-content { text-align: center; }
    .hero-copy { margin-inline: auto; }
    .benefit-list { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .upload-card { width: 100%; max-width: 520px; margin: auto; }
    .steps-section, .faq-section { padding: 74px 0; }
    .comparison-card { grid-template-columns: 1fr; }
    .comparison-arrow { transform: translate(-50%, -50%) rotate(90deg); }
    .faq-layout { grid-template-columns: 1fr; gap: 38px; }
    .faq-intro { text-align: center; }
}

@media (max-width: 520px) {
    .brand { font-size: 1.3rem; }
    h1 { font-size: 2.45rem; }
    .benefit-list { grid-template-columns: 1fr; width: max-content; max-width: 100%; margin-inline: auto; }
    .upload-zone { min-height: 355px; padding-inline: 16px; }
    .upload-zone h2 { font-size: 1.12rem; }
    .comparison-card { padding: 10px; border-radius: 20px; }
    .comparison-actions { align-items: stretch; flex-direction: column; }
    .steps-grid, .feature-grid { grid-template-columns: 1fr; }
    .step-card { min-height: auto; }
    .feature-grid { gap: 0; }
    .feature-item { justify-content: flex-start; padding: 17px 8px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.17); }
    .feature-item:last-child { border-bottom: 0; }
    .footer-inner { flex-direction: column; gap: 11px; text-align: center; }
    .footer-inner p { margin: 0; }
}

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

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