@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;

  /* ---- brand channels (rgb triplets so alpha tints follow the theme) ---- */
  --primary-rgb: 99, 230, 255;
  --secondary-rgb: 139, 92, 246;
  --accent-rgb: 0, 245, 195;
  --glow-rgb: 67, 207, 255;

  --primary: rgb(var(--primary-rgb));
  --secondary: rgb(var(--secondary-rgb));
  --accent: rgb(var(--accent-rgb));
  --primary-strong: #3bb8ff;
  --danger: #ff5d8f;
  --white: #ffffff;

  /* ---- brand gradients ---- */
  --grad-brand: linear-gradient(135deg, #63e6ff, #00f5c3);
  --grad-text: linear-gradient(135deg, #63e6ff, #00f5c3);
  --on-accent: #04101c;

  /* ---- canvas ---- */
  --bg: #050816;
  --bg-soft: #0b1126;
  --bg-elevated: rgba(13, 19, 43, 0.72);
  --body-base: linear-gradient(180deg, #030611 0%, #07101f 44%, #040813 100%);

  /* ---- type ---- */
  --text-primary: #f8fbff;
  --text-secondary: #9da8c7;
  --text-muted: #7380a5;

  /* ---- surfaces, ascending elevation ---- */
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.05);
  --surface-4: rgba(255, 255, 255, 0.06);
  --surface-5: rgba(255, 255, 255, 0.08);
  --surface-6: rgba(255, 255, 255, 0.09);
  --dot-muted: rgba(255, 255, 255, 0.18);

  /* ---- borders ---- */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.12);
  --card-bg: var(--surface-5);
  --card-border: var(--border-medium);

  /* ---- chrome ---- */
  --nav-bg: rgba(7, 11, 28, 0.62);
  --nav-bg-scrolled: rgba(5, 10, 24, 0.88);
  --nav-panel-bg: rgba(7, 11, 28, 0.96);
  --footer-bg: rgba(7, 11, 28, 0.5);

  /* ---- whatsapp ---- */
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;

  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1220px;
  --nav-height: 88px;
  --transition: 0.35s ease;
  --blur: blur(22px);
}

/* ============================================================
   LIGHT THEME
   Same brand, re-grounded: the vivid cyan/mint gradient stays on
   solid fills, while text-weight brand colors darken enough to
   clear AA contrast on a light canvas.
============================================================ */
[data-theme="light"] {
  color-scheme: light;

  --primary-rgb: 6, 122, 165;
  --secondary-rgb: 104, 56, 210;
  --accent-rgb: 6, 145, 113;
  --glow-rgb: 40, 135, 185;

  --primary-strong: #0b6f96;

  --grad-brand: linear-gradient(135deg, #2ecdf5, #00d9a8);
  --grad-text: linear-gradient(135deg, #0284a8, #08916f);
  --on-accent: #04141c;

  --bg: #eef3fb;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --body-base: linear-gradient(180deg, #f4f8fe 0%, #e9f0fa 45%, #f5f9ff 100%);

  --text-primary: #0b1730;
  --text-secondary: #4c5a78;
  --text-muted: #66748f;

  --surface-1: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.62);
  --surface-3: rgba(255, 255, 255, 0.7);
  --surface-4: rgba(255, 255, 255, 0.78);
  --surface-5: rgba(255, 255, 255, 0.86);
  --surface-6: rgba(255, 255, 255, 0.92);
  --dot-muted: rgba(11, 23, 48, 0.18);

  --border-soft: rgba(11, 23, 48, 0.1);
  --border-faint: rgba(11, 23, 48, 0.12);
  --border-medium: rgba(11, 23, 48, 0.14);

  --nav-bg: rgba(255, 255, 255, 0.74);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.93);
  --nav-panel-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: rgba(255, 255, 255, 0.6);

  --shadow-lg: 0 25px 80px rgba(15, 35, 75, 0.12);
  --shadow-md: 0 18px 45px rgba(15, 35, 75, 0.08);
}

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

*::selection {
  background: rgba(var(--primary-rgb), 0.22);
  color: var(--text-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(var(--glow-rgb), 0.22), transparent 25%),
    radial-gradient(circle at top right, rgba(var(--secondary-rgb), 0.2), transparent 22%),
    radial-gradient(circle at bottom center, rgba(var(--accent-rgb), 0.12), transparent 20%),
    var(--body-base);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

ul {
  list-style: none;
}

main {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PAGE SHELL
============================================================ */
.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  top: 80px;
  left: -120px;
  background: rgba(var(--glow-rgb), 0.18);
}

.page-shell::after {
  right: -120px;
  bottom: 60px;
  background: rgba(var(--secondary-rgb), 0.18);
}

/* ============================================================
   SECTION UTILITIES
============================================================ */
.section {
  position: relative;
  padding: 40px 0;
}

.section__container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-heading p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   GLASS COMPONENTS
============================================================ */
.glass-card,
.glass-strip {
  background: linear-gradient(180deg, var(--surface-6), var(--surface-2));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.glass-card {
  border-radius: var(--radius-xl);
}

.glass-strip {
  border-radius: 999px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--on-accent);
  background: var(--grad-brand);
  box-shadow: 0 18px 38px rgba(var(--glow-rgb), 0.25);
}

.btn--primary:hover {
  box-shadow: 0 24px 48px rgba(var(--glow-rgb), 0.34);
}

.btn--ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  background: var(--surface-1);
}

.btn--ghost:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary);
}

/* ============================================================
   ICON LINKS
============================================================ */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  background: var(--surface-4);
  border: 1px solid var(--border-soft);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.icon-link:hover {
  transform: translateY(-3px);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.12);
}

/* ============================================================
   NAVBAR
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 16px;
}

.navbar {
  position: relative;
  width: min(100% - 24px, var(--max-width));
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 22px;
  background: var(--nav-bg);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    padding var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.navbar.is-scrolled {
  padding-block: 14px;
  box-shadow: var(--shadow-md);
  background: var(--nav-bg-scrolled);
  border-color: var(--border-medium);
}

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

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--on-accent);
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--grad-brand);
  box-shadow: 0 14px 36px rgba(var(--glow-rgb), 0.25);
}

.brand__text {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  font-size: 1.35rem;
  border-radius: 14px;
  background: var(--surface-4);
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: background var(--transition), border-color var(--transition);
}

.nav-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

/* ============================================================
   HERO
============================================================ */
.hero {
  padding-top: 34px;
}

.hero__container {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 44px;
}

.hero__content h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero__text {
  max-width: 640px;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 22px 18px;
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ============================================================
   HERO VISUAL
============================================================ */
.hero__visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
}

.hero-orb--one {
  top: 80px;
  left: 40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.42), transparent 70%);
  animation: floatY 6s ease-in-out infinite;
}

.hero-orb--two {
  right: 0;
  bottom: 80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.36), transparent 72%);
  animation: floatY 7s ease-in-out infinite reverse;
}

.dashboard-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 22px;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(var(--secondary-rgb), 0.14), transparent 28%);
  pointer-events: none;
}

.dashboard-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(var(--primary-rgb), 0.12);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.dashboard-card__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-muted);
}

.dashboard-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.dashboard-panel {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
}

.dashboard-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.dashboard-panel p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.dashboard-panel--main {
  grid-row: span 2;
  min-height: 280px;
}

.dashboard-panel--accent {
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.14)),
    var(--surface-3);
}

.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 120px;
  margin-top: 28px;
}

.dashboard-chart span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb), 0.22));
}

.dashboard-chart span:nth-child(1) { height: 48%; }
.dashboard-chart span:nth-child(2) { height: 72%; }
.dashboard-chart span:nth-child(3) { height: 58%; }
.dashboard-chart span:nth-child(4) { height: 85%; }
.dashboard-chart span:nth-child(5) { height: 100%; }

/* ============================================================
   TRUSTED BAR
============================================================ */
.trusted {
  padding-top: 8px;
}

.trusted__row {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--text-secondary);
}

.trusted__row > span {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.trusted__items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trusted__items span {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-3);
  font-size: 0.9rem;
}

/* ============================================================
   Z-INDEX HELPERS
============================================================ */
.about__container,
.services .section__container,
.portfolio .section__container,
.reviews .section__container,
.cta .section__container,
.footer__top,
.contact-page .section__container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ABOUT
============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

.about__story {
  padding: 32px;
}

.about__story p {
  color: var(--text-secondary);
  line-height: 1.95;
}

.about__story p + p {
  margin-top: 18px;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ============================================================
   SHARED CARD TRANSITIONS
============================================================ */
.highlight-card,
.service-card,
.project-card,
.review-card,
.contact-card,
.contact-form,
.footer__panel,
.cta__card,
.process-card {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.highlight-card:hover,
.service-card:hover,
.project-card:hover,
.review-card:hover,
.contact-card:hover,
.contact-form:hover,
.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.22);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   HIGHLIGHT CARDS
============================================================ */
.highlight-card {
  min-height: 100%;
  padding: 24px;
}

.highlight-card:nth-child(3) {
  grid-column: 1 / -1;
}

.highlight-card i,
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 16px;
  font-size: 1.4rem;
  color: #08111c;
  background: var(--grad-brand);
  box-shadow: 0 18px 30px rgba(var(--glow-rgb), 0.18);
}

.highlight-card h3,
.service-card h3,
.project-card__content h3,
.review-card h3,
.contact-card h3,
.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.highlight-card p,
.service-card p,
.project-card__content p,
.review-card p,
.contact-card p,
.process-card p,
.footer__panel p,
.footer__bottom p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   GRIDS
============================================================ */
.services__grid,
.portfolio__grid,
.reviews__grid,
.process__grid {
  display: grid;
  gap: 20px;
}

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

/* ============================================================
   SERVICE CARDS
============================================================ */
.service-card {
  padding: 28px;
  min-height: 100%;
}

/* ============================================================
   AI TOOLS
============================================================ */
.ai-tools__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  padding: 36px;
  overflow: hidden;
}

.ai-tools__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(var(--secondary-rgb), 0.18), transparent 30%);
  pointer-events: none;
}

.ai-tools__copy,
.ai-tools__visual {
  position: relative;
  z-index: 1;
}

.ai-tools__copy h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.ai-tools__copy p {
  max-width: 640px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.ai-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ai-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--surface-4);
  border: 1px solid var(--border-faint);
  transition: background var(--transition), border-color var(--transition);
}

.ai-feature-pill:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.ai-feature-pill i {
  color: var(--primary);
  font-size: 1.1rem;
}

.ai-tools__visual {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.ai-core {
  position: relative;
  width: 290px;
  height: 290px;
  display: grid;
  place-items: center;
}

.ai-core__ring {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.ai-core__ring--outer {
  width: 290px;
  height: 290px;
  animation: spin 13s linear infinite;
}

.ai-core__ring--middle {
  width: 225px;
  height: 225px;
  border-color: rgba(var(--secondary-rgb), 0.28);
  animation: spinReverse 11s linear infinite;
}

.ai-core__ring--inner {
  width: 160px;
  height: 160px;
  border-color: rgba(var(--accent-rgb), 0.3);
  animation: pulseRing 2.8s ease-in-out infinite;
}

.ai-core__center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  color: var(--on-accent);
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--grad-brand);
  box-shadow: 0 20px 40px rgba(var(--glow-rgb), 0.24);
}

.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--surface-5);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.floating-chip--one {
  top: 44px;
  left: 30px;
  animation: floatY 5s ease-in-out infinite;
}

.floating-chip--two {
  top: 76px;
  right: 24px;
  animation: floatY 6s ease-in-out infinite reverse;
}

.floating-chip--three {
  bottom: 48px;
  left: 52px;
  animation: floatY 7s ease-in-out infinite;
}

/* ============================================================
   PRICING
============================================================ */
.pricing-tabs {
  position: relative;
}

.pricing-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.pricing-tab-nav label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.pricing-tab-nav label i {
  font-size: 1.05rem;
}

.pricing-tab-nav label:hover {
  color: var(--text-primary);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.pricing-panel {
  display: none;
}

#tab-website:checked ~ .pricing-tab-nav label[for="tab-website"],
#tab-mobile:checked ~ .pricing-tab-nav label[for="tab-mobile"],
#tab-pos:checked ~ .pricing-tab-nav label[for="tab-pos"],
#tab-crm:checked ~ .pricing-tab-nav label[for="tab-crm"],
#tab-erp:checked ~ .pricing-tab-nav label[for="tab-erp"],
#tab-automation:checked ~ .pricing-tab-nav label[for="tab-automation"],
#tab-bundle:checked ~ .pricing-tab-nav label[for="tab-bundle"] {
  color: var(--on-accent);
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(var(--glow-rgb), 0.25);
}

#tab-website:checked ~ #panel-website,
#tab-mobile:checked ~ #panel-mobile,
#tab-pos:checked ~ #panel-pos,
#tab-crm:checked ~ #panel-crm,
#tab-erp:checked ~ #panel-erp,
#tab-automation:checked ~ #panel-automation,
#tab-bundle:checked ~ #panel-bundle {
  display: block;
  animation: fadeInPanel 0.4s ease;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.price-card__price {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.price-card__features li i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  font-size: 1.05rem;
}

.price-card .btn {
  width: 100%;
}

.price-card--popular {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 26px 60px rgba(var(--glow-rgb), 0.18);
  transform: translateY(-8px);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(var(--glow-rgb), 0.3);
}

.pricing-note {
  margin-top: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Bundle card */
.bundle-card {
  padding: 40px;
}

.bundle-card__top {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.bundle-card__top h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 12px;
}

.bundle-card__top p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 14px;
}

.bundle-card__top .price-card__price {
  margin-bottom: 0;
  display: inline-block;
}

.bundle-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.bundle-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
}

.bundle-item i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.bundle-item h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.bundle-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bundle-card > .btn {
  display: flex;
  max-width: 340px;
  margin: 0 auto;
}

/* Support strip */
.support-strip {
  margin-top: 56px;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.support-strip__heading {
  max-width: 260px;
}

.support-strip__heading .eyebrow {
  margin-bottom: 10px;
}

.support-strip__heading p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.support-strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.support-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.support-item strong {
  font-size: 0.94rem;
}

.support-item span {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   PORTFOLIO
============================================================ */
.portfolio__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 24, 0.18));
  pointer-events: none;
}

.project-card__icon {
  position: relative;
  z-index: 1;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.45s ease;
}

.project-card:hover .project-card__icon {
  transform: scale(1.08);
}

.project-card__image--grad1 { background: linear-gradient(135deg, #5b8cff, #7c3aed); }
.project-card__image--grad2 { background: linear-gradient(135deg, #00d4ff, #0ea5e9); }
.project-card__image--grad3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.project-card__image--grad4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.project-card__image--grad5 { background: linear-gradient(135deg, #fb7185, #8b5cf6); }
.project-card__image--grad6 { background: linear-gradient(135deg, #14b8a6, #6366f1); }

.project-card__content {
  padding: 24px;
}

.project-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
  transition: color var(--transition), gap var(--transition);
}

.project-card__link i {
  font-size: 1.1rem;
  color: var(--primary);
}

.project-card__link:hover {
  color: var(--primary);
  gap: 10px;
}

/* ============================================================
   REVIEWS
============================================================ */
.reviews__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  padding: 28px;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #ffd66b;
  font-size: 1rem;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.review-card__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--grad-brand);
}

.review-card__meta span {
  display: block;
}

.review-card__meta strong {
  font-size: 1rem;
}

.review-card__meta small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   CTA
============================================================ */
.cta__card {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta__content h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.cta__content p {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  margin-top: 40px;
  padding: 0 0 28px;
}

.footer__top {
  width: min(100% - 24px, var(--max-width));
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, var(--surface-5), var(--surface-2)),
    var(--footer-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer__panel {
  padding: 10px;
}

.footer__brand {
  margin-bottom: 16px;
}

.footer__brand .brand__text {
  font-size: 1.2rem;
}

.footer__panel h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer__panel ul {
  display: grid;
  gap: 12px;
}

.footer__panel ul a,
.footer__panel ul span {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.footer__panel ul a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer__bottom {
  width: min(100% - 24px, var(--max-width));
  margin: 18px auto 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__bottom p,
.footer__bottom a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__bottom a:hover {
  color: var(--primary);
}

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--on-accent);
  font-size: 1.2rem;
  background: var(--grad-brand);
  box-shadow: 0 18px 32px rgba(var(--glow-rgb), 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  cursor: pointer;
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 22px 40px rgba(var(--glow-rgb), 0.38);
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-page {
  padding-top: 28px;
}

.contact-hero {
  padding-top: 34px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 30px;
}

.contact-card__list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-card__item i {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--on-accent);
  background: var(--grad-brand);
}

.contact-card__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-card__item span {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-form__group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  background: var(--surface-4);
}

.contact-form textarea {
  min-height: 168px;
  resize: vertical;
}

.form-error {
  min-height: 18px;
  color: #ff8cad;
  font-size: 0.84rem;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 24px;
}

/* ============================================================
   PROCESS SECTION
============================================================ */
.process__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 26px;
}

.process-card__number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--on-accent);
  font-weight: 800;
  background: var(--grad-brand);
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

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

@keyframes pulseRing {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.7;
  }
}

/* ============================================================
   RESPONSIVE — 1100px
============================================================ */
@media (max-width: 1100px) {
  .hero__container,
  .about__grid,
  .ai-tools__panel,
  .contact-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .section-heading {
    max-width: none;
  }

  .hero__content h1 {
    max-width: none;
  }

  .hero__visual {
    min-height: auto;
  }

  .services__grid,
  .portfolio__grid,
  .reviews__grid,
  .process__grid,
  .pricing-grid,
  .bundle-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card--popular {
    transform: none;
  }

  .support-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — 900px
============================================================ */
@media (max-width: 1080px) {
  .navbar {
    padding: 16px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(100%, calc(var(--max-width) - 24px));
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    background: var(--nav-panel-bg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
  }

  .nav-links a::after {
    bottom: -4px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
  }

  /* there is room for the social links again once the drawer is open */
  .nav-actions .icon-link {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 10px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero__container {
    min-height: auto;
    gap: 28px;
  }

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

  .trusted__row {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }
}

/* ============================================================
   RESPONSIVE — 700px
============================================================ */
@media (max-width: 700px) {
  .section {
    padding: 30px 0;
  }

  .section__container {
    width: min(100% - 20px, var(--max-width));
  }

  .hero__content h1 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .hero__text,
  .section-heading p,
  .about__story p,
  .service-card p,
  .project-card__content p,
  .review-card p,
  .cta__content p,
  .contact-card p,
  .contact-card__item span,
  .price-card__features li,
  .bundle-card__top p,
  .bundle-item p,
  .process-card p {
    font-size: 0.96rem;
  }

  .dashboard-grid,
  .services__grid,
  .portfolio__grid,
  .reviews__grid,
  .process__grid,
  .about__highlights,
  .pricing-grid,
  .bundle-card__grid,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .pricing-tab-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-tab-nav label {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .price-card,
  .bundle-card {
    padding: 24px 22px;
  }

  .price-card__price {
    font-size: 1.6rem;
  }

  .support-strip {
    padding: 22px 0;
  }

  .dashboard-panel--main {
    min-height: auto;
    grid-row: auto;
  }

  .ai-tools__panel,
  .dashboard-card,
  .about__story,
  .service-card,
  .review-card,
  .project-card__content,
  .contact-card,
  .contact-form,
  .cta__card {
    padding: 24px;
  }

  .ai-core {
    width: 240px;
    height: 240px;
  }

  .ai-core__ring--outer {
    width: 240px;
    height: 240px;
  }

  .ai-core__ring--middle {
    width: 185px;
    height: 185px;
  }

  .ai-core__ring--inner {
    width: 130px;
    height: 130px;
  }

  .floating-chip--one {
    top: 18px;
    left: 4px;
  }

  .floating-chip--two {
    top: 42px;
    right: 4px;
  }

  .floating-chip--three {
    left: 18px;
    bottom: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
/* ============================================================
   ANCHOR OFFSET (sticky header)
============================================================ */
section[id] {
  scroll-margin-top: 104px;
}

/* ============================================================
   NAV UTILITIES — theme + language toggles
============================================================ */
.nav-utils {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.util-btn i {
  font-size: 1.1rem;
  line-height: 1;
}

.util-btn:hover {
  color: var(--text-primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.util-btn:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.6);
  outline-offset: 2px;
}

/* only the icon matching the active theme is shown */
.util-btn .icon-dark {
  display: none;
}

[data-theme="light"] .util-btn .icon-dark {
  display: inline-block;
}

[data-theme="light"] .util-btn .icon-light {
  display: none;
}

/* ============================================================
   FLOATING WHATSAPP CTA
============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 960;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
}

.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.9rem;
  background: linear-gradient(145deg, var(--wa-green), var(--wa-green-dark));
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.38);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  opacity: 0.5;
  z-index: -1;
  animation: waPulse 2.6s ease-out infinite;
}

.wa-float__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 22px 44px rgba(37, 211, 102, 0.5);
}

.wa-float__btn:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.wa-float__label {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--nav-bg-scrolled);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.wa-float:hover .wa-float__label,
.wa-float__btn:focus-visible + .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* back-to-top stacks above the WhatsApp button */
.back-to-top {
  bottom: 100px;
}

/* ============================================================
   CREDENTIALS / TRADE LICENCE
============================================================ */
.credentials__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.licence-card,
.address-card {
  padding: 32px;
}

.licence-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.licence-seal {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.7rem;
  color: var(--on-accent);
  background: var(--grad-brand);
  box-shadow: 0 14px 32px rgba(var(--glow-rgb), 0.28);
}

.licence-card__head h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.licence-card__head p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.licence-rows {
  display: grid;
  margin-top: 6px;
}

.licence-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
}

.licence-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.licence-row dt {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.licence-row dd {
  font-size: 0.98rem;
  font-weight: 700;
  text-align: end;
  line-height: 1.55;
}

.licence-row dd.is-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.address-card__map {
  display: block;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  transition: border-color var(--transition), background var(--transition);
}

.address-card__map:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.08);
}

.address-card__map strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.95rem;
}

.address-card__map span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.trust-badge i {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--primary);
}

.trust-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ============================================================
   CONSULTATION BOOKING
============================================================ */
.booking__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.booking-panel {
  padding: 30px;
}

.booking-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.booking-panel__title i {
  color: var(--primary);
  font-size: 1.25rem;
}

.booking-panel__hint {
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- calendar --- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cal-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cal-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    opacity var(--transition);
}

.cal-nav:hover:not(:disabled) {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-weekdays {
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.cal-day:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: rgba(var(--primary-rgb), 0.45);
  transform: translateY(-2px);
}

.cal-day:disabled {
  opacity: 0.26;
  cursor: not-allowed;
  background: transparent;
}

.cal-day--pad {
  background: transparent;
  pointer-events: none;
}

.cal-day--today {
  border-color: rgba(var(--primary-rgb), 0.5);
  color: var(--primary);
}

.cal-day.is-selected {
  color: var(--on-accent);
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(var(--glow-rgb), 0.3);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cal-legend i {
  font-size: 0.95rem;
  color: var(--primary);
}

/* --- time slots --- */
.slots-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.slot {
  min-height: 46px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.slot:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: rgba(var(--primary-rgb), 0.45);
  transform: translateY(-2px);
}

.slot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slot.is-selected {
  color: var(--on-accent);
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(var(--glow-rgb), 0.3);
}

.slots-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- shared form fields --- */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 1px), calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  background: var(--surface-4);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.82rem;
}

.booking-summary {
  display: grid;
  gap: 12px;
  margin: 4px 0 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.booking-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.94rem;
}

.booking-summary__row > span {
  color: var(--text-secondary);
}

.booking-summary__row > strong {
  text-align: end;
  font-weight: 700;
}

.booking-summary__row > strong.is-empty {
  color: var(--text-muted);
  font-weight: 500;
}

.booking-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.booking-note i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
  font-size: 1rem;
}

.btn--whatsapp {
  width: 100%;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

.btn--whatsapp:hover {
  box-shadow: 0 22px 44px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp i {
  font-size: 1.25rem;
}

/* ============================================================
   RTL / ARABIC
============================================================ */
[dir="rtl"] body,
[dir="rtl"] .btn,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: "Cairo", "Inter", sans-serif;
}

/* Arabic script needs its tracking back */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .brand__text,
[dir="rtl"] .metric strong,
[dir="rtl"] .price-card__price,
[dir="rtl"] .dashboard-panel strong {
  letter-spacing: 0;
}

[dir="rtl"] .hero__content h1 {
  max-width: 17ch;
  line-height: 1.22;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .cal-weekdays span,
[dir="rtl"] .licence-row dt,
[dir="rtl"] .dashboard-panel span,
[dir="rtl"] .price-card__badge {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
  transform-origin: right;
}

[dir="rtl"] .footer__panel ul a:hover {
  transform: translateX(-2px);
}

/* The WhatsApp CTA stays bottom-right in both directions (it is an ad landing
   convention, not a reading-order element), so the row order flips back. */
[dir="rtl"] .wa-float {
  flex-direction: row;
}

[dir="rtl"] .wa-float__label {
  transform: translateX(-10px);
}

[dir="rtl"] .wa-float:hover .wa-float__label,
[dir="rtl"] .wa-float__btn:focus-visible + .wa-float__label {
  transform: translateX(0);
}

[dir="rtl"] .field select {
  background-position: 21px calc(50% + 1px), 16px calc(50% + 1px);
}

[dir="rtl"] .licence-row dd,
[dir="rtl"] .booking-summary__row > strong {
  text-align: start;
}

/* phone numbers, licence numbers and times always read LTR */
.force-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ============================================================
   LIGHT-THEME CORRECTIONS
   A handful of surfaces were authored for a dark ground only.
============================================================ */
[data-theme="light"] .glass-card,
[data-theme="light"] .glass-strip {
  border-color: var(--border-medium);
}

[data-theme="light"] .btn--ghost {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .icon-link,
[data-theme="light"] .nav-toggle {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border-medium);
}

[data-theme="light"] .dashboard-chart span {
  background: linear-gradient(180deg, #2ecdf5, rgba(46, 205, 245, 0.28));
}

[data-theme="light"] .review-card__stars {
  color: #e0a300;
}

[data-theme="light"] .page-shell::before,
[data-theme="light"] .page-shell::after {
  opacity: 0.5;
}

[data-theme="light"] .cal-day,
[data-theme="light"] .slot,
[data-theme="light"] .cal-nav,
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea,
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border-medium);
}

[data-theme="light"] .trust-badge,
[data-theme="light"] .address-card__map,
[data-theme="light"] .bundle-item,
[data-theme="light"] .dashboard-panel,
[data-theme="light"] .trusted__items span,
[data-theme="light"] .pricing-tab-nav label,
[data-theme="light"] .ai-feature-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-medium);
}

/* ============================================================
   RESPONSIVE — NEW SECTIONS
============================================================ */

/* The bar is capped at --max-width, so this is about the navbar's own budget,
   not the viewport: eight links plus the language and theme controls only fit
   once the social icons step aside. They stay in the drawer, the contact card
   and the footer. */
.nav-links a {
  white-space: nowrap;
}

@media (min-width: 1081px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.92rem;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .icon-link {
    display: none;
  }

  .nav-actions .btn--primary {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1100px) {
  .credentials__grid,
  .booking__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-utils {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .util-btn {
    flex: 1;
  }
}

@media (max-width: 700px) {
  section[id] {
    scroll-margin-top: 88px;
  }

  /* the English headline in the trusted strip is too long to stay on one
     line at phone widths, and nowrap was pushing the page sideways */
  .trusted__row > span {
    white-space: normal;
  }

  .licence-card,
  .address-card,
  .booking-panel {
    padding: 24px 22px;
  }

  .licence-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .licence-row dd {
    text-align: start;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }

  .cal-day {
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
  }

  .wa-float__btn {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }

  .wa-float__label {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 84px;
  }
}

@media (max-width: 400px) {
  .cal-weekdays,
  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    font-size: 0.8rem;
    border-radius: 9px;
  }

  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
}

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

/* ============================================================
   CLIENT LOGO MARQUEE
   One group of items is rendered, then cloned by JS; the track
   scrolls exactly one group width and loops, so the seam never
   shows regardless of how many logos there are.
============================================================ */
.clients {
  padding-top: 8px;
}

.clients__title {
  margin-bottom: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  /* overflow:hidden alone still lets the composited track inflate the root's
     scroll width; paint containment gives it a hard clip. */
  contain: paint;
}

/* Edge fade as two static overlays rather than a mask on the container:
   a mask would re-composite the whole moving track every frame. */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll var(--marquee-duration, 38s) linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-inline-end: 16px;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    /* one full group, gap included — the clone slides into its place */
    transform: translateX(calc(-1 * var(--marquee-shift, 50%)));
  }
}

/* RTL reads the other way, so the track travels the other way too */
[dir="rtl"] .marquee__track {
  animation-name: marqueeScrollRtl;
}

@keyframes marqueeScrollRtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--marquee-shift, 50%));
  }
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 232px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-6), var(--surface-2));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), transform var(--transition);
}

.client-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.client-logo__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
  color: var(--on-accent);
  background: var(--grad-brand);
  box-shadow: 0 10px 24px rgba(var(--glow-rgb), 0.24);
}

/* drop-in slot for a real logo file */
.client-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.client-logo__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-logo__body strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.client-logo__body small {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .clients__title {
    font-size: 0.78rem;
  }

  .client-logo {
    min-width: 208px;
    padding: 16px 18px;
  }

  .client-logo__mark {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

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

  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
