/* ============================================
   codelux Landing Page — Merged Stylesheet
   global.css + LandingPage.css + CompanyRegistration.css
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / old Edge */
}
html::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / new Edge */
}

body {
  font-family: 'Tajawal', 'Segoe UI', 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  direction: rtl;
  overflow-x: hidden;
}

/* ============================================
   CSS Variables — Design System
   ============================================ */
:root {
  --color-primary: #0EA5E9;
  --color-primary-dark: #0284C7;
  --color-primary-light: #38BDF8;
  --color-secondary: #1E40AF;
  --color-secondary-dark: #1E3A8A;
  --color-accent: #F59E0B;
  --color-accent-dark: #D97706;
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  --color-success: #10B981;
  --color-error: #EF4444;
  --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%);
  --gradient-hero: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #1E40AF 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-base);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

.nav-cta-btn {
  padding: 0.625rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent);
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(30, 64, 175, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

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

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.floating-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-slow);
}

.floating-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.card-1 {
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 45%;
  left: 5%;
  animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
  bottom: 15%;
  right: 20%;
  animation: float 6s ease-in-out infinite 4s;
}

.card-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

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

.hero-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.graphic-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  top: -200px;
  left: -200px;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  top: -150px;
  left: -150px;
  animation-delay: -5s;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  top: -100px;
  left: -100px;
  animation-delay: -10s;
}

/* ============================================
   Section Utilities
   ============================================ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-header-center {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero btn-primary override (white bg on gradient section) */
.hero-cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.hero-cta .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.benefit-card {
  padding: var(--spacing-xl);
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  text-align: center;
}

.benefit-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-base);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
}

.benefit-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600);
}

/* ============================================
   Modules Section
   ============================================ */
.modules-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.modules-section .section-container {
  max-width: 1480px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.module-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.module-header {
  margin-bottom: var(--spacing-lg);
}

.module-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.hr-module {
  background: linear-gradient(135deg, #0EA5E9, #06B6D4);
  color: var(--color-white);
}

.crm-module {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: var(--color-white);
}

.management-module {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: var(--color-white);
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
}

.module-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--color-success);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-top: var(--spacing-sm);
}

.module-badge.coming {
  background: var(--color-gray-400);
}

.module-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-md);
}

.module-features {
  list-style: none;
  padding: 0;
}

.module-features li {
  padding: 0.5rem 0;
  color: var(--color-gray-700);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.module-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  margin-left: 0.5rem;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-white);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.step-item:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
}

.step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-600);
}

.step-arrow {
  font-size: 2rem;
  color: var(--color-gray-300);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-gray-50);
}

.features-grid {
  display: flex;
  gap: var(--spacing-lg);
}

.features-carousel {
  position: relative;
  margin-top: var(--spacing-2xl);
  overflow: hidden;
}

.features-carousel-viewport {
  direction: ltr;
  padding-top: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: auto;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.features-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.features-track {
  direction: ltr;
  gap: 0;
  flex-wrap: nowrap;
  width: max-content;
}

.features-set {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: var(--spacing-lg);
  padding-inline-end: var(--spacing-lg);
}

.features-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.feature-item {
  flex: 0 0 280px;
  direction: rtl;
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon-small {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-xs);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ============================================
   Registration Section
   ============================================ */
.registration-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%);
  color: var(--color-white);
}

.registration-header-section {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.registration-header-section .section-title {
  color: var(--color-white);
}

.registration-header-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Registration Form
   ============================================ */
.registration-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.registration-header {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(30, 64, 175, 0.05));
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.header-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.registration-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.registration-subtitle {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.6;
}

.registration-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-align: right;
}

.required {
  color: #EF4444;
  margin-left: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #111827;
  background: #F9FAFB;
  transition: all 0.2s ease;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.form-group input:focus {
  outline: none;
  border-color: #0EA5E9;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder {
  color: #9CA3AF;
  text-align: right;
}

.submit-section {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Form submit button uses the gradient bg version */
.submit-section .btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%);
  color: var(--color-white);
}

/* Messages */
.error-message {
  background: #FEE2E2;
  border: 1px solid #EF4444;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #991B1B;
  font-size: 0.875rem;
  text-align: center;
  animation: slideInDown 0.3s ease-out;
}

.success-message-box {
  text-align: center;
  padding: 2rem;
  animation: scaleIn 0.5s ease-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
  animation: successPulse 1.5s ease-in-out infinite;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.landing-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--spacing-sm);
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-400);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  padding: 0.375rem 0;
  font-size: 0.95rem;
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

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

.footer-links li:hover,
.footer-links li a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-800);
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.6);
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero-visual {
    height: 400px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

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

}

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

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

  .modules-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-basis: 240px;
  }

  .nav-container {
    padding: 0 var(--spacing-sm);
  }

  .logo-tagline {
    display: none;
  }

  .floating-card {
    padding: var(--spacing-sm);
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .registration-container {
    margin: 0;
    border-radius: 0;
  }

  .registration-header,
  .registration-form {
    padding: 1.5rem;
  }

  .registration-title {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feature-item {
    flex-basis: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-track {
    transform: none;
  }
}

/* ============================================
   ✦ Visual Polish Layer (2026 refresh)
   Appended last so it layers on top of the base.
   ============================================ */

:root {
  /* Brand-tinted shadows feel richer than flat grey */
  --shadow-brand-sm: 0 2px 10px -3px rgba(14, 116, 200, 0.18);
  --shadow-brand-md: 0 10px 28px -8px rgba(14, 116, 200, 0.22);
  --shadow-brand-lg: 0 20px 45px -12px rgba(14, 116, 200, 0.28);
  --shadow-brand-xl: 0 32px 64px -16px rgba(14, 116, 200, 0.34);
}

body {
  color: var(--color-gray-700);
  letter-spacing: 0.1px;
  background:
    radial-gradient(1100px 560px at 100% -8%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 6%, rgba(139, 92, 246, 0.045), transparent 55%),
    #ffffff;
}

/* Tighter, more confident headings */
.hero-title,
.section-title,
.module-title,
.benefit-title { letter-spacing: -0.4px; }

/* Gradient text uses the richer hero gradient */
.gradient-text { background-image: var(--gradient-hero); }

/* ── Navbar: lift on scroll ─────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-brand-md);
}

/* ── Hero: animated aurora backdrop ─────────────────── */
.hero-section {
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 70%);
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 320px at 82% 18%, rgba(14, 165, 233, 0.20), transparent 62%),
    radial-gradient(520px 320px at 14% 32%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(420px 280px at 50% 95%, rgba(245, 158, 11, 0.10), transparent 60%);
  animation: auroraShift 16s ease-in-out infinite alternate;
}
.hero-container {
  position: relative;
  z-index: 1;
}
@keyframes auroraShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -22px, 0) scale(1.08); }
}

/* Hero badge with inline icon + soft glow */
.hero-badge {
  box-shadow: 0 6px 18px -10px rgba(14, 165, 233, 0.6);
}
.hero-badge span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* ── Glass floating cards with SVG icons ────────────── */
.floating-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-brand-lg);
}
.card-icon {
  color: var(--color-white);
  box-shadow: 0 12px 22px -8px rgba(14, 165, 233, 0.55);
}
.card-icon svg {
  width: 28px;
  height: 28px;
}

/* ── Section titles: gradient accent underline ──────── */
.section-header-center .section-title {
  position: relative;
  display: inline-block;
}
.section-header-center .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: var(--gradient-hero);
}

/* ── Buttons: depth, lift + shine sweep ─────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(14, 165, 233, 0.55);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 32px -8px rgba(14, 165, 233, 0.62);
}
.btn-primary:hover:not(:disabled)::after {
  transform: translateX(130%);
}
/* ── Hero CTA: make the primary action command attention ── */
.hero-cta {
  align-items: center;
}

/* Vibrant animated gradient instead of the flat white fill */
.hero-cta .btn-primary {
  overflow: visible;
  background: var(--gradient-hero);
  background-size: 180% 180%;
  color: var(--color-white);
  box-shadow: 0 16px 34px -10px rgba(14, 165, 233, 0.7);
  animation: ctaGradient 6s ease infinite;
}
.hero-cta .btn-primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 44px -10px rgba(14, 165, 233, 0.8);
}
/* Disable the clipped shine sweep here — the halo below replaces it */
.hero-cta .btn-primary::after { display: none; }

/* Soft pulsing halo behind the button */
.hero-cta .btn-primary::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: var(--gradient-hero);
  filter: blur(16px);
  opacity: 0.45;
  z-index: -1;
  animation: ctaPulse 2.8s ease-in-out infinite;
}

/* Arrow nudges toward the text on hover */
.hero-cta .btn-primary svg {
  transition: transform 0.3s ease;
}
.hero-cta .btn-primary:hover svg {
  transform: translateX(-4px);
}

/* Glassy, brand-tinted secondary button */
.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  color: var(--color-primary-dark);
}
.hero-cta .btn-secondary:hover:not(:disabled) {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-md);
}
.hero-cta .btn-secondary svg {
  transition: transform 0.3s ease;
}
.hero-cta .btn-secondary:hover svg {
  transform: translateY(3px);
}

/* Trust microcopy under the CTA */
.hero-cta {
  margin-bottom: var(--spacing-md);
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-500);
  animation: fadeInUp 0.6s ease-out 0.45s backwards;
}
.hero-trust svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-success);
  flex-shrink: 0;
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.6;  transform: scale(1.05); }
}

/* ── Cards: softer brand shadows ────────────────────── */
.benefit-card {
  border: 1px solid var(--color-gray-100);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-brand-sm);
}
.benefit-card:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-brand-lg);
}
.benefit-icon {
  box-shadow: 0 14px 26px -10px rgba(14, 165, 233, 0.55);
}
.module-card {
  box-shadow: var(--shadow-brand-md);
}
.module-card:hover {
  box-shadow: var(--shadow-brand-xl);
}
.module-icon {
  box-shadow: 0 12px 24px -10px rgba(14, 165, 233, 0.45);
}

/* ── Feature carousel: branded icon chips ───────────── */
.feature-icon-small {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(30, 64, 175, 0.12));
  color: var(--color-primary-dark);
}
.feature-icon-small svg {
  width: 26px;
  height: 26px;
}

/* ── Registration header icon ───────────────────────── */
.header-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--gradient-hero);
  color: var(--color-white);
  box-shadow: 0 16px 30px -12px rgba(14, 165, 233, 0.65);
}
.header-icon svg {
  width: 34px;
  height: 34px;
}

/* ── Footer contact rows with icons ─────────────────── */
.footer-links li,
.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── Modules: CSS product dashboard mockup ──────────── */
.modules-showcase {
  max-width: 920px;
  margin: 0 auto var(--spacing-2xl);
  perspective: 1600px;
}
.browser-mock {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-brand-xl);
  overflow: hidden;
  transform: rotateX(2.5deg);
  transition: transform 0.5s ease;
}
.modules-showcase:hover .browser-mock {
  transform: rotateX(0deg) translateY(-4px);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f3f6fb;
  border-bottom: 1px solid var(--color-gray-200);
  direction: ltr;
}
.browser-dots { display: inline-flex; gap: 7px; }
.browser-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d9dee7;
}
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray-500);
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  padding: 5px 14px;
}
.browser-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 360px;
  direction: rtl;
}
.mock-sidebar {
  background: var(--gradient-hero);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.mock-brand {
  height: 22px;
  width: 92px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}
.mock-nav {
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}
.mock-nav.active { background: rgba(255, 255, 255, 0.42); }
.mock-main {
  padding: 22px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-title-bar {
  height: 16px;
  width: 150px;
  border-radius: 6px;
  background: var(--color-gray-300);
}
.mock-avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #0EA5E9);
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mock-kpi {
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}
.mock-kpi-label { font-size: 0.72rem; color: var(--color-gray-500); }
.mock-kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--color-gray-900); line-height: 1; }
.mock-kpi-trend { font-size: 0.68rem; font-weight: 700; color: var(--color-gray-400); }
.mock-kpi-trend.up { color: var(--color-success); }
.mock-chart {
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-chart-head span {
  display: block;
  height: 12px;
  width: 110px;
  border-radius: 5px;
  background: var(--color-gray-200);
}
.mock-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 120px;
}
.mock-bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #38BDF8, #1E40AF);
  opacity: 0.9;
}
.mock-bars span:nth-child(6) {
  background: linear-gradient(180deg, #FBBF24, #D97706);
}

@media (max-width: 768px) {
  .mock-kpi-value { font-size: 1.2rem; }
  .browser-mock { transform: none; }
}

/* ── Benefits: bento layout (fits one viewport) ─────── */
.benefits-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}
.benefits-section .section-header-center { margin-bottom: var(--spacing-md); }
.benefits-grid {
  margin-top: var(--spacing-md);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: row dense;
  gap: var(--spacing-md);
}
.benefit-card {
  text-align: right;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-lg);
}
.benefit-card .benefit-title { font-size: 1.25rem; }
.benefit-card .benefit-description { font-size: 0.92rem; line-height: 1.6; }
.benefit-icon {
  margin: 0 0 var(--spacing-xs);
  width: 60px;
  height: 60px;
}
.benefit-icon svg { width: 30px; height: 30px; }
.benefit-card .benefit-text { display: flex; flex-direction: column; gap: 0.5rem; }

/* Large hero cell */
.benefit-card--lg {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: center;
  gap: var(--spacing-md);
  background: var(--gradient-hero);
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
}
.benefit-card--lg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(440px 260px at 85% 12%, rgba(255, 255, 255, 0.2), transparent 60%);
  pointer-events: none;
}
.benefit-card--lg .benefit-icon {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.benefit-card--lg .benefit-icon svg { width: 38px; height: 38px; }
.benefit-card--lg .benefit-title { color: #ffffff; font-size: 1.85rem; }
.benefit-card--lg .benefit-description { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; }
.benefit-card--lg:hover {
  transform: translateY(-6px);
  border: none;
  box-shadow: var(--shadow-brand-xl);
}

/* Wide cells: icon beside text */
.benefit-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-lg);
}
.benefit-card--wide .benefit-icon { margin: 0; flex-shrink: 0; }
.benefit-card--wide .benefit-text { flex: 1; }

@media (max-width: 1024px) {
  .benefits-section { min-height: auto; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-card--lg { grid-column: span 2; grid-row: span 1; }
  .benefit-card--lg .benefit-title { font-size: 1.6rem; }
  .benefit-card--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card--lg,
  .benefit-card--wide { grid-column: span 1; }
  .benefit-card--wide { flex-direction: column; align-items: stretch; }
  .benefit-card--wide .benefit-icon { margin: 0 0 var(--spacing-xs); }
}

/* ── Interactive modules explorer ───────────────────── */
.modules-explorer {
  max-width: 980px;
  margin: 0 auto var(--spacing-lg);
}
.modules-explorer .browser-mock {
  transform: none;
}
.modules-explorer .browser-body {
  grid-template-columns: 235px 1fr;
}
.modules-explorer .mock-sidebar { gap: 7px; }
.mock-brand-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  padding: 4px 10px 8px;
}
.mod-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mod-tab:hover,
.mod-tab.active {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}
.mod-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  flex-shrink: 0;
}
.mod-tab-icon svg { width: 18px; height: 18px; }
.mod-soon-dot {
  margin-inline-start: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.mock-stage {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #f8fafc;
}
.stage-dashboard,
.stage-card {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.stage-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}
.stage-card {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modules-explorer[data-active] .stage-dashboard {
  opacity: 0;
  transform: translateX(-30px);
}
.modules-explorer[data-active="hr"]   .stage-card[data-mod="hr"],
.modules-explorer[data-active="crm"]  .stage-card[data-mod="crm"],
.modules-explorer[data-active="inv"]  .stage-card[data-mod="inv"],
.modules-explorer[data-active="proj"] .stage-card[data-mod="proj"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.stage-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stage-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -10px rgba(14, 165, 233, 0.5);
}
.stage-card-icon svg { width: 30px; height: 30px; }
.stage-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 6px;
}
.stage-card-desc {
  color: var(--color-gray-600);
  line-height: 1.8;
  font-size: 1rem;
}
.stage-card .module-features {
  columns: 2;
  column-gap: var(--spacing-lg);
}
.stage-card .module-features li { break-inside: avoid; }
.modules-hint {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--color-gray-500);
}

@media (max-width: 768px) {
  .modules-explorer .browser-body { grid-template-columns: 1fr; }
  .modules-explorer .mock-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .modules-explorer .mock-sidebar::-webkit-scrollbar { display: none; }
  .mock-brand-text { display: none; }
  .mod-tab { width: auto; flex-shrink: 0; }
  .mod-tab-label { white-space: nowrap; }
  .mock-stage { min-height: 460px; }
  .stage-card .module-features { columns: 1; }
}

/* ── Demo section: steps beside the form (fits one viewport) ── */
.registration-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}
.registration-header-section { margin-bottom: var(--spacing-lg); }
.registration-section .registration-header { padding: 1.5rem 2rem; }
.registration-section .registration-form { padding: 1.5rem 2rem 2rem; }
.registration-section .form-group { margin-bottom: 1rem; }
.registration-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;                          /* joined into one unit */
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 255, 255, 0.14);
}
.registration-layout .registration-container {
  order: 2;            /* left half in RTL */
  margin: 0;
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.cta-steps {
  order: 1;            /* right half in RTL */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-lg);
  position: relative;
  /* Right half of the unified card — frosted glass over the blue */
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.1);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.16);   /* seam against the form */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-steps-eyebrow {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-md);
  text-align: right;
  position: relative;
}
/* connector line linking the step numbers */
.cta-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 62px;
  right: 29px;
  width: 2px;
  height: calc(100% + var(--spacing-lg) - 62px);
  background: rgba(255, 255, 255, 0.22);
}
.cta-step .step-number {
  margin: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}
.cta-step .step-content { padding-top: 0.4rem; }
.cta-step .step-title {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.cta-step .step-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .registration-section { min-height: auto; }
  .registration-layout {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 640px;
  }
  .cta-steps { border-inline-end: none; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .cta-steps { order: 1; }                       /* steps first on mobile */
  .registration-layout .registration-container { order: 2; }
}

/* ── Scroll reveal (progressive enhancement) ────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after { display: none; }
  .hero-cta .btn-primary { animation: none; }
  .hero-cta .btn-primary::before { animation: none; opacity: 0.4; }
}

/* ============================================
   Legal Pages (privacy.html)
   Long-form prose — direction-agnostic so the
   AR/EN toggle can flip `dir` on <html>.
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-light);
  background: var(--color-gray-50);
}

.lang-toggle svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.75;
}

.legal-main {
  background: var(--color-gray-50);
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-3xl);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-doc {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-2xl);
}

.legal-doc[hidden] { display: none; }

/* ── Document header ─────────────────────────── */
.legal-header {
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: var(--spacing-lg);
}

.legal-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-gray-900);
  letter-spacing: -0.4px;
  margin-bottom: var(--spacing-sm);
}

.legal-lede {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--color-gray-600);
}

/* ── Metadata block ──────────────────────────── */
.legal-meta {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.legal-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--spacing-sm) var(--spacing-md);
  margin: 0;
}

.legal-meta dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 0.15rem;
}

.legal-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-800);
  word-break: break-word;
}

/* ── Body copy ───────────────────────────────── */
.legal-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-gray-700);
}

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.2px;
  margin: var(--spacing-xl) 0 var(--spacing-sm);
  scroll-margin-top: 90px;      /* clears the sticky navbar on #anchor jumps */
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-800);
  margin: var(--spacing-lg) 0 var(--spacing-xs);
}

.legal-body p { margin-bottom: var(--spacing-sm); }

.legal-body ul,
.legal-body ol {
  margin: 0 0 var(--spacing-sm);
  padding-inline-start: 1.5rem;
}

.legal-body li { margin-bottom: 0.4rem; }

.legal-body li > ul,
.legal-body li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.legal-body a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast);
}

.legal-body a:hover { color: var(--color-secondary); }

.legal-body strong { color: var(--color-gray-900); font-weight: 700; }

.legal-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.86em;
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
  word-break: break-all;
}

.legal-purpose {
  padding-inline-start: 0.85rem;
  border-inline-start: 3px solid var(--color-primary-light);
  color: var(--color-gray-600);
}

.legal-body blockquote {
  margin: var(--spacing-sm) 0 var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(14, 165, 233, 0.06);
  border-inline-start: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-gray-700);
  font-size: 0.96rem;
}

/* ── Tables ──────────────────────────────────── */
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--spacing-sm) 0 var(--spacing-md);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.legal-table-wrap table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table-wrap th,
.legal-table-wrap td {
  padding: 0.75rem var(--spacing-sm);
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--color-gray-200);
}

.legal-table-wrap thead th {
  background: var(--color-gray-50);
  font-weight: 700;
  color: var(--color-gray-900);
  white-space: nowrap;
}

.legal-table-wrap tbody tr:last-child th,
.legal-table-wrap tbody tr:last-child td { border-bottom: none; }

.legal-table-wrap tbody tr:hover { background: var(--color-gray-50); }

.legal-copyright {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.875rem;
  color: var(--color-gray-500);
  text-align: center;
}

/* ── Legal link in the landing footer bar ────── */
.footer-sep {
  margin: 0 0.5rem;
  color: var(--color-gray-700);
}

.footer-legal-link {
  color: var(--color-gray-400);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer link ─────────────────────────────── */
.legal-back-link {
  color: var(--color-gray-400);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-back-link:hover { color: var(--color-primary-light); }

.footer-bottom .legal-back-link { display: inline-block; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .legal-main { padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-2xl); }
  .legal-doc { padding: var(--spacing-lg) var(--spacing-md); border-radius: var(--radius-xl); }
  .legal-title { font-size: 1.875rem; }
  .legal-lede { font-size: 1rem; }
  .legal-body h2 { font-size: 1.3rem; }
  .legal-meta dl { grid-template-columns: 1fr; }
  .lang-toggle { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .lang-toggle svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  .legal-doc {
    border-inline: none;
    border-radius: 0;
    margin-inline: calc(-1 * var(--spacing-sm));
  }
}
