/* =====================================================================
   BYTEHOVEN — stylesheet
   Sections: 1 Tokens  2 Base/Reset  3 Buttons  4 Navbar  5 Hero
   6 Services  7 About  8 Work/Process  9 Testimonials  10 CTA band
   11 Contact/Form  12 Footer  13 Animations  14 Responsive
   ===================================================================== */

/* ============================ 1. DESIGN TOKENS ====================== */
:root {
  /* Brand (from logo) */
  --navy: #00486a;
  --blue: #306289;
  --steel: #39729b;
  --sky: #7eadcd;

  /* Vibrant accent system */
  --cyan: #06b6d4;
  --azure: #3b82f6;
  --violet: #7c5cff;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --indigo: #4f46e5;
  --emerald: #10b981;

  /* Neutrals */
  --ink: #102a3d;
  --body: #44607a;
  --muted: #5a7488; /* darkened from #6f88a0 for WCAG-AA contrast on white (~4.9:1) */
  --line: #e2ecf4;
  --bg: #ffffff;
  --bg-soft: #eef5fb;
  --bg-tint: #f6fafd;

  /* Gradients */
  --grad-cta: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #7c5cff 100%);
  --grad-brand: linear-gradient(135deg, #00486a 0%, #306289 55%, #39729b 100%);
  --grad-hero: radial-gradient(1200px 700px at 80% -10%, #0a5c84 0%, transparent 55%),
               radial-gradient(900px 600px at 0% 110%, #123a6b 0%, transparent 55%),
               linear-gradient(160deg, #00263b 0%, #00486a 60%, #053257 100%);
  --grad-text: linear-gradient(100deg, #22d3ee, #7c5cff 60%, #a78bfa);

  /* Shape */
  --r: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(16, 42, 61, 0.06);
  --shadow: 0 18px 44px rgba(16, 42, 61, 0.10);
  --shadow-lg: 0 30px 70px rgba(16, 42, 61, 0.16);
  --container: 1180px;

  /* Fonts */
  --font-latin: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: "Tajawal", system-ui, -apple-system, Segoe UI, Tahoma, sans-serif;
  --font: var(--font-latin);
}
html[lang="ar"] { --font: var(--font-ar); }

/* ============================ 2. BASE / RESET ======================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }

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

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: 54px; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azure);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(124, 92, 255, 0.12));
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: normal; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-subtitle { color: var(--muted); font-size: 1.06rem; margin-top: 12px; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================ 3. BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem;
  padding: 12px 24px; border-radius: var(--r-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { color: #fff; background: var(--grad-cta); background-size: 160% 160%; box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(124, 92, 255, 0.42); background-position: 100% 0; }

.btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

.btn-light { color: var(--navy); background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============================ 4. NAVBAR ============================= */
.navbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding-block: 16px;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(16, 42, 61, 0.08);
  padding-block: 10px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.3px; color: var(--navy); font-family: var(--font-latin); }
.navbar:not(.scrolled) .brand-text { color: #fff; }
.navbar:not(.scrolled) .brand-mark { filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: rgba(255, 255, 255, 0.92); position: relative; padding-block: 4px; transition: color 0.2s; }
.navbar.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0;
  width: 0; height: 2px; border-radius: 2px; background: var(--grad-cta); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }
.navbar.scrolled .nav-links a.active { color: var(--azure); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle { display: inline-flex; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--r-pill); padding: 3px; }
.navbar.scrolled .lang-toggle { background: var(--bg-soft); border-color: var(--line); }
.lang-btn { font-weight: 700; font-size: 0.82rem; color: #fff; padding: 5px 13px; border-radius: var(--r-pill); transition: all 0.25s ease; min-width: 38px; }
.navbar.scrolled .lang-btn { color: var(--muted); }
.lang-btn.active { background: var(--grad-cta); color: #fff !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; border-radius: 3px; background: #fff; transition: all 0.3s ease; }
.navbar.scrolled .menu-toggle span { background: var(--ink); }

/* ============================ 5. HERO ============================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-block: 120px 60px; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-hero); z-index: -2; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; background: #22d3ee; inset-block-start: -80px; inset-inline-end: -60px; }
.blob-2 { width: 360px; height: 360px; background: #7c5cff; inset-block-end: -100px; inset-inline-start: 10%; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: #2563eb; inset-block-start: 35%; inset-inline-start: 45%; animation-delay: -8s; opacity: 0.35; }

.equalizer { position: absolute; inset-block-end: 0; inset-inline: 0; height: 160px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; opacity: 0.22; }
.equalizer span { width: 8px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #22d3ee, #7c5cff); animation: eq 1.4s ease-in-out infinite; }
.equalizer span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.equalizer span:nth-child(2) { height: 70%; animation-delay: -0.6s; }
.equalizer span:nth-child(3) { height: 50%; animation-delay: -0.1s; }
.equalizer span:nth-child(4) { height: 90%; animation-delay: -0.9s; }
.equalizer span:nth-child(5) { height: 60%; animation-delay: -0.4s; }
.equalizer span:nth-child(6) { height: 85%; animation-delay: -0.7s; }
.equalizer span:nth-child(7) { height: 45%; animation-delay: -0.3s; }
.equalizer span:nth-child(8) { height: 75%; animation-delay: -1s; }
.equalizer span:nth-child(9) { height: 55%; animation-delay: -0.5s; }
.equalizer span:nth-child(10) { height: 38%; animation-delay: -0.8s; }

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-block; font-weight: 600; font-size: 0.9rem; color: #d6f4ff;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px); padding: 8px 18px; border-radius: var(--r-pill); margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; color: #fff; line-height: 1.08; letter-spacing: -0.5px; }
.hero-title span { display: block; }
html[lang="ar"] .hero-title { letter-spacing: normal; line-height: 1.18; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255, 255, 255, 0.86); margin-block: 22px 34px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-block-start: 50px; padding-block-start: 30px; border-block-start: 1px solid rgba(255, 255, 255, 0.18); }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.35rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }

.scroll-cue { position: absolute; inset-block-end: 26px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 1; }
.mouse { display: block; width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 14px; position: relative; }
.mouse::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 3px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }

/* ============================ 6. SERVICES ========================== */
.services { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--grad-cta); transform: scaleX(0); transform-origin: inline-start; transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; color: #fff; margin-bottom: 18px; transition: transform 0.35s ease; }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.97rem; color: var(--body); }

.i-1 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.i-2 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.i-3 { background: linear-gradient(135deg, #7c5cff, #a855f7); }
.i-4 { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.i-5 { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.i-6 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.i-7 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.i-8 { background: linear-gradient(135deg, #4f46e5, #7c5cff); }
.i-9 { background: linear-gradient(135deg, #10b981, #14b8a6); }

/* ============================ 7. ABOUT ============================= */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.about-text .section-title { margin-block: 6px 18px; }
.about-text p { margin-bottom: 14px; }
.feature-list { margin-block-start: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.feature-list .check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }
.feature-list .check svg { width: 16px; height: 16px; }

.about-visual { display: flex; justify-content: center; }
.visual-card {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1;
  border-radius: 32px; background: var(--grad-hero); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.visual-glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, 0.6), transparent 65%); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
.visual-logo { width: 130px; height: 130px; position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3)); }
.wave-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; position: relative; z-index: 1; }
.wave-bars span { width: 7px; border-radius: 6px; background: linear-gradient(180deg, #22d3ee, #7c5cff); animation: eq 1.3s ease-in-out infinite; }
.wave-bars span:nth-child(odd) { animation-delay: -0.4s; }
.wave-bars span:nth-child(1) { height: 40%; } .wave-bars span:nth-child(2) { height: 80%; }
.wave-bars span:nth-child(3) { height: 55%; } .wave-bars span:nth-child(4) { height: 100%; }
.wave-bars span:nth-child(5) { height: 60%; } .wave-bars span:nth-child(6) { height: 85%; }
.wave-bars span:nth-child(7) { height: 45%; }
.visual-tagline { position: relative; z-index: 1; font-weight: 600; letter-spacing: 0.5px; color: #d6f4ff; }

/* ============================ 8. WORK / PROCESS ==================== */
.work { background: linear-gradient(180deg, var(--bg-tint), var(--bg-soft)); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 80px; }
.process-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 24px 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process-num {
  position: absolute; inset-block-start: -16px; inset-inline-start: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad-cta); color: #fff;
  font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.4);
}
.process-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-block: 14px 14px; border-radius: 18px; background: var(--bg-soft); color: var(--azure); }
.process-icon svg { width: 28px; height: 28px; }
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.94rem; color: var(--body); }

.problems-head { margin-bottom: 40px; }
.problems-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problem-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.problem-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; }
.problem-icon svg { width: 22px; height: 22px; }
.p-1 { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.p-2 { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.p-3 { background: rgba(124, 92, 255, 0.12); color: #6d28d9; }
.p-4 { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.p-5 { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.p-6 { background: rgba(16, 185, 129, 0.12); color: #059669; }
.problem-q { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.problem-a { font-size: 0.95rem; color: var(--muted); }

/* ============================ 9. TESTIMONIALS ===================== */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  position: relative; background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-mark { width: 40px; height: 40px; color: var(--sky); opacity: 0.7; margin-bottom: 4px; }
.testimonial-card blockquote { font-size: 1.04rem; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.testimonial-card figcaption { display: flex; flex-direction: column; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.t-name { font-weight: 700; color: var(--navy); }
.t-role { font-size: 0.86rem; color: var(--muted); }

/* ============================ 10. CTA BAND ========================= */
.cta-band { background: var(--grad-cta); background-size: 200% 200%; animation: gradientShift 10s ease infinite; color: #fff; padding-block: clamp(44px, 6vw, 70px); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-block-start: 6px; }

/* ============================ 11. CONTACT / FORM ================== */
.contact { background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint)); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info .section-title { margin-block: 6px 14px; }
.contact-info > p { color: var(--body); margin-bottom: 22px; }

.contact-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:not(.no-link):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-cta); color: #fff; }
.contact-icon svg { width: 24px; height: 24px; }
.contact-label { display: block; font-size: 0.82rem; color: var(--muted); }
.contact-value { display: block; font-weight: 700; color: var(--ink); }

.expect { margin-block-start: 26px; }
.expect h3 { font-size: 1.1rem; margin-bottom: 14px; }
.expect ul { display: grid; gap: 12px; }
.expect li { display: flex; align-items: flex-start; gap: 12px; color: var(--body); font-size: 0.97rem; }
.expect li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--azure); font-weight: 800; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.quote-form { display: grid; gap: 18px; }
/* Honeypot: invisible to humans/bots but takes zero layout width (no horizontal overflow) */
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-tint); color: var(--ink); font-size: 0.97rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azure); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.field input.invalid, .field textarea.invalid { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1); }
.error-msg { font-size: 0.82rem; color: var(--rose); min-height: 1em; }

.urgency { display: flex; gap: 10px; }
.urgency-opt { position: relative; flex: 1; }
.urgency-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.urgency-opt span { display: block; text-align: center; padding: 11px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 0.92rem; color: var(--muted); background: var(--bg-tint); transition: all 0.2s ease; }
.urgency-opt input:checked + span { border-color: transparent; background: var(--grad-cta); color: #fff; box-shadow: 0 8px 18px rgba(59, 130, 246, 0.3); }

#submitBtn .btn-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
#submitBtn.loading .btn-spinner { display: inline-block; }

.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status.success { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.3); }
.form-status.error { background: rgba(244, 63, 94, 0.1); color: #be123c; border: 1px solid rgba(244, 63, 94, 0.3); }

/* ============================ 12. FOOTER ========================== */
.footer { background: linear-gradient(160deg, #04263a, #00486a); color: rgba(255, 255, 255, 0.82); padding-block: 60px 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .brand-text { color: #fff; }
.footer-tagline { margin-block-start: 14px; max-width: 320px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.72); padding-block: 6px; transition: color 0.2s, padding-inline-start 0.2s; }
.footer-col a:hover { color: #fff; padding-inline-start: 5px; }
.footer-bottom { border-block-start: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.back-top { transition: color 0.2s; }
.back-top:hover { color: #fff; }

/* ============================ 13. ANIMATIONS ====================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -30px); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ 14. RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; inset-block-start: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 10px 24px 18px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all 0.3s ease;
  }
  .nav-links a { color: var(--ink); width: 100%; padding-block: 13px; border-block-end: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .navbar.menu-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .navbar.menu-open { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(16, 42, 61, 0.08); }
  .navbar.menu-open .brand-text { color: var(--navy); }
  .navbar.menu-open .menu-toggle span { background: var(--ink); }
  .navbar.menu-open .lang-toggle { background: var(--bg-soft); border-color: var(--line); }
  .navbar.menu-open .lang-btn { color: var(--muted); }
  .navbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .navbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .navbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px 24px; }
  .stat-value { font-size: 1.15rem; }
  .cta-band-inner { flex-direction: column; text-align: center; }

  /* Navbar: keep brand + actions from colliding on small screens */
  .nav-inner { gap: 10px; }
  .brand { flex-shrink: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 1.12rem; white-space: nowrap; }
  .nav-actions { gap: 8px; }
  .lang-toggle { padding: 2px; }
  .lang-btn { min-width: 30px; padding: 4px 9px; font-size: 0.78rem; }
  .theme-toggle { width: 34px; height: 34px; }

  /* Footer: brand full-width on top, the two link sections side-by-side below
     (was a squished 3-column grid that overflowed off-screen) */
  .footer { padding-block: 48px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: none; }
  .footer-col a { overflow-wrap: anywhere; }
}

/* Extra-narrow phones (≤360px): tighten the navbar a touch more so the
   hamburger/actions stay fully on-screen next to the brand */
@media (max-width: 360px) {
  .nav-inner { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-text { font-size: 0.95rem; }
  .nav-actions { gap: 6px; }
  .lang-btn { min-width: 26px; padding: 4px 7px; }
  .theme-toggle { width: 32px; height: 32px; }

  /* Footer: single column so the email never gets squeezed */
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

/* =====================================================================
   15. CENTERPIECE — split hero, animated scene, three-act journey
   Signature stage colours: Analyze=cyan · Communicate=violet · Solve=green
   ===================================================================== */
:root {
  --c-analyze: #06b6d4;
  --c-communicate: #7c5cff;
  --c-solve: #10b981;
}

/* ---- Split hero layout ---- */
.hero-inner { display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: 44px; }
.hero-content { max-width: 600px; }
.hero .blob-3 { opacity: 0.2; }
.hero .equalizer { opacity: 0.14; }

.hero-visual { position: relative; }
.scene { position: relative; transition: transform 0.25s ease-out; will-change: transform; }
.scene > svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---- Scene animations ---- */
.hs-glow { transform-box: fill-box; transform-origin: center; animation: hsGlow 6s ease-in-out infinite; }
.hs-glow-2 { animation-delay: -3s; }
@keyframes hsGlow { 0%, 100% { opacity: 0.55; transform: scale(0.95); } 50% { opacity: 0.9; transform: scale(1.06); } }

.hs-arc { opacity: 0.28; animation: hsArc 2.6s ease-in-out infinite; }
.hs-arc.a1 { animation-delay: 0s; } .hs-arc.a2 { animation-delay: 0.3s; } .hs-arc.a3 { animation-delay: 0.6s; }
@keyframes hsArc { 0%, 100% { opacity: 0.25; } 45% { opacity: 1; } }

.hs-monitor > rect.hs-bar { transform-box: fill-box; transform-origin: bottom; opacity: 0.6; animation: hsBar 1.5s ease-in-out infinite; }
.hs-monitor > *:nth-child(7) { animation-delay: -0.2s; }
.hs-monitor > *:nth-child(8) { animation-delay: -0.5s; }
.hs-monitor > *:nth-child(9) { animation-delay: -0.3s; }
.hs-monitor > *:nth-child(10) { animation-delay: -0.6s; }
@keyframes hsBar { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

.hs-pulse { stroke-dasharray: 30 460; animation: hsPulse 2.6s linear infinite; }
@keyframes hsPulse { to { stroke-dashoffset: -490; } }

.hs-mag { animation: hsMag 4.5s ease-in-out infinite; }
@keyframes hsMag { 0% { transform: translateX(-4px); } 50% { transform: translateX(150px); } 100% { transform: translateX(-4px); } }

.hs-check { transform-box: fill-box; transform-origin: center; animation: hsCheck 5s ease-in-out infinite; }
@keyframes hsCheck {
  0%, 50% { opacity: 0; transform: scale(0.4); }
  62% { opacity: 1; transform: scale(1.18); }
  74% { transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}

.hs-arm { transform-box: fill-box; transform-origin: 32% 92%; animation: hsArm 5.5s ease-in-out infinite; }
@keyframes hsArm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }

.hs-mic { transform-box: fill-box; transform-origin: center; animation: micBlink 1.6s ease-in-out infinite; }
@keyframes micBlink { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---- Floating stage tags around the scene ---- */
.scene-tag {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.96); color: var(--ink); font-weight: 700; font-size: 0.86rem;
  padding: 8px 15px; border-radius: var(--r-pill); box-shadow: 0 12px 28px rgba(4, 30, 50, 0.28);
  backdrop-filter: blur(4px); white-space: nowrap; animation: tagFloat 5.5s ease-in-out infinite; z-index: 2;
}
.scene-tag i { width: 10px; height: 10px; border-radius: 50%; animation: dotPulse 2.4s ease-in-out infinite; }
.tag-analyze { inset-block-start: 4%; inset-inline-end: 0%; animation-delay: 0s; }
.tag-analyze i { background: var(--c-analyze); --ring: rgba(6, 182, 212, 0.5); }
.tag-comm { inset-block-start: 42%; inset-inline-start: -3%; animation-delay: -1.8s; }
.tag-comm i { background: var(--c-communicate); --ring: rgba(124, 92, 255, 0.5); animation-delay: -0.8s; }
.tag-solve { inset-block-end: 13%; inset-inline-end: 9%; animation-delay: -3.6s; }
.tag-solve i { background: var(--c-solve); --ring: rgba(16, 185, 129, 0.5); animation-delay: -1.6s; }
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70%, 100% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } }

/* ---- Three-act journey band ---- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 84px; }
.j-analyze { --stage: linear-gradient(90deg, #06b6d4, #22d3ee); --stage-solid: #06b6d4; --stage-tint: rgba(6, 182, 212, 0.12); }
.j-comm { --stage: linear-gradient(90deg, #7c5cff, #a855f7); --stage-solid: #7c5cff; --stage-tint: rgba(124, 92, 255, 0.12); }
.j-solve { --stage: linear-gradient(90deg, #10b981, #34d399); --stage-solid: #10b981; --stage-tint: rgba(16, 185, 129, 0.12); }

.journey-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.journey-step::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: var(--stage); }
.journey-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.journey-visual { border-radius: 16px; background: var(--stage-tint); padding: 16px 18px; margin-bottom: 20px; }
.journey-visual .jscene { width: 100%; height: auto; display: block; overflow: visible; }
.journey-num { font-size: 0.82rem; font-weight: 800; color: var(--stage-solid); letter-spacing: 0.12em; }
.journey-tag {
  display: inline-block; margin-inline-start: 10px; font-weight: 700; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--stage-solid);
  padding: 3px 12px; border-radius: var(--r-pill);
}
html[lang="ar"] .journey-num, html[lang="ar"] .journey-tag { letter-spacing: normal; }
.journey-body h3 { font-size: 1.2rem; margin-block: 13px 8px; }
.journey-body p { font-size: 0.96rem; color: var(--body); }

/* ---- Journey mini-scene animations ---- */
.j-pulse { stroke-dasharray: 26 320; animation: jPulse 2.4s linear infinite; }
@keyframes jPulse { to { stroke-dashoffset: -346; } }
.j-mag { animation: jMag 3.6s ease-in-out infinite; }
@keyframes jMag { 0% { transform: translateX(0); } 50% { transform: translateX(86px); } 100% { transform: translateX(0); } }
.j-bubble { transform-box: fill-box; transform-origin: center; animation: jBubble 3.4s ease-in-out infinite; }
.jb2 { animation-delay: -1.7s; }
@keyframes jBubble {
  0% { opacity: 0; transform: scale(0.8); }
  18% { opacity: 1; transform: scale(1.05); }
  32%, 86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(0.95); }
}
.j-steady { stroke-dasharray: 200; stroke-dashoffset: 200; animation: jDraw2 3.4s ease-in-out infinite; }
@keyframes jDraw2 { 0% { stroke-dashoffset: 200; } 40%, 100% { stroke-dashoffset: 0; } }
.j-check { transform-box: fill-box; transform-origin: center; animation: jCheck 3.4s ease-in-out infinite; }
@keyframes jCheck {
  0%, 30% { opacity: 0; transform: scale(0.3); }
  45% { opacity: 1; transform: scale(1.2); }
  58% { transform: scale(1); }
  90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}
.j-check-path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: jDraw 3.4s ease-in-out infinite; }
@keyframes jDraw { 0%, 38% { stroke-dashoffset: 32; } 54% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.j-spark { transform-box: fill-box; transform-origin: center; animation: jSpark 3.4s ease-in-out infinite; }
@keyframes jSpark {
  0%, 55% { opacity: 0; transform: scale(0) rotate(0deg); }
  70% { opacity: 1; transform: scale(1.2) rotate(25deg); }
  85%, 100% { opacity: 0.9; transform: scale(1) rotate(0deg); }
}

/* ---- Responsive for centerpiece ---- */
@media (max-width: 980px) {
  .hero { min-height: auto; padding-block: 110px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-content { max-width: 640px; }
  .hero-visual { order: 2; width: 100%; max-width: 440px; margin-inline: auto; }
  .journey { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .scene-tag { font-size: 0.76rem; padding: 6px 11px; }
  .tag-comm { inset-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
}

/* =====================================================================
   16. FAQ — details/summary accordion
   ===================================================================== */
.faq { background: var(--bg); }
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }

.faq-item {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--azure); box-shadow: var(--shadow); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 1.06rem;
  color: var(--ink); list-style: none; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--azure); }

.faq-chevron {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.25s ease;
}
.faq-chevron::after {
  content: ""; display: block; width: 7px; height: 7px;
  border-inline-end: 2px solid var(--azure); border-block-end: 2px solid var(--azure);
  transform: rotate(45deg) translateY(-2px);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: rgba(59, 130, 246, 0.1); }

.faq-a {
  padding: 0 24px 20px; color: var(--body); font-size: 0.98rem; line-height: 1.75;
  animation: faqOpen 0.25s ease;
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .faq-q { font-size: 0.97rem; padding: 16px 18px; }
  .faq-a { padding: 0 18px 16px; }
}

/* =====================================================================
   17. PRICING — three-tier cards
   ===================================================================== */
.pricing { background: linear-gradient(180deg, var(--bg-tint), var(--bg-soft)); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  align-items: start;
}

.price-card {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 28px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.price-featured {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-lg); transform: scale(1.04);
}
.price-featured:hover { transform: scale(1.04) translateY(-6px); }

.price-badge {
  position: absolute; inset-block-start: -14px; inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta); color: #fff; font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 18px; border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); white-space: nowrap;
}
html[lang="ar"] .price-badge { letter-spacing: normal; }

.price-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.price-featured .price-name { color: #fff; }

.price-amount {
  font-size: 1.5rem; font-weight: 800; color: var(--azure);
  margin-bottom: 6px;
}
.price-featured .price-amount { color: #a5f3fc; }

.price-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.price-featured .price-desc { color: rgba(255,255,255,0.75); }

.price-features {
  list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; color: var(--body);
}
.price-featured .price-features li { color: rgba(255,255,255,0.9); }

.price-check {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.15); color: var(--emerald); margin-block-start: 1px;
}
.price-check svg { width: 13px; height: 13px; }
.price-featured .price-check { background: rgba(255,255,255,0.2); color: #fff; }

.btn-ghost-dark {
  color: var(--navy); background: var(--bg-soft);
  border: 1.5px solid var(--line); font-weight: 700;
  transition: all 0.25s ease;
}
.btn-ghost-dark:hover { background: var(--line); transform: translateY(-2px); }

.price-cta { margin-block-start: auto; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-6px); }
}
@media (max-width: 600px) {
  .price-card { padding: 28px 20px 22px; }
}

/* =====================================================================
   18. REVIEW POLISH — a11y focus, skip link, guarantee line, mobile CTA,
   honest form status, privacy note, back-to-top, off-screen anim gating
   ===================================================================== */

/* Visible keyboard focus (brand azure) — only appears for keyboard users */
:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 6px; }
/* Inputs already show a focus ring via box-shadow — keep the outline tight */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; }

/* Skip-to-content link (off-screen until keyboard-focused) */
.skip-link {
  position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 200;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 10px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow);
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Hero guarantee line (on the dark hero) */
.hero-guarantee {
  display: inline-flex; align-items: center; gap: 9px; margin-block-start: 18px;
  font-weight: 600; font-size: 0.95rem; color: #d6f4ff;
}
.hero-guarantee .hg-icon { display: inline-flex; flex: none; width: 22px; height: 22px; color: #34d399; }
.hero-guarantee .hg-icon svg { width: 22px; height: 22px; }

/* Mobile CTA inside the dropdown menu (hidden on desktop) */
.nav-cta-mobile { display: none; }

/* Honest "info" form status used by the mailto fallback */
.form-status.info {
  background: rgba(59, 130, 246, 0.1); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Privacy reassurance under the form */
.form-privacy { font-size: 0.82rem; color: var(--muted); text-align: center; margin-block-start: -2px; }

/* Floating back-to-top button */
.to-top {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-cta); color: #fff; box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124, 92, 255, 0.45); }

/* Pause looping animations while their section is scrolled off-screen */
.anim-off, .anim-off * { animation-play-state: paused !important; }

@media (max-width: 980px) {
  /* Show the CTA as a full-width gradient button at the bottom of the mobile menu */
  .navbar .nav-links a.nav-cta-mobile {
    display: inline-flex; justify-content: center; color: #fff;
    border-block-end: none; margin: 14px 0 4px;
  }
}

/* =====================================================================
   19. DARK MODE — token overrides, component styles, theme toggle
   ===================================================================== */

/* Light-mode logo depth on scrolled navbar */
.navbar.scrolled .brand-mark { filter: drop-shadow(0 1px 3px rgba(0, 72, 106, 0.15)); }

/* --- Dark-mode design tokens --- */
[data-theme="dark"] {
  --ink: #e2ecf4;
  --body: #9db3c8;
  --muted: #8099af;
  --line: #243b56;
  --bg: #0c1929;
  --bg-soft: #132337;
  --bg-tint: #1a2e45;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  --grad-brand: linear-gradient(135deg, #0a5c84 0%, #3874a6 55%, #4a8fbd 100%);
}

/* --- Logo brightness on dark backgrounds --- */
[data-theme="dark"] .brand-mark { filter: brightness(1.5) saturate(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
[data-theme="dark"] .navbar:not(.scrolled) .brand-mark { filter: brightness(1.3) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); }
[data-theme="dark"] .visual-logo { filter: brightness(1.4) saturate(1.15); }

/* --- Navbar (scrolled state) --- */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(12, 25, 41, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .navbar.scrolled .brand-text { color: #fff; }
[data-theme="dark"] .navbar.scrolled .nav-links a:not(.nav-cta-mobile) { color: var(--body); }
[data-theme="dark"] .navbar.scrolled .nav-links a.active { color: var(--cyan); }
[data-theme="dark"] .navbar.scrolled .menu-toggle span { background: var(--ink); }
[data-theme="dark"] .navbar.scrolled .lang-btn { color: var(--body); }

/* --- Cards (universal dark surface) --- */
[data-theme="dark"] .service-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .problem-card,
[data-theme="dark"] .journey-step,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .price-card:not(.price-featured),
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .testimonial-card {
  background: var(--bg-tint);
  border-color: var(--line);
}

/* --- Section backgrounds --- */
[data-theme="dark"] .services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
[data-theme="dark"] .footer { background: linear-gradient(160deg, #040f1a, #0c1929); }

/* --- Floating scene tags --- */
[data-theme="dark"] .scene-tag {
  background: rgba(26, 46, 69, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* --- Buttons --- */
[data-theme="dark"] .btn-light { color: #fff; background: var(--bg-tint); box-shadow: var(--shadow); }
[data-theme="dark"] .btn-ghost-dark { color: var(--ink); background: var(--bg-soft); border-color: var(--line); }
[data-theme="dark"] .btn-ghost-dark:hover { background: var(--bg-tint); }

/* --- Forms --- */
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus { background: var(--bg-soft); }
[data-theme="dark"] .field select option { background: var(--bg-tint); color: var(--ink); }

/* --- FAQ chevron --- */
[data-theme="dark"] .faq-chevron { background: var(--bg-soft); }
[data-theme="dark"] .faq-item[open] .faq-chevron { background: rgba(59, 130, 246, 0.2); }

/* --- Form status --- */
[data-theme="dark"] .form-status.success { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .form-status.error { background: rgba(244, 63, 94, 0.15); color: #fb7185; border-color: rgba(244, 63, 94, 0.35); }
[data-theme="dark"] .form-status.info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.35); }

/* --- Problem icon tints (boosted for dark cards) --- */
[data-theme="dark"] .p-1 { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
[data-theme="dark"] .p-2 { background: rgba(244, 63, 94, 0.18); color: #fb7185; }
[data-theme="dark"] .p-3 { background: rgba(124, 92, 255, 0.18); color: #a78bfa; }
[data-theme="dark"] .p-4 { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
[data-theme="dark"] .p-5 { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
[data-theme="dark"] .p-6 { background: rgba(16, 185, 129, 0.18); color: #34d399; }

/* --- Journey stage tints (boosted) --- */
[data-theme="dark"] .j-analyze { --stage-tint: rgba(6, 182, 212, 0.18); }
[data-theme="dark"] .j-comm { --stage-tint: rgba(124, 92, 255, 0.18); }
[data-theme="dark"] .j-solve { --stage-tint: rgba(16, 185, 129, 0.18); }

/* --- Testimonial name (ready for when section is enabled) --- */
[data-theme="dark"] .t-name { color: var(--ink); }

/* --- Theme toggle button --- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.navbar.scrolled .theme-toggle { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.22); }
.navbar.scrolled .theme-toggle:hover { background: var(--line); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
[data-theme="dark"] .navbar.scrolled .theme-toggle { color: var(--body); }
[data-theme="dark"] .navbar.scrolled .theme-toggle:hover { color: #fff; }

/* --- Mobile dark overrides --- */
@media (max-width: 980px) {
  [data-theme="dark"] .nav-links { background: var(--bg); }
  [data-theme="dark"] .navbar.menu-open { background: rgba(12, 25, 41, 0.97); }
  [data-theme="dark"] .navbar.menu-open .brand-text { color: #fff; }
}
