/* =========================================
   Awdiya — Style Sheet
   ========================================= */

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

:root {
  /* Blues / Indigo */
  --blue-900: #0F172A;
  --blue-800: #1E293B;
  --blue-700: #1E3A5F;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  /* Neutrals */
  --gray-900: #0F172A;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;

  /* Semantic */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-light: var(--blue-50);
  --color-bg: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-text: var(--gray-800);
  --color-text-light: var(--gray-500);
  --color-text-heading: var(--gray-900);
  --color-border: var(--gray-200);

  /* Spacing */
  --section-py: 100px;
  --container-px: 24px;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Primary alpha shades */
  --color-primary-a03: rgba(37,99,235,0.03);
  --color-primary-a08: rgba(37,99,235,0.08);
  --color-primary-a10: rgba(37,99,235,0.1);
  --color-primary-a12: rgba(37,99,235,0.12);
  --color-primary-a25: rgba(37,99,235,0.25);
  --color-primary-a30: rgba(37,99,235,0.3);
  --color-primary-a40: rgba(37,99,235,0.4);

  /* Status */
  --color-success: #16a34a;
  --color-error: #DC2626;

  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --transition: 0.3s ease;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: var(--blue-500);
    --color-primary-hover: var(--blue-400);
    --color-primary-light: rgba(59,130,246,0.12);
    --color-primary-a03: rgba(59,130,246,0.05);
    --color-primary-a08: rgba(59,130,246,0.1);
    --color-primary-a10: rgba(59,130,246,0.12);
    --color-primary-a12: rgba(59,130,246,0.15);
    --color-primary-a25: rgba(59,130,246,0.25);
    --color-primary-a30: rgba(59,130,246,0.3);
    --color-primary-a40: rgba(59,130,246,0.4);
    --color-bg: #0B0F1A;
    --color-bg-alt: #111827;
    --color-surface: #1A1F2E;
    --color-text: #CBD5E1;
    --color-text-light: #94A3B8;
    --color-text-heading: #F1F5F9;
    --color-border: rgba(255,255,255,0.08);
    --color-success: #22c55e;
    --color-error: #F87171;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

[data-theme="dark"] {
  --color-primary: var(--blue-500);
  --color-primary-hover: var(--blue-400);
  --color-primary-light: rgba(59,130,246,0.12);
  --color-primary-a03: rgba(59,130,246,0.05);
  --color-primary-a08: rgba(59,130,246,0.1);
  --color-primary-a10: rgba(59,130,246,0.12);
  --color-primary-a12: rgba(59,130,246,0.15);
  --color-primary-a25: rgba(59,130,246,0.25);
  --color-primary-a30: rgba(59,130,246,0.3);
  --color-primary-a40: rgba(59,130,246,0.4);
  --color-bg: #0B0F1A;
  --color-bg-alt: #111827;
  --color-surface: #1A1F2E;
  --color-text: #CBD5E1;
  --color-text-light: #94A3B8;
  --color-text-heading: #F1F5F9;
  --color-border: rgba(255,255,255,0.08);
  --color-success: #22c55e;
  --color-error: #F87171;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

/* Dark mode header */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header.scrolled {
    background: rgba(11,15,26,0.92);
  }
}
[data-theme="dark"] .header.scrolled {
  background: rgba(11,15,26,0.92);
}

/* Dark mode footer */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer {
    background: #060912;
  }
}
[data-theme="dark"] .footer {
  background: #060912;
}

/* Dark mode section tag border */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-tag {
    border-color: rgba(59,130,246,0.25);
  }
}
[data-theme="dark"] .section-tag {
  border-color: rgba(59,130,246,0.25);
}

/* Dark mode project badge */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project-tags li {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
  }
}
[data-theme="dark"] .project-tags li {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

/* Dark mode card glow */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .solution-card:hover,
  :root:not([data-theme="light"]) .about-card:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(59,130,246,0.1), inset 0 0 0 1px rgba(59,130,246,0.15);
  }
}
[data-theme="dark"] .solution-card:hover,
[data-theme="dark"] .about-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59,130,246,0.1), inset 0 0 0 1px rgba(59,130,246,0.15);
}

/* Dark mode btn-outline-dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline-dark {
    color: var(--color-text-heading);
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  }
  :root:not([data-theme="light"]) .btn-outline-dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--color-primary-a40);
    box-shadow:
      0 4px 16px var(--color-primary-a10),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
}
[data-theme="dark"] .btn-outline-dark {
  color: var(--color-text-heading);
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary-a40);
  box-shadow:
    0 4px 16px var(--color-primary-a10),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Dark mode form inputs */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-group input,
  :root:not([data-theme="light"]) .form-group textarea {
    background: #111827;
    border-color: rgba(255,255,255,0.1);
    color: var(--color-text-heading);
  }
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #111827;
  border-color: rgba(255,255,255,0.1);
  color: var(--color-text-heading);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.25;
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Buttons (Liquid Glass) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-a40), var(--color-primary-a25));
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box-shadow:
    0 2px 8px var(--color-primary-a25),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-a40));
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px var(--color-primary-a30),
    0 0 0 1px var(--color-primary-a10),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
}

.header.scrolled .nav-logo {
  color: var(--color-text-heading);
}

.logo-icon {
  color: inherit;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.header.scrolled .nav-link {
  color: var(--color-text);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-cta {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.nav-cta:hover {
  background: #fff;
  color: var(--color-primary) !important;
}

.header.scrolled .nav-cta {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.header.scrolled .nav-cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
  border-color: var(--color-primary-hover);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.header.scrolled .nav-toggle span {
  background: var(--color-text-heading);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.78) 40%, rgba(30,58,95,0.72) 70%, rgba(37,99,235,0.65) 100%),
    url('../assets/hero-valley.jpg') center/cover no-repeat;
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 70%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
}


.hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ── Sections ── */
.section {
  padding: var(--section-py) 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1.5px solid var(--blue-200);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── About ── */
.about {
  background: var(--color-bg);
}

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

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 16px;
  font-size: 1.5rem;
}

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Solutions ── */
.solutions {
  background: var(--color-bg-alt);
}

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

.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-primary);
  border-radius: 0 0 4px 0;
  transition: height 0.4s ease;
}

.solution-card:hover::before {
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 14px;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  transition: all var(--transition);
}

.solution-link:hover {
  gap: 12px;
}

.solution-link i {
  font-size: 0.8rem;
  transition: transform var(--transition);
}

.solution-link:hover i {
  transform: translateX(4px);
}

/* ── Projects ── */
.projects {
  background: var(--color-bg);
}

.project-showcase {
  max-width: 680px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--color-primary-a08);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--color-success);
  padding: 4px 14px;
  border-radius: 50px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.project-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 18px;
  font-size: 1.8rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.project-card > p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-tags li {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.project-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-dark {
  background: var(--color-primary-a03);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-outline-dark:hover {
  background: var(--color-primary-a08);
  border-color: var(--color-primary-a40);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px var(--color-primary-a10),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ── Features ── */
.features {
  background: var(--color-bg);
}

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

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 1.1rem;
}

.feature-text h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-text p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Contact ── */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-heading);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-a12);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

.form-success i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.form-success p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-heading);
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-info-item a {
  color: var(--color-text-light);
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--gray-400);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 100;
}

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

.back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: loaderDraw 1.2s ease forwards;
}

@keyframes loaderDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.loader-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text-heading);
  opacity: 0;
  animation: loaderFade 0.6s ease 0.4s forwards;
}

@keyframes loaderFade {
  to { opacity: 1; }
}

/* ── Process ── */
.process {
  background: var(--color-bg-alt);
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.process-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 12px;
}

.process-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 16px;
  font-size: 1.4rem;
  transition: all var(--transition);
}

.process-step:hover .process-icon {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--color-primary-a25);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.process-connector {
  display: flex;
  align-items: center;
  padding-top: 50px;
  color: var(--color-border);
  font-size: 0.9rem;
}

/* ── FAQ ── */
.faq {
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--blue-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text-heading);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  transition: all var(--transition);
}

.faq-item.open .faq-toggle {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.cta-content {
  position: relative;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn {
  box-shadow:
    0 4px 20px var(--color-primary-a30),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 600px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  animation: cookieSlideUp 0.5s ease;
}

@keyframes cookieSlideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-content a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--color-text-light);
  border: 1.5px solid var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-text-light);
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Footer Legal ── */
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.83rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

/* ── Legal Modal ── */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: var(--color-surface);
  border-radius: 16px;
  width: 90%;
  max-width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.legal-modal-overlay.active .legal-modal {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  margin: 0;
}

.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all var(--transition);
}

.legal-modal-close:hover {
  color: var(--color-text-heading);
  background: var(--color-bg-alt);
}

.legal-content {
  padding: 32px;
  overflow-y: auto;
}

.legal-date {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-text-heading);
}

.legal-content p {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

html[dir="rtl"] .legal-content ul {
  padding-left: 0;
  padding-right: 24px;
}

.legal-content li {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ── Legal Modal Dark Mode ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-modal-overlay {
    background: rgba(0,0,0,0.75);
  }
  :root:not([data-theme="light"]) .legal-modal {
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  }
  :root:not([data-theme="light"]) .legal-modal-header {
    border-color: rgba(255,255,255,0.06);
  }
  :root:not([data-theme="light"]) .legal-content a {
    color: var(--color-primary);
  }
}

[data-theme="dark"] .legal-modal-overlay {
  background: rgba(0,0,0,0.75);
}
[data-theme="dark"] .legal-modal {
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
[data-theme="dark"] .legal-modal-header {
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .legal-content a {
  color: var(--color-primary);
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600), var(--blue-400));
  z-index: 1001;
  transition: width 0.1s linear;
}

html[dir="rtl"] .scroll-progress {
  left: auto;
  right: 0;
}

/* ── Hero Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(15px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-40px) translateX(20px); }
  100% { transform: translateY(0) translateX(0); }
}



/* ── Hero Entrance Animations ── */
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  transform: translateY(30px);
}

body.loaded .hero-title {
  animation: heroFadeUp 0.8s ease forwards;
}

body.loaded .hero-subtitle {
  animation: heroFadeUp 0.8s ease 0.3s forwards;
}

body.loaded .hero-actions {
  animation: heroFadeUp 0.8s ease 0.5s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Text Reveal per word ── */
.text-reveal {
  display: inline-block;
  animation: wordReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(20deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

/* ── Icon bounce on hover ── */
.icon-animate {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.2) rotate(-8deg); }
  60% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Card glow border on hover ── */
.solution-card,
.about-card {
  transition: all 0.4s ease, box-shadow 0.4s ease;
}

.solution-card:hover,
.about-card:hover {
  box-shadow:
    var(--shadow-lg),
    0 0 30px var(--color-primary-a08),
    inset 0 0 0 1px var(--color-primary-a10);
}

/* ── Button shimmer effect (Liquid Glass) ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: none;
}

.btn-primary:hover::after {
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ── Form sending animation ── */
.form-sending {
  opacity: 0.5;
  pointer-events: none;
  transform: scale(0.98);
  transition: all 0.4s ease;
}

.form-hidden {
  display: none;
}

/* ── Form success animation ── */
.form-success-animate {
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Feature item hover slide ── */
.feature-item {
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-a03), transparent);
  transition: width 0.4s ease;
}

.feature-item:hover::before {
  width: 100%;
}

/* ── Footer social pulse ── */
.footer-social a:hover {
  animation: socialPulse 0.4s ease;
}

@keyframes socialPulse {
  0% { box-shadow: 0 0 0 0 var(--color-primary-a40); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.about-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.about-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.solution-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.solution-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.solution-card.reveal:nth-child(4) { transition-delay: 0.2s; }

.feature-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-item.reveal:nth-child(4) { transition-delay: 0.16s; }
.feature-item.reveal:nth-child(5) { transition-delay: 0.2s; }
.feature-item.reveal:nth-child(6) { transition-delay: 0.24s; }

.hero-stat:nth-child(2) { transition-delay: 0.1s; }
.hero-stat:nth-child(3) { transition-delay: 0.2s; }

/* ── Theme Toggle ── */
.theme-toggle {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

.header.scrolled .theme-toggle {
  color: var(--color-text);
  border-color: var(--color-border);
}

.header.scrolled .theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ── Language Toggle ── */
.lang-toggle {
  font-family: 'IBM Plex Sans Arabic', var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
  text-decoration: none;
}

.lang-toggle:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

.header.scrolled .lang-toggle {
  color: var(--color-text);
  border-color: var(--color-border);
}

.header.scrolled .lang-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── RTL Support ── */
html[dir="rtl"] {
  --font-heading: 'IBM Plex Sans Arabic', 'Montserrat', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav-menu {
  direction: rtl;
}

html[dir="rtl"] .solution-card::before {
  left: auto;
  right: 0;
  border-radius: 0 0 0 4px;
}

html[dir="rtl"] .solution-link i {
  transform: scaleX(-1);
}

html[dir="rtl"] .solution-link:hover i {
  transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .feature-item {
  text-align: right;
}

html[dir="rtl"] .feature-item::before {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, var(--color-primary-a03), transparent);
}

html[dir="rtl"] .contact-info-item {
  text-align: right;
}

html[dir="rtl"] .footer-brand p {
  text-align: right;
}

html[dir="rtl"] .nav-toggle.open span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5.5px);
}

html[dir="rtl"] .nav-toggle.open span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5.5px);
}

html[dir="rtl"] .btn i.fa-paper-plane {
  transform: scaleX(-1);
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

html[dir="rtl"] .process-connector i {
  transform: scaleX(-1);
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 32px;
}

/* Mobile RTL nav */
@media (max-width: 768px) {
  html[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
  }

  html[dir="rtl"] .nav-menu.open {
    left: 0;
  }

  html[dir="rtl"] .feature-item {
    text-align: center;
  }
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
  }

  .process-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    max-width: 100%;
  }

  .faq-question {
    text-align: left;
    font-size: 0.9rem;
    padding: 16px 20px;
  }

  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

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

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 28px 28px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
  }

  .nav-cta {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    text-align: center;
    margin-top: 12px;
  }

  .nav-cta:hover {
    background: var(--color-primary-hover);
    color: #fff;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 140px 0 100px;
  }

  .hero-stats {
    gap: 28px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  /* Grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-card {
    padding: 32px 24px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 20px;
  }

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  html[dir="rtl"] .back-to-top {
    left: 20px;
  }

  .legal-modal {
    width: 95%;
    max-height: 85vh;
    border-radius: 12px;
  }

  .legal-modal-header {
    padding: 16px 20px;
  }

  .legal-modal-header h2 {
    font-size: 1.1rem;
  }

  .legal-content {
    padding: 20px;
  }

  .legal-content h3 {
    font-size: 0.95rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.85rem;
  }
}

/* ── Reduced Motion ── */
@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;
  }
}
