/* Skip Link — uses transform to avoid animating layout property */
.skip-link {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  transform: translateY(-100%);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:root {
  --primary-color: #3b82f6;
  /* Premium digital blue */
  --primary-dark: #1d4ed8;
  --secondary-color: #06b6d4;
  /* Digital cyan */
  --accent-color: #f43f5e;
  /* Tech Rose/Coral */
  --dark-bg: #090d1a;
  /* Rich tech dark blue-gray */
  --darker-bg: #030712;
  /* Deep slate black */
  --card-bg: rgba(13, 20, 38, 0.55);
  /* Highly translucent glass */
  --text-color: #cbd5e1;
  /* Slate 300 */
  --heading-color: #f8fafc;
  /* Bright white-slate */
  --white: #ffffff;
  --black: #000000;
  --text-muted: #64748b;
  /* Slate 500 */
  --success-color: #10b981;
  --success-light: #34d399;
  --success-soft: rgba(16, 185, 129, 0.12);
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --purple-color: #8b5cf6;
  --green-color: #10b981;
  --whatsapp-color: #22c55e;
  --whatsapp-hover: #16a34a;
  --blue-300: #93c5fd;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --surface-muted: rgba(9, 13, 26, 0.75);
  --surface-subtle: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --focus-ring: 0 0 0 3px rgba(6, 182, 212, 0.4);
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.15);
  --radius: 1.25rem;
  --transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --gradient-brand: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --glass-border: 1px solid var(--border-subtle);
  /* Type scale — fluid display + fixed body */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 3.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 4.5vw, 3rem);
  --text-display: clamp(2.25rem, 5vw, 3.5rem);
  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.65;
  --leading-comfortable: var(--leading-normal); /* alias — prefer --leading-normal */
  --leading-relaxed: 1.75;
  /* Letter spacing */
  --tracking-display: -0.025em;
  --tracking-heading: -0.015em;
  --tracking-label: 0.06em;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--darker-bg);
  background-image: 
    radial-gradient(circle at 50% 30%, transparent 15%, var(--darker-bg) 80%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text-color);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  font-kerning: normal;
  min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Interactive cursor spotlight */
html {
  --mouse-x: 50vw;
  --mouse-y: 30vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(6, 182, 212, 0.04),
    transparent 80%
  );
  z-index: -1;
  pointer-events: none;
  will-change: background;
}

/* Background gradient mesh — floating glowing ambient orbs */
html::before {
  content: "";
  position: fixed;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 45%, transparent 75%);
  z-index: -2;
  animation: floating 16s infinite ease-in-out;
  will-change: transform;
  pointer-events: none;
}

html::after {
  content: "";
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 45%, transparent 75%);
  z-index: -2;
  animation: floating 20s infinite ease-in-out reverse;
  will-change: transform;
  pointer-events: none;
}

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

/* Arabic Specifics */
body.ar {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  direction: rtl;
}

body.ar .hero-title,
body.ar h1,
body.ar h2,
body.ar h3 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  margin-bottom: 4rem;
  color: var(--heading-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  border-radius: 2px;
}

/* Header */
.header {
  background-color: rgba(9, 13, 26, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 80px;
  display: flex;
  align-items: center;
  contain: layout style;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--heading-color);
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.04) rotate(-1deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.ar .nav-links a::after {
  transform-origin: left;
}

body.ar .nav-links a:hover::after {
  transform-origin: right;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--heading-color);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: var(--text-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lang-switch:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--secondary-color);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--heading-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 57fr 43fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: var(--leading-relaxed);
  margin-bottom: 2.5rem;
  color: var(--text-color);
  max-width: 55ch;
}

.hero-points {
  margin-bottom: 3rem;
  display: grid;
  gap: 1.25rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--heading-color);
}

.hero-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 50%;
  font-size: var(--text-xs);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-visual::before {
  content: "● SYSTEM ACTIVE";
  position: absolute;
  top: 1.25rem;
  inset-inline-start: 1.25rem;
  background: rgba(9, 13, 26, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: monospace;
  font-size: var(--text-2xs);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  z-index: 5;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: text-pulse 2s infinite ease-in-out;
}

@keyframes text-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.65; }
}

.tech-graphic {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: image-set(
    url("../images/hero_bg.webp") type("image/webp"),
    url("../images/hero_bg.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  border-radius: 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 80px rgba(6, 182, 212, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-graphic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(6, 182, 212, 0.08) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: scanline 8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.tech-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.1);
  pointer-events: none;
  z-index: 3;
}

@keyframes scanline {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 200%;
  }
}

/* Services Section */
.services {
  padding: 8rem 0;
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  flex: 1 1 320px;
  max-width: 400px;
  width: 100%;
  contain: layout style;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card:nth-child(1):hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.2); }
.service-card:nth-child(2):hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.2); }
.service-card:nth-child(3):hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.2); }
.service-card:nth-child(4):hover { border-color: rgba(244, 63, 94, 0.5); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 63, 94, 0.2); }
.service-card:nth-child(5):hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2); }

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--darker-bg);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.75;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
  opacity: 0.95;
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
  color: var(--heading-color);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.expand-btn {
  display: none;
}

.service-details {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-details li {
  font-size: var(--text-body);
  margin-bottom: 0.75rem;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.service-details li::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: -0.1rem;
  transition: transform 0.2s ease;
}

body.ar .service-details li::before {
  content: "‹";
}

/* Why Us Section */
.why-us {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
}

.why-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--secondary-color);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  padding: 2.25rem;
  background: rgba(30, 41, 59, 0.3);
  border: var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: start;
  display: flex;
  flex-direction: column;
}

.why-item:hover {
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(8, 145, 178, 0.35);
}

.why-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.why-icon {
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.why-item:hover .why-icon {
  transform: scale(1.15);
}

.why-item h3 {
  color: var(--heading-color);
  font-size: var(--text-xl);
  margin: 0;
  line-height: var(--leading-snug);
}

.why-item p {
  margin: 0;
  color: var(--text-color);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.contact-container,
.contact-container-new {
  position: relative;
  z-index: 1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--white);
  margin-top: 2rem;
  text-decoration: none;
  display: inline-flex;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.contact-email {
  margin-top: 2.5rem;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-email a {
  color: var(--secondary-color);
  font-weight: 600;
}

.contact-form {
  background: rgba(30, 41, 59, 0.6);
  padding: 2.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--shadow-hover);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Footer */
.footer {
  background-color: var(--darker-bg);
  color: var(--text-muted);
  padding: 3rem 0;
  text-align: center;
  border-top: var(--glass-border);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--heading-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .lang-switch {
    padding: 0.4rem 0.8rem;
    font-size: var(--text-sm);
    min-height: 44px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo {
    font-size: var(--text-xl);
    gap: 0.5rem;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .services,
  .why-us,
  .contact {
    padding: 4rem 0;
  }

  .hero-container,
  .contact-container,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    max-width: 100%;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 2rem;
    margin-bottom: 0;
  }

.hero-visual {
  animation: reveal-up 0.7s 0.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.tech-graphic {
    height: 300px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-points {
    justify-content: center;
    text-align: start;
    display: inline-grid;
    margin: 2rem auto;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-card {
    max-width: 340px;
  }

  .services-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .logo-text {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: var(--transition);
}

.mobile-menu[aria-hidden="true"] {
  visibility: hidden;
}

.mobile-menu.active {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 2rem 0;
}

.mobile-nav-links a {
  color: var(--heading-color);
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.service-text-col h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  letter-spacing: var(--tracking-heading);
  color: var(--white);
  margin: 0;
  line-height: var(--leading-snug);
}

.service-text-col p {
  font-size: var(--text-md);
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: var(--leading-relaxed);
}

.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.details-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--text-muted);
  font-size: var(--text-body);
}

.details-list li::before {
  content: "▹";
  position: absolute;
  inset-inline-start: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

/* Arabic RTL Support for new layout */
body.ar .service-header {
  flex-direction: row;
}

body.ar .contact-form input,
body.ar .contact-form textarea {
  text-align: start;
}

/* Mobile Responsiveness for ZigZag */
@media (max-width: 900px) {

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: start;
  }

  .service-row.reverse .service-image-col {
    order: unset;
  }

  .service-row.reverse .service-text-col {
    order: unset;
  }

  .img-wrapper {
    height: 250px;
  }

  .details-list {
    grid-template-columns: 1fr;
    /* Single column list on mobile */
  }

  .service-text-col h3 {
    font-size: var(--text-2xl);
  }
}

.message-aria {
  resize: none;
}

/* Customers Section */
.customers {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  text-align: center;
  position: relative;
}

.customers-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 3rem;
  padding: 1rem 0;
}

.customers-track {
  display: flex;
  width: max-content;
}

.customers-slide {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
  animation: scroll-customers-rtl 120s linear infinite;
}

.customers-slider:hover .customers-slide {
  animation-play-state: paused;
}

@keyframes scroll-customers-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

html[dir="ltr"] .customers-slide,
body:not(.ar) .customers-slide {
  animation: scroll-customers-ltr 120s linear infinite;
}

@keyframes scroll-customers-ltr {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.customer-logo {
  background: rgba(248, 250, 252, 0.96);
  color: var(--darker-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  width: 220px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.customer-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
  border-color: var(--secondary-color);
}

.customer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.customer-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section Updates */
.contact-container-new {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-actions .btn-whatsapp {
  align-self: flex-start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

#contact-form-wrap {
  background: rgba(30, 41, 59, 0.6);
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--shadow-hover);
}

#contact-form-wrap form {
  display: flex;
  flex-direction: column;
}

#contact-form-wrap input,
#contact-form-wrap textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
  font-size: var(--text-body);
}

#contact-form-wrap input:focus,
#contact-form-wrap textarea:focus {
  border-color: var(--primary-color);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#contact-form-wrap .btn {
  margin-top: 0.5rem;
  width: 100%;
}

body.ar #contact-form-wrap input,
body.ar #contact-form-wrap textarea {
  text-align: start;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: var(--text-md);
  background: rgba(30, 41, 59, 0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: var(--glass-border);
  transition: var(--transition);
  flex: 1;
}

.contact-method:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}

.method-icon {
  font-size: var(--text-2xl);
}

.method-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.method-text span {
  font-size: var(--text-sm);
  color: var(--text-color);
  margin-bottom: 0.2rem;
}

.method-text a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-md);
}

.method-text a:hover {
  color: var(--secondary-color);
}

body.ar .method-text {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .contact-methods {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-container-new {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-info {
    text-align: center;
  }
  .contact-actions {
    align-items: center;
  }
  .contact-actions .btn-whatsapp {
    align-self: center;
  }
  #contact-form-wrap {
    padding: 1.5rem;
  }
}

/* ───────────────────────────────────────────
   Academy / Tutorials Page
   ─────────────────────────────────────────── */

.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background-color: var(--darker-bg);
}

.academy-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.academy-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.35));
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--heading-color);
}

.page-subtitle {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-comfortable);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--card-bg);
  border: var(--glass-border);
  color: var(--text-muted);
  padding: 0.5625rem 1.125rem;
  border-radius: 9999px;
  font-size: var(--text-sm);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  min-height: 44px;
}

.tab-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
  border-color: rgba(6, 182, 212, 0.3);
}

.tab-btn.active {
  background: var(--secondary-color);
  color: var(--dark-bg);
  border-color: var(--secondary-color);
  font-weight: 700;
}

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

.tutorials--no-top-pad {
  padding-top: 0;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.625rem;
  padding: 1.875rem 0 3.75rem;
}


.tutorial-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  contain-intrinsic-size: 0 380px;
  content-visibility: auto;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.tutorial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--cat-rgb, 6, 182, 212), 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(var(--cat-rgb, 6, 182, 212), 0.25);
}

.tutorial-thumb {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(30, 41, 59, 0.9) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tutorial-thumb .thumb-icon-img {
  font-size: 4rem;
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
  transition: transform 0.3s var(--transition);
  object-fit: contain;
}

.tutorial-card:hover .thumb-icon-img {
  transform: scale(1.1);
}

.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.tutorial-card:hover .tutorial-thumb img {
  opacity: 1;
}

.play-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: var(--text-2xl);
  backdrop-filter: blur(4px);
  border: 2px solid var(--secondary-color);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: var(--transition);
}

.tutorial-card:hover .play-icon {
  opacity: 1;
  visibility: visible;
  transform: scale(1.1);
  background: var(--secondary-color);
  color: var(--dark-bg);
}

.tutorial-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.tutorial-title {
  font-size: var(--text-md);
  color: var(--heading-color);
  margin-bottom: 0.625rem;
}

.tutorial-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  color: var(--secondary-color);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 9999px;
  font-size: var(--text-xs);
  padding: 0.1875rem 0.625rem;
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.tutorial-desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-comfortable);
  margin-bottom: 1.125rem;
  flex-grow: 1;
}

.btn-watch {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.625rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: var(--text-sm);
  min-height: 44px;
}

.btn-watch:hover {
  background: var(--secondary-color);
  color: var(--dark-bg);
}

/* ───────────────────────────────────────────
   Tutorial Article Pages (tutorials/*.html)
   ─────────────────────────────────────────── */

.tutorial-header {
  padding: 100px 0 40px;
  background-color: var(--darker-bg);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  background: var(--black);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.filter-item[hidden] {
  display: none !important;
}

.video-soon {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: var(--glass-border);
  padding: 60px 20px;
  text-align: center;
}

.video-soon p {
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-top: 0.75rem;
}

.tutorial-body {
  padding: 50px 0;
  max-width: 860px;
  margin: 0 auto;
}

.tut-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  color: var(--heading-color);
  margin-bottom: 0.9375rem;
}

.tut-desc {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.875rem;
}

.github-banner {
  background: rgba(30, 41, 59, 1);
  border: var(--glass-border);
  padding: 1.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5625rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.github-text {
  color: var(--slate-200);
  font-weight: 600;
}

.btn-github {
  background: var(--slate-200);
  color: var(--dark-bg);
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-github:hover {
  background: var(--white);
}

.prerequisites {
  background: var(--dark-bg);
  border: 1px solid rgba(30, 41, 59, 1);
  padding: 1.875rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.prerequisites h3 {
  color: var(--secondary-color);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-heading);
  margin-top: 0;
  margin-bottom: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.prerequisites p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.prerequisites h4 {
  color: var(--heading-color);
  margin-bottom: 0.625rem;
}

.article-steps {
  color: var(--text-color);
  line-height: var(--leading-relaxed);
}

.article-steps h2 {
  color: var(--secondary-color);
  margin: 2.5rem 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  letter-spacing: var(--tracking-heading);
}

.article-steps h3 {
  color: var(--heading-color);
  margin: 1.875rem 0 0.9375rem;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.article-steps p {
  margin-bottom: 1.25rem;
}

.step-number {
  background: var(--secondary-color);
  color: var(--dark-bg);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

pre[class*="language-"] {
  border-radius: 0.5rem;
  margin: 1.25rem 0 1.875rem;
  border: var(--glass-border);
}

.ports-table,
.creds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.875rem;
}

.ports-table th,
.creds-table th {
  background: rgba(30, 41, 59, 1);
  color: var(--secondary-color);
  padding: 0.75rem 1rem;
  text-align: start;
}

.ports-table td,
.creds-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(30, 41, 59, 1);
  color: var(--text-color);
}

.ports-table tr:hover td,
.creds-table tr:hover td {
  background: var(--card-bg);
}

.warning-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.875rem;
  color: var(--warning-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-500);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hamburger touch target — must meet 44×44px minimum */
.mobile-menu-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0.75rem;
  justify-content: space-between; /* keep bars spread vertically */
}

/* Lang switch touch target on mobile */
@media (max-width: 768px) {
  .lang-switch {
    min-height: 44px;
  }
}

/* ============================================================
   Scroll Reveal & Entrance Animations
   ============================================================ */

/* Hero content — direct entrance on page load (above fold, no observer needed) */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: reveal-up 0.65s 0.1s cubic-bezier(0.25, 1, 0.5, 1) both;
}


.hero-content h1 {
  animation: reveal-up 0.6s 0.08s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-subtitle {
  animation: reveal-up 0.6s 0.16s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-points {
  animation: reveal-up 0.6s 0.24s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-buttons {
  animation: reveal-up 0.6s 0.32s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Scroll-reveal targets — initially hidden, revealed by IntersectionObserver */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Section title underline — scales in after title reveals (transform avoids layout reflow) */
.section-title::after {
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.5s 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-title.in-view::after {
  transform: translateX(-50%) scaleX(1);
}

/* Tutorial cards */
.tutorial-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Revealed state for all scroll-reveal targets */
.service-card.in-view,
.why-item.in-view,
.section-title.in-view,
.tutorial-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hamburger → X animation
   ============================================================ */

.mobile-menu-btn span {
  transform-origin: center;
}

/* When menu is open: top bar rotates down, middle fades, bottom rotates up */
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   Button micro-interactions
   ============================================================ */

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.tab-btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

/* Respect reduced motion — disable all animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Academy Stats Bar
   ============================================================ */
.academy-stats-bar {
  background: var(--darker-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}

.stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 2.2rem;
  border-inline-end: 1px solid rgba(255,255,255,0.08);
}

.stat-chip:last-child { border-inline-end: none; }

.stat-n {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

.stat-chip > span:last-child {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-weight: 600;
}

/* ============================================================
   Academy Intro Section
   ============================================================ */
.academy-intro {
  padding: 5rem 0 3.5rem;
  background: var(--dark-bg);
}

.academy-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.academy-intro-text h2 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-heading);
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  line-height: var(--leading-snug);
}

.academy-intro-text h2 span {
  color: var(--secondary-color);
}

.academy-intro-text p {
  color: var(--text-color);
  line-height: var(--leading-relaxed);
  margin-bottom: 1rem;
  font-size: var(--text-body);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.benefit-item:hover {
  border-color: rgba(6,182,212,0.35);
  transform: translateX(-4px);
}

body.en .benefit-item:hover {
  transform: translateX(4px);
}

.benefit-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.benefit-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.benefit-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

@media (max-width: 768px) {
  .academy-intro-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stat-chip { padding: 0.5rem 1.2rem; }
  .stat-n { font-size: 1.3rem; }
}

/* ============================================================
   FAQ Section
   ============================================================ */
.academy-faq {
  padding: 5rem 0 6rem;
  background: var(--darker-bg);
}

.academy-faq .section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.faq-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-body);
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--secondary-color);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item[open] summary { color: var(--secondary-color); }

.faq-item[open] {
  border-color: rgba(6,182,212,0.3);
}

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-color);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Privacy Policy page
   ============================================================ */
.privacy-body {
  padding: 120px 0 80px;
}

.privacy-body h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.privacy-date {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 2.5rem;
}

.privacy-body h2 {
  font-size: var(--text-xl);
  color: var(--heading-color);
  margin: 2rem 0 0.75rem;
}

.privacy-body p,
.privacy-body li {
  color: var(--text-color);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body);
  margin-bottom: 0.5rem;
}

.privacy-body ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Tutorial Enrichment Sections
   ============================================================ */
.tut-enrichment {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.enrichment-section {
  margin-bottom: 2.5rem;
}

.enrichment-section h2 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-heading);
  color: var(--heading-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
}

.enrichment-section p {
  color: var(--text-color);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body);
}

.enrichment-section code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--secondary-color);
}

.enrichment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.enrichment-list li {
  color: var(--text-color);
  font-size: var(--text-body);
  line-height: var(--leading-comfortable);
  padding-inline-start: 1.4rem;
  position: relative;
}

.enrichment-list li::before {
  content: '→';
  position: absolute;
  inset-inline-start: 0;
  color: var(--secondary-color);
  font-size: var(--text-sm);
}

.enrichment-section h4 {
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 0.4rem;
  margin-top: 1.2rem;
  font-weight: 600;
}

.faq-section .faq-item {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(6, 182, 212, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.faq-section .faq-item h4 {
  margin-top: 0;
  font-size: var(--text-body);
  color: var(--secondary-color);
}

.faq-section .faq-item p {
  margin-bottom: 0;
}

.cta-section {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  padding: 2rem !important;
}

.cta-section .btn-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.8rem;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body);
  transition: opacity 0.2s;
}

.cta-section .btn-cta:hover {
  opacity: 0.85;
}

.tut-related {
  margin-top: 2rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.tut-related h3 {
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 0.8rem;
}

.tut-related a {
  display: inline-block;
  margin-block: 0.2rem;
  margin-inline-end: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: background 0.2s;
}

.tut-related a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--darker-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  z-index: 9998;
  display: none;
  backdrop-filter: blur(12px);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent.visible {
  display: block;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent p {
  color: var(--text-color);
  font-size: var(--text-sm);
  line-height: var(--leading-comfortable);
  flex: 1;
  min-width: 280px;
}

.cookie-consent p a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--secondary-color);
  color: var(--dark-bg);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: var(--transition);
  min-height: 44px;
}

.cookie-accept:hover {
  background: var(--primary-color);
  color: var(--white);
}

.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: var(--transition);
  min-height: 44px;
}

.cookie-decline:hover {
  border-color: var(--text-muted);
  color: var(--text-color);
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-btns {
    width: 100%;
    justify-content: center;
  }
}

/* === AdSense Ad Units === */
.ad-unit {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
  overflow: hidden;
}
.ad-unit ins {
  display: block;
}

/* === Contact CTA Redesign === */
.contact {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(6, 182, 212, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  gap: 0;
}

.contact-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.contact-cta__dot {
  width: 7px;
  height: 7px;
  background: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.contact-cta__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  line-height: var(--leading-snug);
  margin-bottom: 1rem;
}

.contact-cta__sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  max-width: 43ch;
  margin-bottom: 2.5rem;
}

.contact-cta__wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--whatsapp-color);
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-md);
  padding: 1rem 2.25rem;
  min-height: 44px;
  border-radius: 3rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), background 0.2s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
  margin-bottom: 2.25rem;
}

.contact-cta__wa:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.contact-cta__wa-ring {
  position: absolute;
  inset: -6px;
  border-radius: 3rem;
  border: 2px solid rgba(37, 211, 102, 0.45);
  opacity: 0.55;
  pointer-events: none;
}

@keyframes wa-ring {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

.contact-cta__wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-cta__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
  margin-bottom: 2rem;
}

.contact-cta__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.contact-cta__divider-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.contact-cta__secondary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-cta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(30,41,59,0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.contact-cta__item:hover {
  color: var(--secondary-color);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.06);
}

.contact-cta__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .contact-cta__secondary {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .contact-cta__item {
    width: 100%;
    justify-content: center;
  }
}

/* About Page */
.about-hero { padding: 120px 0 60px; background: var(--darker-bg); text-align: center; }
.about-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: var(--tracking-heading); color: var(--heading-color); margin-bottom: 1rem; }
.about-hero p { font-size: var(--text-md); color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: var(--leading-relaxed); }
.about-body { padding: 5rem 0 6rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-body h2 { font-size: 1.6rem; color: var(--heading-color); margin-bottom: 1rem; }
.about-body h2 span { color: var(--secondary-color); }
.about-body p { color: var(--text-color); line-height: var(--leading-relaxed); margin-bottom: 1rem; font-size: var(--text-body); }
.mission-points { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.mission-points li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-color); font-size: var(--text-body); line-height: var(--leading-comfortable); }
.mission-points li::before { content: "→"; color: var(--secondary-color); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about-stat { background: var(--card-bg); border: var(--glass-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.about-stat .n { display: block; font-size: var(--text-2xl); font-weight: 700; color: var(--secondary-color); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.about-stat .l { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 0.25rem; }
.expertise-list { display: flex; flex-direction: column; gap: 1rem; }
.exp-item { background: var(--card-bg); border: var(--glass-border); border-radius: 0.75rem; padding: 1.1rem 1.3rem; }
.exp-item h4 { color: var(--heading-color); font-size: var(--text-sm); margin-bottom: 0.3rem; }
.exp-item p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; margin: 0; }
.company-section { padding: 5rem 0 0; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.company-card { background: var(--card-bg); border: var(--glass-border); border-radius: var(--radius); padding: 2rem; }
.company-card h3 { color: var(--heading-color); font-size: var(--text-md); margin-bottom: 1rem; }
.company-card p { color: var(--text-color); line-height: var(--leading-relaxed); font-size: var(--text-sm); margin-bottom: 0.75rem; }
.company-detail { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 0.5rem; }
.company-detail::before { content: "→"; color: var(--secondary-color); font-weight: 700; flex-shrink: 0; }
.company-detail a { color: var(--secondary-color); text-decoration: none; }
.company-detail a:hover { text-decoration: underline; }
.founder-profile { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; color: var(--white); flex-shrink: 0; }
.founder-name { color: var(--heading-color); font-weight: 700; font-size: 1rem; }
.founder-role { color: var(--secondary-color); font-size: var(--text-sm); margin-top: 0.2rem; }
.founder-link { color: var(--text-muted); font-size: var(--text-xs); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.35rem; }
.founder-link:hover { color: var(--heading-color); }
.founder-bio { color: var(--text-color); font-size: var(--text-sm); line-height: var(--leading-relaxed); margin-bottom: 0.85rem; }
.founder-bio-secondary { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.about-hero-accent { color: var(--secondary-color); }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } .about-stat-grid { grid-template-columns: 1fr 1fr; } .company-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* === Donate Section === */
.donate-section { border-top: 1px solid rgba(6,182,212,0.2); padding-top: 1.5rem; }
.donate-card { background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.2); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1rem; }
.donate-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(6,182,212,0.15); color: var(--secondary-color); font-size: var(--text-xs); font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.donate-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.donate-address { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; background: var(--card-bg); border: var(--glass-border); border-radius: 0.5rem; padding: 0.625rem 0.875rem; }
.donate-address code { font-family: 'Courier New', monospace; font-size: var(--text-sm); color: var(--heading-color); word-break: break-all; flex: 1; }
.donate-copy-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--secondary-color); color: var(--dark-bg); border: none; border-radius: 0.375rem; padding: 0.35rem 0.75rem; font-size: var(--text-xs); font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); white-space: nowrap; flex-shrink: 0; }
.donate-copy-btn:hover { background: var(--primary-color); color: var(--white); }
.donate-copy-btn svg { width: 14px; height: 14px; }
.donate-note { color: var(--text-muted); font-size: var(--text-xs); margin-top: 0.75rem; margin-bottom: 0; }

/* === Odoo Version Tabs === */
.version-selector { margin: 1.5rem 0 1.25rem; }
.version-selector .version-label { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 0.6rem; font-weight: 600; }
.version-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.version-tab { background: var(--card-bg); border: var(--glass-border); color: var(--text-muted); padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: var(--text-sm); cursor: pointer; font-family: inherit; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.version-tab:hover { background: rgba(6,182,212,0.1); color: var(--secondary-color); border-color: rgba(6,182,212,0.3); }
.version-tab.active { background: var(--secondary-color); color: var(--dark-bg); border-color: var(--secondary-color); font-weight: 600; }
.badge-latest { background: var(--primary-color); color: var(--white); font-size: var(--text-2xs); padding: 0.1rem 0.45rem; border-radius: 9999px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: var(--leading-comfortable); }
.version-tab.active .badge-latest { background: rgba(0,0,0,0.25); color: var(--dark-bg); }
.version-tab-soon { opacity: 0.5; cursor: not-allowed; }
.version-tab-soon:hover { background: var(--card-bg); color: var(--text-muted); border-color: var(--glass-border); }
.badge-soon { background: rgba(203,213,225,0.15); color: var(--text-muted); font-size: var(--text-2xs); padding: 0.1rem 0.45rem; border-radius: 9999px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: var(--leading-comfortable); }
.script-coming-soon { display: flex; align-items: flex-start; gap: 0.75rem; background: rgba(203,213,225,0.05); border: 1px dashed rgba(203,213,225,0.2); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0.75rem 0; color: var(--text-muted); font-size: var(--text-sm); }
.script-coming-soon strong { color: var(--text-color); display: block; margin-bottom: 0.25rem; }
.script-coming-soon p { margin: 0; font-size: var(--text-sm); }
.script-coming-soon a { color: var(--secondary-color); text-decoration: none; }
.script-coming-soon a:hover { text-decoration: underline; }
.soon-icon { font-size: var(--text-xl); flex-shrink: 0; margin-top: 0.1rem; }

/* ================================================================
   Mobile & Touch Improvements — Tutorial Pages
   ================================================================ */

/* Prevent horizontal overflow globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* ── Code block wrapper + copy button ───────────────────────────── */

.code-block-wrapper {
  position: relative;
  margin: 1.1rem 0 1.75rem;
}

.code-block-wrapper pre[class*="language-"] {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,0.35) transparent;
  /* leave room for copy button */
  padding-top: 2.75rem;
}

.code-block-wrapper pre[class*="language-"]::-webkit-scrollbar {
  height: 4px;
}
.code-block-wrapper pre[class*="language-"]::-webkit-scrollbar-track {
  background: transparent;
}
.code-block-wrapper pre[class*="language-"]::-webkit-scrollbar-thumb {
  background: rgba(6,182,212,0.35);
  border-radius: 2px;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
  user-select: none;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.4);
  color: var(--secondary-color);
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn.copied {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.35);
  color: var(--success-light);
}

/* ── Table scroll wrappers ───────────────────────────────────────── */

.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,0.3) transparent;
  margin: 1.25rem 0 1.875rem;
}

.table-scroll-wrap::-webkit-scrollbar { height: 4px; }
.table-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.table-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.3); border-radius: 2px; }

.table-scroll-wrap .ports-table,
.table-scroll-wrap .creds-table {
  margin: 0;
  min-width: 360px;
}

/* ── Tutorial body: safe horizontal padding ─────────────────────── */

.tutorial-body {
  padding-inline: 1.25rem;
}

/* ── Tabs: wrap on all screen sizes, smaller pills on mobile ──────── */

@media (max-width: 768px) {
  .tab-btn {
    font-size: var(--text-xs);
    padding: 0.45rem 0.85rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .tabs-container {
    gap: 0.375rem;
  }

  .tab-btn {
    font-size: var(--text-xs);
    padding: 0.4rem 0.7rem;
    min-height: 44px;
  }
}

/* ================================================================
   Responsive breakpoints — Tutorial pages
   ================================================================ */

@media (max-width: 860px) {
  /* tutorial-body loses the auto margins and uses full width */
  .tutorial-body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* ── Header / title ── */
  .tutorial-header {
    padding: 76px 0 24px;
  }

  .tut-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    line-height: 1.3;
  }

  .tut-desc {
    font-size: var(--text-body);
    line-height: 1.65;
  }

  /* ── GitHub banner: stack on mobile ── */
  .github-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1rem;
  }

  .btn-github {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    font-size: var(--text-body);
    border-radius: 0.5rem;
  }

  /* ── Steps ── */
  .article-steps h2 {
    font-size: var(--text-xl);
    margin: 2rem 0 1rem;
  }

  .article-steps h3 {
    font-size: var(--text-md);
    margin: 1.5rem 0 0.75rem;
    align-items: flex-start;
    line-height: 1.4;
  }

  /* ── Prerequisites ── */
  .prerequisites {
    padding: 1.1rem 1rem;
  }

  .prerequisites h3 {
    font-size: var(--text-md);
  }

  /* ── Warning box ── */
  .warning-box {
    font-size: var(--text-sm);
    padding: 0.875rem 1rem;
  }

  /* ── Larger copy button touch target ── */
  .copy-btn {
    padding: 0.45rem 0.75rem;
    font-size: var(--text-xs);
    min-height: 44px;
  }

  /* ── Step numbers ── */
  .step-number {
    width: 26px;
    height: 26px;
    font-size: var(--text-sm);
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  /* ── Tutorial cards grid ── */
  .tutorials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  /* ── Breadcrumb ── */
  .breadcrumb {
    font-size: var(--text-sm);
    gap: 0.35rem;
  }

  /* ── Enrichment text ── */
  .tut-enrichment {
    font-size: var(--text-body);
  }

  /* ── Ports / creds tables ── */
  .ports-table,
  .creds-table {
    font-size: var(--text-sm);
  }

  .ports-table th,
  .creds-table th,
  .ports-table td,
  .creds-table td {
    padding: 0.6rem 0.875rem;
  }

}

@media (max-width: 480px) {

  .tutorial-body {
    padding-inline: 0.875rem;
    padding-top: 1.5rem;
  }

  .tutorial-header {
    padding: 64px 0 18px;
  }

  .tut-title {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
  }

  /* Cards: single column on phones */
  .tutorials-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-card {
    border-radius: 0.75rem;
  }

  /* Copy button: WCAG 2.5.5 touch target preserved on small phones */
  .copy-btn {
    padding: 0.5rem 0.8rem;
    font-size: var(--text-xs);
    min-height: 44px;
    top: 0.4rem;
    inset-inline-end: 0.4rem;
  }

  /* Code block: give more vertical space for button */
  .code-block-wrapper pre[class*="language-"] {
    padding-top: 3rem;
    font-size: var(--text-xs);
  }

  /* FAQ items */
  .faq-item summary {
    font-size: var(--text-sm);
    padding: 0.95rem 1.1rem;
  }

  .faq-answer {
    font-size: var(--text-sm);
    padding: 0.75rem 1.1rem 1rem;
  }

  /* Ports table */
  .ports-table th,
  .creds-table th {
    font-size: var(--text-xs);
    padding: 0.5rem 0.75rem;
  }

  .ports-table td,
  .creds-table td {
    font-size: var(--text-sm);
    padding: 0.5rem 0.75rem;
  }

  /* Section headings */
  .article-steps h2 {
    font-size: var(--text-md);
  }

  .article-steps h3 {
    font-size: var(--text-body);
  }

  /* Version tabs on Odoo page */
  .version-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .version-tabs::-webkit-scrollbar { display: none; }

}

/* ================================================================
   Academy Trust Section — Homepage
   ================================================================ */

.academy-trust {
  padding: 5rem 0;
  background: var(--darker-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.academy-trust-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: center;
}

.academy-trust-badge {
  display: inline-block;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--secondary-color);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.1rem;
}

.academy-trust-text h2 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-heading);
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: var(--leading-snug);
}

.academy-trust-text p {
  color: var(--text-color);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body);
  margin-bottom: 1rem;
  max-width: 60ch;
}

.trust-points {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-color);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.trust-icon {
  font-size: var(--text-md);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: var(--text-body);
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-bg);
}

.academy-trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trust-stat {
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trust-stat-n {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

.trust-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .academy-trust-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .academy-trust-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .academy-trust-text p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .academy-trust {
    padding: 3.5rem 0;
  }

  .academy-trust-text h2 {
    font-size: var(--text-2xl);
  }

  .academy-trust-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================================
   Hardening — Text Overflow, RTL, Edge Cases
   ================================================================ */

/* ── Tutorial card: clamp title + desc to prevent unequal heights ── */
.tutorial-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tutorial-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── Tut-title + tut-desc: break long words (Arabic compound words) ─ */
.tut-title,
.tut-desc {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── RTL: fix directional padding/margin using logical properties ─── */

/* Nav active indicator */
.nav-links li.active a,
.nav-links a.active {
  margin-inline-start: 0;
}

/* Privacy / terms list indent */
.privacy-body ul,
body.en .privacy-body ul { 
  padding-inline-start: 1.5rem; 
  padding-inline-end: 0; 
}

/* Enrichment list indent */
.tut-enrichment ul,
.enrichment-section ul {
  padding-inline-start: 1.4rem;
  padding-inline-end: 0;
}

/* ── Filter: visible empty state when no cards match ─────────────── */
.no-results-msg {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.no-results-msg svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
  margin-bottom: 1rem;
}

.no-results-msg p {
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.no-results-msg span {
  font-size: var(--text-sm);
}

.no-results-msg.visible {
  display: block;
}

/* ── noscript banner ─────────────────────────────────────────────── */
.noscript-bar {
  background: rgba(251,191,36,0.12);
  border-bottom: 1px solid rgba(251,191,36,0.3);
  color: var(--warning-color, #fbbf24);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: var(--text-sm);
  font-family: inherit;
}

/* ── Code blocks: ensure no-JS still shows raw code reasonably ────── */
pre:not([class]) code,
pre code:not([class]) {
  font-size: var(--text-sm);
  line-height: var(--leading-comfortable);
  display: block;
  overflow-x: auto;
  padding: 1rem;
  background: rgba(15,23,42,0.8);
  border-radius: 0.5rem;
  color: var(--slate-200);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

/* ── FAQ items: break long questions in Arabic ────────────────────── */
.faq-item summary,
.faq-item h4 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── Copy button: prevent label wrapping on small screens ────────── */
.copy-label {
  white-space: nowrap;
}

/* ── Trust section text overflow ─────────────────────────────────── */
.academy-trust-text p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Why-us item descriptions ────────────────────────────────────── */
.why-item p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-comfortable);
  margin-top: 0.5rem;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .tutorial-title {
    -webkit-line-clamp: 3;
  }
}

/* ================================================================
   Polish Pass
   ================================================================ */

/* ── Copy button: focus-visible state ───────────────────────────── */
.copy-btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ── Trust-stat: hover feedback ─────────────────────────────────── */
.trust-stat {
  transition: var(--transition);
  cursor: default;
}

.trust-stat:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
}

/* ── Trust points: subtle hover on each point ───────────────────── */
.trust-point {
  transition: color 0.2s ease;
}

.trust-point:hover {
  color: var(--heading-color);
}

/* ── Why-item h3: breathing room when description p follows ─────── */
.why-item h3 {
  margin-bottom: 0;
}

.why-item p {
  margin-top: 0.625rem;
}

/* ── Tab-btn: distinct focus-visible ring (not confused with active) */
.tab-btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* ── Btn-github: focus-visible ───────────────────────────────────── */
.btn-github:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ── Btn-secondary: focus-visible ────────────────────────────────── */
.btn-secondary:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* ── Tutorial card link: focus-visible ──────────────────────────── */
a.tutorial-card:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* ── Donate copy button: focus-visible ───────────────────────────── */
.donate-copy-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ── No-results message: better typography ──────────────────────── */
.no-results-msg {
  padding: 5rem 1rem;
}

.no-results-msg p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.no-results-msg span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Noscript bar: RTL-safe padding ─────────────────────────────── */
.noscript-bar {
  padding-inline: 1.5rem;
}

/* ── Academy trust: consistent border-radius on stats ───────────── */
.trust-stat {
  border-radius: 0.875rem;
}

/* ── Tab active: ensure font renders crisply at bold weight ─────── */
.tab-btn.active {
  letter-spacing: -0.01em;
}

/* ── Tutorial title: min-height to avoid jarring card-height diffs ─ */
.tutorial-card .tutorial-title {
  min-height: calc(1.4em * 2);
}

/* ── Code block wrapper: subtle top border to separate from content  */
.code-block-wrapper pre[class*="language-"] {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/* ── Warning box: amber tint + top border for semantic emphasis ─── */
.warning-box {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.3);
}

/* ── Prism: force monospace even before Prism loads ────────────── */
pre code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* ================================================================
   Featured Tutorial of the Week
   ================================================================ */

.featured-tut {
  padding: 4.5rem 0 5rem;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Animated "live" badge ───────────────────────────────────────── */
.featured-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(6,182,212,0.5);
  animation: feat-pulse 2s ease-out infinite;
}

@keyframes feat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(6,182,212,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

/* ── Layout ──────────────────────────────────────────────────────── */
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Main featured card ──────────────────────────────────────────── */
.featured-card {
  display: block;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.featured-card:hover {
  border-color: rgba(6,182,212,0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.featured-card:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

.featured-card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.featured-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.featured-card:hover .featured-icon-wrap {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.2);
}

.featured-tag {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--secondary-color);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.featured-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  color: var(--heading-color);
  line-height: var(--leading-snug);
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.featured-desc {
  color: var(--text-color);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: gap 0.2s ease;
}

.featured-card:hover .featured-cta {
  gap: 0.75rem;
}

/* ── Also popular sidebar ────────────────────────────────────────── */
.featured-also {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-also-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.featured-also-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.featured-mini {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(30,41,59,0.5);
  border: var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.featured-mini:hover {
  background: rgba(30,41,59,0.9);
  border-color: rgba(6,182,212,0.2);
  transform: translateX(-3px);
}

body.en .featured-mini:hover {
  transform: translateX(3px);
}

.featured-mini:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.featured-mini img {
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.featured-mini div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.featured-mini-title {
  color: var(--heading-color);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-mini-tag {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.featured-browse {
  display: inline-block;
  color: var(--secondary-color);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
}

.featured-browse:hover { opacity: 0.75; }
.featured-browse:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-also-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

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

  body.en .featured-mini:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 600px) {
  .featured-tut {
    padding: 3rem 0 3.5rem;
  }

  .featured-title {
    font-size: var(--text-xl);
  }

  .featured-card {
    padding: 1.5rem;
  }

  .featured-also-list {
    grid-template-columns: 1fr;
  }

  .featured-icon-wrap {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-dot {
    animation: none;
    box-shadow: 0 0 0 2px rgba(6,182,212,0.4);
  }
}

/* === Harden: Grid/Flex overflow protection === */
.tutorial-card,
.service-card,
.faq-item,
.benefit-item {
  min-width: 0;
}

.tutorial-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tutorial-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tutorial-tag,
.tutorial-desc {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.btn-watch {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-card h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.faq-item summary {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.benefit-item h4,
.benefit-item p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.method-text a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.contact-cta__badge,
.academy-trust-badge,
.featured-tag,
.donate-badge,
.badge-latest,
.badge-soon {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.stat-chip > span:last-child {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ================================================================
   Colorize Pass — Category Color System & Section Warmth
   ================================================================ */

/* ── Per-category color tokens ──────────────────────────────────── */
/* --cat-rgb : R,G,B values for rgba() backgrounds & borders        */
/* --cat-lite: lighter tint, readable text on dark surfaces         */

.tutorial-card[data-category="management"]    { --cat-rgb: 59, 130, 246;   --cat-lite: #93c5fd; }
.tutorial-card[data-category="databases"]     { --cat-rgb: 245, 158, 11;   --cat-lite: #fcd34d; }
.tutorial-card[data-category="media"]         { --cat-rgb: 168, 85, 247;   --cat-lite: #d8b4fe; }
.tutorial-card[data-category="files"]         { --cat-rgb: 20, 184, 166;   --cat-lite: #5eead4; }
.tutorial-card[data-category="tools"]         { --cat-rgb: 99, 102, 241;   --cat-lite: #a5b4fc; }
.tutorial-card[data-category="vpn"]           { --cat-rgb: 124, 58, 237;   --cat-lite: #c4b5fd; }
.tutorial-card[data-category="networking"]    { --cat-rgb: 16, 185, 129;   --cat-lite: #6ee7b7; }
.tutorial-card[data-category="remote"]        { --cat-rgb: 249, 115, 22;   --cat-lite: #fdba74; }
.tutorial-card[data-category="monitoring"]    { --cat-rgb: 234, 179, 8;    --cat-lite: #fde047; }
.tutorial-card[data-category="security"]      { --cat-rgb: 244, 63, 94;    --cat-lite: #fda4af; }
.tutorial-card[data-category="email"]         { --cat-rgb: 6, 182, 212;    --cat-lite: #67e8f9; }
.tutorial-card[data-category="analytics"]     { --cat-rgb: 34, 197, 94;    --cat-lite: #86efac; }
.tutorial-card[data-category="communication"] { --cat-rgb: 139, 92, 246;   --cat-lite: #c4b5fd; }
.tutorial-card[data-category="dev"]           { --cat-rgb: 249, 115, 22;   --cat-lite: #fdba74; }
.tutorial-card[data-category="backup"]        { --cat-rgb: 16, 185, 129;   --cat-lite: #6ee7b7; }
.tutorial-card[data-category="gaming"]        { --cat-rgb: 239, 68, 68;    --cat-lite: #fca5a5; }
.tutorial-card[data-category="ai"]            { --cat-rgb: 139, 92, 246;   --cat-lite: #c4b5fd; }
.tutorial-card[data-category="erp"]           { --cat-rgb: 245, 158, 11;   --cat-lite: #fcd34d; }
.tutorial-card[data-category="crm"]           { --cat-rgb: 59, 130, 246;   --cat-lite: #93c5fd; }
.tutorial-card[data-category="hr"]            { --cat-rgb: 236, 72, 153;   --cat-lite: #f9a8d4; }
.tutorial-card[data-category="clinic"]        { --cat-rgb: 34, 197, 94;    --cat-lite: #86efac; }
.tutorial-card[data-category="iot"]           { --cat-rgb: 6, 182, 212;    --cat-lite: #67e8f9; }
.tutorial-card[data-category="education"]     { --cat-rgb: 99, 102, 241;   --cat-lite: #a5b4fc; }
.tutorial-card[data-category="cms"]           { --cat-rgb: 168, 85, 247;   --cat-lite: #d8b4fe; }
.tutorial-card[data-category="automation"]    { --cat-rgb: 249, 115, 22;   --cat-lite: #fdba74; }
.tutorial-card[data-category="accounting"]    { --cat-rgb: 16, 185, 129;   --cat-lite: #6ee7b7; }
.tutorial-card[data-category="ecommerce"]     { --cat-rgb: 245, 158, 11;   --cat-lite: #fcd34d; }
.tutorial-card[data-category="social"]        { --cat-rgb: 236, 72, 153;   --cat-lite: #f9a8d4; }
.tutorial-card[data-category="support"]       { --cat-rgb: 59, 130, 246;   --cat-lite: #93c5fd; }
.tutorial-card[data-category="pos"]           { --cat-rgb: 34, 197, 94;    --cat-lite: #86efac; }

/* ── Apply category color across all card surfaces ──────────────── */

/* Thumbnail: subtle tinted gradient instead of flat dark           */
.tutorial-card .tutorial-thumb {
  background: linear-gradient(
    135deg,
    rgba(var(--cat-rgb, 6, 182, 212), 0.09) 0%,
    var(--dark-bg) 100%
  );
}

.tutorial-card:hover .tutorial-thumb {
  background: linear-gradient(
    135deg,
    rgba(var(--cat-rgb, 6, 182, 212), 0.16) 0%,
    rgba(var(--cat-rgb, 6, 182, 212), 0.04) 100%
  );
}

/* Tag: category-specific color instead of always cyan              */
.tutorial-card .tutorial-tag {
  background: rgba(var(--cat-rgb, 6, 182, 212), 0.12);
  color: var(--cat-lite, var(--secondary-color));
  border-color: rgba(var(--cat-rgb, 6, 182, 212), 0.3);
}

/* Hover border: follow category color                              */
.tutorial-card:hover {
  border-color: rgba(var(--cat-rgb, 6, 182, 212), 0.5);
}

/* CTA button: category-tinted on rest, solid on hover             */
.tutorial-card .btn-watch {
  background: rgba(var(--cat-rgb, 6, 182, 212), 0.1);
  color: var(--cat-lite, var(--secondary-color));
  border-color: rgba(var(--cat-rgb, 6, 182, 212), 0.3);
}

.tutorial-card .btn-watch:hover {
  background: rgba(var(--cat-rgb, 6, 182, 212), 0.9);
  color: var(--darker-bg);
  border-color: transparent;
}

/* ── Why-Us — icon-matching heading colors ──────────────────────── */
/* Each heading echoes its icon box's accent color.                 */

.why-item:nth-child(1) h3 { color: var(--blue-300); }  /* 🔒 blue-300  */
.why-item:nth-child(2) h3 { color: #67e8f9; }  /* ⚙️ cyan-300  */
.why-item:nth-child(3) h3 { color: #f9a8d4; }  /* 💬 pink-300  */
.why-item:nth-child(4) h3 { color: #c4b5fd; }  /* 🚀 violet-300 */

/* ── Service Cards — top-border color carried to heading ────────── */

.service-card:nth-child(1) h3 { color: var(--blue-300); }  /* blue      — Infrastructure  */
.service-card:nth-child(2) h3 { color: #67e8f9; }  /* cyan      — Connectivity   */
.service-card:nth-child(3) h3 { color: #c4b5fd; }  /* violet    — Server Mgmt    */
.service-card:nth-child(4) h3 { color: #fda4af; }  /* rose      — Cybersecurity  */
.service-card:nth-child(5) h3 { color: #6ee7b7; }  /* emerald   — Consulting     */

/* ── Benefit Items (Academy intro) — emoji-matched headings ─────── */

.benefit-item:nth-child(1) h4 { color: #fda4af; }  /* 🔒 → rose   (security) */
.benefit-item:nth-child(2) h4 { color: #fcd34d; }  /* 💰 → amber  (money)    */
.benefit-item:nth-child(3) h4 { color: #67e8f9; }  /* ⚙️ → cyan   (tools)    */
.benefit-item:nth-child(4) h4 { color: #a5b4fc; }  /* 📚 → indigo (knowledge) */

/* ── Icon glow: category-tinted drop shadow ─────────────────────── */

.tutorial-card .thumb-icon-img {
  filter: drop-shadow(0 0 20px rgba(var(--cat-rgb, 6, 182, 212), 0.4));
}

.tutorial-card:hover .thumb-icon-img {
  filter: drop-shadow(0 0 28px rgba(var(--cat-rgb, 6, 182, 212), 0.55));
}

/* ── Section title accent bar — section-specific color ──────────── */
/* Each major section gets its own accent bar color for personality. */

.services .section-title::after {
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.customers .section-title::after {
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.academy-faq .section-title::after {
  background: linear-gradient(90deg, transparent, var(--purple-color), transparent);
}

/* ================================================================
   Animate Pass — Micro-interactions & Motion System
   ================================================================ */

/* ── Header: elevated state when page is scrolled ───────────────── */

.header {
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background-color: rgba(15, 23, 42, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* ── Copy button: checkmark pop on success ──────────────────────── */

@keyframes copy-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.2); }
  65%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}

.copy-btn.copied {
  animation: copy-pop 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Why-icon: kinetic rock on item hover ───────────────────────── */

@keyframes icon-rock {
  0%, 100% { transform: scale(1.03) rotate(0deg); }
  28%       { transform: scale(1.08) rotate(-12deg); }
  72%       { transform: scale(1.08) rotate(12deg); }
}

.why-item:hover .why-icon {
  animation: icon-rock 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Tutorial thumbnail: lift + scale on hover ──────────────────── */

.tutorial-card:hover .thumb-icon-img {
  transform: scale(1.12) translateY(-5px);
}

/* ── Benefit items: fade-in scroll reveal ───────────────────────── */

.benefit-item {
  opacity: 0;
}

.benefit-item.in-view {
  opacity: 1;
}

/* ── Featured section inner: fade-up scroll reveal ─────────────── */

.featured-inner {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Disable all animate-pass animations for reduced-motion users     */
@media (prefers-reduced-motion: reduce) {
  .copy-btn.copied,
  .why-item:hover .why-icon {
    animation: none !important;
  }
  .featured-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .benefit-item {
    opacity: 1;
  }
}

/* === Typography: prose readability === */
.service-text-col p,
.tut-desc,
.enrichment-section p,
.privacy-body p,
.about-body p,
.founder-bio {
  max-width: 65ch;
}

/* ================================================================
   Quieter Pass — Reduce intensity, increase refinement
   ================================================================ */

/* ── Unify heading colors — remove per-item color variation ─────── */
/* The icon boxes (why-items) and colored top borders (service-cards) */
/* already provide per-item color personality. Headings should be    */
/* consistent so they don't compete.                                 */

.why-item:nth-child(1) h3,
.why-item:nth-child(2) h3,
.why-item:nth-child(3) h3,
.why-item:nth-child(4) h3 { color: var(--heading-color); }

.service-card:nth-child(1) h3,
.service-card:nth-child(2) h3,
.service-card:nth-child(3) h3,
.service-card:nth-child(4) h3,
.service-card:nth-child(5) h3 { color: var(--heading-color); }

.benefit-item:nth-child(1) h4,
.benefit-item:nth-child(2) h4,
.benefit-item:nth-child(3) h4,
.benefit-item:nth-child(4) h4 { color: var(--heading-color); }

/* ── Unify section title accent bars ────────────────────────────── */
/* Per-section accent bar colors add visual noise without hierarchy; */
/* a single brand accent is more coherent.                           */

.services .section-title::after,
.customers .section-title::after,
.academy-faq .section-title::after {
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* ── Tutorial cards: reduce category color intensity ────────────── */
/* The concept (category differentiation) stays; the opacity is     */
/* pulled back so cards feel calm rather than competing.             */

.tutorial-card .tutorial-thumb {
  background: linear-gradient(
    135deg,
    rgba(var(--cat-rgb, 6, 182, 212), 0.05) 0%,
    var(--dark-bg) 100%
  );
}

.tutorial-card:hover .tutorial-thumb {
  background: linear-gradient(
    135deg,
    rgba(var(--cat-rgb, 6, 182, 212), 0.1) 0%,
    rgba(var(--cat-rgb, 6, 182, 212), 0.02) 100%
  );
}

.tutorial-card .tutorial-tag {
  background: rgba(var(--cat-rgb, 6, 182, 212), 0.08);
  color: var(--cat-lite, var(--secondary-color));
  border-color: rgba(var(--cat-rgb, 6, 182, 212), 0.2);
}

/* ── Soften icon-rock animation ─────────────────────────────────── */
/* ±5° is still kinetic but not flailing.                           */

@keyframes icon-rock {
  0%, 100% { transform: scale(1.03) rotate(0deg); }
  28%       { transform: scale(1.05) rotate(-5deg); }
  72%       { transform: scale(1.05) rotate(5deg); }
}

/* ── Soften copy-pop ────────────────────────────────────────────── */

@keyframes copy-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.1); }
  65%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}


/* ================================================================
   Tutorial Search Bar
   ================================================================ */

.tut-search-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0.25rem;
}

.tut-search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.tut-search-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.tut-search-box:focus-within .tut-search-icon {
  color: var(--secondary-color);
}

.tut-search-input {
  width: 100%;
  padding: 0.75rem 2.75rem;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 9999px;
  color: var(--heading-color);
  font-family: inherit;
  font-size: var(--text-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tut-search-input::placeholder {
  color: var(--text-muted);
}

/* Hide browser's default clear button — we have our own */
.tut-search-input::-webkit-search-cancel-button,
.tut-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.tut-search-input:focus {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--focus-ring);
}

.tut-search-clear {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.625rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.tut-search-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--heading-color);
}

.tut-search-clear[hidden] {
  display: none;
}

.tut-search-clear:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .tut-search-wrap {
    padding: 1.5rem 0 0;
  }
  .tut-search-box {
    max-width: 100%;
  }
}

/* ── Reduce featured-inner entrance travel ──────────────────────── */

.featured-inner {
  transform: translateY(14px);
}

/* ================================================================
   Colorize Pass 2 — Strategic Warmth & Section Atmosphere
   ================================================================ */

/* ── Services: subtle blue radial atmosphere ─────────────────────── */
.services::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Customers: subtle warm glow ─────────────────────────────────── */
.customers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.035) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Academy trust: subtle cyan glow ─────────────────────────────── */
.academy-trust::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.045) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer: gradient top border ─────────────────────────────────── */
.footer {
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--primary-color) 30%, var(--secondary-color) 70%, transparent 95%);
  opacity: 0.5;
}

/* ── Nav CTA: Contact link gets blue pill treatment ──────────────── */
.nav-links a.btn-nav::after {
  display: none;
}

.nav-links a.btn-nav {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-300);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-links a.btn-nav:hover,
.nav-links a.btn-nav:focus-visible {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ── About page: semantic stat colors ────────────────────────────── */
.about-stat:nth-child(1) .n { color: var(--secondary-color); }
.about-stat:nth-child(2) .n { color: #a78bfa; }
.about-stat:nth-child(3) .n { color: #34d399; }
.about-stat:nth-child(4) .n { color: #fbbf24; }

/* ── Privacy/Terms: heading accent via color, not border ─────────── */
.privacy-body h2 {
  color: var(--heading-color);
  padding-inline-start: 0;
}

/* ── Service detail bullets: match card border color ─────────────── */
.service-card:nth-child(1) .service-details li::before { background-color: var(--primary-color); }
.service-card:nth-child(2) .service-details li::before { background-color: var(--secondary-color); }
.service-card:nth-child(3) .service-details li::before { background-color: var(--purple-color); }
.service-card:nth-child(4) .service-details li::before { background-color: var(--accent-color); }
.service-card:nth-child(5) .service-details li::before { background-color: var(--green-color); }

/* ── FAQ section: accent glow on open items ──────────────────────── */
.faq-item[open] {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08), 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── About expertise items: hover tint ───────────────────────────── */
.exp-item {
  transition: border-color 0.25s ease, background 0.25s ease;
}

.exp-item:hover {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(30, 41, 59, 0.7);
}

/* ── Why-us: warm surface on hover ───────────────────────────────── */
.why-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

/* ── Academy trust: ensure relative positioning for atmosphere ───── */
.academy-trust {
  position: relative;
}

/* ================================================================
   Adapt — Cross-context responsiveness fixes
   ================================================================ */

/* Donate copy button: guarantee 44px touch target (min-height was unset) */
.donate-copy-btn {
  min-height: 44px;
}

/* Customer logo: clamp dimensions so the marquee cards compress
   gracefully on very narrow viewports instead of staying rigidly fixed */
.customer-logo {
  width: clamp(160px, 40vw, 220px);
  height: clamp(90px, 25vw, 120px);
}

/* Mobile landscape: reduce hero top-padding so above-fold content
   remains visible without scrolling in short landscape viewports */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 5rem 0 2.5rem;
  }

  .tech-graphic {
    height: 200px;
  }

  .hero-visual {
    display: none;
  }
}

/* Tablet (769–1024px): ensure services grid uses 2 columns, not 1 */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Small phones (≤360px): loosen the tutorial filter tabs so they
   don't overflow their container */
@media (max-width: 360px) {
  .tabs-container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .tabs-container::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
  }
}
