/* ContractorPass — Production CSS
   V1 Blue Theme | Mobile-first | PageSpeed Optimized
   ================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-800: #1e3a8a;
  --brand-900: #172554;
  --accent-400: #f59e0b;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --success: #16a34a;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 80rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
}

.section-label {
  display: block;
  color: var(--brand-500);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 50;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--brand-600);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-800);
}

.nav__logo-text span {
  color: var(--brand-500);
}

.nav__logo-icon-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.footer__brand-icon-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--brand-500);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav__login {
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__login:hover {
  color: var(--brand-500);
}

.nav__mobile-btn {
  display: flex;
  padding: 0.5rem;
}

.nav__mobile-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  padding: 1rem;
}

.mobile-menu[aria-hidden="false"] {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  color: var(--gray-600);
}

.mobile-menu a.nav__link--active {
  color: var(--brand-500);
  font-weight: 600;
}

.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0.5rem 0;
}

.mobile-menu .btn--primary {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-600);
}

.btn--accent {
  background: var(--accent-400);
  color: var(--gray-900);
  font-weight: 700;
}

.btn--accent:hover {
  background: var(--accent-500);
}

.btn--outline-white {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--outline-white:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-brand {
  border: 2px solid var(--brand-500);
  color: var(--brand-500);
}

.btn--outline-brand:hover {
  background: var(--brand-50);
}

.btn--outline {
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn--outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn--full {
  display: block;
  width: 100%;
  text-align: center;
}

.btn--lg {
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.65) 45%, rgba(10, 22, 40, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, transparent 30%, transparent 70%, rgba(10, 22, 40, 0.6) 100%);
  z-index: 1;
}

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

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Countdown badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero__badge-text {
  color: #bfdbfe;
  font-size: 0.875rem;
}

.hero__badge-text strong {
  color: var(--accent-400);
}

.hero__badge-sep {
  color: rgba(147, 197, 253, 0.5);
}

.hero__badge-countdown {
  color: #bfdbfe;
  font-size: 0.875rem;
}

.hero__title {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  color: var(--accent-400);
}

.hero__desc {
  font-size: 1.125rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  max-width: 36rem;
}

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

.hero__note {
  color: #bfdbfe;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Score card (hidden on mobile) */
.hero__score-card {
  display: none;
}

.score-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 2rem;
  width: 24rem;
  max-width: 100%;
}

.score-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.score-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.score-card__company {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.score-card__ring {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.score-card__ring-wrap {
  position: relative;
  width: 10rem;
  height: 10rem;
}

.score-card__ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: var(--success);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 42;
  transition: stroke-dashoffset 1s ease;
}

.score-card__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-card__ring-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-800);
}

.score-card__ring-max {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.score-card__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.score-item--green {
  background: #f0fdf4;
}

.score-item--amber {
  background: #fffbeb;
}

.score-item--red {
  background: #fef2f2;
}

.score-item__label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.score-item__badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.score-item__badge--green {
  color: #15803d;
  background: #dcfce7;
}

.score-item__badge--amber {
  color: #92400e;
  background: #fef3c7;
}

.score-item__badge--red {
  color: #b91c1c;
  background: #fee2e2;
}

/* ---------- Urgency Bar ---------- */
.urgency-bar {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 1rem 0;
}

.urgency-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.urgency-bar__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d97706;
  flex-shrink: 0;
}

.urgency-bar__text {
  color: #92400e;
  font-weight: 500;
}

.urgency-bar__text strong {
  font-weight: 700;
}

/* ---------- Problem Section ---------- */
.problem {
  padding: 5rem 0;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.problem__grid {
  display: grid;
  gap: 3rem;
}

.problem__title {
  font-size: 1.875rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.problem__desc {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.problem__item--red {
  background: #fef2f2;
  border-color: #fecaca;
}

.problem__item--amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.problem__item--gray {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.problem__item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem__item-icon--red {
  background: #fecaca;
}

.problem__item-icon--amber {
  background: #fde68a;
}

.problem__item-icon--gray {
  background: var(--gray-200);
}

.problem__item-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.problem__item-title {
  font-weight: 600;
  color: var(--gray-900);
}

.problem__item-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Requirements card */
.requirements-card {
  background: var(--brand-900);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.requirements-card__decoration {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.1;
}

.requirements-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.requirements-card__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.req-item__number {
  width: 2rem;
  height: 2rem;
  background: rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.req-item__number span {
  color: var(--brand-300);
  font-weight: 700;
  font-size: 0.875rem;
}

.req-item__title {
  font-weight: 600;
}

.req-item__desc {
  font-size: 0.875rem;
  color: var(--brand-300);
  margin-top: 0.25rem;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 5rem 0;
  background: var(--gray-50);
  position: relative;
}

.how-it-works__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.how-it-works__grid {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-xl);
}

.step__number--dark {
  background: var(--brand-900);
}

.step__number--brand {
  background: var(--brand-500);
  box-shadow: var(--shadow-xl), 0 0 0 8px rgba(37, 99, 235, 0.1);
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step__desc {
  color: var(--gray-600);
}

/* Dashed connectors (desktop only) */
.step__connector {
  display: none;
}

/* ---------- Features ---------- */
.features {
  padding: 5rem 0;
  background: #fff;
}

.features__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.features__grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card__icon--green { background: #dcfce7; }
.feature-card__icon--green svg { color: #16a34a; }
.feature-card__icon--blue { background: #dbeafe; }
.feature-card__icon--blue svg { color: #2563eb; }
.feature-card__icon--purple { background: #f3e8ff; }
.feature-card__icon--purple svg { color: #9333ea; }
.feature-card__icon--amber { background: #fef3c7; }
.feature-card__icon--amber svg { color: #d97706; }
.feature-card__icon--red { background: #fee2e2; }
.feature-card__icon--red svg { color: #dc2626; }
.feature-card__icon--indigo { background: #e0e7ff; }
.feature-card__icon--indigo svg { color: #4f46e5; }

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  padding: 4rem 0;
  background: var(--brand-900);
  position: relative;
  overflow: hidden;
}

.stats-bar__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.04;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat__value {
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
}

.stat__value--accent {
  color: var(--accent-400);
}

.stat__label {
  color: var(--brand-300);
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* ---------- Built for Dubai ---------- */
.built-for-dubai {
  padding: 5rem 0;
  background: #fff;
}

.built-for-dubai__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.built-for-dubai__visual {
  background: linear-gradient(135deg, var(--brand-50), #dbeafe);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
}

.built-for-dubai__visual svg {
  width: 100%;
  height: auto;
}

.built-for-dubai__title {
  font-size: 1.875rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.built-for-dubai__desc {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

.check-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-list__icon {
  width: 2rem;
  height: 2rem;
  background: var(--brand-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-list__icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-500);
}

.check-list__text {
  color: var(--gray-700);
  font-weight: 500;
}

/* ---------- Pricing Preview ---------- */
.pricing {
  padding: 5rem 0;
  background: var(--gray-50);
}

.pricing__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.pricing__grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card--featured {
  border: 2px solid var(--brand-500);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.pricing-card__price {
  margin: 1rem 0 1.5rem;
}

.pricing-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
}

.pricing-card__period {
  color: var(--gray-500);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.pricing-card__feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  flex-shrink: 0;
}

.pricing__note {
  text-align: center;
  color: var(--gray-500);
  margin-top: 2rem;
}

.pricing__note a {
  color: var(--brand-500);
  font-weight: 500;
}

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

/* ---------- CTA Section ---------- */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.65) 45%, rgba(10, 22, 40, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, transparent 30%, transparent 70%, rgba(10, 22, 40, 0.6) 100%);
  z-index: 1;
}

.cta__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.05;
  z-index: 1;
}

.cta__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: 1.875rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cta__desc {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-inline: auto;
}

.cta__note {
  color: #bfdbfe;
  font-size: 0.875rem;
  margin-top: 1rem;
}

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

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand {
  margin-bottom: 1rem;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer__brand-icon {
  width: 2rem;
  height: 2rem;
  background: var(--brand-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__brand-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.footer__brand-desc {
  font-size: 0.875rem;
}

.footer__brand-company {
  font-size: 0.75rem;
  margin-top: 1rem;
}

.footer__heading {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ---------- Page Hero (shared subpage header) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e293b 100%);
  padding: 6.5rem 0 2.5rem;
  text-align: center;
}

.page-hero .section-label {
  color: var(--brand-400);
}

.page-hero .section-title {
  color: #fff;
  font-size: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-hero .section-subtitle {
  color: var(--gray-400);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
}

.page-hero__meta {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 7.5rem 0 3rem;
  }

  .page-hero .section-title {
    font-size: 2.75rem;
  }
}

/* ---------- Pricing Page ---------- */
.pricing-page {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.pricing-page .pricing__grid {
  max-width: 72rem;
}

.pricing-comparison {
  margin-top: 4rem;
  overflow-x: auto;
}

.pricing-comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.pricing-comparison th,
.pricing-comparison td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

.pricing-comparison th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
}

.pricing-comparison td {
  color: var(--gray-600);
}

/* ---------- Contact Page ---------- */
.contact-page {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.contact-page__grid {
  display: grid;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-500);
}

.contact-info__label {
  font-weight: 600;
  color: var(--gray-900);
}

.contact-info__value {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.125rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .hero__cta {
    flex-direction: row;
  }

  .urgency-bar__inner {
    flex-direction: row;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__mobile-btn {
    display: none;
  }

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

  .hero {
    padding: 9rem 0 7rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .problem__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .problem__title {
    font-size: 2.25rem;
  }

  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step__connector {
    display: block;
    position: absolute;
    top: 2rem;
    left: 60%;
    width: 80%;
    height: 0;
    border-top: 2px dashed var(--gray-300);
  }

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

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

  .cta__title {
    font-size: 2.25rem;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-page__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__score-card {
    display: flex;
    justify-content: center;
  }

  .built-for-dubai__grid {
    grid-template-columns: 1fr 1fr;
  }

  .built-for-dubai__title {
    font-size: 2.25rem;
  }

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

  .stat__value {
    font-size: 2.25rem;
  }
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding-top: 0;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2rem;
  margin-top: -2rem;
  position: relative;
}

.legal-content > p:first-child {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.8;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.9375rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  list-style: none;
}

.legal-content ul li {
  color: var(--gray-600);
  margin-bottom: 0.625rem;
  line-height: 1.8;
  font-size: 0.9375rem;
  position: relative;
  padding-left: 1.25rem;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

.legal-content a {
  color: var(--brand-600);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-content a:hover {
  border-bottom-color: var(--brand-600);
}

.legal-content strong {
  color: var(--gray-800);
  font-weight: 600;
}

@media (min-width: 768px) {
  .legal-content {
    padding: 3rem 3.5rem;
    margin-top: -2.5rem;
  }

  .legal-content h2 {
    font-size: 1.375rem;
  }
}

/* ---------- Auth Pages (Login / Register) ---------- */
.auth-card {
  max-width: 28rem;
  margin: -2rem auto 4rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}

.auth-card--wide {
  max-width: 36rem;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  text-align: center;
}

.auth-card__subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.auth-card__subtitle a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}

.auth-card__subtitle a:hover {
  text-decoration: underline;
}

.auth-card__section {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.auth-card__section legend {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.auth-field label span {
  color: var(--brand-600);
}

.auth-field__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.auth-field__header label {
  margin-bottom: 0;
}

.auth-field__link {
  font-size: 0.8125rem;
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}

.auth-field__link:hover {
  text-decoration: underline;
}

.auth-field__hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"],
.auth-field input[type="date"],
.auth-field input[type="number"],
.auth-field select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.auth-field input::placeholder {
  color: var(--gray-400);
}

.auth-field--checkbox {
  margin-bottom: 1.5rem;
}

.auth-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.auth-field--checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--brand-500);
  flex-shrink: 0;
}

.auth-field--checkbox span {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.auth-field--checkbox a {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
}

.auth-field--checkbox a:hover {
  text-decoration: underline;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-phone-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
}

.auth-phone-row select,
.auth-phone-row input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-phone-row select:focus,
.auth-phone-row input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 500;
}

.auth-card__error {
  margin-top: 1.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
}

.auth-card__error p {
  color: #dc2626;
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 480px) {
  .auth-card {
    margin: -1.5rem 1rem 3rem;
    padding: 2rem 1.25rem;
  }

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

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

.auth-extras {
  max-width: 36rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.auth-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.auth-features__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-features__item svg {
  color: var(--brand-500);
  flex-shrink: 0;
}

.auth-steps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.auth-steps__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-steps__item--active {
  color: var(--gray-700);
}

.auth-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-steps__item--active .auth-steps__num {
  background: var(--brand-500);
  color: #fff;
}

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.auth-trust svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .auth-features,
  .auth-steps {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .auth-card {
    padding: 3rem 2.5rem;
    margin-top: -2.5rem;
  }
}

/* ---------- 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;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav,
  .hero__score-card,
  .mobile-menu,
  .cta,
  .footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    background: #fff;
    color: #000;
    padding: 2rem 0;
  }

  .hero__title,
  .hero__desc {
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  .btn::after {
    display: none;
  }
}

/* ---------- Auth Loading Overlay ---------- */
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none;
}

.auth-loading-overlay.active {
  display: flex;
}

.auth-loading-overlay__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

.auth-loading-overlay__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}
