/* ========================================
   Homepage — Hero (split layout + floats)
   ======================================== */

.hp-hero {
  background: var(--dark);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the visual column */
.hp-hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hp-hero .container {
  position: relative;
  z-index: 1;
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hp-hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--white);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.12;
}

.hp-hero-text h1 span {
  color: var(--primary);
  font-style: italic;
}

.hp-hero-text > p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

/* Hero CTAs */
.hp-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hp-hero-btn svg {
  transition: transform 0.3s ease;
}

.hp-hero-btn:hover svg {
  transform: translateX(4px);
}

.hp-hero-btn--primary {
  background: var(--primary);
  color: var(--white);
}

.hp-hero-btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.hp-hero-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ========================================
   Hero — Floating Preview Cards
   ======================================== */

.hp-hero-visual {
  position: relative;
  height: 420px;
}

.hp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: floatIn 0.8s ease forwards, floatBob 4s ease-in-out infinite;
}

/* Staggered entry + placement */
.hp-float--1 {
  top: 0;
  left: 10%;
  animation-delay: 0.3s, 1.1s;
}
.hp-float--2 {
  top: 80px;
  right: 5%;
  animation-delay: 0.5s, 1.3s;
}
.hp-float--3 {
  top: 155px;
  left: 5%;
  animation-delay: 0.7s, 1.5s;
}
.hp-float--4 {
  top: 230px;
  right: 10%;
  animation-delay: 0.9s, 1.7s;
}
.hp-float--5 {
  bottom: 20px;
  left: 15%;
  animation-delay: 1.1s, 1.9s;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 22px;
}

.hp-float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hp-float-dot--green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.hp-float-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hp-float-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.hp-float-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.hp-float-amount {
  font-family: "Instrument Serif", serif;
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}
.hp-float-amount-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

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

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

/* ========================================
   Homepage — Platform Intro
   ======================================== */

.hp-intro {
  padding: 100px 0 80px;
  background: var(--zinc-50);
}

.hp-intro-inner {
  max-width: 720px;
}

.hp-intro h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 24px;
}

.hp-intro p {
  font-size: 1.15rem;
  color: var(--zinc-600);
  line-height: 1.85;
}

/* ========================================
   Homepage — Products
   ======================================== */

.hp-products {
  padding: 0 0 100px;
  background: var(--zinc-50);
}

.hp-products-heading {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 48px;
}

.hp-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Light product card */
.hp-product-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Dark product card variant */
.hp-product-card--dark {
  background: linear-gradient(
    145deg,
    var(--dark) 0%,
    var(--dark-light) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
}

.hp-product-card--dark .hp-product-card-body h3 {
  color: var(--white);
}

.hp-product-card--dark > .hp-product-card-body > p {
  color: rgba(255, 255, 255, 0.65);
}

.hp-product-card--dark .hp-product-detail {
  color: rgba(255, 255, 255, 0.4);
}

.hp-product-card--dark:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.hp-product-card-body {
  padding: 40px 40px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-product-badge {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  width: fit-content;
}

.hp-product-badge--free {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.hp-product-badge--paid {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.hp-product-card-body h3 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.hp-product-card-body > p {
  font-size: 1rem;
  color: var(--zinc-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hp-product-detail {
  display: block;
  font-size: 0.85rem;
  color: var(--zinc-500);
  margin-bottom: 24px;
}

.hp-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: auto;
}

.hp-product-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.hp-product-cta svg {
  transition: transform 0.3s ease;
}

.hp-product-cta:hover svg {
  transform: translateX(4px);
}

/* ── Product Steps (how it works, inline) ─ */

.hp-product-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--zinc-100);
}

.hp-product-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--zinc-600);
}

.hp-product-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.hp-product-card--dark .hp-product-steps {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.hp-product-card--dark .hp-product-step {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Product Preview Strips ────────────── */

.hp-product-preview {
  padding: 20px 40px 24px;
  border-top: 1px solid var(--zinc-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-product-preview--dark {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Calculator preview — FAS/FMS rows */
.hp-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hp-preview-label {
  font-size: 0.82rem;
  color: var(--zinc-500);
}

.hp-preview-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.hp-preview-status--pass {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

/* Credit report preview — credit badges */
.hp-preview-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.hp-preview-credit--pass {
  color: #4ade80;
}

.hp-preview-credit--fail {
  color: #f87171;
}

/* ========================================
   Homepage — Why DegreeBridge
   ======================================== */

.hp-why {
  padding: 100px 0;
  background: var(--zinc-50);
}

.hp-why-heading {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 56px;
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hp-why-block {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: 16px;
  padding: 36px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hp-why-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.hp-why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hp-why-block h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.hp-why-block p {
  font-size: 0.95rem;
  color: var(--zinc-600);
  line-height: 1.7;
}

/* ========================================
   Homepage — Final CTA
   ======================================== */

/* Shared dark wrapper — eliminates sub-pixel seam between sections */
.hp-dark-band {
  background: var(--dark);
}

.hp-final-cta {
  padding: 120px 0;
}

.hp-final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hp-final-cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hp-final-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 44px;
}

.hp-final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-final-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hp-final-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.hp-final-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-final-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hp-final-btn svg {
  transition: transform 0.3s ease;
}

.hp-final-btn:hover svg {
  transform: translateX(4px);
}

/* ========================================
   Homepage — Responsive
   ======================================== */

@media (max-width: 1024px) {
  .hp-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hp-hero-visual {
    height: 320px;
  }

  .hp-hero-text h1 {
    max-width: 100%;
  }

  .hp-hero-text > p {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hp-products-grid {
    grid-template-columns: 1fr;
  }

  .hp-why-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hp-hero {
    padding: 130px 0 80px;
  }

  .hp-hero-ctas {
    flex-direction: column;
  }

  .hp-hero-btn {
    justify-content: center;
  }

  .hp-hero-visual {
    display: none;
  }

  .hp-intro {
    padding: 60px 0;
  }

  .hp-products {
    padding: 0 0 60px;
  }

  .hp-product-card-body {
    padding: 28px 24px 24px;
  }

  .hp-product-preview {
    padding: 16px 24px 20px;
  }

  .hp-why {
    padding: 60px 0;
  }

  .hp-final-cta {
    padding: 80px 0;
  }

  .hp-final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-final-btn {
    justify-content: center;
  }
}
