/* =====================================================================
   Barak Digital — site stylesheet (dark theme)
   ---------------------------------------------------------------------
   1.  Design tokens (colors from the logo, type, spacing, motion)
   2.  Base / reset
   3.  Layout helpers
   4.  Buttons & badges
   5.  Navbar (glass on scroll) + mobile menu + scroll progress
   6.  Intro animation overlay
   7.  Hero (+ scroll parallax)
   8.  Sections, cards, service cards
   9.  Video grid (3D entrance + floating)
   10. Why-us / values
   11. CTA band
   12. Forms & thank-you state
   13. About page
   14. Contact page
   15. Footer
   16. Floating WhatsApp button
   17. Scroll reveal
   18. Accessibility & motion preferences
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors taken straight from the logo */
  --navy-950: #02050F;
  --navy-900: #03081A;      /* logo background — darkest (page background) */
  --navy-850: #071229;      /* alternate section background */
  --navy-800: #0B1F3A;      /* deep blue — primary brand color */
  --navy-700: #12305A;
  --blue-600: #1E6BFF;      /* play-triangle blue — actions */
  --blue-500: #2F8BFF;      /* the dot in barak.digital */
  --blue-400: #4FB2FF;      /* triangle highlight — accent text on dark */
  --blue-300: #7CC4FF;      /* B gradient end */
  --white:    #FFFFFF;
  --mist:     #DCE3F0;      /* "digital" in the wordmark */

  /* Semantic colors (dark theme) */
  --bg: var(--navy-900);
  --bg-alt: var(--navy-850);
  --surface: rgb(255 255 255 / .04);
  --surface-2: rgb(255 255 255 / .07);
  --border: rgb(255 255 255 / .09);
  --border-strong: rgb(255 255 255 / .18);
  --heading: var(--white);
  --text: var(--mist);
  --text-soft: #95A1B9;
  --accent: var(--blue-400);
  --brand-gradient: linear-gradient(135deg, var(--blue-600), var(--blue-400));

  /* Type */
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Spacing & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1180px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3), 0 4px 12px rgb(0 0 0 / .2);
  --shadow:    0 4px 10px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .35);
  --shadow-lg: 0 8px 20px rgb(0 0 0 / .35), 0 30px 70px rgb(0 0 0 / .45);
  --glow: 0 0 0 1px rgb(79 178 255 / .25), 0 18px 50px rgb(30 107 255 / .22);

  /* Motion — critically damped feel (no overshoot) for UI */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 140ms;
  --t: 320ms;
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgb(30 107 255 / .55); color: var(--white); }

/* Keyboard focus — clear blue ring, only for keyboard users */
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 8px; }

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000;
  background: var(--blue-600); color: var(--white); padding: .7rem 1.1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.section--tint { background: var(--bg-alt); }
/* soft hairline where a tinted section meets the page */
.section--tint::before, .section--tint::after {
  content: ""; position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(79 178 255 / .25), transparent);
}
.section--tint::before { top: 0; }
.section--tint::after { bottom: 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.section-sub { margin-top: 1rem; color: var(--text-soft); font-size: 1.125rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }

/* ---------- 4. Buttons & badges ---------- */
.btn {
  --bg: var(--blue-600); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t) var(--ease-out),
              background-color var(--t) var(--ease-out), color var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
  box-shadow: 0 6px 22px rgb(30 107 255 / .4);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: 0 10px 32px rgb(30 107 255 / .55); background: #2A76FF; }
.btn:active { transform: scale(.97); transition-duration: 90ms; }  /* instant feedback on press */
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .45); box-shadow: none; }
.btn--white { --bg: var(--white); --fg: var(--navy-800); box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.btn--white:hover { background: #EAF2FF; }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; background: rgb(79 178 255 / .12); color: var(--blue-300);
  border: 1px solid rgb(79 178 255 / .25);
}
.badge--soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400);
  box-shadow: 0 0 0 0 rgb(79 178 255 / .5); animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(79 178 255 / .5); } 70%, 100% { box-shadow: 0 0 0 8px rgb(79 178 255 / 0); } }

/* ---------- 5. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out),
              backdrop-filter var(--t) var(--ease-out);
}
.nav.is-scrolled {
  background: rgb(3 8 26 / .62);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .07), 0 10px 30px rgb(0 0 0 / .35);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand__mark { height: 34px; width: auto; }
.brand__word { height: 24px; width: auto; margin-top: 4px; }
.nav__links { display: flex; gap: .25rem; margin-inline-start: auto; }
.nav__links a {
  position: relative; padding: .5rem .85rem; border-radius: 999px; font-weight: 500; color: rgb(220 227 240 / .78);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--white); background: rgb(255 255 255 / .07); }
.nav__links a[aria-current="page"] { color: var(--white); font-weight: 700; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 1rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--brand-gradient);
}
.nav__cta { flex: none; }

/* Hamburger */
.nav__toggle {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 0; background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; inset-inline: 12px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform var(--t) var(--ease-out), opacity var(--t-fast) linear;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel — grows down from the bar it belongs to */
.mobile-menu {
  position: fixed; inset: var(--nav-h) .75rem auto .75rem; z-index: 99;
  padding: 1rem; border-radius: var(--radius);
  background: rgb(7 18 41 / .9);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transform-origin: top center;
  opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), visibility 0s linear var(--t);
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu a:not(.btn) {
  display: block; padding: .9rem 1rem; border-radius: 12px; font-size: 1.125rem; font-weight: 600; color: var(--white);
}
.mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current="page"] { background: rgb(79 178 255 / .12); color: var(--blue-300); }
.mobile-menu .btn { width: 100%; margin-top: .5rem; }

@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* Scroll progress — thin brand line along the top, fills in reading direction (RTL) */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 101; height: 2px; pointer-events: none;
  background: var(--brand-gradient); transform-origin: right center;
  transform: scaleX(var(--progress, 0));
}

/* ---------- 6. Intro overlay ---------- */
/* Hidden unless the inline head script decided this visit should play it */
.intro { display: none; }
html.play-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 500;
  transition: opacity 260ms var(--ease-out);
}
/* The dark background is its own layer so it can fade while the word keeps flying */
.intro__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 100%, rgb(10 59 255 / .35), transparent 55%),
              radial-gradient(90% 70% at 100% 0%, rgb(10 59 255 / .22), transparent 60%),
              linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.intro { isolation: isolate; }
html.play-intro body { overflow: hidden; }
html.play-intro .brand__word { opacity: 0; }   /* the intro wordmark lands here */
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__word { width: min(78vw, 720px); height: auto; overflow: visible; will-change: transform; }
.intro__word path {
  fill: transparent; stroke: var(--white); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
  transition: fill 380ms var(--ease-out), stroke-opacity 380ms var(--ease-out);
}
/* filled colors match the white navbar wordmark it lands on */
.intro__word.is-filled path { fill: var(--white); stroke-opacity: 0; }
.intro__word.is-filled path.is-dot { fill: var(--blue-500); }
.intro__word.is-filled path.is-light { fill: var(--mist); }
.intro__skip {
  position: absolute; top: 1.25rem; inset-inline-end: 1.25rem;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25);
  background: rgb(255 255 255 / .08); color: var(--white); font-size: .9rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color var(--t-fast) var(--ease-out), opacity 300ms var(--ease-out);
}
.intro__skip:hover { background: rgb(255 255 255 / .16); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6.5rem));
  padding-bottom: clamp(4rem, 10vw, 7rem);
  text-align: center;
  --shift: 0;                         /* set by script.js while scrolling (px scrolled past) */
}
/* blue glows drift slower than the page (parallax) */
.hero::before {
  content: ""; position: absolute; inset: -10% 0 -10%; z-index: -2;
  background:
    radial-gradient(55% 45% at 85% 12%, rgb(79 178 255 / .22), transparent 70%),
    radial-gradient(50% 45% at 8% 35%, rgb(30 107 255 / .26), transparent 70%),
    radial-gradient(60% 40% at 50% 110%, rgb(30 107 255 / .18), transparent 70%);
  transform: translate3d(0, calc(var(--shift) * .35px), 0);
}
/* faint grid: high-tech but calm */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
  transform: translate3d(0, calc(var(--shift) * .15px), 0);
}
/* content lifts away and fades as you scroll past it */
.hero > .container {
  transform: translate3d(0, calc(var(--shift) * -.18px), 0);
  opacity: calc(1 - var(--shift) / 650);
}
.hero__title {
  font-size: clamp(2.4rem, 7.2vw, 5rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 14ch; margin-inline: auto;
}
.br-desktop { display: none; }
@media (min-width: 720px) { .hero > .container > .hero__title { max-width: none; } .br-desktop { display: inline; } }
.hero__title .accent { background: linear-gradient(135deg, var(--blue-500), var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 600px; margin: 1.5rem auto 0; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-soft); }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero__pills { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgb(255 255 255 / .05); border: 1px solid var(--border); font-size: .9rem; font-weight: 500; color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill svg { width: 16px; height: 16px; color: var(--blue-400); }

/* Inner-page hero (smaller) */
.page-hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-hero .hero__title { font-size: clamp(2.1rem, 5.6vw, 3.8rem); max-width: 18ch; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgb(255 255 255 / .055), rgb(255 255 255 / .02));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease-out),
              opacity 800ms var(--ease-out), filter 800ms var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgb(79 178 255 / .35); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: rgb(79 178 255 / .12); color: var(--blue-400); border: 1px solid rgb(79 178 255 / .2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); }
.card__link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; font-weight: 700; color: var(--blue-400);
}
.card__link svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(-4px); } /* RTL: arrow nudges toward reading direction */

.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* Services page */
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-list { margin-top: 1rem; display: grid; gap: .5rem; }
.service-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); }
.service-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .3rem; border-radius: 50%;
  background: rgb(79 178 255 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FB2FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* "what's inside our websites" chips on the web-building card */
.tech-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tech-chips span {
  padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--blue-300);
  background: rgb(79 178 255 / .1); border: 1px solid rgb(79 178 255 / .22);
}
.card--web { border-color: rgb(79 178 255 / .28); box-shadow: var(--glow); }

/* Featured "coming soon" AI system card */
.feature {
  position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.5rem); color: var(--white);
  background: radial-gradient(80% 120% at 0% 100%, rgb(30 107 255 / .55), transparent 60%),
              radial-gradient(60% 90% at 100% 0%, rgb(79 178 255 / .30), transparent 60%),
              linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgb(79 178 255 / .2);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature .badge { background: rgb(255 255 255 / .12); color: var(--white); border: 1px solid rgb(255 255 255 / .2); }
.feature h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 1rem; }
.feature p { color: rgb(255 255 255 / .8); margin-top: .9rem; font-size: 1.1rem; }
.feature__form {
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.feature__form h3 { font-size: 1.15rem; margin-bottom: 1rem; }

.mini-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.mini-soon h3 { font-size: 1.2rem; }
.mini-soon .card__icon { margin: 0; }
.mini-soon__main { display: flex; align-items: center; gap: 1rem; }

/* ---------- 9. Video grid ----------
   Cards spin in one after another (3D flip), then float gently.
   script.js adds .is-in (with --i = order) when a card scrolls into view. */
.video-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; perspective: 1400px; }
@media (min-width: 560px) { .video-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.video-card { display: flex; flex-direction: column; --i: 0; }
html.js .video-card { opacity: 0; }
.video-card.is-in {
  animation: videoIn 1100ms var(--ease-out) calc(var(--i) * 230ms) both;
  transform-origin: 50% 60%;
}
@keyframes videoIn {
  0%   { opacity: 0; transform: translateY(90px) rotateY(-120deg) rotateZ(-8deg) scale(.78); filter: blur(6px); }
  45%  { opacity: 1; filter: blur(0); }
  72%  { transform: translateY(-8px) rotateY(12deg) rotateZ(1deg) scale(1.02); }
  100% { opacity: 1; transform: none; filter: none; }
}
.video-card__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-800); box-shadow: var(--shadow), 0 0 0 1px var(--border);
  transition: box-shadow var(--t) var(--ease-out);
}
/* after landing, each card floats and sways on its own rhythm */
.video-card.is-in .video-card__media {
  animation: videoFloat 7s ease-in-out calc(var(--i) * 230ms + 1100ms) infinite;
}
.video-card.is-in:nth-child(even) .video-card__media { animation-name: videoFloatAlt; animation-duration: 8s; }
@keyframes videoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0); }
  25%      { transform: translate3d(0, -12px, 0) rotateY(6deg) rotateZ(-1.2deg); }
  50%      { transform: translate3d(0, -4px, 0) rotateY(0) rotateZ(0); }
  75%      { transform: translate3d(0, -14px, 0) rotateY(-6deg) rotateZ(1.2deg); }
}
@keyframes videoFloatAlt {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0); }
  30%      { transform: translate3d(0, -14px, 0) rotateY(-7deg) rotateZ(1deg); }
  60%      { transform: translate3d(0, -5px, 0) rotateY(4deg) rotateZ(-.8deg); }
}
.video-card:hover .video-card__media,
.video-card.is-playing .video-card__media { animation-play-state: paused; box-shadow: var(--glow), var(--shadow-lg); }
.video-card.is-playing .video-card__media { animation: none; }
.video-card__media img, .video-card__media video { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 50%, rgb(3 8 26 / .45));
}
.video-card__play::before {          /* the round blue play button */
  content: ""; width: 76px; height: 76px; border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat;
  box-shadow: 0 0 0 8px rgb(30 107 255 / .25), 0 12px 30px rgb(3 8 26 / .4);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.video-card__play:hover::before { transform: scale(1.07); box-shadow: 0 0 0 12px rgb(30 107 255 / .3), 0 14px 34px rgb(3 8 26 / .45); }
.video-card__play:active::before { transform: scale(.95); transition-duration: 90ms; }
.video-card__body { padding: 1.1rem .25rem 0; }
.video-card__body h3 { font-size: 1.15rem; }
.video-card__body p { margin-top: .35rem; color: var(--text-soft); font-size: .975rem; line-height: 1.55; }
.video-card__meta { margin-top: .5rem; font-size: .85rem; color: var(--blue-300); }

/* ---------- 10. Why us / values ---------- */
.why-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease-out),
              opacity 800ms var(--ease-out), filter 800ms var(--ease-out); }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgb(79 178 255 / .3); }
.why-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.why-item p { color: var(--text-soft); font-size: .98rem; }
.why-item--highlight {
  background: radial-gradient(90% 120% at 100% 0%, rgb(79 178 255 / .35), transparent 60%),
              linear-gradient(150deg, var(--blue-600), var(--navy-800));
  border-color: rgb(79 178 255 / .35);
}
.why-item--highlight p { color: rgb(255 255 255 / .82); }
.why-item--highlight .card__icon { background: rgb(255 255 255 / .14); color: var(--white); border-color: rgb(255 255 255 / .2); }

/* ---------- 11. CTA band ---------- */
.cta-band { padding-block: clamp(3rem, 8vw, 5rem); }
.cta-band__inner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem); text-align: center; color: var(--white);
  background: radial-gradient(70% 120% at 100% 0%, rgb(79 178 255 / .45), transparent 60%),
              radial-gradient(70% 120% at 0% 100%, rgb(30 107 255 / .6), transparent 60%),
              linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgb(79 178 255 / .22);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cta-band p { margin: 1rem auto 0; max-width: 560px; color: rgb(255 255 255 / .8); font-size: 1.125rem; }
.cta-band .hero__actions { margin-top: 2rem; }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--text); }
.field .req { color: var(--blue-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: rgb(255 255 255 / .05); color: var(--white);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: rgb(220 227 240 / .4); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); background: rgb(255 255 255 / .08); box-shadow: 0 0 0 4px rgb(79 178 255 / .18);
}
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #FF6B5E; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--border-strong); font-weight: 500; transition: all var(--t-fast) var(--ease-out); cursor: pointer;
}
.choice input:checked + span { border-color: var(--blue-400); background: rgb(79 178 255 / .14); color: var(--white); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: rgb(79 178 255 / .08); border: 1px solid rgb(79 178 255 / .18); font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue-500); flex: none; }
.form__note { font-size: .85rem; color: var(--text-soft); }
.form .btn[type="submit"] { justify-self: start; min-width: 200px; }
.btn.is-loading { pointer-events: none; opacity: .75; }
/* honeypot: invisible to people, still in the DOM for bots. (No left:-9999px — in RTL that creates sideways scroll) */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Thank-you state — replaces the form after a successful send */
.thanks { display: none; text-align: center; padding: 2rem 1rem; }
.thanks.is-visible { display: block; animation: thanksIn 520ms var(--ease-out) both; }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-gradient); color: var(--white); box-shadow: 0 10px 30px rgb(30 107 255 / .45); }
.thanks__icon svg { width: 34px; height: 34px; }
.thanks h3 { font-size: 1.5rem; }
.thanks p { margin-top: .5rem; color: var(--text-soft); }
.feature .thanks p { color: rgb(255 255 255 / .8); }
.form-error { display: none; padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgb(255 107 94 / .12);
  border: 1px solid rgb(255 107 94 / .35); color: #FFB4AC; font-size: .95rem; }
.form-error.is-visible { display: block; }
@keyframes thanksIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 13. About ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; } }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(79 178 255 / .25); max-width: 460px; width: 100%; margin-inline: auto;
}
/* soft brand glow behind the photo */
.about__photo-wrap { position: relative; isolation: isolate; }
.about__photo-wrap::before {
  content: ""; position: absolute; inset: 8% 4% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgb(30 107 255 / .45), transparent); filter: blur(30px);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__text p + p { margin-top: 1.1rem; }
.about__text p { font-size: 1.125rem; color: var(--text); }
.about__text .lead { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; color: var(--white); line-height: 1.3; }
.values-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { text-align: center; padding: 1rem .5rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; color: var(--blue-400); line-height: 1.1; }
.stat span { font-size: .875rem; color: var(--text-soft); }

/* ---------- 14. Contact ---------- */
.contact { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.6fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-tile { display: flex; align-items: center; gap: 1rem; }
.contact-tile .card__icon { margin: 0; flex: none; }
.contact-tile small { display: block; color: var(--text-soft); font-size: .875rem; }
.contact-tile a, .contact-tile b { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.contact-tile a[href^="tel"], .contact-tile a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

/* ---------- 15. Footer ---------- */
.footer { background: var(--navy-950); color: rgb(220 227 240 / .72); padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand__mark { height: 38px; }
.footer .brand__word { height: 26px; }
.footer__about { margin-top: 1rem; max-width: 340px; font-size: .975rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.footer li + li { margin-top: .55rem; }
.footer a { transition: color var(--t-fast) var(--ease-out); }
.footer a:hover { color: var(--white); }
.footer a[href^="tel"], .footer a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1);
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.social a:hover { background: var(--blue-600); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .9rem; }

/* ---------- 16. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 90; bottom: clamp(1rem, 3vw, 1.5rem); inset-inline-start: clamp(1rem, 3vw, 1.5rem);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-600); color: var(--white);
  box-shadow: 0 10px 28px rgb(30 107 255 / .5), 0 0 0 6px rgb(30 107 255 / .18);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgb(30 107 255 / .6), 0 0 0 8px rgb(30 107 255 / .2); }
.wa-float:active { transform: scale(.95); transition-duration: 90ms; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 17. Scroll reveal ----------
   Default: rises in and comes into focus. Variants via data-reveal:
   "start" / "end" (slide in from the side, RTL aware), "zoom" (grows in).
   Siblings are staggered automatically by script.js (--reveal-delay).        */
.reveal {
  opacity: 0; transform: translate3d(0, 36px, 0) scale(.985); filter: blur(6px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), filter 800ms var(--ease-out),
              box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal[data-reveal="start"] { transform: translate3d(60px, 0, 0); }   /* RTL: from the right */
.reveal[data-reveal="end"]   { transform: translate3d(-60px, 0, 0); }  /* RTL: from the left */
.reveal[data-reveal="zoom"]  { transform: scale(.9); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* (script.js drops the .reveal class once the entrance ends, so hover effects stay snappy) */
.reveal[data-delay="1"] { --reveal-delay: 90ms; }
.reveal[data-delay="2"] { --reveal-delay: 180ms; }
.reveal[data-delay="3"] { --reveal-delay: 270ms; }
html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }  /* no JS → show everything */

/* ---------- 18. Accessibility & motion preferences ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .reveal, .reveal[data-reveal] { transform: none; filter: none; transition: opacity 300ms linear; }
  .card:hover, .why-item:hover, .wa-float:hover { transform: none; }
  .video-card.is-in { animation: none; opacity: 1; }
  .video-card .video-card__media { animation: none !important; }
  .hero::before, .hero::after, .hero > .container { transform: none; opacity: 1; }
  .mobile-menu { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .mobile-menu { background: var(--navy-850); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-soft: var(--mist); --border: rgb(255 255 255 / .35); }
}
