:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --ink: #111827;
  --muted: #657084;
  --line: #dce3ed;
  --line-strong: #c8d2df;
  --blue: #2259e6;
  --blue-dark: #1945b8;
  --blue-soft: #eaf0ff;
  --cyan: #0891b2;
  --green: #0c996d;
  --green-soft: #e5f8f1;
  --orange: #e46f23;
  --yellow: #f1b930;
  --purple: #7048d7;
  --code: #0a1020;
  --code-line: #242d40;
  --code-text: #e7edf8;
  --shadow-sm: 0 8px 28px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 30px 90px rgba(17, 24, 39, 0.14);
  --radius: 20px;
  --shell: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #070b14;
  --surface: #0f1726;
  --surface-soft: #121c2e;
  --ink: #edf2fb;
  --muted: #9aa8bb;
  --line: #273349;
  --line-strong: #36455f;
  --blue: #7399ff;
  --blue-dark: #91adff;
  --blue-soft: #17284e;
  --cyan: #55cbe0;
  --green: #55d6aa;
  --green-soft: #12372f;
  --orange: #ff9b5f;
  --yellow: #f5cf67;
  --purple: #ac8cf2;
  --code: #050811;
  --code-line: #202a3d;
  --code-text: #e7edf8;
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 2%, rgba(34, 89, 230, 0.09), transparent 27rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !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;
  inset-inline-start: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--page);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--page) 87%, transparent);
  backdrop-filter: blur(18px);
}

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

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-brand-mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

html[data-theme="dark"] .site-brand-mark img {
  filter: brightness(1.22) saturate(1.08);
}

.site-brand-copy {
  display: grid;
  line-height: 1.15;
}

.site-brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.025em;
}

.site-brand-copy small {
  max-width: 180px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.015em;
}

.top-nav {
  display: flex;
  margin-inline-start: auto;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-picker select {
  min-height: 38px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
}

.header-cta {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 14px;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.77rem;
  font-weight: 820;
  text-decoration: none;
}

.header-cta:hover {
  opacity: 0.86;
}

.language-control {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 42px;
}

.language-control.is-open {
  z-index: 3400;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.language-select-wrap.is-open {
  z-index: 3200;
}

.language-select-flag {
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

html[data-theme="dark"] .language-select-flag {
  border-color: rgba(226, 232, 240, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.pill-control select.language-select-native {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.language-select-button {
  display: inline-flex;
  min-width: 194px;
  max-width: 240px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(24, 42, 68, 0.04);
  cursor: pointer;
  direction: ltr;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.language-select-button:focus-visible,
.language-select-option:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent);
  outline-offset: 2px;
}

.language-select-button-label {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-select-arrow {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.68;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.language-select-wrap.is-open .language-select-arrow {
  transform: translateY(2px) rotate(225deg);
}

.language-select-menu {
  position: absolute;
  z-index: 3300;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 36px));
  max-height: min(420px, calc(100vh - 120px));
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

[dir="rtl"] .language-select-menu {
  right: auto;
  left: 0;
}

.language-select-menu[hidden] {
  display: none;
}

.language-select-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  direction: ltr;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.language-select-option:hover,
.language-select-option.is-active {
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}

.language-select-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue);
}

.language-select-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .language-select-button,
html[data-theme="dark"] .language-select-menu {
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="dark"] .language-select-menu {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .language-select-option:hover,
html[data-theme="dark"] .language-select-option.is-active {
  background: rgba(115, 153, 255, 0.13);
}

html[data-theme="dark"] .language-select-option[aria-selected="true"] {
  background: rgba(115, 153, 255, 0.18);
  color: var(--blue);
}

.hero {
  display: grid;
  min-height: 700px;
  padding-block: 86px 84px;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.94fr);
}

.hero-copy,
.hero-stage {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero-lead {
  overflow-wrap: anywhere;
}

.section-heading > *,
.final-cta > * {
  min-width: 0;
}

.section-heading h2,
.section-heading p,
.final-cta h2,
.final-cta p {
  overflow-wrap: anywhere;
}

.hero-badge,
.final-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent);
}

.hero h1 {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 650px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-buttons,
.final-actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 830;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--blue) 25%, transparent);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.hero-signals {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-signals i {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.hero-signals strong {
  font-weight: 760;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.6deg);
}

.hero-stage::before {
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  content: "";
  inset-block-start: -150px;
  inset-inline-end: -90px;
}

.stage-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 740;
  grid-template-columns: 70px 1fr auto;
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.stage-dots i:first-child {
  background: #ff6b63;
}

.stage-dots i:nth-child(2) {
  background: #f5c350;
}

.stage-dots i:nth-child(3) {
  background: #47c58a;
}

.stage-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 820;
}

.stage-ready i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.form-preview {
  position: relative;
  z-index: 1;
  width: calc(100% - 54px);
  min-height: 400px;
  margin: 28px auto 22px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #192235;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}

.form-preview header {
  display: flex;
  padding: 18px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-radius: 4px;
  background: #173f8a;
  color: #ffffff;
}

.form-preview header span:first-child {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.form-preview h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
}

.preview-badge {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff !important;
  font-size: 0.48rem !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap;
}

.preview-grid {
  display: grid;
  margin-top: 18px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-grid > div {
  min-height: 74px;
  padding: 13px;
  border: 1px solid #d7dfeb;
  border-radius: 4px;
  background: #f8fafc;
}

.preview-grid small,
.preview-result small {
  display: block;
  color: #788398;
  font-size: 0.55rem;
  font-weight: 750;
  text-transform: uppercase;
}

.preview-grid strong,
.preview-result strong {
  display: block;
  margin-top: 7px;
  font-size: 0.7rem;
}

.preview-result {
  display: flex;
  margin-top: 10px;
  padding: 13px;
  align-items: center;
  gap: 12px;
  border: 1px solid #b8e4d2;
  border-radius: 4px;
  background: #eefaf5;
}

.preview-result > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #15966d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.form-preview footer {
  display: flex;
  margin-top: 36px;
  padding-top: 12px;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #d7dfeb;
  color: #7a8598;
  font-size: 0.5rem;
  font-weight: 680;
}

.stage-flow {
  display: flex;
  min-height: 54px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 780;
}

.stage-flow span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.stage-flow b {
  color: var(--blue);
}

.section {
  padding-block: 106px;
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  margin-bottom: 50px;
  align-items: end;
  gap: 50px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
}

.section-heading > p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.compact-heading {
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.final-cta h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 4.45rem);
  line-height: 1.01;
  letter-spacing: -0.058em;
}

.layer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layer-card {
  min-height: 355px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.layer-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 900;
}

.layer-html .layer-icon {
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  color: var(--orange);
}

.layer-css .layer-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.layer-js .layer-icon {
  background: color-mix(in srgb, var(--yellow) 20%, var(--surface));
  color: color-mix(in srgb, var(--yellow) 76%, #5b4400);
}

.layer-kicker {
  margin: 34px 0 9px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
}

.layer-card h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.layer-card > p:last-child {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.workflow-grid {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.workflow-grid li {
  position: relative;
  min-height: 285px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.workflow-grid li::after {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  content: "";
  inset-block-end: -70px;
  inset-inline-end: -45px;
}

.workflow-grid li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.workflow-grid h3 {
  margin: 46px 0 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.workflow-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.68;
}

.support-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.support-row {
  display: grid;
  min-height: 116px;
  padding: 24px 26px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
}

.support-row:last-child {
  border-bottom: 0;
}

.support-row > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.support-head {
  min-height: 58px;
  padding-block: 14px;
  background: var(--surface-soft);
}

.support-head > span {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.support-token {
  display: inline-grid;
  min-width: 66px;
  min-height: 34px;
  padding: 7px 10px;
  place-items: center;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.token-html {
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  color: var(--orange);
}

.token-css {
  background: var(--blue-soft);
  color: var(--blue);
}

.token-js {
  background: color-mix(in srgb, var(--yellow) 20%, var(--surface));
  color: color-mix(in srgb, var(--yellow) 75%, #574000);
}

.token-email {
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  color: var(--green);
}

.support-note {
  display: flex;
  margin-top: 18px;
  padding: 23px 26px;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 23%, var(--line));
  border-radius: 14px;
  background: var(--blue-soft);
}

.support-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 900;
}

.support-note strong {
  display: block;
  color: var(--blue);
  font-size: 0.85rem;
}

.support-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.62;
}

.code-window {
  overflow: hidden;
  border: 1px solid #273248;
  border-radius: 17px;
  background: var(--code);
  color: var(--code-text);
  box-shadow: var(--shadow-lg);
}

.code-window-top {
  display: flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--code-line);
  background: #11192a;
  color: #93a2b8;
  font-size: 0.7rem;
}

.code-window-top > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-language {
  padding: 5px 7px;
  border: 1px solid #33415a;
  border-radius: 6px;
  color: #b7c9ff;
  font-family: Consolas, monospace;
  font-weight: 800;
}

.copy-button {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid #33415a;
  border-radius: 8px;
  background: #172238;
  color: #d9e2f1;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.copy-button:hover,
.copy-button.is-copied {
  border-color: #5876b5;
  background: #21345b;
}

.code-window pre {
  max-height: 760px;
  margin: 0;
  padding: 30px;
  overflow: auto;
  tab-size: 2;
}

.code-window code {
  color: var(--code-text);
  font-size: 0.75rem;
  line-height: 1.72;
  white-space: pre;
}

.security-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid article {
  min-height: 290px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.security-grid article > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 900;
}

.security-grid h3 {
  margin: 39px 0 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.security-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.72;
}

.final-cta {
  display: grid;
  padding-block: 104px 112px;
  align-items: center;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.final-cta h2 {
  max-width: 780px;
  margin-top: 19px;
}

.final-cta p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
}

.final-actions {
  margin-top: 0;
  flex-direction: column;
}

.site-footer {
  padding-block: 66px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
}

.footer-brand {
  max-width: 260px;
}

.footer-main > nav {
  display: grid;
  flex: 0 1 660px;
  gap: 55px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-main nav div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-main nav strong {
  margin-bottom: 5px;
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-main nav a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-main nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  margin-top: 55px;
  padding-top: 22px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

[dir="rtl"] .hero-stage {
  transform: rotate(-0.6deg);
}

[dir="rtl"] .stage-toolbar,
[dir="rtl"] .form-preview,
[dir="rtl"] .code-window {
  direction: rtl;
}

[dir="rtl"] .code-window pre,
[dir="rtl"] .code-window code {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1080px) {
  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 54px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    max-width: 820px;
  }

  .hero-stage {
    width: min(700px, 100%);
    margin-inline: auto;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-grid li {
    min-height: 250px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 80px;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading,
  .final-cta {
    align-items: start;
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    max-width: 680px;
  }

  .layer-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .layer-card,
  .security-grid article {
    min-height: 0;
  }

  .support-row {
    gap: 18px;
    grid-template-columns: 90px 1fr;
  }

  .support-row > span:last-child {
    grid-column: 2;
  }

  .support-head > span:last-child {
    display: none;
  }

  .final-actions {
    width: 100%;
    flex-direction: row;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-main > nav {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, var(--shell));
  }

  .header-inner {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-brand-mark {
    width: 39px;
    height: 39px;
  }

  .site-brand-mark img {
    width: 38px;
    height: 38px;
  }

  .site-brand-copy small {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .language-select-button {
    min-width: 140px;
    min-height: 36px;
    padding-block: 7px;
  }

  .language-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 30px));
    min-width: 0;
    max-width: none;
    max-height: min(430px, calc(100vh - 82px));
  }

  [dir="rtl"] .language-select-menu {
    right: 0;
    left: auto;
  }

  .theme-picker select {
    width: 76px;
    min-height: 36px;
    padding-inline: 8px 24px;
    font-size: 0.67rem;
  }

  .header-cta {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.69rem;
  }

  .hero {
    padding-block: 60px 70px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-buttons .button,
  .final-actions .button {
    width: 100%;
  }

  .hero-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage {
    border-radius: 14px;
    transform: none;
  }

  [dir="rtl"] .hero-stage {
    transform: none;
  }

  .stage-toolbar {
    grid-template-columns: 55px 1fr auto;
  }

  .form-preview {
    width: calc(100% - 28px);
    padding: 14px;
  }

  .form-preview header {
    padding: 14px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .stage-flow {
    gap: 5px;
    font-size: 0.52rem;
  }

  .stage-flow span {
    padding-inline: 5px;
  }

  .section {
    padding-block: 66px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(2.05rem, 11vw, 2.85rem);
  }

  .layer-card {
    padding: 24px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid li {
    min-height: 230px;
  }

  .support-row {
    min-height: 0;
    padding: 22px;
    gap: 13px;
    grid-template-columns: 1fr;
  }

  .support-row > span:last-child,
  .support-row > span {
    grid-column: 1;
  }

  .support-head {
    display: none;
  }

  .support-note {
    padding: 20px;
  }

  .code-window-top > div span:last-child {
    display: none;
  }

  .code-window pre {
    max-height: 620px;
    padding: 23px 17px 28px;
  }

  .code-window code {
    font-size: 0.66rem;
  }

  .security-grid article {
    padding: 24px;
  }

  .final-actions {
    flex-direction: column;
  }

  .footer-main > nav {
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main nav div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero-buttons,
  .final-actions,
  .copy-button,
  .site-footer {
    display: none !important;
  }

  body,
  .section-tinted {
    background: #ffffff;
    color: #111827;
  }

  .hero {
    min-height: auto;
    padding-block: 30px;
    grid-template-columns: 1fr;
  }

  .hero-stage {
    box-shadow: none;
    transform: none;
  }

  .section {
    padding-block: 30px;
  }

  .layer-card,
  .workflow-grid li,
  .security-grid article,
  .support-table,
  .code-window {
    break-inside: avoid;
    box-shadow: none;
  }
}
