@font-face {
  font-family: 'Jakarta';
  src: url('/assets/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --border: #e3e8f0;
  --text: #1b2333;
  --muted: #5d6779;
  --primary: #165f91;
  --primary-hover: #114d77;
  --primary-soft: #e7f0f8;
  --primary-text: #165f91;
  --green: #13804f;
  --green-soft: #e3f4ec;
  --red: #c0321f;
  --red-soft: #fdecea;
  --amber: #a85a06;
  --amber-soft: #fdf2e1;
  --violet: #6247c9;
  --violet-soft: #efecfb;
  --teal: #0b7a86;
  --teal-soft: #e2f4f5;
  --dark: #0c2c4a;
  --hero-glow:
    radial-gradient(60% 70% at 85% 20%, rgba(29, 123, 184, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(19, 128, 79, 0.1), transparent 70%);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(12, 44, 74, 0.18);
  --radius: 16px;
}

/* Dark: follows the device unless the visitor picked light or dark (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0c111c;
    --surface: #141b29;
    --surface-2: #19212f;
    --border: #253044;
    --text: #e6ebf3;
    --muted: #9aa6ba;
    --primary: #3d8fd1;
    --primary-hover: #5aa3de;
    --primary-soft: rgba(61, 143, 209, 0.14);
    --primary-text: #7db8e8;
    --green: #3fbf83;
    --green-soft: rgba(63, 191, 131, 0.13);
    --red: #f07a68;
    --red-soft: rgba(240, 122, 104, 0.13);
    --amber: #f0a64a;
    --amber-soft: rgba(240, 166, 74, 0.13);
    --violet: #a493f0;
    --violet-soft: rgba(164, 147, 240, 0.14);
    --teal: #4cc3cf;
    --teal-soft: rgba(76, 195, 207, 0.13);
    --dark: #08192c;
    --hero-glow:
      radial-gradient(60% 70% at 85% 20%, rgba(61, 143, 209, 0.18), transparent 70%),
      radial-gradient(50% 60% at 10% 90%, rgba(63, 191, 131, 0.1), transparent 70%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c111c;
  --surface: #141b29;
  --surface-2: #19212f;
  --border: #253044;
  --text: #e6ebf3;
  --muted: #9aa6ba;
  --primary: #3d8fd1;
  --primary-hover: #5aa3de;
  --primary-soft: rgba(61, 143, 209, 0.14);
  --primary-text: #7db8e8;
  --green: #3fbf83;
  --green-soft: rgba(63, 191, 131, 0.13);
  --red: #f07a68;
  --red-soft: rgba(240, 122, 104, 0.13);
  --amber: #f0a64a;
  --amber-soft: rgba(240, 166, 74, 0.13);
  --violet: #a493f0;
  --violet-soft: rgba(164, 147, 240, 0.14);
  --teal: #4cc3cf;
  --teal-soft: rgba(76, 195, 207, 0.13);
  --dark: #08192c;
  --hero-glow:
    radial-gradient(60% 70% at 85% 20%, rgba(61, 143, 209, 0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(63, 191, 131, 0.1), transparent 70%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family:
    'Jakarta',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary-text);
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
}
h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 14px;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: absolute;
  left: 8px;
  transform: translateY(-200%);
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn .ic {
  width: 18px;
  height: 18px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.92rem;
  box-shadow: none;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-light {
  background: #fff;
  color: #0c2c4a;
  box-shadow: none;
}
.btn-light:hover {
  background: #e7f0f8;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-bottom-color: var(--border);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
}
.brand img {
  border-radius: 10px;
}
.word {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.word b {
  color: var(--primary-text);
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:not(.btn):hover {
  background: var(--surface-2);
}
.nav .btn {
  margin-left: 6px;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .nav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }
}

/* Hero */
.hero {
  background: var(--hero-glow);
  padding: 56px 0 72px;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hl {
  background: linear-gradient(100deg, var(--primary) 10%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
}
.lead strong {
  color: var(--text);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticks .ic {
  width: 17px;
  height: 17px;
  color: var(--green);
}

/* Hero art: a dashboard and a phone */
.hero-art {
  position: relative;
  min-height: 420px;
}
.mock {
  position: absolute;
  inset: 10px 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.mock-bar span {
  margin-left: 8px;
}
.mock-body {
  padding: 18px;
}
.mock-hello {
  font-weight: 800;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, #165f91 0%, #1d7bb8 55%, #13804f 120%);
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-stats div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.mock-stats small,
.mock-chart small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.mock-stats b {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}
.mock-stats em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}
.mock-stats em.up {
  color: var(--green);
  font-weight: 700;
}
.mock-chart {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 92px;
  margin-top: 10px;
}
.sprite {
  position: absolute;
}
.bars i {
  flex: 1;
  height: 78%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(
    180deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 55%, var(--green))
  );
  opacity: 0.9;
}
.bars i:nth-child(2) {
  height: 88%;
}
.bars i:nth-child(3) {
  height: 92%;
}
.bars i:nth-child(4) {
  height: 85%;
}
.bars i:nth-child(5) {
  height: 94%;
}
.days {
  display: flex;
  gap: 12px;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
}
.days span {
  flex: 1;
  text-align: center;
}

.phone {
  position: absolute;
  right: 0;
  bottom: -36px;
  width: 210px;
  padding: 26px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 7px color-mix(in srgb, var(--text) 88%, transparent);
}
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 60px;
  height: 7px;
  margin-left: -30px;
  border-radius: 9px;
  background: var(--border);
}
.phone-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 2px 4px 10px;
}
.phone-card {
  --c: var(--primary-text);
  --cs: var(--primary-soft);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.phone-card .ic {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  color: var(--c);
  background: var(--cs);
}
.phone-card b {
  display: block;
}
.phone-card small {
  color: var(--muted);
}
.phone-card.green {
  --c: var(--green);
  --cs: var(--green-soft);
}
.phone-card.amber {
  --c: var(--amber);
  --cs: var(--amber-soft);
}
.phone-card.teal {
  --c: var(--teal);
  --cs: var(--teal-soft);
}

/* Competencies band */
.band {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
}
.band-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
}
.chips .ic {
  width: 17px;
  height: 17px;
  color: var(--primary-text);
}

/* Sections */
.sec {
  padding: 84px 0;
}
.sec.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.sec-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.sec-head p:last-child,
.split p {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}
.chip-ic {
  --c: var(--primary-text);
  --cs: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--c);
  background: var(--cs);
  margin-bottom: 16px;
}
.chip-ic .ic {
  width: 22px;
  height: 22px;
}
.chip-ic.green {
  --c: var(--green);
  --cs: var(--green-soft);
}
.chip-ic.violet {
  --c: var(--violet);
  --cs: var(--violet-soft);
}
.chip-ic.teal {
  --c: var(--teal);
  --cs: var(--teal-soft);
}
.chip-ic.red {
  --c: var(--red);
  --cs: var(--red-soft);
}
.chip-ic.amber {
  --c: var(--amber);
  --cs: var(--amber-soft);
}
.trust {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}
.trust .ic {
  width: 28px;
  height: 28px;
  color: var(--green);
}
.trust p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.list .ic {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}
.list.plain .ic {
  color: var(--primary-text);
  background: var(--primary-soft);
}
.note {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.93rem;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text) !important;
}
.note .ic {
  color: var(--primary-text);
}
.parent-art {
  display: flex;
  justify-content: center;
}
.phone.big {
  position: relative;
  right: auto;
  bottom: auto;
  width: 280px;
  padding: 34px 16px 20px;
}
.phone.big .phone-card {
  font-size: 0.9rem;
  padding: 12px;
}

.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 18px 18px 18px 64px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
}
.steps b {
  display: block;
}
.steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* DL Workshops: a dark band */
.dl {
  color: #e6eef7;
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(29, 123, 184, 0.45), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(19, 128, 79, 0.35), transparent 70%), var(--dark);
}
.dl .eyebrow {
  color: #bfe0f7;
  background: rgba(255, 255, 255, 0.1);
}
.dl .split p {
  color: #bfcddd;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.topics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  font-size: 0.93rem;
}
.topics .ic {
  width: 17px;
  height: 17px;
  color: #7fd3a8;
}
.who {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px;
}
.who-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff !important;
}
.who ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.who li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.who .chip-ic {
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, #1d7bb8, #13804f);
}
.who b {
  display: block;
  color: #fff;
}
.who small {
  color: #a9bbcf;
}

.why {
  padding: 26px;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.why:nth-child(2) {
  border-top-color: var(--green);
}
.why:nth-child(3) {
  border-top-color: var(--violet);
}
.why b {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.why p {
  color: var(--muted);
  margin: 0;
}

/* Contact form */
.contact {
  align-items: start;
}
.form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.opt {
  color: var(--muted);
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  min-width: 0;
}
.form textarea {
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.form [aria-invalid='true'] {
  border-color: var(--red);
}
.form .btn {
  justify-self: start;
}
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-msg {
  margin: 0;
  font-weight: 600;
  min-height: 1.4em;
}
.form-msg.ok {
  color: var(--green);
}
.form-msg.err {
  color: var(--red);
}

/* Footer */
.foot {
  padding: 44px 0 26px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.foot p {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 360px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
}
.foot nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}
.foot nav a:hover {
  color: var(--primary-text);
}
.copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Reveal on scroll (only when the script runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .btn {
    transition: none;
  }
}

/* Tablets and phones */
@media (max-width: 980px) {
  .hero-in,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-art {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .grid,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 34px 0 48px;
  }
  .sec {
    padding: 60px 0;
  }
  .grid,
  .grid.four,
  .steps,
  .row2 {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 0;
  }
  .mock {
    position: static;
  }
  .hero .phone {
    display: none;
  }
  .mock-body {
    padding: 12px;
  }
  .mock-stats b {
    font-size: 1rem;
  }
  .bars {
    height: 64px;
  }
  .phone {
    width: 170px;
    bottom: -14px;
  }
  .phone.big {
    width: 260px;
  }
  .phone-card {
    font-size: 0.72rem;
    padding: 8px;
  }
  .form {
    padding: 20px;
  }
  .form .btn {
    justify-self: stretch;
    justify-content: center;
  }
  .cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* About page */
.nav a[aria-current='page'] {
  color: var(--primary-text);
}
.page-hero {
  padding: 64px 0 56px;
}
.page-hero .wrap {
  max-width: 820px;
  text-align: center;
}
.page-hero .lead {
  margin: 0 auto;
}
.pillars {
  display: grid;
  gap: 12px;
}
.pillar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s;
}
.pillar:hover {
  transform: translateX(4px);
}
.pillar .chip-ic {
  margin: 0;
}
.pillar b {
  display: block;
}
.pillar small {
  color: var(--muted);
}
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.member {
  text-align: center;
  padding: 12px 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* The picture fills the card's width as a square; a photo is cropped to fit. */
.member img,
.member .avatar {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 16px;
  border-radius: 12px;
  object-fit: cover;
}
.member .avatar {
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #165f91, #1d7bb8 55%, #13804f);
}
.member h3 {
  margin-bottom: 2px;
}
.member .role {
  color: var(--primary-text);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}
.cta-band {
  color: #fff;
  background: linear-gradient(120deg, #165f91 0%, #1d7bb8 55%, #13804f 120%);
  padding: 56px 0;
}
.cta-in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cta-band p {
  color: #e2eef8;
  margin: 0;
}
@media (max-width: 640px) {
  .team {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .member {
    padding: 8px 8px 16px;
  }
  .member h3 {
    font-size: 0.98rem;
  }
}

/* Language menu */
.lang {
  position: relative;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary:hover,
.lang[open] summary {
  background: var(--surface-2);
}
.lang summary .ic {
  width: 18px;
  height: 18px;
}
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  padding: 6px;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.nav .lang-menu a {
  padding: 8px 12px;
  font-weight: 600;
}
.nav .lang-menu a[aria-current] {
  color: var(--primary-text);
  background: var(--primary-soft);
}
@media (max-width: 900px) {
  .lang summary {
    padding: 8px 12px;
  }
  .lang-menu {
    position: static;
    box-shadow: none;
    margin-top: 4px;
    grid-template-columns: 1fr 1fr;
  }
}

/* Arabic: right to left, and a font with Arabic letters */
[dir='rtl'] body {
  font-family:
    'Jakarta', 'Segoe UI', Tahoma, 'Geeza Pro', 'Noto Sans Arabic', system-ui, sans-serif;
}
[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] .eyebrow,
[dir='rtl'] .band-title {
  letter-spacing: 0;
}
[dir='rtl'] h1 {
  line-height: 1.35;
}
[dir='rtl'] .btn .ic,
[dir='rtl'] .cta-band .ic {
  transform: scaleX(-1);
}
[dir='rtl'] .steps li {
  padding: 18px 64px 18px 18px;
}
[dir='rtl'] .steps li::before {
  left: auto;
  right: 18px;
}
[dir='rtl'] .pillar:hover {
  transform: translateX(-4px);
}
[dir='rtl'] .hero .phone {
  right: auto;
  left: 0;
}
[dir='rtl'] .mock {
  inset: 10px 0 auto 40px;
}
[dir='rtl'] .phone-card small,
[dir='rtl'] .mock-stats b {
  unicode-bidi: plaintext;
}
@media (max-width: 640px) {
  [dir='rtl'] .mock {
    inset: auto;
  }
}

/* Light / dark switch */
.top-in {
  gap: 8px;
}
.brand {
  margin-inline-end: auto;
}
.nav {
  order: 2;
}
.theme-btn {
  order: 3;
  display: inline-flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
}
.theme-btn:hover {
  background: var(--surface-2);
}
.theme-btn .moon,
[data-theme='dark'] .theme-btn .sun {
  display: block;
}
.theme-btn .sun,
[data-theme='dark'] .theme-btn .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn .sun {
    display: block;
  }
  :root:not([data-theme='light']) .theme-btn .moon {
    display: none;
  }
}
@media (max-width: 900px) {
  .theme-btn {
    order: 1;
  }
  .menu-btn {
    order: 2;
  }
}

/* Page not found */
.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  background: var(--hero-glow);
}
.notfound .code {
  margin: 24px 0 0;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-text);
}
.nf-langs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
}
