/* =========================================================
   CubyWorks — Hero section styles
   Brand: dark maroon/burgundy base + coral-to-pink gradient
   ========================================================= */

:root {
  --maroon-base: #3D0D14;
  --maroon-deep: #2A080D;
  --coral: #FF6B6B;
  --pink: #FFA69E;
  --white: #FFFFFF;
  --white-soft: rgba(255, 255, 255, 0.78);
  --white-faint: rgba(255, 255, 255, 0.55);

  --gradient-accent: linear-gradient(135deg, var(--coral) 0%, var(--pink) 100%);
  --font-en: 'Poppins', 'Inter', sans-serif;
  --font-ar: 'Tajawal', 'Cairo', sans-serif;
}

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

html, body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  background: radial-gradient(ellipse at 50% 30%, var(--maroon-base) 0%, var(--maroon-deep) 70%);
  color: var(--white);
  font-family: var(--font-en);
  overflow-x: hidden;
  min-height: 100vh;
}

body.font-ar {
  font-family: var(--font-ar);
}

body.font-en {
  font-family: var(--font-en);
}

/* ---------- Particle canvas background ---------- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Sticky navigation bar (floating pill style) ----------
   .navbar is just a positioning wrapper (sticky + spacing). The
   actual rounded/blurred pill is .navbar__bar, which carries its
   own overflow:hidden so the logo/buttons can never visually poke
   past the rounded corners. The mobile dropdown (.mobile-menu) is
   a SIBLING of .navbar__bar rather than a child of it, so it can
   hang below without being clipped by that overflow:hidden. */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px 20px 0;
  /* Forces Safari/WebKit to composite this sticky element on its own
     GPU layer — without this, backdrop-filter + position:sticky can
     render a hairline seam at the box's edge on iOS Safari and
     in-app WebViews (not reproducible in Chromium). */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar__bar {
  position: relative;
  border-radius: 20px;
  background: rgba(15, 4, 6, 0.82);
  border: 1px solid rgba(255, 166, 158, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.navbar__links a {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.navbar__links a:hover {
  color: var(--white);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.45);
}

/* ---------- Mobile dropdown menu ----------
   Sibling of .navbar__bar (not nested inside it) so its overflow
   isn't clipped by the bar's own overflow:hidden. Hidden entirely
   above the tablet breakpoint. */
.mobile-menu {
  display: none;
}

/* ---------- Language toggle (now lives inside the navbar) ---------- */
.lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 166, 158, 0.35);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(255, 107, 107, 0.18);
  border-color: var(--coral);
  transform: translateY(-1px);
}

.lang-toggle:active {
  transform: translateY(0);
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 166, 158, 0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 60px;
  overflow: hidden;
}

/* Animated gradient blob background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob--1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--coral), transparent 70%);
  animation: blobMove1 20s ease-in-out infinite;
}

.blob--2 {
  width: 620px;
  height: 620px;
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle at 60% 40%, var(--pink), transparent 70%);
  animation: blobMove2 24s ease-in-out infinite;
}

.blob--3 {
  width: 460px;
  height: 460px;
  top: 45%;
  left: 50%;
  background: radial-gradient(circle at 50% 50%, #ff8f8f, transparent 70%);
  animation: blobMove3 28s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.15); }
}

@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -40px) scale(1.1); }
}

@keyframes blobMove3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.2) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 20px;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--maroon-deep), var(--maroon-deep)) padding-box,
    linear-gradient(135deg, var(--coral), var(--pink)) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 24px rgba(255, 107, 107, 0.35));
  animation: floatLogo 5s ease-in-out infinite;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 18px;
}

.hero__eyebrow::before {
  content: "[ ";
}

.hero__eyebrow::after {
  content: " ]";
}

html[dir="rtl"] .hero__eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--white-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 166, 158, 0.5);
}

.btn--secondary:hover {
  border-color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
  transform: translateY(-2px);
}

/* ---------- Shared section heading styles ---------- */
.section-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

html[dir="rtl"] .section-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

/* ---------- About section ---------- */
.about {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  border-top: 1px solid rgba(255, 166, 158, 0.12);
}

.about__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.85;
  color: var(--white-soft);
  margin-bottom: 22px;
  font-weight: 400;
}

.about__text:last-child {
  margin-bottom: 0;
}

/* ---------- Services section ---------- */
.services {
  position: relative;
  z-index: 1;
  padding: 100px 24px 120px;
  border-top: 1px solid rgba(255, 166, 158, 0.12);
}

.services__inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.services__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--white-soft);
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: start;
}

.services__grid--teaser {
  grid-template-columns: repeat(4, 1fr);
}

.service-card--viewall {
  display: block;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.13), rgba(255, 166, 158, 0.03));
  border: 1.5px solid rgba(255, 107, 107, 0.4);
}

.service-card--viewall:hover {
  border-color: var(--coral);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.2);
}

.service-card--viewall .service-card__title {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-card__tag {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 166, 158, 0.4);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Services page category groups ---------- */
.services-category {
  margin-bottom: 56px;
}

.services-category:last-child {
  margin-bottom: 0;
}

.services-category__title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.service-card {
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.16);
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.13), rgba(255, 255, 255, 0.03));
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  transition: transform 0.25s ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white-faint);
  font-weight: 400;
}

/* ---------- Voice samples section ---------- */
.samples {
  position: relative;
  z-index: 1;
  padding: 100px 24px 120px;
  border-top: 1px solid rgba(255, 166, 158, 0.12);
}

.samples__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.samples__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--white-soft);
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.samples__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  text-align: start;
}

.sample-card {
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sample-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.16);
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.13), rgba(255, 255, 255, 0.03));
}

.sample-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.sample-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
}

.sample-card__icon svg {
  width: 26px;
  height: 26px;
}

.sample-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.sample-card__tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pink);
  margin-top: 3px;
}

.sample-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white-faint);
  margin-bottom: 22px;
}

/* Decorative waveform — animates while its sample is playing */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  margin-bottom: 18px;
  opacity: 0.55;
}

.waveform span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  height: 30%;
  transition: height 0.2s ease;
}

.waveform span:nth-child(3n+1) { height: 45%; }
.waveform span:nth-child(3n+2) { height: 80%; }
.waveform span:nth-child(4n) { height: 60%; }
.waveform span:nth-child(5n) { height: 100%; }

.sample-card.is-playing .waveform {
  opacity: 1;
}

.sample-card.is-playing .waveform span {
  animation: waveBounce 0.9s ease-in-out infinite;
}

.sample-card.is-playing .waveform span:nth-child(2n) { animation-delay: 0.1s; }
.sample-card.is-playing .waveform span:nth-child(3n) { animation-delay: 0.2s; }
.sample-card.is-playing .waveform span:nth-child(4n) { animation-delay: 0.3s; }
.sample-card.is-playing .waveform span:nth-child(5n) { animation-delay: 0.15s; }

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Custom audio player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-player__toggle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.3);
}

.audio-player__toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.45);
}

.audio-player__toggle svg {
  width: 20px;
  height: 20px;
}

.audio-player__toggle .icon-play {
  margin-inline-start: 2px;
}

.audio-player__body {
  flex: 1;
  min-width: 0;
}

.audio-player__bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  overflow: hidden;
}

.audio-player__progress {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: 999px;
}

.audio-player__time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--white-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- How It Works section ---------- */
.how {
  position: relative;
  z-index: 1;
  padding: 100px 24px 120px;
  border-top: 1px solid rgba(255, 166, 158, 0.12);
}

.how__inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.how__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--white-soft);
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: start;
  position: relative;
}

.how__grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.how-step {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 30px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.16);
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.13), rgba(255, 255, 255, 0.03));
}

.how-step__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  transition: transform 0.25s ease;
}

.how-step:hover .how-step__icon {
  transform: scale(1.08) rotate(-3deg);
}

.how-step__icon svg {
  width: 24px;
  height: 24px;
}

.how-step__number {
  position: absolute;
  top: 26px;
  inset-inline-end: 24px;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 166, 158, 0.18);
  letter-spacing: 0.02em;
}

.how-step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.how-step__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--white-faint);
  font-weight: 400;
}

/* ---------- Contact section ---------- */
.contact {
  position: relative;
  z-index: 1;
  padding: 100px 24px 120px;
  border-top: 1px solid rgba(255, 166, 158, 0.12);
}

.contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.contact__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--white-soft);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  text-align: start;
}

.contact-form {
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pink);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 166, 158, 0.22);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-faint);
}

.contact-form__submit {
  border: none;
  margin-top: 4px;
  align-self: flex-start;
  font-family: inherit;
}

html[dir="rtl"] .contact-form__submit {
  align-self: flex-end;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366, #1ebe57);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 166, 158, 0.14);
  padding: 56px 24px 32px;
  background: rgba(0, 0, 0, 0.12);
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 166, 158, 0.1);
}

.site-footer__brand {
  max-width: 360px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
}

.site-footer__logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer__logo:hover img {
  opacity: 1;
}

.site-footer__tagline {
  font-size: 0.85rem;
  color: var(--white-faint);
  line-height: 1.65;
  margin-top: 14px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 160px;
}

.site-footer__navLabel {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 4px;
}

html[dir="rtl"] .site-footer__navLabel {
  letter-spacing: 0;
  text-transform: none;
}

.site-footer__nav a {
  font-size: 0.88rem;
  color: var(--white-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  width: fit-content;
}

.site-footer__nav a:hover {
  color: var(--coral);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--white-faint);
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 166, 158, 0.22);
  color: var(--white-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  border-color: var(--coral);
  color: var(--white);
  background: rgba(255, 107, 107, 0.14);
  transform: translateY(-2px);
}

/* ---------- Generic sub-page content section ---------- */
.page-section {
  position: relative;
  z-index: 1;
  padding: 20px 24px 120px;
}

.page-section__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Sub-page header (Case Studies / Packages) ---------- */
.page-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 76px 24px 60px;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--white-soft);
  line-height: 1.7;
  margin-top: 16px;
}

/* ---------- Tabs (used for Case Studies & Packages toggle) ---------- */
.tabs {
  position: relative;
  z-index: 1;
}

.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 166, 158, 0.22);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--coral);
  color: var(--white);
}

.tab-btn.is-active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--maroon-deep);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cost comparison cards (case studies) ---------- */
.cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.cost-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 28px 30px;
}

.cost-card--ai {
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.12), rgba(255, 166, 158, 0.03));
  border: 1.5px solid rgba(255, 107, 107, 0.45);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.15);
}

.cost-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cost-card__header .icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--maroon-deep);
  flex-shrink: 0;
}

.cost-card--human .icon-tile {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-soft);
}

.cost-card__header .icon-tile svg {
  width: 22px;
  height: 22px;
}

.cost-card__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.cost-row span:first-child {
  color: var(--white-soft);
  padding-inline-end: 12px;
}

.cost-row span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.cost-perhead {
  font-size: 0.82rem;
  color: var(--white-faint);
  margin-top: 10px;
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cost-total__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white-soft);
}

.cost-total__value {
  font-size: 1.6rem;
  font-weight: 800;
}

.cost-total__value--text {
  font-size: 1.15rem;
  line-height: 1.3;
  text-align: end;
}

.cost-total__value small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-faint);
}

.cost-card--ai .cost-total__value {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cost-note {
  font-size: 0.82rem;
  color: var(--white-faint);
  margin-top: 10px;
  line-height: 1.55;
}

.cost-note--accent {
  color: var(--pink);
  font-weight: 600;
}

.cost-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cost-checklist div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--white-soft);
}

.cost-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
  flex-shrink: 0;
}

.cost-coverage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--white-soft);
}

.cost-coverage svg {
  width: 16px;
  height: 16px;
  color: var(--coral);
  flex-shrink: 0;
}

.callout-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 166, 158, 0.14);
  border-radius: 12px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--white-soft);
  line-height: 1.55;
}

.callout-bar svg {
  width: 20px;
  height: 20px;
  color: var(--pink);
  flex-shrink: 0;
}

.cost-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cost-bottomline__text {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cost-disclaimer {
  font-size: 0.78rem;
  color: var(--white-faint);
}

/* ---------- Stat tiles (Outbound Retargeting) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat-tile {
  text-align: center;
  padding: 26px 18px;
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 166, 158, 0.2);
  border-radius: 16px;
}

.stat-tile__num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-tile__num--text {
  font-size: 1.5rem;
  line-height: 1.25;
}

.stat-tile__label {
  font-size: 0.88rem;
  color: var(--white-soft);
  margin-top: 10px;
  line-height: 1.4;
}

/* ---------- Package comparison table ---------- */
.pkg-table {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 166, 158, 0.16);
  border-radius: 18px;
  padding: 8px 30px;
}

.pkg-table__header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  align-items: end;
  padding: 22px 0 16px;
  border-bottom: 1.5px solid rgba(255, 166, 158, 0.25);
}

.pkg-table__tier {
  text-align: center;
}

.pkg-table__tierName {
  font-size: 1.05rem;
  font-weight: 800;
}

.pkg-table__tierName--growth {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pkg-table__tierCode {
  font-size: 0.75rem;
  color: var(--white-faint);
  margin-top: 3px;
}

.pkg-table__tierCode--growth {
  color: var(--pink);
}

.pkg-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pkg-row:last-child {
  border-bottom: none;
}

.pkg-table__columnLabel {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-faint);
}

html[dir="rtl"] .pkg-table__columnLabel {
  letter-spacing: 0;
  text-transform: none;
}

.pkg-row__label {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white-soft);
  line-height: 1.4;
  padding-inline-end: 14px;
}

.pkg-cell {
  text-align: center;
}

.pkg-cell__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.16);
  color: var(--coral);
}

.pkg-cell__check svg {
  width: 14px;
  height: 14px;
}

.pkg-cell__dash {
  color: var(--white-faint);
  font-size: 1rem;
}

.pkg-cell__addon {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 166, 158, 0.4);
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
}

.pkg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pkg-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-soft);
}

.pkg-disclaimer {
  font-size: 0.78rem;
  color: var(--white-faint);
  max-width: 560px;
}

html[dir="rtl"] .pkg-disclaimer {
  text-align: left;
}

html:not([dir="rtl"]) .pkg-disclaimer {
  text-align: right;
}

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

/* Tablet: collapse nav into hamburger, 2-col grids */
@media (max-width: 900px) {
  .navbar {
    margin: 12px 12px 0;
  }

  /* backdrop-filter + position:sticky renders a hairline compositing
     seam below the nav on iOS Safari / in-app WebViews. Dropping the
     blur on mobile and using a solid background removes the bug
     outright instead of working around the compositing quirk. */
  .navbar__bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(15, 4, 6);
  }

  .navbar__cta {
    display: none;
  }

  .navbar__links {
    display: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu.is-open {
    max-height: 400px;
    margin-top: 8px;
    background: rgb(15, 4, 6);
    border-color: rgba(255, 166, 158, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .mobile-menu a {
    color: var(--white-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 166, 158, 0.08);
    transition: color 0.2s ease;
  }

  .mobile-menu a:hover {
    color: var(--white);
  }

  .mobile-menu a.mobile-menu__cta {
    display: block;
    text-align: center;
    color: var(--maroon-deep);
    background: var(--gradient-accent);
    border-radius: 999px;
    font-weight: 700;
    padding: 13px 20px;
    margin: 16px 24px 20px;
    border-bottom: none;
  }

  .mobile-menu a.mobile-menu__cta:hover {
    color: var(--maroon-deep);
  }

  .nav-toggle {
    display: flex;
  }

  .contact__grid,
  .samples__grid {
    grid-template-columns: 1fr;
  }

  .cost-compare {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pkg-table__header,
  .pkg-row {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .pkg-table {
    padding: 8px 16px;
  }

  .pkg-row__label {
    font-size: 0.88rem;
    font-weight: 700;
  }

  .pkg-table__columnLabel {
    font-size: 0.68rem;
  }
}

@media (max-width: 900px) and (min-width: 481px) {
  .services__grid,
  .how__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how__grid--three {
    grid-template-columns: repeat(3, 1fr);
  }

  .cost-compare {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .navbar__inner {
    padding: 12px 16px;
  }

  .navbar__logo img {
    height: 30px;
  }

  .lang-toggle {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 60px 20px 50px;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .services__grid,
  .how__grid,
  .contact__grid,
  .samples__grid {
    grid-template-columns: 1fr;
  }

  .about,
  .services,
  .samples,
  .how,
  .contact {
    padding: 60px 20px;
  }

  .page-hero {
    padding: 56px 20px 40px;
  }

  .page-section {
    padding: 10px 20px 70px;
  }

  .contact-form__submit,
  html[dir="rtl"] .contact-form__submit {
    align-self: stretch;
    text-align: center;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .site-footer__brand {
    max-width: 100%;
  }

  .site-footer__nav {
    align-items: center;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
