/* ============================================================
   BobTechs — Business IT Solutions
   Shared stylesheet (LTR + RTL via logical properties)
   ============================================================ */

:root {
  --ink: #0f1b2d;
  --ink-2: #16243c;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #3d6be5;
  --cyan: #2fb3d4;
  --amber: #f2a33c;
  --line: #dde5f0;
  --text: #24344d;
  --muted: #5c6d85;
  --violet: #6974bd;
  --grad: linear-gradient(120deg, var(--violet), var(--blue) 45%, #38bcd6);
  --radius: 14px;
  --shadow: 0 12px 32px -14px rgba(15, 27, 45, 0.22);
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dur: 0.5s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Typography ---------- */

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
main .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-head { max-width: 640px; margin-block-end: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { margin-block-start: 0.75rem; color: var(--muted); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  margin-block-end: 0.7rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
}
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(61, 107, 229, 0.55);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: -75%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.55s var(--ease);
}
.btn-primary:hover::after { inset-inline-start: 125%; }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(61, 107, 229, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(15, 27, 45, 0.95);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 38px; width: auto; }
.site-footer .brand-logo { height: 34px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
html[dir="rtl"] .brand-text strong { letter-spacing: 0; }
.brand-text span {
  display: block;
  color: #9fb2cd;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
html[dir="rtl"] .brand-text span { letter-spacing: 0; font-size: 0.74rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: #c6d3e6;
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.lang-switch {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.25s, border-color 0.25s;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin-block: 5px;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 700px at 70% -10%, #1c3054 0%, var(--ink) 60%);
  color: var(--white);
  overflow: hidden;
  padding-block: 8rem 6rem;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; contain: strict; }

/* Aurora blobs */
.aurora {
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 440px; min-height: 440px;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
.aurora.a1 { background: radial-gradient(circle, rgba(61,107,229,0.4) 0%, rgba(61,107,229,0.18) 35%, transparent 68%); top: -12%; inset-inline-start: -8%; }
.aurora.a2 { background: radial-gradient(circle, rgba(47,179,212,0.34) 0%, rgba(47,179,212,0.15) 35%, transparent 68%); bottom: -20%; inset-inline-end: -6%; animation-delay: -6s; animation-duration: 22s; }
.aurora.a3 { background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, rgba(139,92,246,0.1) 35%, transparent 68%); top: 30%; inset-inline-start: 40%; animation-delay: -11s; animation-duration: 26s; }

@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(6vw,-4vh,0) scale(1.15); }
  100% { transform: translate3d(-4vw,5vh,0) scale(0.95); }
}

/* Perspective grid floor */
.grid-floor {
  position: absolute;
  inset-inline: -30%;
  bottom: -6%;
  height: 46%;
  overflow: hidden;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
  contain: strict;
}
.grid-lines {
  position: absolute;
  inset-inline: 0;
  top: -44px;
  height: calc(100% + 88px);
  background:
    linear-gradient(rgba(122,168,255,0.16) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(122,168,255,0.16) 1px, transparent 1px) 0 0 / 64px 100%;
  will-change: transform;
  animation: gridMove 3.2s linear infinite;
}
@keyframes gridMove { to { transform: translateY(44px); } }

/* Particle network canvas */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Layout */
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-inner { max-width: 620px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 255, 0.4);
  background: rgba(61, 107, 229, 0.15);
  color: #b9d0ff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-block-end: 1.4rem;
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 { color: var(--white); margin-block-end: 1.1rem; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span, .hero h1 .line > .rotator {
  display: block;
  transform: translateY(110%);
  animation: riseUp 0.55s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span, .hero h1 .line:nth-child(2) > .rotator { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span, .hero h1 .line:nth-child(3) > .rotator { animation-delay: 0.16s; }

/* Rotating gradient word */
.hero h1 .line > .rotator, .rotator { display: inline-grid; text-align: start; }
.rotator > .rotator-word { grid-area: 1 / 1; }
.rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  background: linear-gradient(90deg, #7aa8ff, #2fb3d4, #f2a33c, #7aa8ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  opacity: 0;
  transform: translateY(55%) rotateX(-45deg);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}
.rotator-word.in  { opacity: 1; transform: none; }
.rotator-word.out { opacity: 0; transform: translateY(-55%) rotateX(45deg); }
@keyframes shimmer { to { background-position: -300% 0; } }

.hero p {
  color: #b9c7dd;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 560px;
  margin-block-end: 2rem;
  opacity: 0;
  animation: fadeUp 0.55s var(--ease) 0.28s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.55s var(--ease) 0.4s forwards;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-block-start: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.55s var(--ease) 0.52s forwards;
}
.hero-stats > div { position: relative; }
.hero-stats > div + div::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.1rem;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.hero-stats strong { display: block; font-size: 1.65rem; font-weight: 700; color: var(--white); line-height: 1.15; }
.hero-stats span { font-size: 0.85rem; color: #9fb2cd; }

@keyframes riseUp { to { transform: translateY(0); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Orbital visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  perspective: 1000px;
}
.tilt {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.35s forwards;
}

.core { position: absolute; inset: 10%; }
.ring { position: absolute; border-radius: 50%; will-change: transform; }
.ring.r1 { inset: 0; border: 1px solid rgba(122, 168, 255, 0.35); animation: spin 20s linear infinite; }
.ring.r2 { inset: 12%; border: 1px dashed rgba(47, 179, 212, 0.45); animation: spinRev 30s linear infinite; }
.ring.r1::after, .ring.r2::after {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.ring.r2::after { background: var(--amber); box-shadow: 0 0 14px var(--amber); width: 8px; height: 8px; }
.ring.r3 {
  inset: 24%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(61, 107, 229, 0.9) 86%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 6s linear infinite;
}
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

.core-orb {
  position: absolute;
  inset: 35%;
  border-radius: 26%;
  display: grid;
  place-items: center;
  animation: orbPulse 4.5s ease-in-out infinite;
  overflow: hidden;
}
.core-orb img { width: 100%; height: 100%; object-fit: contain; }
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 46px rgba(105, 116, 189, 0.5), 0 0 26px rgba(47, 179, 212, 0.35); }
  50%      { box-shadow: 0 0 84px rgba(47, 179, 212, 0.65), 0 0 42px rgba(61, 107, 229, 0.5); }
}

/* Floating glass cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.05rem;
  border-radius: 14px;
  background: rgba(22, 36, 60, 0.55);
  border: 1px solid rgba(122, 168, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
.float-card .icon-chip { width: 38px; height: 38px; border-radius: 10px; background: rgba(61, 107, 229, 0.25); color: #8fc2ff; }
.float-card .icon-chip svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: 0.92rem; color: var(--white); line-height: 1.25; }
.float-card small { color: #9fb2cd; font-size: 0.76rem; }
.fc1 { top: 4%; inset-inline-start: -6%; }
.fc2 { bottom: 12%; inset-inline-start: -11%; animation-delay: -2s; animation-duration: 7s; }
.fc3 { top: 40%; inset-inline-end: -9%; animation-delay: -4s; animation-duration: 6.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.9s forwards;
}
.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  margin-top: 7px;
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-grid .lead { font-size: 1.12rem; color: var(--text); }
.about-grid .lead + .lead { margin-block-start: 1rem; }

.mv-stack { display: grid; gap: 1.2rem; }
.mv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--blue);
}
.mv-card { transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.mv-card:hover { transform: translateX(var(--nudge, 8px)); box-shadow: 0 16px 40px -16px rgba(15, 27, 45, 0.3); }
html[dir="rtl"] .mv-card:hover { --nudge: -8px; }
.mv-card:nth-child(2) { border-inline-start-color: var(--cyan); }
.mv-card h3 { margin-block-end: 0.5rem; }
.mv-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Card grids ---------- */

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

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
html[dir="rtl"] .card::before { transform-origin: 100% 50%; }
.card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(61, 107, 229, 0.07), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: inset-inline-start 0.6s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px -16px rgba(15, 27, 45, 0.28);
  border-color: rgba(61, 107, 229, 0.4);
}
.card:hover::before { transform: scaleX(1); }
.card:hover::after { inset-inline-start: 130%; }
.card h3 { margin-block: 0.9rem 0.55rem; transition: color 0.25s; }
.card:hover h3 { color: var(--blue); }
.card p { color: var(--muted); font-size: 0.96rem; }

.icon-chip {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(61, 107, 229, 0.12), rgba(47, 179, 212, 0.14));
  color: var(--blue);
  transition: transform 0.35s var(--bounce), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.icon-chip svg { width: 26px; height: 26px; stroke: currentColor; }
.card:hover .icon-chip {
  transform: scale(1.12) rotate(-6deg);
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(61, 107, 229, 0.55);
}

/* ---------- Values (dark band) ---------- */

.band-dark {
  background: linear-gradient(160deg, var(--ink) 20%, var(--ink-2));
  color: var(--white);
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .section-head p { color: #9fb2cd; }

.value-item {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s, border-color 0.3s;
}
.value-item { transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.value-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(122, 168, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -18px rgba(47, 179, 212, 0.45);
}
.value-item:hover .dot { animation: dotPing 0.9s var(--ease); }
@keyframes dotPing {
  0%   { box-shadow: 0 0 0 0 rgba(47, 179, 212, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(47, 179, 212, 0); }
}
.value-item h3 { display: flex; align-items: center; gap: 0.6rem; margin-block-end: 0.5rem; font-size: 1.08rem; }
.value-item h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex: none; }
.value-item p { color: #a9b8cf; font-size: 0.94rem; }

/* ---------- Operating model ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: 26px;
  inset-inline: 6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.steps .progress {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-start: 6%;
  width: 88%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease) 0.15s;
  z-index: 0;
}
html[dir="rtl"] .steps .progress { transform-origin: 100% 50%; }
.steps.in .progress { transform: scaleX(1); }

.step { position: relative; z-index: 1; text-align: center; padding-inline: 0.4rem; }
.step .num {
  counter-increment: step;
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.step .num::before { content: counter(step); }
.steps .step .num { transform: scale(0); opacity: 0; }
.steps.in .step .num {
  animation: numPop 0.55s var(--bounce) forwards;
}
.steps.in .step:nth-child(3) .num { animation-delay: 0.25s; }
.steps.in .step:nth-child(4) .num { animation-delay: 0.5s; }
.steps.in .step:nth-child(5) .num { animation-delay: 0.75s; }
@keyframes numPop { to { transform: scale(1); opacity: 1; } }
.step:hover .num { background: var(--blue); color: var(--white); transform: scale(1.08); }
.step h3 { margin-block-end: 0.4rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Stats / Why us ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-block-end: 3rem;
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 107, 229, 0.45);
  box-shadow: 0 16px 38px -16px rgba(61, 107, 229, 0.45);
}
.stat .n {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat .l { color: var(--muted); font-size: 0.94rem; margin-block-start: 0.35rem; }

/* ---------- Products ---------- */

.product {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 3.5vw, 3rem);
  box-shadow: var(--shadow);
}
.product + .product { margin-block-start: 2rem; }
.product:nth-of-type(even) .product-visual { order: 2; }

.product-visual {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(300px 200px at 30% 20%, rgba(61, 107, 229, 0.18), transparent 70%),
    radial-gradient(280px 220px at 75% 80%, rgba(47, 179, 212, 0.2), transparent 70%),
    var(--ink);
  overflow: hidden;
  position: relative;
}
.product-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(61, 107, 229, 0.35) 75%, rgba(47, 179, 212, 0.4) 85%, transparent 100%);
  animation: spin 9s linear infinite;
}
.product-visual::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 14px;
  background:
    radial-gradient(300px 200px at 30% 20%, rgba(61, 107, 229, 0.18), transparent 70%),
    radial-gradient(280px 220px at 75% 80%, rgba(47, 179, 212, 0.2), transparent 70%),
    var(--ink);
}
.product-visual .glyph, .product-visual .badge { z-index: 1; }
.product-visual .glyph {
  width: 96px; height: 96px;
  color: #8fc2ff;
  filter: drop-shadow(0 8px 24px rgba(47, 179, 212, 0.35));
  animation: floatY 5.5s ease-in-out infinite;
  transition: transform 0.45s var(--bounce);
}
.product:hover .product-visual .glyph { transform: scale(1.14) rotate(-4deg); }
.product-visual .badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cfe2ff;
  border: 1px solid rgba(143, 194, 255, 0.4);
  background: rgba(15, 27, 45, 0.6);
}

.product-body h3 { font-size: 1.5rem; margin-block-end: 0.7rem; }
.product-body > p { color: var(--muted); margin-block-end: 1.2rem; }

.feature-list { list-style: none; display: grid; gap: 0.55rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.96rem;
  color: var(--text);
  opacity: 0;
  transform: translateX(var(--slide, -16px));
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
html[dir="rtl"] .feature-list li { --slide: 16px; }
.product.in .feature-list li { opacity: 1; transform: none; }
.product.in .feature-list li:nth-child(1) { transition-delay: 0.15s; }
.product.in .feature-list li:nth-child(2) { transition-delay: 0.23s; }
.product.in .feature-list li:nth-child(3) { transition-delay: 0.31s; }
.product.in .feature-list li:nth-child(4) { transition-delay: 0.39s; }
.product.in .feature-list li:nth-child(5) { transition-delay: 0.47s; }
.product.in .feature-list li:nth-child(6) { transition-delay: 0.55s; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-block-start: 3px;
  border-radius: 50%;
  background:
    var(--grad);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / 100% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / 100% no-repeat;
}

/* ---------- Partners & references ---------- */

.partners-grid { display: grid; gap: 1.5rem; }

.partner { padding: 2rem 1.9rem; }

.partner-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-block-end: 0.9rem;
}
.partner-mono {
  position: relative;
  overflow: hidden;
  width: 58px; height: 58px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(135deg, var(--pa, var(--violet)), var(--pb, var(--cyan)));
  box-shadow: 0 10px 24px -10px rgba(61, 107, 229, 0.5);
  transition: transform 0.35s var(--bounce);
}
.partner:hover .partner-mono { transform: scale(1.08) rotate(-4deg); }
.partner-mono img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  object-fit: contain;
  padding: 9px;
}
.partner-mono img.full {
  background: transparent;
  object-fit: cover;
  padding: 0;
}
.partner-head h3 { font-size: 1.35rem; margin: 0; }
.partner-head .partner-title { flex: 1; min-width: 180px; }
.partner-head .partner-tag { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-block-start: 0.15rem; }

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.partner-link:hover { border-color: var(--blue); background: rgba(61, 107, 229, 0.07); transform: translateY(-2px); }
.partner-link svg { width: 14px; height: 14px; }
html[dir="rtl"] .partner-link svg { transform: scaleX(-1); }

.partner > p { color: var(--muted); font-size: 0.98rem; max-width: 70ch; }

.clients-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-block: 1.2rem 0.7rem;
}
html[dir="rtl"] .clients-label { letter-spacing: 0; }

.client-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; padding: 0; }
.client-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.partner.in .client-chips li { opacity: 1; transform: none; }
.client-chips li:nth-child(1)  { transition-delay: 0.1s; }
.client-chips li:nth-child(2)  { transition-delay: 0.15s; }
.client-chips li:nth-child(3)  { transition-delay: 0.2s; }
.client-chips li:nth-child(4)  { transition-delay: 0.25s; }
.client-chips li:nth-child(5)  { transition-delay: 0.3s; }
.client-chips li:nth-child(6)  { transition-delay: 0.35s; }
.client-chips li:nth-child(7)  { transition-delay: 0.4s; }
.client-chips li:nth-child(8)  { transition-delay: 0.45s; }
.client-chips li:nth-child(9)  { transition-delay: 0.5s; }
.client-chips li:nth-child(10) { transition-delay: 0.55s; }
html[dir="rtl"] .client-chips li { padding: 0.35rem 0.55rem 0.35rem 0.9rem; }
.client-chips li:hover {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 8px 18px -10px rgba(61, 107, 229, 0.45);
}
.client-chips img {
  height: 28px;
  width: auto;
  max-width: 96px;
  flex: none;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
  padding: 2px;
}
.client-chips img.dark { background: var(--ink); padding: 4px 6px; }

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-cards { display: grid; gap: 1.1rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.contact-card { transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease); }
.contact-card:hover {
  border-color: rgba(122, 168, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(var(--nudge, 8px));
}
html[dir="rtl"] .contact-card:hover { --nudge: -8px; }
.contact-card:hover .icon-chip { transform: scale(1.1) rotate(-6deg); background: var(--grad); color: var(--white); }
.contact-card .icon-chip { background: rgba(61, 107, 229, 0.22); color: #8fc2ff; }
.contact-card .t { font-size: 0.82rem; color: #9fb2cd; }
.contact-card .v { color: var(--white); font-weight: 600; direction: ltr; unicode-bidi: embed; }
html[dir="rtl"] .contact-card .v.bidi-auto { direction: rtl; }

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.contact-form label { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: grid; gap: 0.4rem; }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 107, 229, 0.15);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1220;
  color: #93a5c0;
  padding-block: 3.5rem 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-block-end: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer ul a { transition: color 0.25s; }
.site-footer ul a:hover { color: var(--white); }
.footer-tagline { margin-block-start: 1rem; max-width: 320px; }
.footer-bottom { padding-block-start: 1.6rem; text-align: center; font-size: 0.86rem; color: #6d7f9c; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(61, 107, 229, 0.6);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  z-index: 90;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .steps::before, .steps .progress { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-wrap, .product { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-inner { max-width: 100%; }
  .hero-visual { min-height: 0; margin-block-start: 1rem; }
  .tilt { width: min(340px, 88%); margin-inline: auto; }
  .fc1 { inset-inline-start: 0; top: 2%; }
  .fc2 { inset-inline-start: 0; bottom: 8%; }
  .fc3 { inset-inline-end: 0; }
  .product:nth-of-type(even) .product-visual { order: 0; }
  .product-visual { aspect-ratio: 16 / 8; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset-block-start: 72px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 27, 45, 0.98);
    padding: 0.6rem 1.4rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links li { border-block-end: 1px solid rgba(255,255,255,0.08); }
  .nav-links a { display: block; padding-block: 0.9rem; }
  .nav-links a::after { display: none; }
  .grid.cols-3, .grid.cols-2, .stats, .steps { grid-template-columns: 1fr; }
  .brand-logo { height: 30px; }
  .hero { min-height: 0; padding-block: 6.5rem 3.5rem; }
  .aurora.a3, .grid-floor, .net-canvas { display: none; }
  .float-card {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(22, 36, 60, 0.9);
    padding: 0.55rem 0.8rem;
    gap: 0.55rem;
    border-radius: 12px;
  }
  .float-card .icon-chip { width: 32px; height: 32px; }
  .float-card .icon-chip svg { width: 17px; height: 17px; }
  .float-card b { font-size: 0.8rem; }
  .float-card small { font-size: 0.68rem; }
  .hero h1 { font-size: clamp(1.75rem, 8.2vw, 2.4rem); }
  .hero p { font-size: 1rem; margin-block-end: 1.6rem; }
  .hero-cta .btn { padding: 0.75rem 1.4rem; font-size: 0.95rem; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; margin-block-start: 1.8rem; }
  .hero-stats > div + div::before { inset-inline-start: -0.75rem; }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-stats span { font-size: 0.78rem; }
  .hero-visual { margin-block-start: 0.5rem; }
  .tilt { width: min(280px, 82%); }
  .scroll-cue { display: none; }
  .section-head p { font-size: 0.98rem; }
  .card, .value-item { padding: 1.4rem 1.3rem; }
  .product { padding: 1.3rem; border-radius: 16px; }
  .product-visual { aspect-ratio: 16 / 9; }
  .product-visual .glyph { width: 64px; height: 64px; }
  .product-body h3 { font-size: 1.25rem; }
  .contact-form { padding: 1.4rem; }
  .partner { padding: 1.4rem 1.3rem; }
  .partner-mono { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 13px; }
  .partner-head h3 { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .to-top { width: 42px; height: 42px; inset-block-end: 18px; inset-inline-end: 16px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(1.55rem, 8.6vw, 1.9rem); }
  .rotator-word { white-space: normal; }
  .hero-stats { gap: 1.1rem; }
  .float-card small { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero h1 .line > span, .hero h1 .line > .rotator { transform: none; }
  .hero p, .hero-cta, .hero-stats, .tilt, .scroll-cue { opacity: 1; }
  .rotator-word:first-child { opacity: 1; transform: none; }
  .grid-floor, .net-canvas { display: none; }
  .steps .step .num { transform: none; opacity: 1; animation: none; }
  .feature-list li { opacity: 1; transform: none; }
  .client-chips li { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .reveal { opacity: 1; transform: none; }
  .steps .progress { transform: scaleX(1); }
}
