:root {
  --primary: #4F7EFF;
  --primary-hover: #6B8FFF;
  --grad-start: #1A1F84;
  --grad-end: #6474FF;
  --brand-gradient: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  --success: #22C55E;

  --page-bg: #FFFFFF;
  --page-surface: #FFFFFF;
  --page-text: #1A1D3A;
  --page-muted: #6B6660;
  --page-border: #E5E2DC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  min-height: 100vh;
}

/* ── Sticky header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 16px 0;
  transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 31, 132, 0.06);
}

.navbar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--page-border);
  box-shadow: 0 2px 16px rgba(26, 31, 132, 0.06);
  transition: border-radius 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled .navbar {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 31, 132, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--brand-gradient);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #1A1D3A;
}

.logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: #6B6660;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: #1A1D3A; }

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid rgba(79, 126, 255, 0.16);
  border-radius: 12px;
  background: #F7F8FF;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1A1F84;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  color: #1A1D3A;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}

.nav-signin:hover {
  background: rgba(79, 126, 255, 0.08);
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(79, 126, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79, 126, 255, 0.34);
}

/* ── Hero shell ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  padding: 16px 16px 32px;
  background: var(--page-bg);
}

/* ── Banner card ────────────────────────────────────────── */
.hero-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 640px);
  border-radius: 28px;
  border: 1px solid rgba(79, 126, 255, 0.12);
  background: #F4F6FF;
  box-shadow: 0 18px 50px rgba(26, 31, 132, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px;
}

.banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 126, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 126, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.banner-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, transparent 42%),
    radial-gradient(circle at 15% 20%, rgba(79, 126, 255, 0.14), transparent 40%),
    radial-gradient(circle at 88% 75%, rgba(26, 31, 132, 0.10), transparent 42%);
  pointer-events: none;
}

.banner-squares {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sq {
  position: absolute;
  border-radius: 18px;
  background: rgba(79, 126, 255, 0.10);
  border: 1px solid rgba(79, 126, 255, 0.08);
}

.sq.s1 { width: 120px; height: 120px; top: 8%; right: 7%; }
.sq.s2 { width: 72px; height: 72px; top: 22%; right: 22%; background: rgba(100, 116, 255, 0.12); }
.sq.s3 { width: 96px; height: 96px; bottom: 14%; right: 10%; }
.sq.s4 { width: 110px; height: 110px; top: 12%; left: 6%; }
.sq.s5 { width: 64px; height: 64px; top: 38%; left: 16%; background: rgba(26, 31, 132, 0.08); }
.sq.s6 { width: 88px; height: 88px; bottom: 16%; left: 8%; }

.banner-core {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 620px;
}

.banner-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1A1F84, #4F7EFF);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(79, 126, 255, 0.28);
}

.banner-core h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  color: #1A1D3A;
  margin-bottom: 14px;
}

.banner-core h1 span {
  color: #4F7EFF;
}

.banner-sub {
  font-size: 16px;
  color: #6B6660;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.btn-dark,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(79, 126, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-dark:hover,
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 126, 255, 0.34);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}

/* Floating pills */
.banner-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E5E2DC;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #1A1D3A;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(26, 31, 132, 0.12);
  animation: bannerFloat 4.6s ease-in-out infinite;
}

.banner-pill i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(79, 126, 255, 0.10);
  color: #4F7EFF;
  flex-shrink: 0;
}

.banner-pill i svg {
  width: 18px;
  height: 18px;
}

.bp1 { top: 12%; right: 4%; animation-delay: 0s; }
.bp2 { top: 34%; right: 1%; animation-delay: 0.5s; }
.bp3 { bottom: 16%; right: 5%; animation-delay: 1s; }
.bp4 { top: 14%; left: 3%; animation-delay: 0.3s; }
.bp5 { top: 38%; left: 0.5%; animation-delay: 0.8s; }
.bp6 { bottom: 20%; left: 3%; animation-delay: 1.2s; }
.bp7 { bottom: 6%; left: 20%; animation-delay: 0.6s; }

@keyframes bannerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .navbar {
    align-items: center;
    gap: 12px;
  }

  .navbar.is-open {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .logo {
    order: 1;
  }

  .nav-panel {
    display: none;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(26, 29, 58, 0.08);
  }

  .navbar.is-open .nav-panel {
    display: flex;
  }

  .navbar.is-open .logo,
  .navbar.is-open .nav-toggle {
    margin-top: 0;
  }

  .navbar.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    color: #1A1D3A;
  }

  .nav-links a:hover,
  .nav-links a.is-current {
    background: rgba(79, 126, 255, 0.08);
    color: #1A1F84;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-top: 8px;
  }

  .nav-signin,
  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
  }

  .hero { padding: 12px 12px 24px; }

  .site-header { padding: 10px 12px 0; }
  .site-header.is-scrolled { padding: 8px 12px; }

  .hero-banner {
    min-height: auto;
    padding: 56px 20px 48px;
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .banner-core {
    order: -1;
    margin-bottom: 12px;
  }

  .banner-core h1 { font-size: 28px; }

  .banner-pill {
    position: static;
    animation: none;
    margin: 0 4px 8px;
  }

  .banner-squares { display: none; }

  .bp1, .bp2, .bp3, .bp4, .bp5, .bp6, .bp7 {
    display: none;
  }

  .bp1, .bp4, .bp6 {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-pill { animation: none !important; }
}
