:root {
  --ink: #121816;
  --muted: #61706b;
  --line: #dce5e1;
  --paper: #f6f8f7;
  --white: #fff;
  --mint: #12cbb3;
  --mint-dark: #087e72;
  --coral: #ff6f61;
  --night: #0e1513;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.is-busy { cursor: progress; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary, select, input[type="file"] { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.it-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.it-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  background: rgba(14, 21, 19, .94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}
.it-header-inner { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.it-brand { color: #fff; text-decoration: none; font-weight: 900; font-size: 1.08rem; letter-spacing: .12em; white-space: nowrap; }
.it-desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.it-nav-link, .it-menu > summary, .it-lang > summary {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  list-style: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 700;
}
.it-menu > summary::-webkit-details-marker, .it-lang > summary::-webkit-details-marker { display: none; }
.it-menu, .it-lang { position: relative; }
.it-menu[open] > summary, .it-lang[open] > summary, .it-nav-link:hover { color: #fff; }
.it-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(0,0,0,.22);
}
.it-menu-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 6px; text-decoration: none; font-weight: 750; font-size: .88rem; }
.it-menu-panel a:hover, .it-menu-panel a[aria-current="page"] { background: #edf9f6; color: var(--mint-dark); }
.it-lang .it-menu-panel { width: 176px; max-height: 360px; overflow: auto; }
.it-nav-cta { padding: 10px 15px; border-radius: 6px; background: var(--mint); color: #071310; text-decoration: none; font-size: .86rem; font-weight: 900; }
.it-mobile-menu { display: none; margin-left: auto; position: relative; }
.it-mobile-menu > summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-size: 1.35rem; }
.it-mobile-menu > summary::-webkit-details-marker { display: none; }
.it-mobile-menu .it-menu-panel { right: 0; width: min(310px, calc(100vw - 24px)); max-height: calc(100vh - 88px); overflow: auto; }

.it-hero { position: relative; min-height: 340px; overflow: hidden; background: var(--night); color: #fff; }
.it-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .38; }
.it-hero::after { content: ""; position: absolute; inset: 0; background: rgba(5, 12, 10, .44); }
.it-hero-inner { position: relative; z-index: 1; min-height: 340px; display: grid; align-content: center; padding: 58px 0 78px; }
.it-kicker { margin: 0 0 12px; color: #79f0db; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.it-hero h1 { width: min(760px, 100%); margin: 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .98; letter-spacing: 0; }
.it-hero-copy { width: min(690px, 100%); margin: 20px 0 0; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.65; }
.it-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.it-fact { padding: 8px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(0,0,0,.28); color: #fff; font-size: .76rem; font-weight: 800; }

.it-workspace-wrap { position: relative; z-index: 3; margin-top: -42px; padding-bottom: 52px; }
.it-workspace { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 52px rgba(22,45,38,.13); overflow: hidden; }
.it-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.it-workspace-head h2 { margin: 0; font-size: 1.05rem; }
.it-cost { color: var(--mint-dark); font-weight: 900; font-size: .86rem; }
.it-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 390px; }
.it-stage { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.it-stage:last-child { border-right: 0; }
.it-stage-label { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: .9rem; font-weight: 900; }
.it-step { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; }
.it-drop { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #9caaa5; border-radius: 8px; background: #f4f8f6; text-align: center; }
.it-drop.is-over { border-color: var(--mint-dark); background: #e8f8f4; }
.it-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.it-drop-copy { padding: 22px; color: var(--muted); }
.it-upload-symbol { display: block; margin-bottom: 12px; color: var(--mint-dark); font-size: 2.2rem; line-height: 1; }
.it-drop-copy strong { display: block; color: var(--ink); font-size: 1rem; }
.it-drop-copy small { display: block; margin-top: 8px; line-height: 1.5; }
.it-preview { width: 100%; height: 260px; object-fit: contain; background: #eef2f0; }
.it-file-name { margin: 10px 0 0; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-controls { display: flex; flex-direction: column; min-height: 300px; }
.it-controls label { display: block; font-size: .82rem; font-weight: 850; }
.it-prompt { width: 100%; min-height: 170px; margin-top: 9px; resize: vertical; border: 1px solid #bdcac5; border-radius: 6px; padding: 13px; color: var(--ink); background: #fff; line-height: 1.5; }
.it-prompt:focus { outline: 3px solid rgba(18,203,179,.18); border-color: var(--mint-dark); }
.it-char-count { margin: 7px 0 0; text-align: right; color: var(--muted); font-size: .72rem; }
.it-upscale-setting { display: flex; align-items: center; gap: 14px; min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f4f8f6; }
.it-factor { flex: 0 0 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; font-size: 1.55rem; font-weight: 950; }
.it-upscale-setting strong { display: block; }
.it-upscale-setting small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.it-submit { width: 100%; min-height: 48px; margin-top: auto; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 900; }
.it-submit:hover:not(:disabled) { background: var(--mint-dark); }
.it-submit:disabled { opacity: .5; cursor: not-allowed; }
.it-subnote { margin: 9px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.it-output { min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f1f4f3; color: var(--muted); text-align: center; }
.it-output img { width: 100%; height: 260px; object-fit: contain; }
.it-output-placeholder { padding: 22px; line-height: 1.55; }
.it-result-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.it-download, .it-topup { display: block; padding: 12px 14px; border-radius: 6px; text-align: center; text-decoration: none; font-weight: 900; }
.it-download { background: var(--mint); color: #071310; }
.it-topup { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.it-status { min-height: 23px; margin: 14px 20px 18px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.it-status.is-error { color: #a42a20; }
.it-status.is-success { color: #087e55; }
.it-spinner { width: 26px; height: 26px; border: 3px solid #cbd6d2; border-top-color: var(--mint-dark); border-radius: 50%; animation: it-spin .8s linear infinite; }
@keyframes it-spin { to { transform: rotate(360deg); } }

.it-info { padding: 68px 0; background: #fff; border-top: 1px solid var(--line); }
.it-info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.it-info h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: 0; }
.it-info p { color: var(--muted); line-height: 1.75; }
.it-points { display: grid; gap: 10px; margin-top: 24px; }
.it-point { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.it-point strong { flex: 0 0 28px; color: var(--coral); }
.it-faq { border-top: 1px solid var(--line); }
.it-faq details { border-bottom: 1px solid var(--line); }
.it-faq summary { padding: 16px 0; font-weight: 850; }
.it-faq p { margin: 0; padding: 0 0 17px; }
.it-footer { background: var(--night); color: rgba(255,255,255,.68); padding: 30px 0; }
.it-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.it-footer a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .it-desktop-nav { display: none; }
  .it-mobile-menu { display: block; }
  .it-grid { grid-template-columns: 1fr; }
  .it-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .it-stage:last-child { border-bottom: 0; }
  .it-info-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 560px) {
  .it-shell { width: min(100% - 24px, 1180px); }
  .it-header, .it-header-inner { min-height: 60px; }
  .it-brand { font-size: .92rem; }
  .it-hero { min-height: 290px; }
  .it-hero-inner { min-height: 290px; padding: 42px 0 66px; }
  .it-hero h1 { font-size: 2.32rem; }
  .it-hero-copy { font-size: .94rem; line-height: 1.55; }
  .it-workspace-wrap { margin-top: -30px; }
  .it-workspace-head { align-items: flex-start; flex-direction: column; }
  .it-stage { padding: 17px; }
  .it-drop, .it-output { min-height: 220px; }
  .it-preview, .it-output img { height: 220px; }
  .it-prompt { min-height: 145px; }
  .it-footer-inner { align-items: flex-start; flex-direction: column; }
}

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