:root {
  color-scheme: light;
  --page: #f3f3f3;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-subtle: #f8f8f8;
  --text: #1b1b1b;
  --muted: #5f5f5f;
  --quiet: #6f6f6f;
  --border: #e1e1e1;
  --border-strong: #c9c9c9;
  --blue: #0067c0;
  --blue-hover: #005da8;
  --blue-soft: #f2f8fd;
  --success: #0f7b0f;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page);
  font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .58; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a, .language-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  color: #343434;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.nav-links a:hover, .language-button:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: #dedede;
}

main { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  gap: 68px;
  align-items: center;
  min-height: 620px;
  padding: 84px 0 74px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #4b4b4b;
  font-size: 13px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 620;
}
.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #f8f8f8; }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.primary:hover { background: var(--blue-hover); }
.download-note {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

.app-window {
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .07);
}
.titlebar {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-left: 14px;
  background: #f9f9f9;
  border-bottom: 1px solid #dedede;
  font-size: 12px;
}
.window-controls { display: flex; align-self: stretch; }
.window-controls span { width: 44px; display: grid; place-items: center; color: #555; }
.window-body { padding: 20px; }
.app-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.app-heading img { width: 34px; height: 34px; }
.app-heading strong { display: block; font-size: 18px; }
.app-heading small { display: block; color: var(--muted); }
.field-label { margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.fake-input {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #777;
  background: #fff;
  border: 1px solid #b8b8b8;
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 12px;
}
.queue-card {
  margin-top: 15px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.queue-head, .queue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.queue-head { margin-bottom: 13px; font-size: 12px; font-weight: 600; }
.queue-row { padding-top: 12px; border-top: 1px solid #ececec; }
.file-meta strong { display: block; font-size: 12px; }
.file-meta small { display: block; margin-top: 2px; color: #666; }
.status { color: var(--blue); font-size: 11px; white-space: nowrap; }
.progress { height: 3px; margin-top: 9px; background: #e5e5e5; }
.progress span { display: block; width: 68%; height: 100%; background: var(--blue); }
.license-chip {
  margin-top: 13px;
  padding: 9px 11px;
  color: #3f3f3f;
  background: #f6f9fb;
  border: 1px solid #d8e8f5;
  border-radius: 5px;
  font-size: 11px;
}

.section { padding: 92px 0; border-top: 1px solid rgba(0, 0, 0, .07); }
.section-heading { max-width: 700px; margin-bottom: 34px; }
.section-heading h2 {
  margin-bottom: 12px;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 620;
}
.section-heading p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d8e8f5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.card h3 { margin-bottom: 7px; font-size: 17px; font-weight: 600; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.license-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.license-panel { padding: 30px; }
.license-panel.primary-panel { border-color: #b9d9f1; background: #fbfdff; }
.license-panel h3 { margin-bottom: 8px; font-size: 24px; }
.license-panel p { color: var(--muted); }
.license-facts { margin: 22px 0 26px; padding: 0; list-style: none; }
.license-facts li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid #ededed;
  font-size: 14px;
}
.license-facts li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--success);
  font-weight: 700;
}
.license-facts li:last-child { border-bottom: 1px solid #ededed; }
.purchase-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.price { flex: 0 0 auto; text-align: right; }
.price strong { display: block; color: var(--text); font-size: 28px; line-height: 1.1; font-weight: 650; }
.price span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-status { min-height: 22px; margin: 12px 0 0 !important; font-size: 12px !important; }
.checkout-status::before { content: "●"; margin-right: 7px; color: var(--success); font-size: 8px; }
.checkout-status.error::before { color: #c42b1c; }
.purchase-terms { margin-top: 10px !important; font-size: 11px !important; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step { min-height: 170px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.step h3 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }

.details-list { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
details { border-bottom: 1px solid var(--border); }
details:last-child { border-bottom: 0; }
summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--quiet); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 800px; padding: 0 20px 18px; margin: 0; color: var(--muted); }

.site-footer { padding: 34px 0 42px; border-top: 1px solid rgba(0, 0, 0, .08); color: var(--muted); font-size: 12px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.api-status { display: inline-flex; align-items: center; gap: 6px; }
.api-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #888; }
.api-status.online::before { background: var(--success); }

.legal { max-width: 780px; padding: 72px 0 100px; }
.legal h1 { font-size: 40px; }
.legal h2 { margin-top: 38px; font-size: 22px; }
.legal p, .legal li { color: #4f4f4f; }
.legal-meta { color: var(--quiet); font-size: 13px; }
.back-link { display: inline-flex; margin-bottom: 30px; color: var(--blue); text-decoration: none; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b8b8b8;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: inherit;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; margin-top: 14px; color: var(--muted); }
.form-status.success { color: var(--success); }
.form-status.error { color: #c42b1c; }
.result-card { max-width: 680px; margin: 72px auto 100px; }
.result-card h1 { font-size: 38px; }
.license-result { display: none; margin: 24px 0; }
.license-result.visible { display: block; }
.license-key-row { display: flex; align-items: stretch; gap: 8px; }
.license-key {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  color: #202020;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: Consolas, monospace;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .hero-visual { max-width: 650px; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav { width: min(calc(100% - 28px), var(--max)); min-height: 58px; }
  .nav-links a { display: none; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 0; padding: 54px 0 64px; }
  h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .feature-grid, .license-layout, .steps { grid-template-columns: 1fr; }
  .purchase-heading { display: block; }
  .price { margin: 16px 0 0; text-align: left; }
  .license-key-row { flex-direction: column; }
  .section { padding: 68px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .app-window { border-radius: 8px; }
  .window-body { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
