@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --router: #002a48;
  --router-deep: #001f36;
  --router-surface: #062f4c;
  --router-line: #49677d;
  --cool: #edf2f6;
  --cool-raised: #f9fbfd;
  --white: #ffffff;
  --ink: #071c34;
  --muted: #627386;
  --line: #c8d3de;
  --router-accent: #ff6900;
  --zadcode-accent: #b5163d;
  --success: #43e58b;
  --danger: #a7183f;
  --interest: var(--router-accent);
  --display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-interest="zadcode"] {
  --interest: var(--zadcode-accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--cool);
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--cool);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 105, 0, 0.2);
  color: var(--ink);
}

[data-locale="ar"] .i18n-en,
[data-locale="en"] .i18n-ar {
  display: none !important;
}

[data-locale="ar"] .ph-arrow-circle-right,
[data-locale="ar"] .ph-arrow-right {
  display: inline-block;
  transform: scaleX(-1);
}

.mobile-compact {
  display: none;
}

.sr-only,
.bot-field {
  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;
}

:focus-visible {
  outline: 3px solid var(--router-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--router-accent);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.experience {
  position: relative;
  min-height: 925px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid,
.site-header {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

[data-locale="ar"] .hero-grid {
  grid-template-areas: "zadcode router";
}

[data-locale="en"] .hero-grid {
  grid-template-areas: "router zadcode";
}

.hero-grid {
  min-height: 925px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 82px;
}

[data-locale="ar"] .site-header {
  grid-template-areas: ". actions";
}

[data-locale="en"] .site-header {
  grid-template-areas: "actions .";
}

.header-actions {
  min-width: 0;
  padding: 1.25rem clamp(1.25rem, 3.2vw, 3.5rem);
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--router);
  color: var(--white);
}

[data-locale="ar"] .header-actions {
  direction: rtl;
}

[data-locale="en"] .header-actions {
  direction: ltr;
}

.research-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-end: auto;
  color: #d5e1ea;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--router-accent);
}

.status-success {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--success);
}

.header-waitlist,
.lang-toggle {
  min-height: 40px;
  border: 1px solid var(--router-accent);
  background: transparent;
  color: var(--white);
}

.header-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-toggle {
  width: 40px;
  padding: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
}

.header-waitlist:hover,
.lang-toggle:hover {
  background: var(--router-accent);
  color: var(--router-deep);
}

.hero-title {
  position: absolute;
  top: 98px;
  left: 0;
  z-index: 8;
  width: 100%;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.25vw, 4rem);
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.hero-title-line {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.22em;
}

[data-locale="ar"] .hero-title-line {
  grid-template-areas: "zadcode-title router-title";
}

[data-locale="en"] .hero-title-line {
  grid-template-areas: "router-title zadcode-title";
}

.hero-title-router,
.hero-title-zadcode {
  min-width: 0;
  padding-inline: 0;
}

.hero-title-router {
  grid-area: router-title;
  color: var(--white);
}

.hero-title-router em {
  color: var(--router-accent);
  font-style: normal;
}

.hero-title-zadcode {
  grid-area: zadcode-title;
  color: var(--ink);
}

[data-locale="ar"] .hero-title-router,
[data-locale="en"] .hero-title-zadcode {
  justify-self: start;
}

[data-locale="ar"] .hero-title-zadcode,
[data-locale="en"] .hero-title-router {
  justify-self: end;
}

[data-locale="ar"] .hero-title-router,
[data-locale="ar"] .hero-title-zadcode {
  direction: rtl;
}

[data-locale="en"] .hero-title-router,
[data-locale="en"] .hero-title-zadcode {
  direction: ltr;
}

.product-panel {
  position: relative;
  min-width: 0;
  min-height: 925px;
  overflow: hidden;
  padding: 205px clamp(1.75rem, 4.2vw, 4.7rem) 58px;
}

[data-locale="ar"] .product-panel {
  direction: rtl;
}

[data-locale="en"] .product-panel {
  direction: ltr;
}

.router-panel {
  grid-area: router;
  background: var(--router);
  color: var(--white);
}

.zadcode-panel {
  grid-area: zadcode;
  background: var(--cool);
  color: var(--ink);
}

.panel-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

[data-locale="en"] .panel-texture {
  transform: scaleX(-1);
}

.product-content {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin-inline: auto;
}

.product-intro {
  text-align: center;
}

.product-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.product-heading h2 {
  font-family: var(--display);
  font-size: clamp(3.1rem, 6vw, 5.1rem);
  font-weight: 800;
  line-height: 1.15;
}

.router-panel .product-heading h2 {
  color: var(--white);
}

.zadcode-panel .product-heading h2 {
  color: var(--zadcode-accent);
}

.product-icon {
  display: inline-grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 2.45rem;
}

.router-icon {
  color: var(--router-accent);
}

.zadcode-icon {
  color: var(--zadcode-accent);
  border-radius: 18px;
}

.product-tagline {
  margin-top: 0.45rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.product-tagline strong,
.product-tagline .product-platform,
.product-tagline small {
  display: block;
}

.product-tagline .product-platform {
  margin-top: 0.05rem;
}

.product-tagline small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
}

.router-panel .product-tagline {
  color: #e7eef4;
}

.demo-button {
  display: inline-flex;
  width: min(100%, 330px);
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

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

.demo-button[aria-disabled="true"] {
  cursor: wait;
}

.demo-button[aria-disabled="true"]:hover {
  transform: none;
}

.demo-button-copy > [data-button-state] {
  display: none;
}

.demo-button[data-demo-state="ready"] [data-button-state="ready"],
.demo-button[data-demo-state="running"] [data-button-state="running"],
.demo-button[data-demo-state="complete"] [data-button-state="complete"] {
  display: inline;
}

.demo-button .ph {
  font-size: 1.55rem;
}

.router-button {
  border: 2px solid var(--router-accent);
  color: var(--white);
}

.router-button:hover {
  background: var(--router-accent);
  color: var(--router-deep);
}

.zadcode-button {
  border: 0;
  background: var(--zadcode-accent);
  color: var(--white);
}

.zadcode-button:hover {
  background: #93102f;
}

.router-console,
.task-composer,
.document-preview {
  margin-inline: auto;
  border-radius: 14px;
}

.router-console {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--router-line);
  background: var(--router-deep);
  color: #f5f8fb;
  font-size: 0.84rem;
}

.console-header,
.console-row,
.console-block,
.console-footer {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(136, 161, 181, 0.27);
}

.console-header,
.console-row,
.console-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.console-header {
  justify-content: space-between;
}

.demo-stages {
  --demo-accent: var(--zadcode-accent);
  --demo-line: var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-stage {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.8rem 0.75rem;
  border-block-start: 2px solid var(--demo-line);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.demo-stage + .demo-stage {
  border-inline-start: 1px solid var(--demo-line);
}

.demo-stage-number {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--demo-line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.demo-stage strong,
.demo-stage small {
  display: block;
}

.demo-stage strong {
  font-size: 0.72rem;
  line-height: 1.35;
}

.demo-stage small {
  margin-top: 0.25rem;
  font-size: 0.63rem;
  line-height: 1.45;
  opacity: 0.36;
  transition: opacity 180ms ease;
}

.demo-stage[data-step-state="pending"] strong {
  opacity: 0.58;
}

.demo-stage[data-step-state="active"],
.demo-stage[data-step-state="complete"] {
  border-block-start-color: var(--demo-accent);
}

.demo-stage[data-step-state="active"] {
  background: color-mix(in srgb, var(--demo-accent) 9%, transparent);
}

.demo-stage[data-step-state="active"] .demo-stage-number {
  border-color: var(--demo-accent);
  background: var(--demo-accent);
  color: var(--white);
}

.demo-stage[data-step-state="complete"] .demo-stage-number {
  border-color: var(--demo-accent);
  color: var(--demo-accent);
}

.demo-stage[data-step-state="active"] strong,
.demo-stage[data-step-state="complete"] strong,
.demo-stage[data-step-state="active"] small,
.demo-stage[data-step-state="complete"] small {
  opacity: 1;
}

.demo-stage-copy {
  min-height: 54px;
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.55;
}

.router-stages {
  --demo-accent: var(--router-accent);
  --demo-line: rgba(136, 161, 181, 0.27);
  border-bottom: 1px solid rgba(136, 161, 181, 0.27);
}

.router-stages .demo-stage small {
  color: #aec0ce;
}

.router-console .demo-stage-copy {
  border-bottom: 1px solid rgba(136, 161, 181, 0.27);
  background: rgba(255, 105, 0, 0.06);
  color: #f4f7fa;
}

.zadcode-stages {
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.zadcode-stages .demo-stage small {
  color: var(--muted);
}

.zadcode-demo .demo-stage-copy {
  border-bottom: 1px solid var(--line);
  background: rgba(177, 20, 64, 0.055);
  color: var(--ink);
}

.console-header h3,
.preview-header strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.sample-label {
  color: #aebfcd;
  font-size: 0.7rem;
  font-weight: 600;
}

.request-row {
  direction: ltr;
  font-family: var(--mono);
}

.request-method {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.request-row code {
  min-width: 0;
  color: #f4f7fa;
  overflow-wrap: anywhere;
}

.request-result {
  margin-left: auto;
  color: var(--success);
}

.request-time {
  min-width: 46px;
  text-align: right;
}

.console-block {
  text-align: start;
}

.console-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #d7e1e9;
  font-weight: 600;
}

.code-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.7rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(136, 161, 181, 0.25);
  border-radius: 9px;
  background: var(--router-surface);
  color: #f4f7fa;
  font-family: var(--mono);
}

.code-surface code {
  overflow-wrap: anywhere;
}

.code-surface .metric {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #dfe7ed;
}

.code-surface .ph {
  color: var(--router-accent);
}

.console-footer {
  border-bottom: 0;
  justify-content: flex-start;
}

.console-footer strong {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-weight: 400;
}

.console-footer .ph {
  color: var(--router-accent);
  font-size: 1.35rem;
}

.router-console[data-demo-state="running"] .request-result {
  color: var(--router-accent);
}

.router-console[data-demo-state="running"] .status-success {
  background: var(--router-accent);
}

.zadcode-demo {
  margin-top: 2rem;
}

.task-composer {
  position: relative;
  padding: 1.25rem 1.4rem 1rem;
  border: 1px solid var(--line);
  background: var(--cool-raised);
  text-align: start;
}

.task-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  list-style: none;
}

.task-capabilities li {
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(181, 22, 61, 0.24);
  border-radius: 999px;
  background: rgba(181, 22, 61, 0.05);
  color: var(--zadcode-accent);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.4;
}

.task-composer > p {
  min-height: 42px;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.attachment-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.attachment-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.task-action {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  margin-inline-start: auto;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--zadcode-accent);
  color: var(--white);
  font-size: 1.2rem;
}

.document-preview {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cool-raised);
  text-align: start;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.preview-header .sample-label {
  color: var(--zadcode-accent);
}

.document-body {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  direction: ltr;
}

.document-body[hidden] {
  display: none;
}

.document-empty-state {
  display: grid;
  min-height: 194px;
  place-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.document-empty-state .ph {
  color: var(--zadcode-accent);
  font-size: 2.25rem;
}

.document-empty-state[hidden] {
  display: none;
}

.file-card,
.summary-copy {
  direction: rtl;
}

[data-locale="en"] .file-card,
[data-locale="en"] .summary-copy {
  direction: ltr;
}

.file-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.65rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.file-card .ph {
  color: #c00f1f;
  font-size: 2.4rem;
}

.file-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.73rem;
}

.file-card small {
  color: var(--muted);
  font-size: 0.65rem;
}

.summary-copy {
  padding: 1rem 1.15rem 1.2rem;
  font-size: 0.74rem;
}

.summary-copy h4 {
  margin-bottom: 0.45rem;
  color: var(--zadcode-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.summary-copy p {
  margin-bottom: 0.9rem;
  color: #33485b;
}

.router-proof {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.router-proof .ph {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--router);
  color: var(--router-accent);
  font-size: 1rem;
}

.router-proof strong,
.router-proof small {
  display: block;
}

.router-proof strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.router-proof small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.contextual-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.router-panel .contextual-waitlist {
  color: #e8f0f5;
}

.contextual-waitlist[hidden] {
  display: none;
}

.route-connector {
  position: absolute;
  top: 478px;
  left: 50%;
  width: min(29vw, 420px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.route-lines {
  z-index: 1;
}

.route-node {
  z-index: 4;
  clip-path: inset(0 40%);
}

.route-connector.is-routing {
  animation: connector-pulse 760ms ease-in-out infinite alternate;
}

.waitlist-section {
  min-height: 820px;
  padding: 76px clamp(1.25rem, 5vw, 5rem) 90px;
  border-top: 1px solid var(--line);
  background: var(--cool);
}

.waitlist-heading {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--interest);
  font-size: 0.78rem;
  font-weight: 600;
}

.waitlist-heading h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.25;
}

.waitlist-heading > p:last-child {
  margin-top: 0.35rem;
  color: #32475a;
  font-size: 1.02rem;
}

.waitlist-form {
  width: min(100%, 820px);
  margin: 2.25rem auto 0;
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cool-raised);
}

.form-field {
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

.form-field > label {
  padding-top: 0.75rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.control-stack,
.select-shell {
  min-width: 0;
}

.select-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--interest);
  border-radius: 9px;
  background: var(--white);
  transition: border-color 180ms ease;
}

.select-shell select {
  width: 100%;
  height: 52px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.select-shell select:focus-visible {
  outline: 0;
}

.select-shell .ph {
  color: var(--interest);
  font-size: 1.3rem;
}

.interest-signal {
  transition: color 180ms ease, transform 180ms ease;
}

.select-shell:focus-within .interest-signal {
  transform: scale(1.12);
}

.select-shell:focus-within {
  outline: 3px solid var(--interest);
  outline-offset: 3px;
}

.control-stack input,
.control-stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.93rem;
}

.control-stack input {
  min-height: 54px;
  padding: 0.75rem 0.9rem;
}

.control-stack textarea {
  min-height: 100px;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.control-stack input::placeholder,
.control-stack textarea::placeholder {
  color: #8292a2;
  opacity: 1;
}

.control-stack input[aria-invalid="true"],
.control-stack textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint,
.field-error {
  margin-top: 0.35rem;
  font-size: 0.73rem;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-weight: 600;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 9px;
  background: var(--router);
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 600;
  transition: background-color 180ms ease, transform 180ms ease;
}

.submit-button:not(:disabled):hover {
  background: var(--router-deep);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.84;
  transform: none;
}

.submit-button[data-state="pending"] {
  cursor: wait;
}

.submit-copy {
  display: none;
}

.submit-button[data-state="idle"] [data-submit-copy="idle"],
.submit-button[data-state="pending"] [data-submit-copy="pending"],
.submit-button[data-state="success"] [data-submit-copy="success"] {
  display: inline;
}

.submit-button .ph {
  color: var(--interest);
  font-size: 1.35rem;
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-status {
  min-height: 1.55rem;
  margin-top: 0.65rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.form-status[data-state="success"] {
  color: #17663f;
}

.form-status[data-state="validation"],
.form-status[data-state="rate-limit"],
.form-status[data-state="service-error"] {
  color: var(--danger);
}

.form-noscript {
  margin-top: 0.75rem;
  color: var(--danger);
  font-size: 0.78rem;
  text-align: center;
}

.unsubscribe-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background: var(--router);
}

.unsubscribe-card {
  width: min(100%, 520px);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid var(--router-line);
  border-radius: 14px;
  background: var(--cool-raised);
  box-shadow: 0 24px 70px rgba(0, 20, 36, 0.24);
}

.unsubscribe-brand {
  margin-bottom: 1.2rem;
  color: var(--router-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.unsubscribe-card h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.2;
}

.unsubscribe-card > p:not(.unsubscribe-brand) {
  margin-top: 0.75rem;
  color: var(--muted);
}

.unsubscribe-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 9px;
  background: var(--router);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--router-line);
  background: var(--router-deep);
  color: #c6d4df;
  font-size: 0.78rem;
}

.footer-id {
  direction: ltr;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes connector-pulse {
  from { opacity: 0.66; transform: translateX(-50%) scale(0.985); }
  to { opacity: 1; transform: translateX(-50%) scale(1.015); }
}

@keyframes status-pulse {
  50% { opacity: 0.38; }
}

.router-console[data-demo-state="running"] .status-success,
.zadcode-demo[data-demo-state="running"] .task-action {
  animation: status-pulse 620ms ease-in-out infinite;
}

@media (max-width: 1100px) {
  .header-actions {
    padding-inline: 1.4rem;
  }

  .research-badge {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
  }

  .product-panel {
    padding-inline: 1.8rem;
  }

  .product-heading h2 {
    font-size: clamp(2.8rem, 6.2vw, 4.1rem);
  }

  .product-icon {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 920px) {
  .experience,
  .hero-grid {
    min-height: 0;
  }

  .site-header {
    position: relative;
    display: flex;
    min-height: 76px;
    background: var(--router);
  }

  .header-actions {
    width: 100%;
    background: transparent;
  }

  .hero-title {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 2.2rem 1.25rem 2rem;
    background: var(--cool);
    font-size: clamp(2rem, 7vw, 3.2rem);
    white-space: normal;
  }

  .hero-title-line {
    display: inline;
  }

  .hero-title-router,
  .hero-title-zadcode {
    color: var(--ink);
  }

  .hero-title-zadcode::before {
    content: " ";
  }

  [data-locale="ar"] .hero-grid,
  [data-locale="en"] .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "router" "zadcode";
  }

  .product-panel {
    min-height: 0;
    padding: 4.2rem 1.25rem;
  }

  .product-content {
    width: min(100%, 650px);
  }

  .panel-texture {
    object-position: center;
  }

  .route-connector {
    display: none;
  }

  .waitlist-section {
    padding-top: 4.2rem;
  }
}

@media (max-width: 620px) {
  .mobile-full {
    display: none;
  }

  .mobile-compact {
    display: inline;
  }

  .site-header {
    min-height: 64px;
  }

  .header-actions {
    gap: 0.5rem;
    min-height: 64px;
    padding: 0.65rem 0.75rem;
  }

  .research-badge {
    max-width: none;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .header-waitlist,
  .lang-toggle {
    min-height: 36px;
  }

  .header-waitlist {
    padding-inline: 0.75rem;
    font-size: 0.68rem;
  }

  .lang-toggle {
    width: 36px;
  }

  .hero-title {
    padding: 1.65rem 1rem 1.55rem;
    font-size: clamp(2rem, 10.5vw, 2.8rem);
    line-height: 1.08;
  }

  .product-panel {
    padding: 3rem 0.9rem;
  }

  .product-intro {
    text-align: start;
  }

  .product-heading {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .product-heading h2 {
    min-width: 0;
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    letter-spacing: -0.035em;
  }

  .product-icon {
    width: 48px;
    height: 48px;
    font-size: 1.65rem;
  }

  .zadcode-icon {
    border-radius: 13px;
  }

  .product-tagline {
    margin-top: 0.35rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .product-tagline small {
    margin-top: 0.2rem;
    font-size: 0.7em;
  }

  .demo-button {
    width: 100%;
    min-height: 54px;
    margin-top: 1rem;
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: start;
  }

  .demo-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-stage {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.45rem;
    border-block-start-width: 2px;
  }

  .demo-stage + .demo-stage {
    border-inline-start: 1px solid var(--demo-line);
  }

  .demo-stage-number {
    width: 22px;
    height: 22px;
  }

  .demo-stage strong {
    font-size: 0.61rem;
    line-height: 1.3;
  }

  .demo-stage small {
    display: none;
  }

  .demo-stage-copy {
    min-height: 0;
    padding: 0.6rem 0.7rem;
    font-size: 0.68rem;
  }

  .router-console {
    margin-top: 1.2rem;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .console-header,
  .console-row,
  .console-block,
  .console-footer {
    padding: 0.65rem 0.7rem;
  }

  .console-header h3,
  .preview-header strong {
    font-size: 0.78rem;
  }

  .sample-label {
    font-size: 0.6rem;
  }

  .request-row {
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
  }

  .request-row code {
    order: 4;
    width: 100%;
    font-size: 0.63rem;
  }

  .request-time {
    display: none;
  }

  .console-label {
    margin-bottom: 0.3rem;
    font-size: 0.68rem;
  }

  .code-surface {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.55rem 0.65rem;
    font-size: 0.66rem;
  }

  .code-surface .metric {
    grid-column: 1;
    grid-row: auto;
  }

  .zadcode-demo {
    margin-top: 1.2rem;
  }

  .task-composer {
    padding: 0.9rem 0.85rem 0.75rem;
    border-radius: 12px;
  }

  .task-capabilities {
    gap: 0.28rem;
    margin-bottom: 0.6rem;
  }

  .task-capabilities li {
    padding: 0.14rem 0.4rem;
    font-size: 0.58rem;
  }

  .task-composer > p {
    min-height: 0;
    padding-bottom: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .attachment-row {
    gap: 0.4rem;
    padding-top: 0.6rem;
    font-size: 0.68rem;
  }

  .task-action {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .zadcode-stages,
  .document-preview {
    margin-top: 0.8rem;
  }

  .document-preview {
    border-radius: 12px;
  }

  .preview-header {
    padding: 0.65rem 0.75rem;
  }

  .document-empty-state {
    min-height: 122px;
    padding: 1rem;
    font-size: 0.78rem;
  }

  .document-body {
    grid-template-columns: 1fr;
  }

  .file-card {
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: start;
  }

  .file-card .ph {
    font-size: 2rem;
  }

  .summary-copy {
    padding: 0.85rem 0.9rem 1rem;
  }

  .waitlist-section {
    min-height: 0;
    padding: 3rem 0.9rem 4rem;
  }

  .waitlist-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.15;
  }

  .waitlist-heading > p:last-child {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .waitlist-form {
    margin-top: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .form-field {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
  }

  .form-field > label {
    padding-top: 0;
    font-size: 0.78rem;
  }

  .select-shell {
    min-height: 48px;
    padding-inline: 0.75rem;
  }

  .select-shell select {
    height: 46px;
    font-size: 1rem;
  }

  .control-stack input {
    min-height: 48px;
    padding: 0.65rem 0.75rem;
  }

  .control-stack textarea {
    min-height: 84px;
    padding: 0.7rem 0.75rem;
  }

  .control-stack input,
  .control-stack textarea {
    font-size: 0.84rem;
  }

  .field-hint,
  .field-error {
    margin-top: 0.25rem;
    font-size: 0.66rem;
  }

  .field-error:empty {
    min-height: 0;
    margin-top: 0;
  }

  .submit-button {
    min-height: 52px;
    margin-top: 0.9rem;
    font-size: 0.9rem;
  }

  .form-privacy {
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0.7rem;
    font-size: 0.67rem;
    line-height: 1.5;
    text-align: start;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.25rem 0.9rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .demo-button,
  .route-connector,
  .waitlist-form,
  .skip-link {
    display: none;
  }

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

  .product-panel {
    min-height: auto;
    color-adjust: exact;
    print-color-adjust: exact;
  }
}
