* {
  scroll-behavior: smooth;
}

/* Keep anchor targets visible below sticky header */
html {
  scroll-padding-top: 2rem;
}

[id] {
  scroll-margin-top: 2rem;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 3rem;
  }

  [id] {
    scroll-margin-top: 3rem;
  }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: #F8FAFC;
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-primary {
  background: #26365B;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #1c2642;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(38, 54, 91, 0.35);
}

.btn-secondary {
  border: 2px solid #26365B;
  color: #26365B;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: #26365B;
  color: white;
  transform: translateY(-1px);
}

.hero-gradient {
  background: linear-gradient(135deg, #F8FAFC 0%, #F0F4F8 40%, #E8F5F0 70%, #F8FAFC 100%);
}

/* Hero – dark gradient (dashboard-style main page) */
.hero-dark {
  background: linear-gradient(135deg, #1a2744 0%, #26365B 40%, #1e2d4a 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(52, 137, 91, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(38, 54, 91, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='rgba(255,255,255,0.03)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.btn-hero-cta {
  background: #34895B;
  transition: all 0.25s ease;
}

.btn-hero-cta:hover {
  background: #2d7750;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(52, 137, 91, 0.4);
}

.hero-image-wrap {
  width: 100%;
  max-width: 56rem;
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-image-wrap:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-4px);
}

.hero-image-img {
  display: block;
  vertical-align: middle;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.cta-gradient {
  background: linear-gradient(135deg, #26365B 0%, #2d4268 50%, #34895B 100%);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-block {
  border: 1px solid #E2E8F0;
  transition: all 0.25s ease;
}

.feature-block:hover {
  border-color: #26365B;
  box-shadow: 0 4px 20px -4px rgba(38, 54, 91, 0.15);
}

/* Features section – light bordered blocks */
.feature-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.08);
}

/* How it works – timeline */
.how-it-works-steps {
  position: relative;
}

.how-it-works-line {
  display: none;
  position: absolute;
  top: 28px;
  left: 16.666%;
  width: 66.666%;
  height: 3px;
  background: linear-gradient(90deg, #26365B 0%, #2d4268 50%, #34895B 100%);
  border-radius: 2px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .how-it-works-line {
    display: block;
  }
}

/* Testimonials – stacking and card hover */
#testimonials {
  isolation: isolate;
}

#testimonials .hero-dark {
  position: relative;
}

#testimonials .bg-white {
  min-height: 1px;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.09);
}

.testimonial-track {
  scroll-behavior: smooth;
  overflow-y: visible;
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.testimonial-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: visible;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 30px 60px -28px rgba(15, 23, 42, 0.18);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -18px rgba(15, 23, 42, 0.22);
}

/* How it works – premium timeline step cards */
.how-it-works-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Center Lucide icons (replaced by SVG) inside step icon boxes */
#how-it-works .step-icon-box svg {
  display: block;
  margin: auto;
}

/* Stats / Impact – premium band */
.stats-impact-item:hover {
  transform: scale(1.02);
}

.stats-impact-item:hover p:first-child {
  color: #4F46E5;
}

/* Why Fundefine – feature list */
.why-fundefine-item {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.why-fundefine-item:hover {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.04) 0%, transparent 100%);
}

/* Features dark section – translucent cards over hero background */
.features-dark .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.features-dark .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.features-dark .feature-bullet {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  background: linear-gradient(135deg, #8EA6FF 0%, #B39DFF 50%, #C8A7FF 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.4);
}

/* Book Demo modal */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.demo-modal-overlay.demo-modal-open {
  opacity: 1;
  visibility: visible;
}

.demo-modal {
  position: relative;
  background: white;
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 55px 120px -60px rgba(2, 6, 23, 0.75),
    0 22px 55px -28px rgba(38, 54, 91, 0.5);
  max-width: 34rem;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.demo-modal-overlay.demo-modal-open .demo-modal {
  transform: scale(1);
}

.demo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, #26365B 0%, #2d4268 55%, #34895B 120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.demo-modal-subtitle {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.4;
}

.demo-modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  background: #ffffff;
  box-shadow: inset 0 8px 24px -12px rgba(0, 0, 0, 0.08);
}

.demo-modal-close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 12px 26px -18px rgba(2, 6, 23, 0.65);
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.demo-modal-close-icon {
  display: block;
  margin: auto;
}

.demo-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 34px -22px rgba(2, 6, 23, 0.8);
}

.demo-modal-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(52, 137, 91, 0.25),
    0 18px 34px -22px rgba(2, 6, 23, 0.8);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.demo-field {
  min-width: 0;
}

.demo-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.demo-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d7e0ef;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s ease;
}

.demo-input:focus {
  outline: none;
  border-color: rgba(52, 137, 91, 0.85);
  box-shadow:
    0 0 0 4px rgba(52, 137, 91, 0.18),
    0 10px 22px -18px rgba(38, 54, 91, 0.55);
  transform: translateY(-1px);
}

.demo-input::placeholder {
  color: #94a3b8;
}

.demo-actions {
  margin-top: 1.2rem;
}

.demo-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #26365B 0%, #2d4268 55%, #34895B 120%);
  box-shadow: 0 18px 30px -18px rgba(38, 54, 91, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.demo-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px -22px rgba(38, 54, 91, 0.8);
  filter: brightness(1.03);
}

.demo-submit:active {
  transform: translateY(0px);
}

.demo-helper {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

/* DSA registration section (redesigned) */
.dsa-reg-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .dsa-reg-section {
    padding: 5rem 0 6rem;
  }
}

.dsa-reg-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(52, 137, 91, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 80%, rgba(38, 54, 91, 0.12), transparent 50%);
}

.dsa-reg-card {
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 32px 64px -28px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.dsa-reg-card-head {
  padding: 2rem 1.75rem 2.25rem;
  text-align: center;
  background: linear-gradient(135deg, #26365b 0%, #1e2d4a 42%, #2a4a3c 100%);
  color: #fff;
}

@media (min-width: 640px) {
  .dsa-reg-card-head {
    padding: 2.5rem 2.5rem 2.75rem;
  }
}

.dsa-reg-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.95);
  margin-bottom: 0.65rem;
}

.dsa-reg-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .dsa-reg-title {
    font-size: 2rem;
  }
}

.dsa-reg-card-body {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .dsa-reg-card-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 2.5rem;
    padding: 2.25rem 2.5rem 2.5rem;
    align-items: start;
  }
}

.dsa-reg-aside {
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.dsa-reg-aside-title {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.dsa-reg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dsa-reg-step {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
}

.dsa-reg-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 2.35rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
  border-radius: 1px;
}

.dsa-reg-step-marker {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #26365b, #34895b);
  box-shadow: 0 4px 12px -4px rgba(38, 54, 91, 0.45);
  z-index: 1;
}

.dsa-reg-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.1rem;
}

.dsa-reg-step-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.dsa-reg-step-text span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.dsa-reg-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  padding-top: 0.35rem;
  border-top: 1px dashed #cbd5e1;
}

.dsa-reg-note strong {
  color: #334155;
}

.dsa-reg-form-wrap {
  min-width: 0;
}

.dsa-reg-form-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dsa-reg-form-hint {
  margin: 0.35rem 0 1.35rem;
  font-size: 0.85rem;
  color: #64748b;
}

.dsa-reg-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dsa-reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dsa-reg-label {
  font-size: 0.875rem;
  font-weight: 650;
  color: #1e293b;
}

.dsa-reg-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dsa-reg-input::placeholder {
  color: #94a3b8;
}

.dsa-reg-input:hover {
  border-color: #cbd5e1;
}

.dsa-reg-input:focus {
  outline: none;
  border-color: #34895b;
  box-shadow: 0 0 0 4px rgba(52, 137, 91, 0.15);
}

.dsa-reg-actions {
  padding-top: 0.35rem;
}

.dsa-reg-captcha-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dsa-reg-captcha {
  min-height: 78px;
}

.dsa-reg-captcha-note {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.dsa-register-foot {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

@media (min-width: 640px) {
  .dsa-register-foot {
    text-align: left;
  }
}

.dsa-register-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.dsa-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #26365b 0%, #2d4a3d 55%, #34895b 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(38, 54, 91, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.dsa-register-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(38, 54, 91, 0.6);
  filter: brightness(1.05);
}

.dsa-register-btn:active:not(:disabled) {
  transform: translateY(0);
}

.dsa-register-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

@media (max-width: 1023px) {
  .dsa-reg-card {
    border-radius: 1.25rem;
  }

  .dsa-reg-card-head {
    border-radius: 1.25rem 1.25rem 0 0;
  }
}