:root {
  color-scheme: light;
  --bg: #f7f6fc;
  --panel: #ffffff;
  --panel-soft: #f0edf9;
  --text: #171524;
  --muted: #6c6679;
  --line: #e4e0ec;
  --violet: #6d47d9;
  --violet-strong: #5731c4;
  --violet-soft: #eee8ff;
  --green: #0c8a66;
  --green-strong: #087357;
  --green-soft: #e3f7ef;
  --amber: #c57b12;
  --shadow: 0 28px 80px rgba(47, 35, 81, 0.14);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #090713;
  --panel: #14111f;
  --panel-soft: #1b172a;
  --text: #f2eff9;
  --muted: #aea7bd;
  --line: #302a40;
  --violet: #a98cff;
  --violet-strong: #bba5ff;
  --violet-soft: #241b3f;
  --green: #56d6ad;
  --green-strong: #71e3bf;
  --green-soft: #102e28;
  --amber: #f5bd62;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 2%, rgba(109, 71, 217, 0.16), transparent 30rem),
    radial-gradient(circle at 9% 28%, rgba(12, 138, 102, 0.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button, select { font: inherit; }
a { color: var(--violet-strong); }

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--violet) 42%, transparent);
  outline-offset: 3px;
}

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--panel);
  background: var(--text);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 7px 20px rgba(38, 28, 69, 0.09);
}
.site-brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.site-brand-copy, .site-brand-copy small { display: block; }
.site-brand-copy strong { font-size: 15px; letter-spacing: -0.02em; }
.site-brand-copy small { color: var(--muted); font-size: 11px; }

.top-nav { display: flex; margin-left: auto; gap: 22px; }
.top-nav a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.select-control select {
  max-width: 120px;
  min-height: 39px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--panel);
  font-size: 12px;
  font-weight: 750;
}

.header-cta {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 11px;
  color: #fff;
  background: var(--violet-strong);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  min-height: 700px;
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  padding-top: 76px;
  padding-bottom: 86px;
}

.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  padding: 7px 11px;
  border: 1px solid rgba(12, 138, 102, 0.24);
  border-radius: 999px;
  color: var(--green-strong);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(43px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}

.hero-actions, .prompt-actions, .final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}
.hero-actions { margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green-strong); box-shadow: 0 13px 30px rgba(8, 115, 87, 0.23); }
.button-secondary { border-color: var(--line); color: var(--text); background: var(--panel); }

.copy-status { min-height: 24px; margin: 9px 0 0; color: var(--green-strong); font-size: 12px; font-weight: 780; }
.copy-status.is-error { color: #c2415d; }

.hero-signals { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.hero-signals span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 720; }
.hero-signals i { color: var(--green); font-style: normal; font-weight: 950; }

.hero-visual { min-width: 0; }
.visual-window {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--panel) 94%, var(--violet-soft)), var(--panel));
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}
.visual-window::before {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -28px;
  width: 66%;
  height: 62%;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(109, 71, 217, 0.22), rgba(12, 138, 102, 0.16));
  content: "";
  filter: blur(2px);
}

.visual-topbar { display: flex; align-items: center; gap: 6px; padding: 2px 2px 15px; }
.visual-topbar > span { width: 9px; height: 9px; border-radius: 50%; background: #d9d3e4; }
.visual-topbar > span:nth-child(1) { background: #f28b91; }
.visual-topbar > span:nth-child(2) { background: #f1c166; }
.visual-topbar > span:nth-child(3) { background: #6fd0a8; }
.visual-topbar strong { margin-left: auto; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.visual-chat { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel-soft); }
.chat-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #fff; background: var(--violet-strong); font-size: 11px; font-weight: 950; }
.chat-bubble { display: grid; gap: 3px; }
.chat-bubble small { color: var(--violet); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.chat-bubble strong { font-size: 13px; line-height: 1.45; }
.visual-arrow { padding: 8px; color: var(--violet); font-size: 18px; font-weight: 900; text-align: center; }

.visual-document { width: 84%; margin-inline: auto; padding: 22px; border: 1px solid var(--line); border-radius: 6px 6px 16px 16px; background: var(--panel); box-shadow: 0 16px 42px rgba(39, 27, 70, 0.12); }
.document-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.document-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--green-strong); font-weight: 950; }
.document-head span:last-child { display: grid; }
.document-head small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: 0.08em; }
.document-head strong { font-size: 15px; }
.document-line { width: 71%; height: 7px; margin-top: 14px; border-radius: 999px; background: var(--line); }
.document-line.is-wide { width: 100%; }
.document-line.is-short { width: 45%; }
.document-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.document-columns span { height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }

.visual-valid { display: flex; width: min(92%, 450px); align-items: center; gap: 11px; margin: 14px auto 0; padding: 12px 14px; border: 1px solid rgba(12, 138, 102, 0.25); border-radius: 14px; color: var(--green-strong); background: var(--green-soft); }
.visual-valid > span:first-child { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green-strong); font-weight: 950; }
.visual-valid > span:last-child { display: grid; }
.visual-valid strong { font-size: 12px; }
.visual-valid small { color: var(--muted); font-size: 10px; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section-tinted { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--panel-soft) 64%, transparent); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading > div { max-width: 650px; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { margin: 0 0 8px; color: var(--green-strong); font-size: 11px; font-weight: 950; letter-spacing: 0.12em; text-transform: uppercase; }
.section h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.045em; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 10px 34px rgba(38, 28, 69, 0.06); }
.step-number { position: absolute; top: 19px; right: 20px; color: var(--line); font-size: 26px; font-weight: 950; }
.step-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 34px; border-radius: 15px; color: var(--violet-strong); background: var(--violet-soft); font-weight: 950; }
.step-card:nth-child(even) .step-icon { color: var(--green-strong); background: var(--green-soft); }
.step-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.step-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.examples-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.examples-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.examples-grid article > span { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 22px; border-radius: 14px; color: #fff; background: var(--violet-strong); font-size: 17px; font-weight: 950; }
.examples-grid article:nth-child(2n) > span { background: var(--green-strong); }
.examples-grid h3 { margin: 0; font-size: 17px; }
.examples-grid p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }

.prompt-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr); align-items: center; gap: clamp(45px, 7vw, 90px); }
.prompt-copy > p:not(.eyebrow, .copy-status) { color: var(--muted); font-size: 15px; }
.check-list { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 740; }
.check-list li > span:first-child { color: var(--green); font-weight: 950; }
.prompt-actions a { font-size: 12px; font-weight: 850; }

.prompt-preview { overflow: hidden; border: 1px solid #2d2543; border-radius: 22px; background: #0f0c18; box-shadow: var(--shadow); }
.prompt-preview-head { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #2d2543; color: #d7d0e7; font-size: 11px; font-weight: 800; }
.prompt-preview-head small { color: #8f87a3; }
.prompt-preview pre { margin: 0; padding: 26px; overflow: auto; color: #e8e3f2; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.prompt-preview code::first-line { color: #75e0bb; }

.section-dark { color: #f6f2ff; background: #151020; }
.section-dark .eyebrow { color: #74dfbb; }
.safety-layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr); gap: clamp(45px, 7vw, 90px); }
.safety-layout > div:first-child > p:last-child { color: #b9b1c8; font-size: 15px; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safety-grid article { display: flex; gap: 13px; padding: 18px; border: 1px solid #352c47; border-radius: 17px; background: #1d172a; }
.safety-grid article > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #151020; background: #74dfbb; font-size: 12px; font-weight: 950; }
.safety-grid h3 { margin: 0; font-size: 14px; }
.safety-grid p { margin: 6px 0 0; color: #b9b1c8; font-size: 12px; line-height: 1.55; }

.faq-section { max-width: 980px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.faq-list summary { position: relative; padding: 18px 52px 18px 19px; cursor: pointer; font-size: 14px; font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 50%; right: 20px; color: var(--violet); content: "+"; font-size: 21px; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 19px 19px; color: var(--muted); font-size: 13px; }

.final-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-bottom: 80px; padding: 42px; border: 1px solid rgba(109, 71, 217, 0.23); border-radius: 28px; background: linear-gradient(135deg, var(--violet-soft), var(--green-soft)); }
.final-cta h2 { max-width: 720px; font-size: clamp(28px, 3.6vw, 44px); }
.final-cta .copy-status { grid-column: 1 / -1; margin: -20px 0 0; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 62%, transparent); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 28px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-inner nav a { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 17px; padding-bottom: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

[dir='rtl'] .top-nav { margin-right: auto; margin-left: 0; }
[dir='rtl'] .visual-window { transform: rotate(-1.1deg); }
[dir='rtl'] .step-number { right: auto; left: 20px; }
[dir='rtl'] .faq-list summary { padding-right: 19px; padding-left: 52px; }
[dir='rtl'] .faq-list summary::after { right: auto; left: 20px; }

@media (max-width: 1040px) {
  .top-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr 1fr; gap: 38px; }
  .hero h1 { font-size: clamp(40px, 6vw, 60px); }
  .steps-grid, .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt-section, .safety-layout { grid-template-columns: 1fr; }
  .prompt-preview { max-width: 760px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; gap: 12px; }
  .site-brand-copy small, .header-cta, .header-actions .select-control:last-of-type { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-visual { width: min(100%, 600px); margin-inline: auto; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { display: grid; gap: 15px; margin-bottom: 30px; }
  .section-heading > p { max-width: none; }
  .prompt-section { gap: 34px; }
  .safety-grid { grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; margin-bottom: 50px; padding: 28px; }
  .final-cta .copy-status { margin: -12px 0 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .steps-grid, .examples-grid { grid-template-columns: 1fr; }
  .hero-actions, .prompt-actions, .final-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .prompt-actions .button, .final-actions .button { width: 100%; }
  .visual-window { padding: 12px; border-radius: 21px; transform: none; }
  .visual-document { width: 94%; padding: 16px; }
  .document-columns { grid-template-columns: 1fr; }
  .prompt-preview pre { padding: 19px; font-size: 11px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .button:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .prompt-actions, .final-actions, .copy-status { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .hero { padding-block: 28px; }
  .step-card, .examples-grid article, .faq-list details, .visual-window, .prompt-preview { break-inside: avoid; box-shadow: none; }
}
