:root {
  --ink: #10201e;
  --muted: #60706c;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: rgba(16, 32, 30, 0.13);
  --green: #0f6b4d;
  --green-dark: #083d33;
  --teal: #0e7c86;
  --gold: #bf8b2e;
  --clay: #a5563f;
  --shadow: 0 24px 70px rgba(16, 32, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--green);
}

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

.header-cta,
.primary-action,
.secondary-action,
.secondary-button,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
  color: var(--green-dark);
  font-weight: 700;
}

.header-cta,
.primary-action {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 107, 77, 0.23);
}

.primary-action:hover,
.header-cta:hover {
  transform: translateY(-1px);
  background: #0d5f44;
}

.secondary-action,
.secondary-button {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-button {
  min-height: 44px;
}

.secondary-action:hover,
.secondary-button:hover,
.language-toggle:hover {
  box-shadow: 0 12px 30px rgba(16, 32, 30, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - 18px));
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 17, 16, 0.22), rgba(5, 17, 16, 0.76) 52%, rgba(5, 17, 16, 0.93)),
    linear-gradient(180deg, rgba(5, 17, 16, 0.14), rgba(5, 17, 16, 0.66));
}

html[dir="ltr"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 17, 16, 0.93), rgba(5, 17, 16, 0.76) 52%, rgba(5, 17, 16, 0.22)),
    linear-gradient(180deg, rgba(5, 17, 16, 0.14), rgba(5, 17, 16, 0.66));
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, 92vw);
  min-height: 100%;
  padding: 94px clamp(18px, 6vw, 80px) 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.section h2,
.recommendation h2 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5.2vw, 5.2rem);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero .secondary-action {
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin: 46px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.signal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 68px);
  background: var(--ink);
  color: var(--white);
}

.signal-band span {
  margin-inline-end: 10px;
  color: var(--gold);
  font-weight: 700;
}

.signal-band a {
  min-width: max-content;
  color: #9fe4ca;
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 68px);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.section-intro {
  max-width: 650px;
}

.section-intro.compact {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2,
.recommendation h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
}

.section-intro p:not(.eyebrow),
.assessment-copy p,
.recommendation p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.stage-card,
.package-card,
.metric-tile,
.pipeline-column,
.lead-form,
.outreach-tool {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 32, 30, 0.06);
}

.stage-card {
  min-height: 220px;
  padding: 26px;
}

.stage-card span {
  color: var(--teal);
  font-weight: 700;
}

.stage-card h3,
.package-card h3,
.before-after h3,
.pipeline-column h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
}

.stage-card p,
.package-card p,
.package-card li,
.lead-item p,
.before-after li {
  color: var(--muted);
}

.outcomes {
  background: #edf2ee;
}

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

.before-after > div {
  padding: clamp(22px, 3vw, 34px);
  border-block-start: 4px solid var(--clay);
  background: var(--white);
}

.before-after > div + div {
  border-block-start-color: var(--green);
}

.before-after ul,
.package-card ul {
  margin: 14px 0 0;
  padding: 0 22px 0 0;
}

.package-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  max-width: none;
  margin-bottom: 30px;
}

.package-heading > p {
  max-width: 470px;
}

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

.package-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.package-card.is-featured {
  border-color: rgba(15, 107, 77, 0.35);
  box-shadow: var(--shadow);
}

.package-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 107, 77, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.price {
  margin: 8px 0 2px;
  font-size: 1.7rem;
  font-weight: 700;
}

.package-card .primary-action,
.package-card .secondary-action {
  width: 100%;
  margin-top: auto;
}

.assessment-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--green-dark);
  color: var(--white);
}

.assessment-copy {
  position: sticky;
  top: 100px;
}

.assessment-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.mini-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.mini-roadmap span {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 107, 77, 0.12);
}

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

.full-width {
  width: 100%;
  border: 0;
}

.recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(26px, 5vw, 54px) clamp(18px, 5vw, 68px) 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(191, 139, 46, 0.35);
  border-radius: 8px;
  background: #fff8ea;
  box-shadow: 0 18px 50px rgba(191, 139, 46, 0.13);
}

.recommendation[hidden] {
  display: none;
}

.recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard {
  background: #fdfdfb;
}

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

.metric-tile {
  padding: 20px;
}

.metric-tile span {
  display: block;
  color: var(--green);
  font-size: 2rem;
  font-weight: 700;
}

.metric-tile p {
  margin: 4px 0 0;
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-column {
  min-height: 340px;
  padding: 16px;
}

.pipeline-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-column h3 span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(14, 124, 134, 0.11);
  color: var(--teal);
  font-size: 0.9rem;
}

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

.lead-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.lead-item strong,
.lead-item small {
  display: block;
}

.lead-item small {
  color: var(--muted);
}

.lead-item p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lead-meta span {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(15, 107, 77, 0.09);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.outreach {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(330px, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
}

.outreach-tool {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
}

.outreach-tool .primary-action {
  border: 0;
}

.outreach-tool textarea {
  min-height: 190px;
  background: #10201e;
  color: #f7f8f5;
  direction: rtl;
}

html[dir="ltr"] .outreach-tool textarea {
  direction: ltr;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 68px);
  background: var(--ink);
  color: var(--white);
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.67);
}

@media (max-width: 1080px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split,
  .assessment-shell,
  .outreach {
    grid-template-columns: 1fr;
  }

  .assessment-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 12px;
  }

  .language-toggle {
    min-height: 40px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 17, 16, 0.28), rgba(5, 17, 16, 0.86) 46%, rgba(5, 17, 16, 0.96)),
      linear-gradient(90deg, rgba(5, 17, 16, 0.4), rgba(5, 17, 16, 0.82));
  }

  .hero-content {
    justify-content: end;
    padding-top: 120px;
  }

  .hero-metrics,
  .stage-grid,
  .before-after,
  .dashboard-grid,
  .form-row,
  .mini-roadmap {
    grid-template-columns: 1fr;
  }

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

  .package-heading,
  .recommendation,
  .signal-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
  }
}
