:root {
  color-scheme: dark;
  --page-bg: #070a10;
  --page-bg-alt: #0b1220;
  --surface: rgba(12, 18, 31, 0.8);
  --surface-strong: rgba(16, 24, 41, 0.96);
  --surface-muted: rgba(14, 20, 34, 0.54);
  --surface-border: rgba(166, 188, 224, 0.16);
  --surface-border-strong: rgba(166, 188, 224, 0.28);
  --text: #eef3ff;
  --muted: rgba(198, 210, 230, 0.76);
  --subtle: rgba(214, 224, 240, 0.88);
  --accent: #8aa5ff;
  --accent-strong: #5c7cff;
  --accent-soft: rgba(92, 124, 255, 0.16);
  --success: #8bd3a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 12px;
  --display-font: "Sora", "Plus Jakarta Sans", sans-serif;
  --body-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --section-width: min(1240px, calc(100vw - 40px));
}

body[data-theme="dark"] {
  --page-bg: #04060b;
  --page-bg-alt: #09101b;
  --surface: rgba(8, 13, 23, 0.82);
  --surface-strong: rgba(11, 17, 29, 0.97);
  --surface-muted: rgba(9, 14, 24, 0.58);
  --surface-border: rgba(138, 153, 179, 0.14);
  --surface-border-strong: rgba(138, 153, 179, 0.24);
  --accent: #9db0de;
  --accent-strong: #6e82b8;
  --accent-soft: rgba(110, 130, 184, 0.18);
}

body[data-theme="bright"] {
  color-scheme: light;
  --page-bg: #edf3ff;
  --page-bg-alt: #dfe8fb;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(245, 248, 255, 0.72);
  --surface-border: rgba(32, 58, 103, 0.14);
  --surface-border-strong: rgba(32, 58, 103, 0.2);
  --text: #10213d;
  --muted: rgba(55, 79, 117, 0.74);
  --subtle: rgba(33, 52, 84, 0.88);
  --accent: #3861c9;
  --accent-strong: #244697;
  --accent-soft: rgba(56, 97, 201, 0.12);
  --success: #248a4d;
  --shadow: 0 24px 70px rgba(89, 111, 153, 0.16);
}

body[data-theme="meadow"] {
  --page-bg: #0b1108;
  --page-bg-alt: #131d10;
  --surface: rgba(17, 27, 15, 0.8);
  --surface-strong: rgba(20, 31, 18, 0.96);
  --surface-muted: rgba(18, 29, 17, 0.58);
  --surface-border: rgba(186, 214, 145, 0.16);
  --surface-border-strong: rgba(186, 214, 145, 0.26);
  --text: #f4ffe7;
  --muted: rgba(221, 238, 198, 0.76);
  --subtle: rgba(231, 244, 211, 0.88);
  --accent: #b8d95f;
  --accent-strong: #85b234;
  --accent-soft: rgba(184, 217, 95, 0.16);
  --success: #b8d95f;
}

body.lang-tr {
  --body-font: "Manrope", "IBM Plex Sans", sans-serif;
  --display-font: "Sora", "Manrope", sans-serif;
}

body.lang-ar {
  --body-font: "Cairo", "Noto Naskh Arabic", sans-serif;
  --display-font: "Cairo", "Noto Naskh Arabic", sans-serif;
}

body.lang-ar,
body.lang-ar button,
body.lang-ar a,
body.lang-ar input,
body.lang-ar textarea,
body.lang-ar select,
body.lang-ar option,
body.lang-ar label,
body.lang-ar p,
body.lang-ar span,
body.lang-ar strong,
body.lang-ar small,
body.lang-ar li,
body.lang-ar figcaption,
body.lang-ar .select-trigger,
body.lang-ar .select-option,
body.lang-ar .workflow-tab,
body.lang-ar .hero-meta-grid strong,
body.lang-ar .hero-stage-notes strong,
body.lang-ar .download-policy,
body.lang-ar .download-note,
body.lang-ar .faq-question span {
  font-family: var(--body-font);
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar .brand-name,
body.lang-ar .download-brand h3,
body.lang-ar .workflow-copy h3,
body.lang-ar .section-heading h2,
body.lang-ar .footer-brand-block h2 {
  font-family: var(--display-font);
}

body.lang-ar .hero-copy h1,
body.lang-ar .section-heading h2,
body.lang-ar .workflow-copy h3,
body.lang-ar .footer-brand-block h2 {
  line-height: 1.12;
}

body.lang-ar .hero-lead,
body.lang-ar .section-heading p,
body.lang-ar .workflow-copy p,
body.lang-ar .workflow-point p,
body.lang-ar .faq-answer p,
body.lang-ar .footer-bottom p,
body.lang-ar .hero-meta-grid p,
body.lang-ar .download-card p {
  line-height: 1.9;
}

body.lang-ar .select-field span,
body.lang-ar .section-label,
body.lang-ar .meta-label,
body.lang-ar .workflow-kicker,
body.lang-ar .download-brand-label,
body.lang-ar .footer-columns h3 {
  letter-spacing: 0.04em;
}

body.lang-de {
  --body-font: "Sora", "IBM Plex Sans", sans-serif;
  --display-font: "Sora", "IBM Plex Sans", sans-serif;
}

body.lang-fr {
  --body-font: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
  --display-font: "Plus Jakarta Sans", "Sora", sans-serif;
}

body.lang-es {
  --body-font: "Manrope", "IBM Plex Sans", sans-serif;
  --display-font: "Plus Jakarta Sans", "Sora", sans-serif;
}

body,
body button,
body a,
body input,
body textarea,
body select,
body option,
body label,
body small,
body strong,
body figcaption {
  font-family: var(--body-font);
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(92, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-alt) 100%);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

body.is-rtl {
  text-align: right;
}

body.is-rtl .faq-question {
  text-align: right;
}

body.is-rtl .footer-bottom {
  flex-direction: row-reverse;
}

body.is-rtl .select-trigger,
body.is-rtl .select-option {
  flex-direction: row-reverse;
  text-align: right;
}

body.is-rtl .workflow-nav {
  direction: ltr;
}

.page-noise,
.page-bands {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  opacity: 0.06;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0 0.5px, transparent 0.5px);
  background-size: 18px 18px;
}

.page-bands {
  background:
    linear-gradient(120deg, transparent 0 12%, rgba(255, 255, 255, 0.02) 12% 20%, transparent 20% 34%, rgba(255, 255, 255, 0.03) 34% 48%, transparent 48% 62%, rgba(255, 255, 255, 0.025) 62% 76%, transparent 76%);
  opacity: 0.85;
}

body[data-theme="main"] .page-bands,
body[data-theme="dark"] .page-bands,
body[data-theme="meadow"] .page-bands {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input,
textarea {
  font: inherit;
}

.site-header,
.section-shell,
.site-footer {
  width: var(--section-width);
  margin-inline: auto;
}

.site-header,
.brand-mark,
.select-trigger,
.menu-toggle,
.button-primary,
.button-secondary,
.icon-button,
.workflow-tab,
.faq-question,
.hero-meta-grid article,
.feature-card,
.support-strip,
.stage-chip,
.support-pills span,
.hero-frame,
.workflow-frame,
.workflow-copy,
.download-card,
.download-badges span,
.download-embed-wrap a,
.download-embed-wrap img,
.download-brand img,
.footer-brand-block img,
.select-menu,
.select-option,
.faq-item,
.site-footer {
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name,
.section-heading h2,
.hero-copy h1,
.workflow-copy h3,
.footer-brand-block h2,
.download-brand h3 {
  font-family: var(--display-font);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-columns a,
.footer-bottom a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-columns a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.header-tools {
  display: inline-flex;
  gap: 12px;
  align-items: end;
}

.select-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.select-field span,
.section-label,
.meta-label,
.workflow-kicker,
.download-brand-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.select-field span,
.meta-label,
.workflow-kicker,
.download-brand-label,
.section-label {
  color: var(--muted);
}

.select-trigger,
.select-option,
.menu-toggle,
.button-primary,
.button-secondary,
.icon-button,
.workflow-tab,
.faq-question {
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  color: var(--text);
}

.select-trigger,
.menu-toggle {
  min-height: 44px;
  padding: 0 14px;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.select-native {
  display: none;
}

.select-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.select-trigger i {
  color: var(--muted);
  transition: transform 180ms ease;
}

.custom-select.is-open .select-trigger i {
  transform: rotate(180deg);
}

.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 8px;
  min-width: 0;
  background: color-mix(in srgb, var(--surface-strong) 98%, transparent);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.custom-select.is-open .select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select[data-select-name="theme"] .select-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: min(220px, calc(100vw - 32px));
}

.custom-select[data-select-name="language"] .select-menu {
  width: min(240px, calc(100vw - 32px));
}

.custom-select[data-select-name="language"] .select-trigger {
  align-items: center;
}

.select-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--subtle);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.select-option > span {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.language-option-copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.language-option-flag {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: 0 0 auto;
  background-image: var(--language-flag);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.language-option-language {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.select-option i {
  flex: 0 0 auto;
  opacity: 0;
  color: var(--accent);
}

.select-option:hover,
.select-option:focus-visible,
.select-option.is-selected {
  background: var(--accent-soft);
  border-color: var(--surface-border-strong);
  color: var(--text);
}

.select-option.is-selected i {
  opacity: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-main {
  display: grid;
  gap: 120px;
  padding: 34px 0 90px;
}

.section-shell {
  display: grid;
  gap: 28px;
}

.hero-section {
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 42px;
  padding-top: 20px;
  min-height: calc(100svh - 150px);
}

.hero-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2.9rem, 5.8vw, 5.3rem);
  line-height: 0.92;
  max-width: 8ch;
}

body:not(.lang-en) .hero-copy h1 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  max-width: 10.5ch;
}

body.lang-ar .hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  max-width: 11.5ch;
  line-height: 1.08;
}

.hero-lead,
.section-heading p,
.feature-card p,
.support-strip p,
.workflow-copy p,
.workflow-point p,
.download-card p,
.faq-answer p,
.footer-bottom p {
  color: var(--subtle);
  line-height: 1.7;
}

.hero-lead {
  max-width: 38rem;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.download-actions-inline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.icon-button,
.workflow-tab,
.faq-question,
.menu-toggle {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button-primary,
.button-secondary {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #f7fbff;
}

.button-secondary {
  background: transparent;
}

.button-primary:hover,
.button-secondary:hover,
.icon-button:hover,
.workflow-tab:hover,
.faq-question:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--surface-border-strong);
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-meta-grid article,
.feature-card,
.workflow-copy,
.download-card,
.faq-item,
.support-strip,
.site-footer {
  background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.hero-meta-grid article {
  padding: 18px;
}

.hero-meta-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
}

.hero-meta-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-stage {
  display: grid;
  gap: 18px;
}

.hero-stage-bar,
.support-pills,
.download-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-chip,
.support-pills span,
.download-badges span {
  padding: 9px 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-frame,
.workflow-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border-strong);
  background: #02040a;
}

.hero-frame {
  aspect-ratio: 1.18 / 1;
}

.workflow-frame {
  aspect-ratio: 16 / 10;
}

.hero-frame::after,
.workflow-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%, transparent 70%, rgba(4, 9, 18, 0.42));
  pointer-events: none;
}

.hero-frame img,
.workflow-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-stage-notes {
  display: grid;
  gap: 12px;
}

.hero-stage-notes article {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-border);
}

.hero-stage-notes article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-stage-notes span,
.download-note,
.footer-columns h3 {
  color: var(--muted);
}

.hero-stage-notes strong,
.feature-card h3,
.workflow-point h4,
.faq-question span,
.footer-columns h3 {
  font-weight: 600;
}

.section-heading {
  max-width: 62rem;
  display: grid;
  gap: 12px;
}

.section-heading h2,
.download-header h2,
.footer-brand-block h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.section-heading p,
.download-header p {
  margin: 0;
}

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

.feature-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.feature-card i {
  font-size: 1.2rem;
  color: var(--accent);
}

.feature-card h3,
.workflow-point h4,
.download-brand h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-card p,
.workflow-point p,
.download-card p,
.faq-answer p {
  margin: 0;
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.support-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-strip p {
  margin: 0;
}

.workflow-shell {
  display: grid;
  gap: 18px;
}

.workflow-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.workflow-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.workflow-tab,
.icon-button {
  min-height: 46px;
  padding: 0 16px;
}

.workflow-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--surface-border-strong);
  color: var(--text);
}

.workflow-nav {
  display: inline-flex;
  gap: 10px;
}

.icon-button {
  width: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.workflow-copy {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.workflow-copy h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.workflow-points {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.workflow-point {
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
}

.workflow-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.download-section {
  gap: 24px;
}

.download-header {
  max-width: 56rem;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

.download-card {
  padding: 24px;
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-brand img,
.footer-brand-block img {
  width: 58px;
  height: 58px;
}

.download-brand h3 {
  margin-top: 6px;
}

.download-badges {
  margin-top: 20px;
}

.download-embed-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.download-embed-wrap a {
  display: inline-flex;
}

.download-note {
  margin: 24px 0 0;
  line-height: 1.7;
}

.download-policy {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
  color: var(--subtle);
  line-height: 1.75;
}

.download-actions-inline {
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
}

.faq-question i {
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  height: auto;
  overflow: hidden;
  transition: height 240ms ease;
}

.faq-answer p {
  padding: 0 20px 20px;
}

.site-footer {
  margin-bottom: 32px;
  padding: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--surface-border);
}

.footer-brand-block {
  display: flex;
  gap: 18px;
  align-items: start;
}

.footer-brand-block h2 {
  margin: 8px 0 0;
  max-width: 14ch;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 28px;
}

.footer-columns h3 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-columns a {
  display: block;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
}

.footer-bottom p {
  margin: 0;
  max-width: 46rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .site-nav {
    display: none;
  }

  .header-tools {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  body.nav-open .site-header {
    grid-template-columns: 1fr auto;
  }

  body.nav-open .site-nav {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 14px;
    border-top: 1px solid var(--surface-border);
  }

  body.nav-open .header-tools {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--surface-border);
  }

  .hero-section,
  .workflow-grid,
  .download-grid,
  .footer-top,
  .support-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --section-width: min(100vw - 24px, 100%);
  }

  .site-main {
    gap: 88px;
  }

  .site-header {
    gap: 14px;
  }

  .hero-section {
    min-height: auto;
    gap: 30px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.7rem, 8vw, 4.4rem);
  }

  body:not(.lang-en) .hero-copy h1 {
    font-size: clamp(2.45rem, 6.8vw, 3.9rem);
  }

  body.lang-ar .hero-copy h1 {
    font-size: clamp(2.15rem, 5.8vw, 3.45rem);
  }

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

  .hero-meta-grid,
  .feature-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .workflow-toolbar,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-nav {
    width: 100%;
  }

  .workflow-nav .icon-button {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    margin-top: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-tag {
    display: none;
  }

  .site-main {
    gap: 72px;
    padding-top: 22px;
  }

  .button-primary,
  .button-secondary,
  .workflow-tab,
  .site-nav a,
  .download-actions-inline a,
  .hero-actions a {
    width: 100%;
  }

  .hero-actions,
  .download-actions-inline,
  .workflow-tabs,
  .download-embed-wrap,
  .hero-stage-bar,
  .support-pills,
  .download-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-tools {
    grid-template-columns: 1fr;
  }

  .custom-select[data-select-name="theme"] .select-menu,
  .custom-select[data-select-name="language"] .select-menu {
    width: 100%;
    inset-inline: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.3rem);
    line-height: 0.96;
  }

  body:not(.lang-en) .hero-copy h1 {
    font-size: clamp(2.05rem, 9vw, 2.95rem);
  }

  body.lang-ar .hero-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.65rem);
    line-height: 1.12;
  }

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

  .hero-frame {
    aspect-ratio: 4 / 5;
  }

  .workflow-frame {
    aspect-ratio: 4 / 3;
  }

  .workflow-toolbar {
    align-items: stretch;
  }

  .faq-question {
    min-height: 0;
    padding: 18px 20px;
    align-items: flex-start;
  }

  .download-embed-wrap a {
    width: 100%;
    justify-content: center;
  }

  .download-embed-wrap img {
    width: min(220px, 100%);
  }

  .footer-brand-block {
    flex-direction: column;
  }

  .footer-bottom a {
    align-self: flex-start;
  }

  .section-heading h2,
  .download-header h2,
  .footer-brand-block h2 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }
}
