/* ===================== KhotwaAI | خطوة ذكية ===================== */
:root {
  --navy: #0A1F3D;
  --teal: #0E8C8B;
  --aqua: #BFE8E6;
  --orange: #FF9D4D;
  --white: #FFFFFF;
  --soft: #F3FBFB;
  --gray: #5F6B7A;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 20px rgba(10, 31, 61, .06);
  --shadow-md: 0 14px 40px rgba(10, 31, 61, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 61, .16);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Tajawal", "Cairo", system-ui, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Cairo", "Tajawal", sans-serif; line-height: 1.3; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-family: inherit; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(14, 140, 139, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 140, 139, .38); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { height: 46px; width: auto; transition: filter .3s var(--ease); }
/* over hero: white logo */
.site-header:not(.scrolled) .brand-logo,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .nav-toggle span { filter: none; }
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { font-weight: 600; font-size: .98rem; color: #fff; position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; inset-block-end: -6px; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--teal); transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav-cta { margin-inline-start: 8px; }

.site-header.scrolled { background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.site-header.scrolled .brand-logo { filter: none; }
.site-header.scrolled .nav a { color: var(--navy); }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(270deg, rgba(10, 31, 61, .55) 0%, rgba(10, 31, 61, .80) 55%, rgba(10, 31, 61, .92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-block: 90px 60px; }
.hero-content h1 { font-size: clamp(46px, 7vw, 92px); font-weight: 900; margin-bottom: 10px; letter-spacing: -1px; }
.hero-content h2 { color: var(--aqua); font-size: clamp(22px, 3vw, 38px); font-weight: 700; margin-bottom: 22px; }
.hero-content p { font-size: clamp(17px, 1.7vw, 22px); line-height: 2; max-width: 660px; color: #eef5f9; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-featurebar {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  background: rgba(10, 31, 61, .55); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(191, 232, 230, .18);
}
.featurebar-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding-block: 16px; }
.featurebar-inner span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #eaf6f6; font-size: .98rem; }
.featurebar-inner .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .25); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section-aqua { background: var(--soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 780px; margin-inline: auto; text-align: center; margin-bottom: 54px; }
.eyebrow {
  display: inline-block; font-weight: 700; color: var(--teal); font-size: .9rem;
  letter-spacing: 1px; padding: 6px 16px; border-radius: 999px; background: rgba(14, 140, 139, .10); margin-bottom: 16px;
}
.eyebrow-light { background: rgba(191, 232, 230, .14); color: var(--aqua); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); }
.section-navy .section-head h2 { color: #fff; }
.section-lead { margin-top: 18px; color: var(--gray); font-size: 1.08rem; }
.section-navy .section-lead { color: #c8d6e2; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.two-col { grid-template-columns: 1fr 1fr; align-items: start; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1.5px solid var(--aqua); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.card-icon { font-size: 1.9rem; display: inline-block; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: .98rem; }

/* ---------- Problem ---------- */
.problem-grid { gap: 40px; align-items: center; }
.problem-text p { font-size: 1.15rem; color: var(--navy); line-height: 2.1; }
.problem-cards { gap: 18px; }
.problem-card { padding: 22px; }
.problem-card h3 { font-size: 1.02rem; }

/* ---------- Solution flow ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 150px; max-width: 200px; background: #fff; border: 1.5px solid var(--aqua);
  border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.flow-ico { font-size: 2rem; }
.flow-step p { font-weight: 700; font-size: 1rem; }
.flow-ai { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .12), var(--shadow-md); }
.flow-arrow { display: flex; align-items: center; color: var(--teal); font-size: 1.8rem; font-weight: 800; }

/* ---------- How it works ---------- */
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.step-card { position: relative; padding-top: 34px; }
.step-num { font-family: "Cairo"; font-size: 3rem; font-weight: 900; color: rgba(14, 140, 139, .22); line-height: 1; display: block; margin-bottom: 8px; }
.step-ai { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .10), var(--shadow-md); }
.step-ai .step-num { color: rgba(14, 140, 139, .5); }

/* ---------- AI section ---------- */
.ai-top { gap: 48px; align-items: center; margin-bottom: 56px; }
.ai-text h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 18px; color: #fff; }
.ai-text p { color: #c8d6e2; font-size: 1.08rem; }
.ai-visual { display: flex; justify-content: center; }
.ai-shot { width: 100%; max-width: 460px; border-radius: var(--radius-lg); border: 1px solid rgba(191, 232, 230, .3); box-shadow: var(--shadow-lg); object-fit: cover; }
.demo-shot { width: 100%; border-radius: 20px; border: 1px solid rgba(191, 232, 230, .3); box-shadow: var(--shadow-md); margin-bottom: 4px; object-fit: cover; }
.pose-board {
  width: 100%; max-width: 420px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(191, 232, 230, .25); border-radius: var(--radius-lg);
  padding: 26px; display: flex; gap: 18px; align-items: center;
}
.pose-svg { width: 150px; height: auto; }
.pose-svg .bone { stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.pose-svg .joint { fill: var(--teal); stroke: #fff; stroke-width: 1.5; }
.pose-svg .joint.head { fill: none; stroke: var(--aqua); stroke-width: 3; }
.pose-metrics { list-style: none; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pose-metrics li { background: rgba(14, 140, 139, .16); border: 1px solid rgba(14, 140, 139, .4); border-radius: 12px; padding: 10px 14px; }
.pose-metrics span { display: block; color: var(--aqua); font-size: .78rem; font-weight: 700; letter-spacing: .5px; }
.pose-metrics b { color: #fff; font-size: .98rem; }

.terms-grid { grid-template-columns: repeat(4, 1fr); }
.term-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(14, 140, 139, .55);
  border-radius: var(--radius); padding: 22px; transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.term-card:hover { transform: translateY(-5px); background: rgba(14, 140, 139, .18); border-color: var(--aqua); }
.term-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.term-card span { color: var(--aqua); font-size: .85rem; font-weight: 500; letter-spacing: .3px; }

/* ---------- Beneficiaries ---------- */
.bene-card h3 { font-size: 1.05rem; }
.bene-1 { background: #fff; }
.bene-2 { background: #fbfdfd; }
.bene-3 { background: var(--soft); }
.bene-4 { background: #fff; }

/* ---------- Impact ---------- */
.impact-grid { margin-bottom: 46px; }
.impact-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.impact-card .card-icon { margin: 0; font-size: 2.2rem; }
.impact-card h3 { font-size: 1.08rem; }
.timeline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.timeline span { background: #fff; border: 1.5px solid var(--aqua); border-radius: 999px; padding: 9px 18px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.timeline i { color: var(--teal); font-weight: 800; font-style: normal; }
.timeline .timeline-end { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Safety ---------- */
.safety-panel { border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; background: #fff; }
.safety-panel::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 6px; background: var(--orange); }
.safety-grid { gap: 40px; align-items: center; }
.badge-safe { display: inline-block; background: rgba(255, 157, 77, .16); color: #c96a16; font-weight: 700; padding: 6px 16px; border-radius: 999px; font-size: .88rem; margin-bottom: 14px; }
.safety-text h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
.safety-text p { color: var(--gray); font-size: 1.05rem; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.checklist li { position: relative; padding-inline-start: 40px; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; inset-block-start: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}

/* ---------- Demo ---------- */
.demo-grid { gap: 28px; }
.demo-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(191, 232, 230, .25); border-radius: var(--radius-lg); padding: 26px; text-align: center; transition: transform .25s var(--ease); }
.demo-card:hover { transform: translateY(-6px); }
.demo-card h3 { color: #fff; margin: 18px 0 6px; }
.demo-card p { color: #c8d6e2; font-size: .96rem; }
.phone-mock { background: #0d2748; border: 1px solid rgba(191, 232, 230, .3); border-radius: 20px; padding: 18px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; text-align: start; }
.mock-cam { flex: 1; min-height: 90px; border-radius: 12px; background: linear-gradient(135deg, rgba(14, 140, 139, .35), rgba(10, 31, 61, .7)); position: relative; border: 1px dashed rgba(191, 232, 230, .4); }
.mock-rec { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; color: #ff7676; font-size: .72rem; font-weight: 700; }
.mock-bar { display: flex; align-items: center; gap: 10px; }
.mock-bar b { color: #cfe; font-size: .8rem; min-width: 78px; font-weight: 600; }
.mock-bar i { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; }
.mock-bar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); background: var(--teal); border-radius: 999px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; color: #cfe; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 8px; }
.mock-row b { color: #fff; }
.mock-row b.warn { color: var(--orange); }
.mock-note { color: #9fb6c9; font-size: .82rem; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 8px; }
.mock-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--aqua), var(--teal)); border-radius: 6px 6px 0 0; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-md); max-width: 760px; margin-inline: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 16px; border: 1.5px solid #d8e6e6;
  border-radius: 12px; background: var(--soft); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .15); background: #fff; }
.form-status { text-align: center; margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #d9534f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-logo { height: 50px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-name { font-weight: 800; font-size: 1.1rem; }
.footer-tag { color: var(--aqua); margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; align-content: start; }
.footer-links a { color: #c8d6e2; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; text-align: center; color: #9fb6c9; font-size: .9rem; }

/* ---------- Platform + Engine (split cards) ---------- */
.split-grid { gap: 28px; }
.split-card { display: flex; flex-direction: column; gap: 18px; }
.split-head { display: flex; align-items: center; gap: 14px; }
.split-head h3 { margin: 0; font-size: 1.3rem; }
.split-head .card-icon { margin: 0; }
.engine-card { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .10), var(--shadow-md); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { position: relative; padding-inline-start: 30px; color: var(--navy); font-weight: 600; font-size: 1rem; line-height: 1.6; }
.feature-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 139, .14);
}

/* ---------- AI emphasis ---------- */
.ai-emphasis {
  margin-top: 18px; padding: 18px 22px; border-inline-start: 4px solid var(--orange);
  background: rgba(191, 232, 230, .10); border-radius: 12px; color: #d6e2ee; font-size: 1.05rem; line-height: 2;
}

/* ---------- What we measure ---------- */
.measure-card { text-align: center; }
.measure-card .card-icon { font-size: 2rem; }

/* ---------- Prototype exercises ---------- */
.exercise-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ex-ico { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.exercise-card .en {
  display: inline-block; color: var(--teal); font-weight: 700; font-size: .85rem;
  letter-spacing: .4px; margin-bottom: 8px;
}

/* ---------- Demo journey ---------- */
.demo-journey { margin-bottom: 26px; }
.demo-note { max-width: 820px; margin-inline: auto; text-align: center; }

/* ---------- Safety pre-session checklist ---------- */
.safety-check {
  margin-top: 34px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--soft); border: 1.5px solid var(--aqua);
}
.safety-check h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--navy); }
.safety-check-lead { color: var(--gray); font-weight: 600; margin-bottom: 18px; }
.qlist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.qlist li { position: relative; padding-inline-start: 32px; font-weight: 600; color: var(--navy); font-size: 1rem; }
.qlist li::before {
  content: "?"; position: absolute; inset-inline-start: 0; inset-block-start: -2px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.safety-warning {
  margin-top: 20px; padding: 16px 20px; border-inline-start: 4px solid var(--orange);
  background: rgba(255, 157, 77, .10); border-radius: 12px; color: var(--navy); font-weight: 600; line-height: 1.8;
}

/* ---------- Why us ---------- */
.why-card {
  text-align: center; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(191, 232, 230, .25); border-radius: var(--radius-lg);
  padding: 32px 26px; transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.why-card:hover { transform: translateY(-6px); background: rgba(14, 140, 139, .14); border-color: var(--aqua); }
.why-card .card-icon { font-size: 2.2rem; }
.why-card h3 { color: #fff; font-size: 1.12rem; line-height: 1.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps-grid, .terms-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col, .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; inset-block-start: var(--header-h); inset-inline: 0;
    background: #fff; padding: 18px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav.open a { color: var(--navy); padding: 12px 4px; border-bottom: 1px solid #eef3f3; }
  .two-col, .three-col, .impact-grid, .demo-grid, .form-row { grid-template-columns: 1fr; }
  .steps-grid, .four-col, .measure-grid, .exercises-grid, .why-grid, .split-grid, .qlist { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-step { max-width: none; }
  .flow-arrow { transform: rotate(-90deg); justify-content: center; }
  .pose-board { flex-direction: column; }
  .hero-content { padding-block: 110px 90px; }
  .featurebar-inner { gap: 8px 18px; font-size: .85rem; }
}
@media (max-width: 480px) {
  .terms-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
