/* ============================================================
   ELHASSANE STUDIO - Institutional / Clean Professional Entry
   ============================================================ */

.landing {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-english), var(--font-arabic), sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
[dir="rtl"] .landing { font-family: var(--font-arabic), var(--font-english), sans-serif; }
.landing.hidden { display: none !important; }

/* decorative blobs behind the hero */
.landing::before,
.landing::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.landing::before {
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  background: rgba(59, 130, 246, 0.10);
}
.landing::after {
  top: 220px; left: -160px;
  width: 420px; height: 420px;
  background: rgba(249, 115, 22, 0.08);
}

/* --- Top navigation (institutional bar) --- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.landing-menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }

.landing-menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.landing-menu a:hover { color: var(--brand-primary); border-color: var(--brand-accent); }

.landing-actions { display: flex; align-items: center; gap: 10px; }

.landing-lang select {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 7px 10px;
  cursor: pointer;
  font-family: inherit;
}
.landing-lang select:focus { outline: none; border-color: var(--brand-secondary); }

.landing-cta-solid {
  display: inline-flex;
  align-items: center;
  border: none;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-hover));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
  box-shadow: 0 6px 16px -6px rgba(249, 115, 22, 0.5);
  font-family: inherit;
  letter-spacing: 0.01em;
}
.landing-cta-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(249, 115, 22, 0.6); }

.landing-login-link {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  font-family: inherit;
}
.landing-login-link:hover { border-color: var(--brand-primary); background: var(--bag-card-hover, #f8fafc); }

/* --- Hero section --- */
.landing-hero-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 64px);
}

.landing-hero { min-width: 0; }

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--brand-secondary);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.landing-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.landing-h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.landing-sub {
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 610px;
  margin-bottom: 30px;
}

.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.landing-btn-primary,
.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 200ms ease;
  font-family: inherit;
}
.landing-btn-primary {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-hover));
  color: #fff;
  border: none;
  box-shadow: 0 12px 26px -10px rgba(249, 115, 22, 0.55);
  cursor: pointer;
}
.landing-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(249, 115, 22, 0.65); }
.landing-btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--brand-primary);
  background: #fff;
  cursor: pointer;
}
.landing-btn-ghost:hover { border-color: var(--brand-primary); background: var(--bg-card-hover); transform: translateY(-2px); }

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 660px;
  margin-top: 14px;
}
.landing-stat { padding-top: 14px; border-top: 3px solid var(--border-default); transition: border-color 250ms ease; }
.landing-stat:hover { border-color: var(--brand-accent); }
.landing-stat-value {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.landing-stat-value em { font-style: normal; color: var(--brand-accent); }
.landing-stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 4px; }

/* --- Auth card (formal) --- */
.landing-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 32px 70px -24px rgba(15, 23, 42, 0.22);
}
.landing-card-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-default); }
.landing-card-title { font-size: 17px; font-weight: 800; color: var(--brand-primary); margin-bottom: 4px; }
.landing-card-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.tabs-auth { display: flex; background: var(--bg-input); border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; }
.tabs-auth button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all 200ms ease;
  font-family: inherit;
}
.tabs-auth button.active {
  background: #ffffff;
  color: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.landing-card .input-field {
  border-radius: var(--radius-md);
  border-color: var(--border-strong);
  padding: 11px 14px;
  background: #fff;
  font-size: 14px;
}
.landing-card .input-field:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.13); }
.landing-card label { font-weight: 600; font-size: 12.5px; }
.landing-card .btn-brand { border-radius: var(--radius-md); }

.auth-demo-hint {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card-hover);
  border: 1px dashed var(--border-strong);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
}
.auth-demo-hint code {
  background: var(--brand-accent-light);
  color: var(--brand-accent-hover);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.auth-tab {
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.auth-tab.auth-active,
.auth-tab.active {
  background: var(--brand-primary, #1A365D);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* --- Capabilities (features) --- */
.landing-capabilities {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 64px) 64px;
  z-index: 1;
}
.landing-capabilities-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.landing-capabilities-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
}
.landing-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.landing-feature {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: all 280ms ease;
}
.landing-feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.landing-feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #EFF6FF, #EEF2FF);
  border: 1px solid #E0E7FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.landing-feature-title { font-weight: 700; font-size: 15px; color: var(--brand-primary); margin-bottom: 6px; }
.landing-feature-desc { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }

/* --- Footer --- */
.landing-footer {
  position: relative;
  z-index: 1;
  background: var(--brand-primary);
  color: var(--text-muted);
  padding: 30px clamp(18px, 5vw, 64px) 28px;
  text-align: center;
}
.landing-footer-top {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.landing-footer .brand-name { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 0.08em; }
.landing-footer-note { font-size: 13px; color: #94a3b8; }
.landing-footer-rights { font-size: 11px; color: #64748b; margin-top: 14px; letter-spacing: 0.05em; }
.landing-footer .landing-footer-note,
.landing-footer .landing-footer-rights { font-family: var(--font-english), var(--font-arabic), sans-serif; }
.landing-footer-contact { margin-top: 12px; font-size: 13px; color: #b7c4de; }
.landing-footer-contact a { color: #bfdbfe; text-decoration: none; }
.landing-footer-contact a:hover { text-decoration: underline; color: #fff; }
.landing-footer-contact .divider { margin: 0 8px; color: #64748b; }
.landing-footer-links { margin-top: 10px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.landing-footer-links a { font-size: 12px; color: #93c5fd; text-decoration: none; }
.landing-footer-links a:hover { text-decoration: underline; color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .landing-hero-wrap { grid-template-columns: 1fr; }
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-menu { display: none; }
}
@media (max-width: 640px) {
  .landing-nav { flex-wrap: wrap; }
  .landing-actions { margin-left: auto; }
  .landing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-browser-bar { gap: 4px; }
  .landing-browser-url { display: none; }
}

/* ---------- Fullscreen Product Showcase ---------- */
.landing-showcase {
  position: relative;
  background: var(--bg-page);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  z-index: 1;
}
.landing-browser {
  width: 100%;
  height: 100vh;
  height: 100svh;
}
.landing-browser-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0b1220;
  overflow: hidden;
}
.landing-slides { position: absolute; inset: 0; }
.landing-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0b1220;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4,0,0.2,1);
}
.landing-slide.active { opacity: 1; }
.landing-slide-nav {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 3;
  pointer-events: none;
}
.landing-slide-nav > * { pointer-events: auto; }
.landing-slide-btn {
  width: 40px; height: 40px;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(15 23 42 / 0.5);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.landing-slide-btn:hover { background: var(--brand-accent); color: #ffffff; border-color: transparent; transform: translateY(-1px); }
.landing-slide-dots { display: flex; gap: 7px; flex: 1; justify-content: center; max-width: 480px; }
.landing-slide-dot {
  width: 9px; height: 9px; border-radius: 9999px;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
  transition: all 200ms ease;
  border: none; padding: 0;
}
.landing-slide-dot:hover { background: rgb(255 255 255 / 0.9); }
.landing-slide-dot.active { width: 30px; background: var(--brand-accent); }
.landing-browser-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgb(255 255 255 / 0.18);
  z-index: 3;
}
.landing-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-hover));
  transition: width 50ms linear;
}
@media (max-width: 768px) {
  .landing-slide-nav { bottom: 18px; }
  .landing-slide-btn { width: 36px; height: 36px; }
}