:root {
  color-scheme: light;
  --ink: #071a33;
  --muted: #52657f;
  --blue-900: #09245a;
  --blue-700: #0b3d91;
  --blue-500: #2477e8;
  --silver: #d8e1ed;
  --silver-strong: #a8b8cc;
  --surface: #ffffff;
  --surface-blue: #f4f8ff;
  --line: rgba(9, 36, 90, 0.14);
  --shadow: 0 24px 70px rgba(9, 36, 90, 0.18);
  --radius: 8px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(36, 119, 232, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #eef5ff 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(216, 225, 237, 0.7);
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(216, 225, 237, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), #8fb8f7);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(11, 61, 145, 0.22);
}

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

.brand strong {
  font-size: 1rem;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:focus-visible,
.nav-links a:hover {
  color: var(--blue-700);
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.lang-button {
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
}

.lang-button.is-active {
  background: var(--blue-700);
  color: white;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(18rem, 1.14fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) 2rem;
}

.hero-copy {
  max-width: 45rem;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[dir="rtl"] .section-label {
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action {
  background: var(--blue-700);
  color: white;
  box-shadow: 0 18px 40px rgba(11, 61, 145, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-900);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(216, 225, 237, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(1rem, 4vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.proof-strip div {
  padding: clamp(1rem, 2vw, 1.6rem);
  background: rgba(255, 255, 255, 0.82);
}

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

.proof-strip strong {
  margin-bottom: 0.35rem;
  color: var(--blue-900);
  font-size: 1rem;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-heading.compact {
  display: block;
  max-width: 48rem;
}

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

.case-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92)),
    var(--surface);
  box-shadow: 0 18px 45px rgba(9, 36, 90, 0.08);
}

.case-card::after {
  position: absolute;
  inset-inline-end: -4rem;
  top: -4rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(36, 119, 232, 0.3);
  border-radius: 50%;
  content: "";
}

.case-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--blue-700);
}

.case-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.case-kicker {
  margin-bottom: 0.5rem;
  color: var(--blue-500);
  font-size: 0.86rem;
  font-weight: 800;
}

.case-card p {
  color: var(--muted);
}

.case-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.case-card li {
  position: relative;
  padding-inline-start: 1.25rem;
  color: var(--ink);
}

.case-card li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.68em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--blue-500);
  content: "";
}

.skills-section {
  background:
    linear-gradient(120deg, rgba(9, 36, 90, 0.96), rgba(11, 61, 145, 0.92)),
    var(--blue-900);
  color: white;
}

.skills-section .section-label,
.skills-section h2 {
  color: white;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-list span {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid rgba(216, 225, 237, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
  font-weight: 750;
}

.opportunity-map {
  position: relative;
  min-height: 17rem;
  border: 1px solid rgba(216, 225, 237, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(216, 225, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 225, 237, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(141, 190, 255, 0.3), transparent 9rem);
  background-size: 44px 44px, 44px 44px, auto;
  overflow: hidden;
}

.opportunity-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.opportunity-map path {
  fill: none;
  stroke: #9fc7ff;
  stroke-linecap: round;
  stroke-width: 2.4;
  stroke-dasharray: 7 10;
}

.node {
  position: absolute;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid white;
  border-radius: 50%;
  background: #4ea1ff;
  box-shadow: 0 0 0 0.7rem rgba(78, 161, 255, 0.16);
}

.node-one {
  inset-inline-start: 10%;
  top: 68%;
}

.node-two {
  inset-inline-start: 52%;
  top: 36%;
}

.node-three {
  inset-inline-start: 86%;
  top: 18%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.timeline article {
  padding-block: 1rem;
  border-top: 2px solid var(--silver-strong);
}

.timeline span {
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-500);
  font-size: 0.9rem;
  font-weight: 900;
}

.timeline p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue-700);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(36, 119, 232, 0.45);
  outline-offset: 3px;
}

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

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  body[dir="rtl"] .nav-links {
    justify-content: flex-start;
  }

  .hero-section,
  .section-heading,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .proof-strip,
  .case-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .language-switch {
    width: 100%;
    grid-column: 1 / -1;
  }

  .lang-button {
    flex: 1;
  }

  .hero-section {
    padding-top: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    flex-direction: column;
  }
}
