/* --- Base --- */
:root {
  --bg: #0b1423;
  --bg-soft: #152235;
  --panel: #17243a;
  --panel-2: #1d2e48;
  --text: #f8fafc;
  --muted: #aeb8c8;
  --muted-2: #748196;
  --line: rgba(255, 255, 255, 0.1);
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --ink: #111827;
  --ink-soft: #536174;
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --red: #ef4444;
  --shadow: 0 28px 90px rgba(3, 7, 18, 0.36);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: #f2f5f8;
  font-family: "Inter", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body[dir="rtl"],
html[dir="rtl"] body {
  font-family: "Noto Sans Hebrew", "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 22, 38, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.nav-panel,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-panel {
  gap: 18px;
}

.nav-links {
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #dce4ef;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.has-menu .nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.8;
}

.mega-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  display: grid;
  width: 290px;
  padding: 10px;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu a {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid transparent;
}

.mega-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.mega-menu strong {
  color: #fff;
  font-size: 0.92rem;
}

.mega-menu span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-actions {
  gap: 10px;
}

.lang-switch {
  min-height: 42px;
  padding: 0 14px;
  color: #dce4ef;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, #2dd4bf, #f4c56a);
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.22);
}

.nav-cta {
  color: #e8eef7;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.16), transparent 36%),
    radial-gradient(circle at 84% 12%, rgba(148, 163, 184, 0.18), transparent 34%),
    radial-gradient(circle at 64% 82%, rgba(96, 165, 250, 0.08), transparent 30%),
    linear-gradient(135deg, #101827 0%, #1d2838 50%, #344154 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.hero-glow {
  position: absolute;
  filter: blur(12px);
  opacity: 0.58;
}

.hero-glow-one {
  width: 280px;
  height: 280px;
  inset-inline-start: 7%;
  top: 18%;
  background: rgba(45, 212, 191, 0.11);
}

.hero-glow-two {
  width: 340px;
  height: 340px;
  inset-inline-end: 3%;
  top: 22%;
  background: rgba(148, 163, 184, 0.15);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  gap: 48px;
  align-items: start;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4c56a;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 11px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.8);
}

.hero h1 {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 3.8vw, 3.55rem);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

html[dir="rtl"] .hero h1 {
  max-width: 600px;
  font-size: clamp(2.25rem, 3.45vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: #d8e0ec;
  font-size: 1.08rem;
  font-weight: 560;
}

.hero-lead-secondary {
  margin-top: 14px;
  color: #c1ccdb;
  font-size: 1rem;
  font-weight: 520;
}

.security-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 620px;
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.26);
  box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.72);
}

html[dir="rtl"] .security-callout {
  box-shadow: inset -3px 0 0 rgba(45, 212, 191, 0.72);
}

.security-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.security-icon svg {
  width: 24px;
  height: 24px;
}

.security-callout strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
}

.security-callout p {
  margin: 5px 0 0;
  color: #d3dde9;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-secondary {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.trust-strip div {
  padding: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #fff;
  font-size: 1.05rem;
}

.trust-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --- Product Mock --- */
.hero-product {
  min-width: 0;
}

.screen-shell {
  overflow: hidden;
  background: #0d1524;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-brand {
  display: flex;
  align-items: center;
}

.workspace-brand {
  gap: 10px;
  color: #fff;
  font-weight: 850;
}

.mini-mark {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 610px;
}

.workspace-main {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #111a2c;
  background-size: 36px 36px;
}

.prompt-card,
.kpi-card,
.chart-card,
.insight-card,
.data-table {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.prompt-card {
  padding: 15px 16px;
}

.prompt-label {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-card p {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-card {
  padding: 14px;
}

.kpi-card span,
.kpi-card em {
  color: #9aa7b9;
  font-size: 0.75rem;
  font-style: normal;
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.kpi-card em {
  display: inline-flex;
  margin-top: 7px;
  color: var(--teal);
}

.kpi-card em.warn {
  color: var(--amber);
}

.kpi-card em.risk {
  color: #fca5a5;
}

.analysis-panel {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 12px;
}

.chart-card {
  padding: 15px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.chart-head span {
  color: #9aa7b9;
  font-size: 0.76rem;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 174px;
  margin-top: 18px;
  padding: 14px 12px 0;
  background: rgba(0, 0, 0, 0.16);
}

.chart-bars span {
  min-height: 28px;
  height: var(--h);
  background: linear-gradient(180deg, var(--teal), #0f766e);
}

.chart-bars span:nth-child(4),
.chart-bars span:nth-child(6) {
  background: linear-gradient(180deg, var(--amber), #b45309);
}

.insight-card {
  padding: 16px;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.07));
}

.insight-card strong {
  color: #fff;
}

.insight-card p {
  margin: 11px 0 0;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.data-table {
  overflow: hidden;
  color: #dce4ef;
  font-size: 0.8rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.95fr;
  gap: 10px;
  padding: 10px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  color: #fff;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.06);
}

.attention {
  background: rgba(245, 158, 11, 0.1);
}

.trend-status {
  font-weight: 850;
}

.trend-status.good {
  color: var(--teal);
}

.trend-status.neutral {
  color: #cbd5e1;
}

.trend-status.warn {
  color: var(--amber);
}

/* --- Shared Sections --- */
.logo-band {
  padding: 18px 0;
  background: #0b1220;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  color: #dce4ef;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
}

.section {
  padding: 92px 0;
}

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

.section-heading h2,
.split-heading h2,
.onboarding-copy h2,
.faq-grid h2,
.contact-card h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .split-heading h2,
html[dir="rtl"] .onboarding-copy h2,
html[dir="rtl"] .faq-grid h2,
html[dir="rtl"] .contact-card h2 {
  font-size: clamp(1.8rem, 2.75vw, 2.65rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.section-heading p,
.split-heading p,
.onboarding-copy p,
.contact-card p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.mode-grid,
.use-case-grid {
  display: grid;
  gap: 18px;
}

.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-card,
.use-case-grid article {
  padding: 26px;
  background: var(--surface);
  border: 1px solid #dce4ee;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.mode-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
}

.mode-card.highlighted {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.mode-index {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mode-card h3,
.use-case-grid h3 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mode-card p,
.use-case-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.mode-card.highlighted p,
.mode-card.highlighted li {
  color: #cbd5e1;
}

.mode-card ul {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.mode-card li {
  position: relative;
  padding-inline-start: 18px;
  color: #536174;
  font-size: 0.92rem;
}

.mode-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.67em;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.products-section {
  background: #fff;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.deployment-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 34px;
  min-height: 430px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #dce4ee;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.deployment-card:nth-child(even) .deployment-copy {
  order: 2;
}

.deployment-card:nth-child(even) .deploy-visual {
  order: 1;
}

.deployment-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.product-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #06101c;
  background: #d9fff9;
  font-size: 0.85rem;
  font-weight: 900;
}

.deployment-card:nth-child(2) .product-icon {
  background: #fef3c7;
}

.deployment-card:nth-child(3) .product-icon {
  background: #ede9fe;
}

.deployment-card:nth-child(4) .product-icon {
  background: #fee2e2;
}

.deployment-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.deployment-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.deployment-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.deployment-points li {
  position: relative;
  padding-inline-start: 18px;
  color: #3f4f63;
  font-size: 0.94rem;
}

.deployment-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.deploy-visual {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #111827;
  background-size: 28px 28px;
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.brand-visual {
  padding: 18px;
  place-items: stretch;
}

.brand-preview-top,
.brand-preview-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 14px;
  color: #fff;
}

.customer-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #06231f;
  background: linear-gradient(135deg, var(--teal), #f4c56a);
  font-weight: 900;
}

.brand-preview-hero {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 18px;
}

.brand-preview-hero span {
  color: #dce4ef;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-preview-hero div {
  height: 12px;
  background: rgba(255, 255, 255, 0.11);
}

.brand-preview-hero div:last-child {
  width: 72%;
}

.mobile-visual {
  position: relative;
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.18), transparent 38%),
    linear-gradient(135deg, #f8fafc, #e6edf5);
}

.mobile-visual::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 50%;
  filter: blur(8px);
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: 190px;
  min-height: 310px;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    #121a2a;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-header {
  width: 44px;
  height: 5px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-question {
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 750;
}

.phone-kpi {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 2.7rem;
  font-weight: 850;
  line-height: 1;
}

.phone-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 7px;
  height: 76px;
}

.phone-bars span {
  background: var(--teal);
}

.phone-bars span:nth-child(1) {
  height: 55%;
}

.phone-bars span:nth-child(2) {
  height: 88%;
  background: var(--amber);
}

.phone-bars span:nth-child(3) {
  height: 68%;
}

.phone-line {
  height: 10px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.embed-visual {
  padding: 18px;
}

.site-frame {
  width: 100%;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #dce4ee;
}

.site-nav-line {
  height: 20px;
  margin-bottom: 14px;
  background: #dce4ee;
}

.site-content {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 12px;
}

.site-chart,
.embed-widget {
  min-height: 180px;
  background: #ffffff;
  border: 1px solid #dce4ee;
}

.site-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  padding: 14px;
}

.site-chart span {
  background: #94a3b8;
}

.site-chart span:nth-child(1) { height: 45%; }
.site-chart span:nth-child(2) { height: 78%; background: var(--teal); }
.site-chart span:nth-child(3) { height: 60%; }
.site-chart span:nth-child(4) { height: 88%; background: var(--amber); }

.embed-widget {
  padding: 14px;
}

.embed-widget strong {
  color: var(--ink);
}

.embed-widget p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.api-visual {
  align-items: stretch;
  justify-items: stretch;
  padding: 18px;
}

.api-visual pre {
  direction: ltr;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  text-align: left;
  color: #dce4ef;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.onboarding-section {
  color: #fff;
  background:
    radial-gradient(circle at 15% 40%, rgba(45, 212, 191, 0.16), transparent 32%),
    linear-gradient(135deg, #0b1220, #1f2937);
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 50px;
  align-items: start;
}

.onboarding-copy h2,
.onboarding-copy p {
  color: #fff;
}

.onboarding-copy p {
  color: #cbd5e1;
}

.architecture-section {
  background: #f8fafc;
}

.architecture-section .section-heading {
  max-width: 880px;
}

.architecture-diagram {
  overflow-x: auto;
  overflow-y: hidden;
  background: #ffffff;
  border: 1px solid #d8e0eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.diagram-caption {
  padding: 14px 18px;
  color: #526071;
  background: #f8fafc;
  border-bottom: 1px solid #e7ecf3;
  font-size: 0.9rem;
  font-weight: 650;
}

.architecture-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 860px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.step {
  min-height: 176px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.step span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-top: 24px;
  color: #fff;
  font-size: 1.25rem;
}

.step p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.use-case-grid {
  grid-template-columns: repeat(4, 1fr);
}

.faq-section {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
}

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

.faq-list details {
  background: #f8fafc;
  border: 1px solid #dce4ee;
}

.faq-list summary {
  padding: 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ink-soft);
}

.contact-section {
  padding: 76px 0;
  background: #0b1220;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(45, 212, 191, 0.18), transparent 28%),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card h2,
.contact-card p {
  color: #fff;
}

.contact-card p {
  color: #cbd5e1;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  gap: 3px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.contact-link strong {
  color: #fff;
}

.contact-link span {
  direction: ltr;
  color: #cbd5e1;
}

.footer {
  padding: 26px 0;
  color: #aeb8c8;
  background: #080d18;
  border-top: 1px solid var(--line);
}

.footer-inner,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-inner {
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-copy {
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #111827;
  cursor: pointer;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.16);
  box-shadow: 0 16px 38px rgba(3, 7, 18, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(248, 250, 252, 0.98);
}

.back-to-top.on-light {
  color: #f8fafc;
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 38px rgba(3, 7, 18, 0.25);
}

.back-to-top.on-light:hover,
.back-to-top.on-light:focus-visible {
  background: rgba(31, 41, 55, 0.96);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 22px;
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .hero-grid,
  .split-heading,
  .onboarding-grid,
  .faq-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .hero-grid {
    gap: 34px;
  }

  .mode-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deployment-card {
    grid-template-columns: 1fr;
  }

  .deployment-card:nth-child(even) .deployment-copy,
  .deployment-card:nth-child(even) .deploy-visual {
    order: initial;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: sticky;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: 74px;
    inset-inline: 16px;
    display: none;
    align-items: stretch;
    padding: 14px;
    background: rgba(8, 13, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: grid;
    gap: 14px;
  }

  .nav-links,
  .nav-actions {
    display: grid;
    align-items: stretch;
  }

  .nav-link,
  .nav-cta,
  .lang-switch {
    justify-content: flex-start;
  }

  .mega-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 4px 0 10px;
    pointer-events: auto;
    opacity: 1;
    box-shadow: none;
    transform: none;
  }

  .has-menu:hover .mega-menu,
  .has-menu:focus-within .mega-menu {
    display: grid;
  }

  .hero {
    padding: 72px 0 50px;
  }

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

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

  .analysis-panel {
    grid-template-columns: 1fr;
  }

  .logo-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    width: min(100% - 24px, 1240px);
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  html[dir="rtl"] .hero h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.7rem);
  }

  .trust-strip,
  .mode-grid,
  .deployment-grid,
  .use-case-grid,
  .steps,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .screen-shell {
    margin-inline: -12px;
  }

  .workspace-top,
  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-main {
    padding: 12px;
  }

  .deployment-card {
    gap: 22px;
    min-height: 0;
    padding: 24px;
  }

  .deploy-visual {
    min-height: 270px;
  }

  .logo-band-inner {
    grid-template-columns: 1fr;
    text-align: start;
  }

  .contact-card {
    padding: 26px;
  }

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