/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: 1000px;
  min-height: 600px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%);
}

* { box-sizing: border-box; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.loaded {
  opacity: 1;
}

/* ── Overlay ── */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse 70% 80% at 30% 50%,
    rgba(248, 250, 252, 0.55) 0%,
    rgba(248, 250, 252, 0.3) 40%,
    transparent 70%
  );
}

.overlay-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 2;
}

.overlay-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(248, 250, 252, 0.92) 0%,
    rgba(248, 250, 252, 0.7) 50%,
    transparent 100%
  );
}

.overlay-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(248, 250, 252, 0.9) 0%,
    rgba(248, 250, 252, 0.65) 50%,
    transparent 100%
  );
}

/* ── Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(13, 86, 169, 0.4);
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  padding: 0 7%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #05295E;
  will-change: transform;
}

/* ── Heading ── */
.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.08;
  margin: 24px 0;
  letter-spacing: -2px;
  color: #05295E;
  opacity: 0;
  transform: translateY(35px);
  animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero h1 span {
  background: linear-gradient(135deg, #0D56A9, #B89857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Paragraph ── */
.hero p {
  margin-right:10px;
  font-size: 15px;
  color: #5F6B7A;
  line-height: 1.8;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ── */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 36px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #0D56A9, #B89857);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(13, 86, 169, 0.25);
}

.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.primary:hover::before {
  left: 100%;
}

.primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(13, 86, 169, 0.4);
}

.primary:active {
  transform: translateY(0) scale(0.97);
}

.primary i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.primary:hover i {
  transform: translateX(4px);
}

.secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  color: #05295E;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(5, 41, 94, 0.04);
}

.secondary i {
  font-size: 20px;
  color: #0D56A9;
  transition: transform 0.3s ease;
}

.secondary:hover {
  background: #EFF6FF;
  border-color: rgba(13, 86, 169, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 86, 169, 0.1);
}

.secondary:hover i {
  transform: scale(1.2);
}

.secondary:active {
  transform: translateY(0) scale(0.97);
}

/* ── Stats Cards ── */
.hero-stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.stat-card {
  width: 100%;
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 22px 18px 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.stat-card:hover {
  background: #EFF6FF;
  border-color: rgba(13, 86, 169, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(13, 86, 169, 0.08);
}

.stat-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B89857, #E2D292);
  border-radius: 0 0 12px 12px;
}

.stat-card-num {
  font-size: 28px;
  font-weight: 800;
  color: #05295E;
  letter-spacing: -1px;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #8A94A6;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
}

.stat-plus,
.stat-sym,
.stat-dollar {
  font-size: 28px;
  font-weight: 800;
  color: #0D56A9;
}

/* ══════════════════════════════════════
   RIGHT SIDE — DASHBOARD IMAGE
   ══════════════════════════════════════ */
.hero-visual {
  position: absolute;
  right: -20px;
  top: 0;
  width: 70%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(13, 86, 169, 0.07) 0%,
    rgba(184, 152, 87, 0.03) 40%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-visual img {
  width: 100%;
  max-width: 90%;
  height: auto;
  display: block;             /* removes inline-img bottom gap */
  transform: none;
  border-radius: 14px;
  box-shadow:
    0 25px 70px rgba(5, 41, 94, 0.12),
    0 0 0 1px rgba(13, 86, 169, 0.06);
}

@keyframes imgAppear {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg) translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg) translateY(0) scale(1);
  }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 7%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(5, 41, 94, 0.35);
  text-transform: uppercase;
  letter-spacing: 2px;
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: rgba(5, 41, 94, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #0D56A9, #B89857);
  border-radius: 2px;
  position: absolute;
  top: -20px;
  left: 0;
  animation: scrollDotMove 2s ease-in-out infinite;
}

@keyframes scrollDotMove {
  0% { top: -20px; }
  50% { top: 60px; }
  100% { top: -20px; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ═══════════════════════════════
   HERO RESPONSIVE
═══════════════════════════════ */
/* ── Laptop / Tab fix (matches Image 1 look) ── */
@media (max-width: 1600px) and (min-width: 1025px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: 110px 0 50px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 6%;
    position: relative;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1px;
    margin: 18px 0;
    line-height: 1.15;
  }

  .hero p {
    font-size: 15.5px;
    max-width: 560px;
    line-height: 1.75;
  }

  .hero-buttons {
    margin-top: 30px;
    gap: 12px;
  }

  .primary { padding: 15px 30px; font-size: 14px; }
  .secondary { padding: 14px 28px; font-size: 14px; }

  .hero-stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
  }

  .stat-card { padding: 18px 14px 14px; }
  .stat-card-num, .stat-plus, .stat-sym, .stat-dollar { font-size: 24px; }
  .stat-card-label { font-size: 10px; }

  /* Image drops BELOW content instead of overlapping */
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 12%);
    margin: 40px auto 0;
    height: auto;
    pointer-events: auto;
  }

  .hero-visual::before { display: none; }

  .hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    border-radius: 14px;
    box-shadow:
      0 25px 70px rgba(5, 41, 94, 0.12),
      0 0 0 1px rgba(13, 86, 169, 0.06);
  }

  .overlay,
  .overlay-side,
  .hero-particles,
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 1024px) {
   .hero {
    height: auto;
    min-height: auto;
    padding: 110px 0 50px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 6%;
    position: relative;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1px;
    margin: 18px 0;
    line-height: 1.15;
  }

  .hero p {
    font-size: 15.5px;
    max-width: 560px;
    line-height: 1.75;
  }

  .hero-buttons {
    margin-top: 30px;
    gap: 12px;
  }

  .primary { padding: 15px 30px; font-size: 14px; }
  .secondary { padding: 14px 28px; font-size: 14px; }

  .hero-stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
  }

  .stat-card { padding: 18px 14px 14px; }
  .stat-card-num, .stat-plus, .stat-sym, .stat-dollar { font-size: 24px; }
  .stat-card-label { font-size: 10px; }

  /* Image drops BELOW content instead of overlapping */
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 12%);
    margin: 40px auto 0;
    height: auto;
    pointer-events: auto;
  }

  .hero-visual::before { display: none; }

  .hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    border-radius: 14px;
    box-shadow:
      0 25px 70px rgba(5, 41, 94, 0.12),
      0 0 0 1px rgba(13, 86, 169, 0.06);
  }

  .overlay,
  .overlay-side,
  .hero-particles,
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: 120px 0 40px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 6%;
    position: relative;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -0.8px;
    margin: 16px 0;
    line-height: 1.12;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
  }

  .hero-buttons {
    margin-top: 28px;
    gap: 10px;
  }

  .primary {
    padding: 15px 28px;
    font-size: 14px;
  }

  .secondary {
    padding: 14px 26px;
    font-size: 14px;
  }

  .hero-stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 36px;
  }

  .stat-card {
    padding: 16px 12px 12px;
  }

  .stat-card-num,
  .stat-plus,
  .stat-sym,
  .stat-dollar {
    font-size: 22px;
  }

  .stat-card-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  /* ── Image moves below content ── */
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% - 12%);
    margin: 36px auto 0;
    height: auto;
    pointer-events: auto;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    border-radius: 14px;
    box-shadow:
      0 20px 60px rgba(5, 41, 94, 0.1),
      0 0 0 1px rgba(13, 86, 169, 0.05);
  }

  .scroll-indicator {
    display: none;
  }

  .overlay,
  .overlay-side {
    display: none;
  }

  .hero-particles {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 100px 0 36px;
  }

  .hero-content {
    padding: 0 5%;
  }

  .hero h1 {
    font-size: 30px;
    letter-spacing: -0.5px;
    margin: 14px 0;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .primary,
  .secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13px;
  }

  .hero-stats-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 28px;
  }

  .stat-card {
    padding: 14px 12px 10px;
    border-radius: 10px;
  }

  .stat-card-num,
  .stat-plus,
  .stat-sym,
  .stat-dollar {
    font-size: 20px;
  }

  .stat-card-label {
    font-size: 9px;
  }

  .hero-visual {
    width: calc(100% - 10%);
    margin-top: 28px;
  }

  .hero-visual img {
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 90px 0 30px;
  }

  .hero-content {
    padding: 0 4%;
  }

  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.3px;
  }

  .hero-stats-cards {
    gap: 6px;
  }

  .stat-card {
    padding: 12px 10px 8px;
  }

  .stat-card-num,
  .stat-plus,
  .stat-sym,
  .stat-dollar {
    font-size: 18px;
  }

  .stat-card-label {
    font-size: 8px;
    letter-spacing: 0.3px;
  }

  .hero-visual {
    width: calc(100% - 8%);
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-content,
  .hero h1,
  .hero p,
  .hero-buttons,
  .hero-stats-cards,
  .scroll-indicator,
  .particle,
  .scroll-dot,
  .hero-visual img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}