/* ==========================================================================
   Roots Software House — Official Stylesheet
   Domain: roots-sa.com
   Aesthetic: Dark-first, high-precision enterprise tech (Linear/Vercel/Stripe-inspired)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-dark: #070a0e;
  --bg-surface: #0e1319;
  --bg-surface-hover: #141c25;
  --bg-surface-elevated: #1a2430;
  --bg-glass: rgba(14, 19, 25, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(0, 191, 165, 0.35);
  --border-accent-glow: rgba(0, 191, 165, 0.6);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a0e;

  /* Roots Signature Teal Accent */
  --accent-teal: #00bfa5;
  --accent-teal-bright: #00e6c5;
  --accent-teal-dark: #00897b;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;

  --accent-gradient: linear-gradient(135deg, #00bfa5 0%, #0d9488 50%, #059669 100%);
  --accent-glow: rgba(0, 191, 165, 0.2);
  --accent-glow-strong: rgba(0, 191, 165, 0.4);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions & Animation */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Shadows & Depth */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(0, 191, 165, 0.15);
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 191, 165, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

/* --- Typography & Utilities --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.25);
  color: var(--accent-teal);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.section-padding {
  padding-block: 100px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-teal);
  color: #041014;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  border: 1px solid var(--accent-teal-bright);
}

.btn-primary:hover {
  background: var(--accent-teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 197, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

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

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  height: 72px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-icon-wrapper svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 191, 165, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 191, 165, 0.3);
  text-transform: uppercase;
  margin-left: 2px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher:hover {
  background: rgba(0, 191, 165, 0.12);
  border-color: var(--border-accent);
  color: var(--accent-teal);
  transform: translateY(-1px);
}

.lang-switcher-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-teal);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-surface-elevated);
  z-index: 1100;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  border-left: 1px solid var(--border-medium);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.drawer-link:hover {
  color: var(--accent-teal);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(14, 19, 25, 0.8);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-text strong {
  color: var(--text-main);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Hero Interactive Blueprint Visual */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(14, 19, 25, 0.9) 0%, rgba(7, 10, 14, 0.95) 100%);
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--accent-glow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(14, 19, 25, 0.85);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 191, 165, 0.15);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.pulse-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Section 3: Value Proposition --- */
.value-section {
  position: relative;
  background: rgba(14, 19, 25, 0.5);
  border-block: 1px solid var(--border-subtle);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--accent-teal);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.2);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.value-icon-box svg {
  width: 28px;
  height: 28px;
}

.value-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.value-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Section 4: Services --- */
.services-section {
  position: relative;
}

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

.service-card {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-glow);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.15) 0%, rgba(14, 19, 25, 0.8) 100%);
  border: 1px solid rgba(0, 191, 165, 0.25);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.service-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.service-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-teal);
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.service-card:hover .service-action {
  gap: 12px;
  color: var(--accent-teal-bright);
}

/* --- Section 5: Technologies --- */
.tech-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
  position: relative;
}

.tech-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tech-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tab:hover, .tech-tab.active {
  background: rgba(0, 191, 165, 0.12);
  border-color: var(--border-accent);
  color: var(--accent-teal);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.tech-card {
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

.tech-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tech-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.tech-info {
  display: flex;
  flex-direction: column;
}

.tech-name {
  font-size: 1rem;
  font-weight: 700;
}

.tech-role {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* --- Section 6: Process --- */
.process-section {
  position: relative;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
  z-index: 1;
  opacity: 0.4;
}

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all var(--transition-normal);
}

.process-step:hover .step-node {
  background: var(--accent-teal);
  color: #041014;
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-teal);
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Section 7: Why Roots --- */
.why-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  border: 1px solid var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 191, 165, 0.2);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

.item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.item-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-pill-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.feature-pill-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pill-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pill-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --- Section 8: Vision Banner --- */
.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-box {
  position: relative;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(14, 19, 25, 0.95) 0%, rgba(7, 10, 14, 0.98) 100%);
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px var(--accent-glow);
  text-align: center;
  overflow: hidden;
}

.vision-bg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.vision-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 32px auto;
  letter-spacing: -0.02em;
}

.vision-brand-callout {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  text-shadow: 0 0 30px var(--accent-glow-strong);
}

/* --- Section 9: CTA & Interactive Contact Form --- */
.cta-section {
  position: relative;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.cta-info-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 191, 165, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text label {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;

  display: block;
  margin-bottom: 2px;
}

.contact-text a, .contact-text span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-text a:hover {
  color: var(--accent-teal);
}

/* Interactive Form */
.project-form-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.budget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.budget-pill-input {
  display: none;
}

.budget-pill-label {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.budget-pill-input:checked + .budget-pill-label {
  background: rgba(0, 191, 165, 0.15);
  border-color: var(--border-accent);
  color: var(--accent-teal);
}

.form-status {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* --- Section 10: Footer --- */
.footer {
  background: #040608;
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  color: var(--accent-teal);
  font-weight: 600;
}

/* --- Animations & Responsive Adjustments --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .step-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .why-grid, .cta-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .value-grid, .services-grid {
    grid-template-columns: 1fr;
  }

  .why-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@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;
  }
}

/* ==========================================================================
   RTL (Right-to-Left) Styles for Arabic Language Support
   ========================================================================== */
[dir="rtl"] {
  text-align: right;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[dir="rtl"] .brand-badge {
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .btn:hover .btn-icon {
  transform: translateX(-4px);
}

[dir="rtl"] .btn-icon {
  transform: rotate(180deg);
}

[dir="rtl"] .btn:hover .btn-icon {
  transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .section-header {
  text-align: center;
}

[dir="rtl"] .why-section .section-title,
[dir="rtl"] .why-section .section-subtitle,
[dir="rtl"] .cta-info-box .section-title,
[dir="rtl"] .cta-info-box .section-subtitle {
  text-align: right;
}

[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border-medium);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  transition: left var(--transition-normal);
}

[dir="rtl"] .mobile-drawer.open {
  right: auto;
  left: 0;
}

[dir="rtl"] .service-action svg {
  transform: rotate(180deg);
}

[dir="rtl"] .service-card:hover .service-action svg {
  transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .process-step {
  text-align: center;
}

@media (max-width: 1024px) {
  [dir="rtl"] .process-step {
    text-align: right;
  }
}

[dir="rtl"] .comparison-item {
  direction: rtl;
}

[dir="rtl"] .footer-bottom {
  direction: rtl;
}

