:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b14;
  --surface: #0c1929;
  --surface-2: #102238;
  --border: rgba(161, 195, 220, .15);
  --text: #f4f8fb;
  --muted: #9eb0c2;
  --cyan: #5eead4;
  --cyan-strong: #2dd4bf;
  --lime: #bef264;
  --danger: #fb7185;
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 18px auto 0;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 20;
  background: rgba(7, 17, 31, .83);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 780; letter-spacing: -.03em; font-size: 19px; }
.brand > span:last-child > span { color: var(--cyan); }
.brand-mark { width: 30px; height: 30px; border: 2px solid var(--cyan); border-radius: 8px; display: grid; place-items: center; transform: rotate(-4deg); }
.brand-mark span { width: 10px; height: 10px; border: 2px solid var(--lime); border-radius: 2px; }
.site-header nav, footer nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-header nav a:hover, footer nav a:hover { color: var(--cyan); }
.header-cta { background: var(--cyan); color: #05201d; font-size: 13px; line-height: 1; font-weight: 800; padding: 14px 18px; border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { margin: 0; display: flex; align-items: center; gap: 5px; color: var(--muted); }
.language-picker span { color: var(--cyan); }
.language-picker select { width: auto; height: 38px; padding: 0 28px 0 9px; font-size: 12px; background-color: #091625; }

.hero {
  min-height: 660px;
  padding: 120px 20px 100px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, #000, transparent 84%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; pointer-events: none; }
.hero-glow-one { background: var(--cyan); width: 420px; height: 320px; top: 90px; left: -180px; }
.hero-glow-two { background: #3b82f6; width: 420px; height: 320px; top: 20px; right: -220px; }
.eyebrow, .section-kicker { color: var(--cyan); letter-spacing: .16em; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.eyebrow { padding: 8px 13px; border: 1px solid rgba(94, 234, 212, .25); background: rgba(94, 234, 212, .06); border-radius: 100px; position: relative; }
.eyebrow span { width: 6px; height: 6px; background: var(--lime); display: inline-block; margin-right: 8px; border-radius: 50%; box-shadow: 0 0 12px var(--lime); }
h1 { margin: 28px 0 22px; max-width: 900px; font-size: clamp(50px, 7.2vw, 92px); line-height: .96; letter-spacing: -.065em; position: relative; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(94,234,212,.95); text-shadow: 0 0 50px rgba(94,234,212,.12); }
.hero-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; position: relative; }
.hero-actions { display: flex; gap: 12px; margin-top: 35px; position: relative; }
.button { min-height: 50px; padding: 0 23px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; font-weight: 800; font-size: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #05201d; background: linear-gradient(135deg, var(--cyan), #7df5b5); box-shadow: 0 10px 30px rgba(45,212,191,.2); }
.button-secondary { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: rgba(94,234,212,.4); }
.trust-row { display: flex; gap: 26px; margin-top: 55px; color: #8196aa; font-size: 12px; position: relative; flex-wrap: wrap; justify-content: center; }
.trust-row i { color: var(--lime); font-style: normal; margin-right: 4px; }

.tool-section, .features-section, .docs-section, .use-cases, .faq-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.tool-section { padding: 95px 0 120px; }
.section-heading { max-width: 650px; margin-bottom: 48px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2, .docs-copy h2, .final-cta h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.045em; margin: 12px 0 16px; }
.section-heading p, .docs-copy > p, .final-cta p { color: var(--muted); margin: 0; }
.tool-shell { display: grid; grid-template-columns: .88fr 1.12fr; background: #091625; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; min-height: 650px; }
.tool-form { padding: 30px; border-right: 1px solid var(--border); }
.form-head, .preview-head { height: 35px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.form-head > div { display: flex; gap: 9px; align-items: center; }
.form-head strong { font-size: 14px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.method-badge { color: var(--cyan); border: 1px solid rgba(94,234,212,.22); background: rgba(94,234,212,.06); border-radius: 6px; padding: 5px 8px; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
label { display: block; font-size: 12px; font-weight: 750; margin: 17px 0 7px; color: #cad6e1; }
label small { float: right; font-weight: 500; color: #70859a; }
input, select { width: 100%; height: 45px; color: var(--text); border: 1px solid var(--border); background: #07121f; border-radius: 9px; padding: 0 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--cyan-strong); box-shadow: 0 0 0 3px rgba(45,212,191,.1); }
select { cursor: pointer; }
.url-field { position: relative; }
.url-field span { position: absolute; left: 13px; top: 8px; color: var(--cyan); z-index: 1; }
.url-field input { padding-left: 37px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.advanced { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 24px; }
.advanced summary { padding: 15px 1px; font-size: 12px; color: #cbd6df; font-weight: 750; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced[open] summary span { transform: rotate(180deg); }
.advanced-body { padding: 0 1px 18px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-top: 20px; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row small { float: none; max-width: 270px; line-height: 1.4; margin-top: 3px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 39px; height: 22px; border-radius: 100px; background: #243548; position: relative; transition: background .2s; flex: 0 0 auto; }
.switch-row i::after { content: ""; width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: transform .2s; }
.switch-row input:checked + i { background: var(--cyan-strong); }
.switch-row input:checked + i::after { transform: translateX(17px); }
.capture-button { border: 0; width: 100%; height: 49px; margin-top: 24px; border-radius: 9px; background: var(--cyan); color: #04211e; font-weight: 850; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.capture-button:disabled { opacity: .65; cursor: wait; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(4,33,30,.3); border-top-color: #04211e; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.capture-button.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { color: var(--danger); font-size: 12px; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.2); padding: 9px 11px; border-radius: 7px; }
.preview-panel { min-width: 0; padding: 25px; background: radial-gradient(circle at 80% 20%, rgba(94,234,212,.05), transparent 30%), #07111d; display: flex; flex-direction: column; }
.preview-head { margin-bottom: 15px; color: #6f8499; font-size: 11px; justify-content: flex-start; gap: 14px; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 7px; height: 7px; border-radius: 50%; background: #314256; }
.browser-dots span:first-child { background: #f87171; }.browser-dots span:nth-child(2) { background: #fbbf24; }.browser-dots span:last-child { background: #a3e635; }
.download-button { margin-left: auto; color: var(--cyan); border: 1px solid rgba(94,234,212,.2); border-radius: 6px; padding: 5px 9px; font-weight: 700; }
.preview-stage { min-height: 530px; border-radius: 10px; border: 1px dashed rgba(158,176,194,.18); background-color: #0b1726; background-image: linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.012) 25%, transparent 25%); background-size: 20px 20px; display: grid; place-items: center; overflow: hidden; position: relative; }
.preview-empty { text-align: center; color: var(--muted); padding: 30px; }
.preview-empty strong { display: block; font-size: 14px; color: #c8d4df; margin-top: 18px; }
.preview-empty p { max-width: 280px; font-size: 12px; margin: 5px auto 17px; }
.preview-empty > span { font: 600 10px ui-monospace, monospace; color: #5f7489; background: #0f2032; padding: 5px 8px; border-radius: 5px; }
.preview-icon { width: 55px; height: 46px; border: 1px solid #385168; border-radius: 6px; margin: 0 auto; position: relative; }
.preview-icon::before { content: ""; width: 13px; height: 13px; border: 1px solid var(--cyan); border-radius: 50%; position: absolute; right: 7px; top: 7px; }
.preview-icon span { position: absolute; width: 25px; height: 16px; background: #183349; bottom: 5px; left: 6px; clip-path: polygon(0 100%, 45% 10%, 65% 50%, 80% 30%, 100% 100%); }
#preview-image { max-width: 100%; max-height: 530px; object-fit: contain; }
.preview-meta { display: flex; justify-content: space-between; color: #70859a; font-size: 11px; padding-top: 12px; }

.features-section { padding: 110px 0; border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 245px; border: 1px solid var(--border); background: rgba(12,25,41,.68); border-radius: 14px; padding: 25px; position: relative; transition: border-color .25s, transform .25s; }
.feature-card:hover { border-color: rgba(94,234,212,.35); transform: translateY(-3px); }
.feature-card.featured { background: linear-gradient(145deg, rgba(94,234,212,.13), rgba(12,25,41,.7)); }
.feature-number { position: absolute; right: 18px; top: 16px; color: #34485b; font: 700 11px ui-monospace, monospace; }
.feature-icon { width: 38px; height: 38px; border: 1px solid rgba(94,234,212,.22); color: var(--cyan); display: grid; place-items: center; border-radius: 9px; margin-bottom: 30px; background: rgba(94,234,212,.05); }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { font-size: 13px; color: var(--muted); margin: 0; }

.docs-section { padding: 125px 0; display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; }
.docs-copy h2 { margin-top: 15px; }
.steps { list-style: none; padding: 0; margin: 35px 0; display: grid; gap: 20px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps li > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(94,234,212,.25); color: var(--cyan); font: 700 11px ui-monospace, monospace; }
.steps li div { display: flex; flex-direction: column; }
.steps strong { font-size: 13px; }.steps small { color: var(--muted); font-size: 11px; }
.inline-link { color: var(--cyan); font-weight: 750; font-size: 13px; border-bottom: 1px solid rgba(94,234,212,.3); padding-bottom: 4px; }
.inline-link span { margin-left: 8px; }
.code-card { min-width: 0; border-radius: 15px; border: 1px solid var(--border); background: #050d17; overflow: hidden; box-shadow: var(--shadow); }
.code-tabs { height: 52px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); background: #0a1624; }
.code-tabs button { height: 52px; color: #73879b; border: 0; border-bottom: 2px solid transparent; background: none; padding: 0 13px; font-size: 11px; font-weight: 700; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.code-tabs .copy-code { margin-left: auto; height: 30px; border: 1px solid var(--border); border-radius: 6px; }
pre { min-height: 340px; margin: 0; padding: 25px; overflow: auto; color: #c3d5e5; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.code-key { color: #7dd3fc; }.code-string { color: #bef264; }.code-command { color: #c4b5fd; }
.response-note { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 25px; border-top: 1px solid var(--border); color: #71869a; font-size: 10px; font-family: ui-monospace, monospace; }
.response-note span { color: var(--lime); }.response-note strong { color: #9eb0c2; }

.use-cases { padding: 100px 0; border-top: 1px solid var(--border); }
.use-case-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.use-case-row article { min-height: 215px; padding: 27px; border-right: 1px solid var(--border); background: rgba(12,25,41,.45); }
.use-case-row article:last-child { border-right: 0; }
.use-case-row article > span { color: var(--cyan); font-size: 24px; }
.use-case-row h3 { font-size: 15px; margin: 25px 0 8px; }
.use-case-row p { color: var(--muted); font-size: 12px; margin: 0; }

.faq-section { padding: 120px 0; }
.seo-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; border-top: 1px solid var(--border); }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.seo-grid article { padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: rgba(12,25,41,.55); }
.seo-grid h3 { margin: 0 0 12px; font-size: 18px; }
.seo-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; padding: 23px 2px; display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--cyan); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--muted); font-size: 13px; max-width: 720px; margin: -8px 0 23px; }
.faq-list code { color: var(--lime); background: rgba(190,242,100,.07); padding: 2px 5px; border-radius: 4px; }

.final-cta { margin: 40px auto 0; padding: 105px 20px; text-align: center; background: radial-gradient(circle at 50% 120%, rgba(94,234,212,.15), transparent 45%), #050d17; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.final-cta p { margin-bottom: 28px; }.final-cta .button { display: inline-flex; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 200px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 18px; }
footer p { color: var(--muted); font-size: 12px; margin: 0; }
footer nav { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
footer small { grid-column: 1 / -1; color: #52677a; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { padding-top: 90px; }
  .tool-shell, .docs-section { grid-template-columns: 1fr; }
  .tool-form { border-right: 0; border-bottom: 1px solid var(--border); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .docs-section { gap: 50px; }
  .use-case-row { grid-template-columns: 1fr 1fr; }
  .use-case-row article:nth-child(2) { border-right: 0; }.use-case-row article { border-bottom: 1px solid var(--border); }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 50px 0; }
  .seo-grid { grid-template-columns: 1fr; }
  footer nav { grid-column: 1; grid-row: auto; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .site-header { width: calc(100% - 24px); height: 64px; margin-top: 10px; top: 8px; padding: 0 12px; }
  .header-cta { display: none; }
  .language-picker select { max-width: 120px; }
  .hero { min-height: 600px; padding: 80px 18px 70px; }
  h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 330px; }
  .trust-row { gap: 12px 18px; }
  .tool-section, .features-section, .docs-section, .use-cases, .faq-section { width: calc(100% - 24px); }
  .tool-section, .features-section, .docs-section, .use-cases, .faq-section { padding-top: 80px; padding-bottom: 80px; }
  .tool-form { padding: 20px; }.preview-panel { padding: 14px; }.preview-stage { min-height: 370px; }
  .form-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .use-case-row { grid-template-columns: 1fr; }
  .use-case-row article { border-right: 0; }
  .code-tabs button { padding: 0 8px; }.code-tabs .copy-code { font-size: 0; width: 32px; }.code-tabs .copy-code::after { content: "⧉"; font-size: 14px; }
  pre { padding: 18px; font-size: 10px; min-height: 310px; }
  footer nav { gap: 16px; }
}

[dir="rtl"] .site-header, [dir="rtl"] .tool-shell, [dir="rtl"] .docs-section, [dir="rtl"] .feature-grid, [dir="rtl"] .seo-content, [dir="rtl"] .faq-section, [dir="rtl"] footer { text-align: right; }
[dir="rtl"] .url-field span { left: auto; right: 13px; }
[dir="rtl"] .url-field input { padding-left: 13px; padding-right: 37px; direction: ltr; text-align: left; }
[dir="rtl"] .feature-number { right: auto; left: 18px; }
[dir="rtl"] .copy-code { margin-left: 0; margin-right: auto; }
[dir="rtl"] pre, [dir="rtl"] code { direction: ltr; text-align: left; }

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