/* Khawarizm EdTech — Creative bilingual landing */
:root {
  --navy: #0f1c33;
  --navy-deep: #091427;
  --navy-mid: #1a2b4b;
  --sky: #00a0e3;
  --sky-soft: #4fc3f7;
  --sky-glow: rgba(0, 160, 227, 0.45);
  --mint: #2bb673;
  --mint-soft: #7ed9a8;
  --ice: #e8f6fc;
  --fog: #f3f8fb;
  --ink: #132238;
  --muted: #5a6d82;
  --white: #ffffff;
  --line: rgba(26, 43, 75, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(9, 20, 39, 0.18);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--fog);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--sky);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Language visibility — hide inactive language only */
html[lang="ar"] .block-lang-en,
html[lang="en"] .block-lang-ar {
  display: none !important;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 28, 51, 0.08);
  border-bottom: 1px solid rgba(26, 43, 75, 0.08);
  transition: box-shadow 0.35s var(--ease);
}

.site-nav.scrolled {
  box-shadow: 0 8px 28px rgba(15, 28, 51, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  z-index: 2;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.68rem;
  opacity: 0.65;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: var(--navy-mid);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--sky);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  color: var(--navy);
}

.lang-toggle button {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: 0.25s var(--ease);
}

.lang-toggle button.active {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 160, 227, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-soft), var(--sky) 55%, #0288d1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 160, 227, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--fog);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: clamp(680px, 88vh, 920px);
  display: grid;
  align-items: end;
  padding: 4rem 0 5.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
  filter: brightness(1.1) contrast(1.05) saturate(1.06);
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.1;
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(9, 20, 39, 0.42) 0%, rgba(9, 20, 39, 0.16) 48%, rgba(9, 20, 39, 0.04) 100%),
    linear-gradient(180deg, rgba(9, 20, 39, 0.15) 0%, rgba(9, 20, 39, 0.08) 45%, rgba(9, 20, 39, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

html[dir="rtl"] .hero-gradient {
  background:
    linear-gradient(255deg, rgba(9, 20, 39, 0.42) 0%, rgba(9, 20, 39, 0.16) 48%, rgba(9, 20, 39, 0.04) 100%),
    linear-gradient(180deg, rgba(9, 20, 39, 0.15) 0%, rgba(9, 20, 39, 0.08) 45%, rgba(9, 20, 39, 0.5) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(79, 195, 247, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 247, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(9, 20, 39, 0.22);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 160, 227, 0.4);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-arrow-prev {
  inset-inline-start: 1.25rem;
}

.hero-arrow-next {
  inset-inline-end: 1.25rem;
}

html[dir="rtl"] .hero-arrow-prev svg,
html[dir="rtl"] .hero-arrow-next svg {
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-arrow-prev {
    inset-inline-start: 0.65rem;
  }

  .hero-arrow-next {
    inset-inline-end: 0.65rem;
  }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(9, 20, 39, 0.45);
}

html[dir="ltr"] .hero-content {
  justify-items: start;
  text-align: start;
}

html[dir="rtl"] .hero-content {
  justify-items: start;
  text-align: start;
  margin-inline-end: auto;
  margin-inline-start: auto;
}

.hero-brand {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 20%, var(--sky-soft) 55%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(9, 20, 39, 0.35));
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-equation {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
}

.hero-equation .plus,
.hero-equation .eq {
  color: var(--sky-soft);
  margin-inline: 0.2rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== AI STAGE ===== */
.ai-stage {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}

.ai-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ai-stage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.05);
}

.ai-stage-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.ai-stage-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 70% 45%, rgba(0, 160, 227, 0.22), transparent 60%),
    linear-gradient(120deg, rgba(9, 20, 39, 0.92) 0%, rgba(9, 20, 39, 0.7) 45%, rgba(9, 20, 39, 0.55) 100%);
}

html[dir="rtl"] .ai-stage-veil {
  background:
    radial-gradient(ellipse 55% 60% at 30% 45%, rgba(0, 160, 227, 0.22), transparent 60%),
    linear-gradient(240deg, rgba(9, 20, 39, 0.92) 0%, rgba(9, 20, 39, 0.7) 45%, rgba(9, 20, 39, 0.55) 100%);
}

.ai-stage-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.ai-stage-copy {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 160, 227, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.35);
  color: var(--sky-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.ai-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky-soft);
  box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.7);
  animation: aiPulse 1.8s ease-out infinite;
}

@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(79, 195, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 195, 247, 0); }
}

.ai-stage-copy h2 {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ai-stage-copy > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.ai-chips li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.3s var(--ease);
}

.ai-chips li:hover {
  border-color: rgba(79, 195, 247, 0.55);
  background: rgba(0, 160, 227, 0.18);
  transform: translateY(-2px);
}

.ai-console {
  border-radius: 24px;
  background: rgba(8, 18, 34, 0.72);
  border: 1px solid rgba(79, 195, 247, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
  padding: 1rem 1.15rem 1.25rem;
}

.ai-console-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.ai-console-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.ai-console-top .dot:nth-child(2) { background: #febc2e; }
.ai-console-top .dot:nth-child(3) { background: #28c840; margin-inline-end: 0.55rem; }

.ai-console-top strong {
  font-weight: 700;
  color: #fff;
}

.ai-brain-wrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 0.75rem;
}

.ai-brain {
  width: min(200px, 55%);
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(0, 160, 227, 0.45));
}

.brain-aura {
  animation: brainBreathe 3.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes brainBreathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.ai-brain .n {
  transform-origin: center;
  animation: nodeBlink 2.4s ease-in-out infinite;
}

.ai-brain .n2 { animation-delay: 0.2s; }
.ai-brain .n3 { animation-delay: 0.4s; }
.ai-brain .n4 { animation-delay: 0.1s; }
.ai-brain .n5 { animation-delay: 0.55s; }
.ai-brain .n6 { animation-delay: 0.7s; }
.ai-brain .n7 { animation-delay: 0.35s; }
.ai-brain .n8 { animation-delay: 0.85s; }

@keyframes nodeBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px #4fc3f7); }
}

.ai-orbit {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px dashed rgba(79, 195, 247, 0.35);
  animation: spinSlow 18s linear infinite;
}

.ai-orbit::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-soft);
  top: -5px;
  left: 50%;
  translate: -50% 0;
  box-shadow: 0 0 16px var(--sky-glow);
}

.ai-chat {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  min-height: 118px;
}

.ai-chat .bubble {
  max-width: 92%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ai-chat .bubble.bot {
  background: rgba(0, 160, 227, 0.18);
  border: 1px solid rgba(79, 195, 247, 0.28);
  justify-self: start;
}

.ai-chat .bubble.user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  justify-self: end;
}

.ai-chat .bubble.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: fit-content;
  padding: 0.75rem 1rem;
}

.ai-chat .bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-soft);
  animation: typingDot 1.2s ease-in-out infinite;
}

.ai-chat .bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.ai-meters {
  display: grid;
  gap: 0.55rem;
}

.ai-meters > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.ai-meters i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.ai-meters i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--mint-soft));
  box-shadow: 0 0 12px rgba(0, 160, 227, 0.5);
  transition: width 1.2s var(--ease);
}

.ai-stage.visible .ai-meters i::after,
.ai-console.inview .ai-meters i::after {
  width: var(--p);
}

@media (max-width: 980px) {
  .ai-stage-inner {
    grid-template-columns: 1fr;
  }

  .ai-console {
    max-width: 480px;
  }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  padding: 5.5rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

.section-head h2 {
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* About */
.about {
  background:
    linear-gradient(180deg, #fff 0%, var(--fog) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-copy {
  display: grid;
  gap: 1.25rem;
}

.about-copy .lead {
  font-size: 1.15rem;
  color: var(--navy-mid);
  font-weight: 500;
}

.about-copy p {
  color: var(--muted);
}

.mv-stack {
  display: grid;
  gap: 1rem;
}

.mv-item {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #f0f8fc);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.mv-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mv-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sky), var(--mint));
}

.mv-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.mv-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  box-shadow: var(--shadow);
}

.about-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-visual:hover > img {
  transform: scale(1.05);
}

.about-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
  display: grid;
  place-content: end;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(180deg, transparent 35%, rgba(9, 20, 39, 0.88) 100%);
}

.about-visual-content strong {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.about-visual-content span {
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Offerings */
.offerings {
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.offerings::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 160, 227, 0.22), transparent 65%);
  top: -120px;
  inset-inline-end: -100px;
  pointer-events: none;
}

.offerings .section-head h2,
.offerings .section-head p {
  color: #fff;
}

.offerings .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.offerings .eyebrow {
  color: var(--sky-soft);
}

.offerings .eyebrow::before {
  background: var(--sky-soft);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.offer-card {
  position: relative;
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 195, 247, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.offer-card.ai {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  align-items: stretch;
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 160, 227, 0.25), transparent 40%),
    rgba(255, 255, 255, 0.05);
}

.offer-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a1628;
}

.offer-card.ai .offer-media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.offer-card:hover .offer-media img {
  transform: scale(1.06);
}

.offer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 20, 39, 0.45));
  pointer-events: none;
}

.offer-body {
  padding: 1.5rem 1.6rem 1.7rem;
}

.offer-card.ai .offer-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
}

.offer-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(79, 195, 247, 0.25), rgba(0, 160, 227, 0.08));
  border: 1px solid rgba(79, 195, 247, 0.3);
  margin-bottom: 1.1rem;
  color: var(--sky-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.offer-card.ai .offer-icon {
  margin-bottom: 0;
}

.offer-card:hover .offer-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 28px rgba(0, 160, 227, 0.35);
}

.offer-card h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.offer-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.offer-card ul {
  display: grid;
  gap: 0.45rem;
}

.offer-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.offer-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(43, 182, 115, 0.6);
}

/* Serve */
.serve {
  background: #fff;
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.serve-item {
  padding: 0;
  border-radius: 22px;
  background: var(--fog);
  border: 1px solid transparent;
  transition: 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.serve-item:hover {
  border-color: rgba(0, 160, 227, 0.35);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.serve-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--navy-mid);
}

.serve-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.serve-item:hover .serve-media img {
  transform: scale(1.06);
}

.serve-body {
  padding: 1.35rem 1.4rem 1.55rem;
}

.serve-num {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0, 160, 227, 0.22);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.serve-item h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.serve-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.why-title {
  margin-bottom: 1rem;
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Why / Partner */
.why {
  background:
    linear-gradient(180deg, var(--ice), #fff 40%, var(--fog));
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.why-list {
  display: grid;
  gap: 0.85rem;
}

.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--navy-mid);
  font-weight: 500;
  transition: 0.35s var(--ease);
}

.why-list li:hover {
  border-color: rgba(0, 160, 227, 0.4);
  transform: translateX(var(--shift, 4px));
}

html[dir="rtl"] .why-list li:hover {
  --shift: -4px;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(43, 182, 115, 0.15);
  color: var(--mint);
  display: grid;
  place-items: center;
}

.partner-panels {
  display: grid;
  gap: 1rem;
}

.partner-panel {
  padding: 1.6rem;
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 0.5rem;
}

.partner-panel.tech {
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 195, 247, 0.35), transparent 45%),
    linear-gradient(145deg, #123052, #0a1b32);
}

.partner-panel.inst {
  background:
    radial-gradient(circle at 0% 0%, rgba(43, 182, 115, 0.3), transparent 45%),
    linear-gradient(145deg, #0f3a2c, #0a1b32);
}

.partner-panel h3 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
}

.partner-panel p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Contact / CTA */
.cta {
  padding-bottom: 0;
}

.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 160, 227, 0.4), transparent 45%),
    linear-gradient(125deg, var(--navy-deep), var(--navy-mid) 60%, #0d3a5c);
  color: #fff;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  max-width: 18ch;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 0.5rem;
}

.cta-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  transition: color 0.25s;
}

.cta-contacts a:hover {
  color: var(--sky-soft);
}

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.regions span {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
}

.footer-tag {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.footer-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.35rem;
  font-size: 0.85rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile nav */
.nav-drawer {
  display: none;
}

@media (max-width: 980px) {
  .about-grid,
  .why-layout,
  .offer-grid,
  .serve-grid {
    grid-template-columns: 1fr;
  }

  .offer-card.ai {
    grid-template-columns: 1fr;
  }

  .offer-card.ai .offer-media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .offer-card.ai .offer-body {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 39, 0.96);
    z-index: 99;
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
  }

  .nav-drawer.open {
    transform: none;
  }

  .nav-drawer nav {
    display: grid;
    gap: 1.25rem;
  }

  .nav-drawer a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: center;
    min-height: 640px;
    padding: 3rem 0 5rem;
  }

  .hero-ctas {
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .cta-contacts {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
