:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --paper: #ffffff;
  --paper-soft: #f9fbff;
  --ink: #132033;
  --muted: #5f6d82;
  --line: rgba(19, 32, 51, 0.1);
  --line-strong: rgba(19, 32, 51, 0.16);
  --brand: #0d5bd7;
  --brand-strong: #0a4cb5;
  --accent: #0f8b8d;
  --success: #0f766e;
  --danger: #b42318;
  --container: min(1160px, calc(100vw - 2rem));
  --shadow: 0 24px 70px rgba(22, 38, 63, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf3fb 0%, #f6f8fc 34%, #f5f7fb 100%);
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(15, 139, 141, 0.08), transparent 24%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  position: relative;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand__mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand), #5aa4ff);
  box-shadow: 0 14px 30px rgba(13, 91, 215, 0.18);
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.brand__mark::before {
  inset: 0.72rem 1.18rem;
}

.brand__mark::after {
  inset: 1.18rem 0.72rem;
}

.brand__text {
  display: grid;
  gap: 0.1rem;
}

.brand__text strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand__text span {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.contact-hero {
  padding: 3rem 0 2rem;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-copy h1,
.intro-section h2,
.section-head h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contact-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.contact-copy p,
.intro-section p,
.card p,
.step p,
.result-card p,
.field span,
.form-note,
.form-message {
  color: var(--muted);
  line-height: 1.85;
}

.contact-copy__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.contact-copy__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-copy__list li::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.lead-form,
.card,
.step,
.result-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-form {
  padding: 1.4rem;
  border-radius: 26px;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #8b98ac;
}

.field input:focus {
  outline: none;
  border-color: rgba(13, 91, 215, 0.42);
  box-shadow: 0 0 0 4px rgba(13, 91, 215, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), #2a80f4);
  color: #fff;
  box-shadow: 0 16px 30px rgba(13, 91, 215, 0.2);
}

.button--block {
  width: 100%;
}

.form-note,
.form-message {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.form-message.is-success {
  color: var(--success);
}

.form-message.is-error {
  color: var(--danger);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.intro-section {
  padding: 0.5rem 0 0;
}

.intro-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.45);
}

.section-head {
  max-width: 52rem;
  margin-bottom: 1.7rem;
}

.section-head h2,
.intro-section h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.cards--three,
.steps,
.results-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.step,
.result-card {
  padding: 1.4rem;
  border-radius: 22px;
}

.step strong {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.card h3,
.step h3,
.result-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.24rem;
}

@media (max-width: 960px) {
  .contact-hero__grid,
  .intro-section__grid,
  .cards--three,
  .steps,
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-hero {
    padding-top: 2.4rem;
  }

  .contact-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3.5rem);
  }
}
