/* ===================================
   HOMEPAGE STYLES
   Intentiv — Narrative landing page
   =================================== */


/* ===================================
   1. CUSTOM PROPERTIES (Homepage Palette)
   =================================== */

.homepage {
  /* Deep navy — dramatic backgrounds */
  --hp-navy-deep: #0a0f1e;
  --hp-navy: #1a2b4a;
  --hp-navy-light: #1e293b;

  /* Warm amber / gold — expertise accent */
  --hp-amber: #f59e0b;
  --hp-amber-dark: #d97706;
  --hp-amber-deep: #b45309;

  /* Soft warm whites — content backgrounds */
  --hp-white-warm: #fafaf8;
  --hp-white-sand: #f5f3f0;
  --hp-white: #ffffff;

  /* Cool slate — secondary text */
  --hp-slate: #64748b;
  --hp-slate-light: #94a3b8;

  /* Indigo-violet — tech / AI accent */
  --hp-indigo: #6366f1;
  --hp-indigo-dark: #4f46e5;

  /* Typography */
  --hp-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hp-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Spacing scale */
  --hp-section-pad-y: clamp(5rem, 10vw, 8rem);
  --hp-section-pad-x: clamp(1.25rem, 5vw, 2rem);
  --hp-max-width: 1200px;
  --hp-max-width-narrow: 800px;

  /* Transitions */
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hp-transition-fast: 150ms var(--hp-ease);
  --hp-transition-base: 250ms var(--hp-ease);
  --hp-transition-slow: 400ms var(--hp-ease);
}


/* ===================================
   2. TYPOGRAPHY SYSTEM
   =================================== */

.homepage {
  font-family: var(--hp-font-body);
  color: var(--hp-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.homepage h1,
.homepage h2,
.homepage h3,
.homepage h4,
.homepage h5,
.homepage h6 {
  font-family: var(--hp-font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.homepage h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.homepage h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.homepage h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.hp-hero-sub,
.hp-tension-body,
.hp-promised-closing,
.hp-layer-body,
.hp-step-body,
.hp-trust-point p {
  font-family: var(--hp-font-body);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--hp-slate);
}


/* ===================================
   3. NAVIGATION
   Uses shared .nav-container styles from search.css.
   Override to fully opaque so dark hero doesn't bleed through.
   =================================== */

.homepage .nav-container {
  background-color: rgba(255, 255, 255, 1);
}


/* ===================================
   4. SECTION LAYOUT FOUNDATIONS
   =================================== */

.hp-section {
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
  position: relative;
}

.hp-container {
  max-width: var(--hp-max-width);
  margin: 0 auto;
  width: 100%;
}

.hp-container--narrow {
  max-width: var(--hp-max-width-narrow);
  margin: 0 auto;
  width: 100%;
}

/* Section color themes */
.hp-section--dark {
  background: var(--hp-navy-deep);
  color: var(--hp-white);
}

.hp-section--dark p {
  color: var(--hp-slate-light);
}

.hp-section--navy {
  background: var(--hp-navy);
  color: var(--hp-white);
}

.hp-section--navy p {
  color: var(--hp-slate-light);
}

.hp-section--light {
  background: var(--hp-white-warm);
  color: var(--hp-navy);
}

.hp-section--white {
  background: var(--hp-white);
  color: var(--hp-navy);
}

.hp-section--sand {
  background: var(--hp-white-sand);
  color: var(--hp-navy);
}

/* Accent text highlight */
.hp-text-amber {
  color: var(--hp-amber);
}

.hp-text-indigo {
  color: var(--hp-indigo);
}

.hp-text-gradient {
  background: linear-gradient(135deg, var(--hp-amber) 0%, var(--hp-amber-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===================================
   5a. SHARED NOISE TEXTURE OVERLAY
   =================================== */

/* Shared noise texture — add .hp-noise to any element that needs the grain overlay.
   Set --hp-noise-opacity on specific sections to vary intensity. */
.hp-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: var(--hp-noise-opacity, 0.4);
  pointer-events: none;
  z-index: 1;
}


/* ===================================
   5b. UTILITY ANIMATIONS
   =================================== */

/* Scroll-triggered animation base state */
.hp-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--hp-ease),
              transform 0.6s var(--hp-ease);
}

.hp-animate.hp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
.hp-animate-delay-1 { transition-delay: 0.1s; }
.hp-animate-delay-2 { transition-delay: 0.2s; }
.hp-animate-delay-3 { transition-delay: 0.3s; }
.hp-animate-delay-4 { transition-delay: 0.4s; }
.hp-animate-delay-5 { transition-delay: 0.5s; }


/* ===================================
   6. HOMEPAGE FOOTER OVERRIDE
   =================================== */

/* Remove the default top margin on the footer when used inside homepage,
   since homepage sections manage their own spacing. */
.homepage .site-footer {
  margin-top: 0;
}


/* ===================================
   7. GLOBAL HOMEPAGE RESET
   =================================== */

/* Ensure homepage body has no margin/padding artifacts */
.homepage {
  margin: 0;
  padding: 0;
}

/* Account for fixed nav height */
.hp-main {
  padding-top: 0; /* Hero handles its own top padding to clear the nav */
}


/* ===================================
   8. HERO SECTION
   =================================== */

/* Hero container */
.hp-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}

/* Dark gradient background — matches CTA / pivot sections */
.hp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* Subtle amber glow behind text area */
    radial-gradient(
      ellipse 40% 50% at 25% 55%,
      rgba(245, 158, 11, 0.06) 0%,
      transparent 70%
    ),
    /* Indigo-violet wash — top right, blends with image */
    radial-gradient(
      ellipse 50% 60% at 70% 30%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 65%
    ),
    /* Deep navy base */
    linear-gradient(
      165deg,
      var(--hp-navy-deep) 0%,
      #0d1333 25%,
      #111846 50%,
      #0e1230 75%,
      #060a1a 100%
    );
  --hp-noise-opacity: 0.25;
}

/* --- Hero image --- */
.hp-hero-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 63%;
  z-index: 1;
  overflow: hidden;
}

.hp-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient fade: thin left-edge blend so image is fully visible */
.hp-hero-image-fade {
  position: absolute;
  inset: 0;
  background:
    /* Left edge: narrow fade where image meets text column */
    linear-gradient(
      to right,
      rgba(10, 15, 30, 0.85) 0%,
      rgba(10, 15, 30, 0.3) 8%,
      transparent 20%
    ),
    /* Bottom edge: fade to match next section */
    linear-gradient(
      to top,
      var(--hp-navy-deep) 0%,
      rgba(10, 15, 30, 0.4) 8%,
      transparent 22%
    ),
    /* Top edge: very subtle darkening */
    linear-gradient(
      to bottom,
      rgba(10, 15, 30, 0.2) 0%,
      transparent 12%
    );
  pointer-events: none;
}

/* Hero inner — text content, left column */
.hp-hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 560px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Headline */
.hp-hero-headline {
  font-family: var(--hp-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--hp-white);
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Subline — light on dark */
.hp-hero-sub {
  font-family: var(--hp-font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0;
}

.hp-hero-sub b {
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

/* Hero two-concept accent colors */
.hp-hero-accent-ai {
  color: #ffffff;
}

.hp-hero-accent-human {
  background-image: linear-gradient(to right, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero CTA button spacing */
.hp-hero .hero-cta-button {
  margin-top: 1.75rem;
}

/* Gradient accent on dark hero — bright cyan to vivid amber */
.hp-hero-headline .gradient-text {
  background-image: linear-gradient(to right, #38bdf8, #fb923c);
}

/* --- Responsive --- */

/* Tablet: image becomes full-width background, text centered */
@media (max-width: 1100px) {
  .hp-hero-inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
    max-width: 600px;
  }

  .hp-hero-headline {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hp-hero-sub {
    max-width: 520px;
    font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  }

  .hp-hero-image-wrap {
    width: 100%;
    opacity: 0.15;
  }

  .hp-hero-image-fade {
    background:
      linear-gradient(
        to top,
        var(--hp-navy-deep) 0%,
        rgba(10, 15, 30, 0.7) 40%,
        rgba(10, 15, 30, 0.5) 100%
      );
  }
}

@media (max-width: 640px) {
  .hp-hero-br {
    display: none;
  }

  .hp-hero {
    min-height: 85vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hp-hero-headline {
    letter-spacing: -0.02em;
  }

  .hp-hero-image-wrap {
    opacity: 0.25;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hp-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===================================
   9. TENSION SECTIONS
   Statement-driven blocks with large-format stats.
   Pattern: dark → sand → indigo
   =================================== */

/* --- Tension block base --- */
.hp-tension {
  text-align: center;
}

/* Heading */
.hp-tension-heading {
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

/* Body copy */
.hp-tension-body {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

/* --- Stats row --- */
.hp-tension-stats {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 6rem);
  margin-bottom: 2.5rem;
}

.hp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Stat number — THE visual hero of each block */
.hp-stat-number {
  font-family: var(--hp-font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Stat label */
.hp-stat-label {
  font-family: var(--hp-font-body);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.4;
  max-width: 220px;
}

/* Source attribution */
.hp-tension-source {
  font-size: 0.8125rem;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0;
}

/* --- Section theme: Dark (tension-trust) --- */
.hp-section--dark.hp-tension .hp-tension-heading {
  color: var(--hp-white);
}

.hp-section--dark.hp-tension .hp-tension-body {
  color: var(--hp-slate-light);
}

.hp-section--dark.hp-tension .hp-stat-number {
  color: var(--hp-amber);
  text-shadow:
    0 0 40px rgba(245, 158, 11, 0.25),
    0 0 80px rgba(245, 158, 11, 0.10);
}

.hp-section--dark.hp-tension .hp-stat-label {
  color: var(--hp-slate-light);
}

.hp-section--dark.hp-tension .hp-tension-source {
  color: var(--hp-slate);
}

/* --- Section theme: Sand (tension-experts) --- */
.hp-section--sand.hp-tension .hp-tension-heading {
  color: var(--hp-navy);
}

.hp-section--sand.hp-tension .hp-tension-body {
  color: var(--hp-slate);
}

.hp-section--sand.hp-tension .hp-stat-number {
  color: var(--hp-navy);
}

.hp-section--sand.hp-tension .hp-stat-label {
  color: var(--hp-slate);
}

.hp-section--sand.hp-tension .hp-tension-source {
  color: var(--hp-slate-light);
}

/* --- Section theme: Indigo (tension-opportunity) --- */
.hp-tension--indigo {
  background: linear-gradient(135deg, var(--hp-indigo-dark) 0%, var(--hp-indigo) 100%);
  color: var(--hp-white);
  position: relative;
  overflow: hidden;
}

/* Noise overlay uses shared .hp-noise class */
.hp-tension--indigo {
  --hp-noise-opacity: 0.3;
}

.hp-tension--indigo .hp-container--narrow {
  position: relative;
  z-index: 1;
}

.hp-tension--indigo .hp-tension-heading {
  color: var(--hp-white);
}

.hp-tension--indigo .hp-tension-body {
  color: rgba(255, 255, 255, 0.78);
}

.hp-tension--indigo .hp-stat-number {
  color: var(--hp-white);
  text-shadow:
    0 0 40px rgba(245, 158, 11, 0.20),
    0 0 80px rgba(245, 158, 11, 0.08);
}

.hp-tension--indigo .hp-stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.hp-tension--indigo .hp-tension-source {
  color: rgba(255, 255, 255, 0.45);
}

/* --- Stat scale-in animation --- */
@keyframes hp-stat-pop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hp-tension-stats.hp-visible .hp-stat {
  animation: hp-stat-pop 0.6s var(--hp-ease) both;
}

.hp-tension-stats.hp-visible .hp-stat:nth-child(2) {
  animation-delay: 0.15s;
}

.hp-tension-stats.hp-visible .hp-stat:nth-child(3) {
  animation-delay: 0.3s;
}

/* --- Stat reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hp-tension-stats.hp-visible .hp-stat {
    animation: none;
  }

  .hp-persona:hover {
    transform: none;
  }
}

/* --- Responsive: stack stats vertically on small screens --- */
@media (max-width: 540px) {
  .hp-tension-stats {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }

  .hp-tension-heading br {
    display: none;
  }

  .hp-stat-number {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
}


/* ===================================
   10. PROMISED LAND — Expert Personas
   Four persona cards showing who thrives with AI.
   =================================== */

.hp-promised {
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
}

/* Section heading */
.hp-promised-heading {
  text-align: center;
  font-family: var(--hp-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hp-navy);
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

/* 2x2 persona grid */
.hp-promised-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Individual persona card */
.hp-persona {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--hp-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    transform var(--hp-transition-base),
    box-shadow var(--hp-transition-base);
}

.hp-persona:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Icon circle */
.hp-persona-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-amber) 0%, var(--hp-amber-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.hp-persona-icon svg {
  width: 22px;
  height: 22px;
  color: var(--hp-white);
  stroke-width: 2;
}

/* Persona text */
.hp-persona-text p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.6;
  color: var(--hp-slate);
}

.hp-persona-text strong {
  color: var(--hp-navy);
  font-weight: 700;
}

/* Closing italic line */
.hp-promised-closing {
  text-align: center;
  font-style: italic;
  color: var(--hp-slate);
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

/* Responsive: stack to single column on mobile */
@media (max-width: 680px) {
  .hp-promised-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* ===================================
   11. PIVOT — "That's why we built Intentiv."
   Dramatic visual break between narrative and product.
   =================================== */

.hp-pivot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      165deg,
      var(--hp-navy-deep) 0%,
      #0d1333 25%,
      #111846 50%,
      #0e1230 75%,
      #060a1a 100%
    );
  padding: clamp(6rem, 12vw, 10rem) var(--hp-section-pad-x);
  text-align: center;
}

/* Warm radial glow behind text */
.hp-pivot-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(245, 158, 11, 0.07) 0%,
      rgba(245, 158, 11, 0.03) 35%,
      transparent 70%
    );
}

/* Noise overlay uses shared .hp-noise class */
.hp-pivot {
  --hp-noise-opacity: 0.25;
}

/* Inner content wrapper */
.hp-pivot-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Heading — largest statement after hero */
.hp-pivot-heading {
  font-family: var(--hp-font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hp-white);
  margin: 0 0 1.5rem;
}

/* Subline — warm amber accent */
.hp-pivot-subline {
  font-family: var(--hp-font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--hp-amber);
  margin: 0;
  text-shadow:
    0 0 30px rgba(245, 158, 11, 0.20),
    0 0 60px rgba(245, 158, 11, 0.08);
}

/* Responsive: tighten pivot spacing on mobile */
@media (max-width: 640px) {
  .hp-pivot {
    padding: clamp(5rem, 15vw, 8rem) var(--hp-section-pad-x);
  }
}


/* ===================================
   12. PLATFORM LAYERS — Product reveal
   Four alternating left/right layers showing
   what Intentiv actually does.
   =================================== */

/* --- Section container --- */
.hp-layers {
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
  position: relative;
}

.hp-layers .hp-container {
  position: relative;
}

/* --- Connecting thread --- */
.hp-layers-thread {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(245, 158, 11, 0.15) 8%,
    rgba(245, 158, 11, 0.20) 50%,
    rgba(245, 158, 11, 0.15) 92%,
    transparent 100%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

/* --- Individual layer row --- */
.hp-layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  position: relative;
}

.hp-layer + .hp-layer {
  margin-top: 1rem;
}

/* --- Left alignment: icon left, content right --- */
.hp-layer--left {
  grid-template-areas: "icon content";
}

.hp-layer--left .hp-layer-icon {
  grid-area: icon;
  justify-self: end;
  padding-right: 3rem;
}

.hp-layer--left .hp-layer-content {
  grid-area: content;
  padding-left: 3rem;
}

/* --- Right alignment: content left, icon right (mirror) --- */
.hp-layer--right {
  grid-template-areas: "content icon";
}

.hp-layer--right .hp-layer-icon {
  grid-area: icon;
  justify-self: start;
  padding-left: 3rem;
}

.hp-layer--right .hp-layer-content {
  grid-area: content;
  padding-right: 3rem;
  text-align: right;
}

/* --- Icon container --- */
.hp-layer-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--hp-white) 0%, #f8f7f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform var(--hp-transition-base),
              box-shadow var(--hp-transition-base);
}

.hp-layer:hover .hp-layer-icon-circle {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Icon inner glow */
.hp-layer-icon-circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.08) 0%,
    rgba(99, 102, 241, 0.06) 100%
  );
  pointer-events: none;
}

.hp-layer-icon-circle svg {
  width: 36px;
  height: 36px;
  color: var(--hp-amber-dark);
  stroke-width: 1.75;
  position: relative;
  z-index: 1;
}

/* --- Layer label (uppercase) --- */
.hp-layer-label {
  display: inline-block;
  font-family: var(--hp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-amber-dark);
  margin-bottom: 0.75rem;
}

/* --- Layer title --- */
.hp-layer-title {
  font-family: var(--hp-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hp-navy);
  margin: 0 0 1rem;
}

/* --- Layer body --- */
.hp-layer-body {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--hp-slate);
  margin: 0 0 1.25rem;
  max-width: 480px;
}

/* For right-aligned layers, push body text to the right */
.hp-layer--right .hp-layer-body {
  margin-left: auto;
}

/* --- Monetize line --- */
.hp-layer-monetize {
  font-family: var(--hp-font-body);
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  line-height: 1.6;
  color: var(--hp-amber-deep);
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  max-width: 480px;
  font-weight: 500;
}

.hp-layer--right .hp-layer-monetize {
  margin-left: auto;
}

/* --- Use cases (Expert Hubs) --- */
.hp-layer-usecases {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
  max-width: 480px;
}

.hp-layer-usecase {
  font-size: clamp(0.9375rem, 1.3vw, 1rem);
  line-height: 1.6;
  color: var(--hp-slate);
  padding-left: 1rem;
  border-left: 3px solid var(--hp-amber);
}

.hp-layer-usecase strong {
  color: var(--hp-navy);
  font-weight: 700;
}

/* --- Dot on thread at each layer --- */
.hp-layer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 3.75rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hp-amber);
  border: 3px solid var(--hp-white-sand);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

/* --- Responsive: tablet --- */
@media (max-width: 960px) {
  .hp-layer {
    gap: 2rem;
  }

  .hp-layer--left .hp-layer-icon {
    padding-right: 2rem;
  }

  .hp-layer--left .hp-layer-content {
    padding-left: 2rem;
  }

  .hp-layer--right .hp-layer-icon {
    padding-left: 2rem;
  }

  .hp-layer--right .hp-layer-content {
    padding-right: 2rem;
  }

  .hp-layer-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .hp-layer-icon-circle::before {
    inset: 5px;
    border-radius: 11px;
  }

  .hp-layer-icon-circle svg {
    width: 30px;
    height: 30px;
  }
}

/* --- Responsive: mobile — stack everything --- */
@media (max-width: 720px) {
  .hp-layers-thread {
    display: none;
  }

  .hp-layer::before {
    display: none;
  }

  .hp-layer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .hp-layer + .hp-layer {
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Reset both orientations to stacked */
  .hp-layer--left,
  .hp-layer--right {
    grid-template-areas:
      "icon"
      "content";
  }

  .hp-layer--left .hp-layer-icon,
  .hp-layer--right .hp-layer-icon {
    justify-self: start;
    padding: 0;
  }

  .hp-layer--left .hp-layer-content,
  .hp-layer--right .hp-layer-content {
    padding: 0;
    text-align: left;
  }

  .hp-layer--right .hp-layer-body,
  .hp-layer--right .hp-layer-monetize {
    margin-left: 0;
  }

  .hp-layer-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .hp-layer-icon-circle::before {
    inset: 4px;
    border-radius: 10px;
  }

  .hp-layer-icon-circle svg {
    width: 28px;
    height: 28px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hp-layer-icon-circle {
    transition: none;
  }
}


/* ===================================
   13. WORKFLOW — Expert-in-the-Loop
   Horizontal process diagram with connecting arrows.
   =================================== */

.hp-workflow {
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
}

/* --- Header --- */
.hp-workflow-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.hp-workflow-heading {
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--hp-navy);
  margin: 0 0 1.25rem;
}

.hp-workflow-subline {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--hp-slate);
  margin: 0;
}

/* --- Diagram container: horizontal flow --- */
.hp-workflow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Individual step card --- */
.hp-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 240px;
  padding: 0 0.75rem;
}

/* --- Step number circle --- */
.hp-workflow-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-amber) 0%, var(--hp-amber-dark) 100%);
  color: var(--hp-white);
  font-family: var(--hp-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow:
    0 4px 16px rgba(245, 158, 11, 0.25),
    0 0 0 6px rgba(245, 158, 11, 0.08);
  position: relative;
  flex-shrink: 0;
}

/* Subtle pulse glow on number circles */
@keyframes hp-number-pulse {
  0%, 100% {
    box-shadow:
      0 4px 16px rgba(245, 158, 11, 0.25),
      0 0 0 6px rgba(245, 158, 11, 0.08);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(245, 158, 11, 0.35),
      0 0 0 10px rgba(245, 158, 11, 0.06);
  }
}

.hp-workflow-diagram.hp-visible .hp-workflow-number {
  animation: hp-number-pulse 3s ease-in-out infinite;
}

.hp-workflow-diagram.hp-visible .hp-workflow-step:nth-child(3) .hp-workflow-number {
  animation-delay: 0.4s;
}

.hp-workflow-diagram.hp-visible .hp-workflow-step:nth-child(5) .hp-workflow-number {
  animation-delay: 0.8s;
}

.hp-workflow-diagram.hp-visible .hp-workflow-step:nth-child(7) .hp-workflow-number {
  animation-delay: 1.2s;
}

/* --- Step title --- */
.hp-workflow-step-title {
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

/* --- Step description --- */
.hp-workflow-step-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hp-slate);
  margin: 0;
}

/* --- Connecting arrows --- */
.hp-workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  /* Align arrow with the number circle vertically */
  margin-top: 16px;
  color: var(--hp-slate-light);
}

.hp-workflow-arrow svg {
  width: 48px;
  height: 24px;
  display: block;
}

/* --- Closing statement --- */
.hp-workflow-closing {
  text-align: center;
  font-family: var(--hp-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--hp-amber-dark);
  margin: 3.5rem auto 0;
  max-width: 500px;
  letter-spacing: -0.01em;
}

/* --- Workflow responsive: tablet & mobile — vertical stack --- */
@media (max-width: 900px) {
  .hp-workflow-diagram {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hp-workflow-step {
    max-width: 400px;
    padding: 0;
  }

  /* Rotate arrows to point downward */
  .hp-workflow-arrow {
    width: 24px;
    height: 48px;
    margin-top: 0;
    margin: 1rem 0;
    transform: rotate(90deg);
  }

  .hp-workflow-header {
    margin-bottom: 3rem;
  }
}

/* --- Workflow reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hp-workflow-diagram.hp-visible .hp-workflow-number {
    animation: none;
  }
}


/* ===================================
   14. TRUST & PRIVACY
   Three trust pillars in a clean grid.
   =================================== */

.hp-trust {
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
}

/* --- Heading --- */
.hp-trust-heading {
  text-align: center;
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--hp-navy);
  margin: 0 auto 3.5rem;
  max-width: 700px;
}

/* --- Three-column grid --- */
.hp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 960px;
  margin: 0 auto;
}

/* --- Individual trust point --- */
.hp-trust-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Trust icon circle --- */
.hp-trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.hp-trust-icon svg {
  width: 28px;
  height: 28px;
  color: #059669;
  stroke-width: 2;
}

/* --- Trust title --- */
.hp-trust-title {
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

/* --- Trust description --- */
.hp-trust-desc {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.7;
  color: var(--hp-slate);
  margin: 0;
  max-width: 300px;
}

/* --- Trust responsive: mobile — single column --- */
@media (max-width: 640px) {
  .hp-trust-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 400px;
  }

  .hp-trust-heading {
    margin-bottom: 2.5rem;
  }
}


/* ===================================
   15. CTA — Final Call to Action
   Deep gradient background with bookend symmetry.
   =================================== */

.hp-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      165deg,
      var(--hp-navy-deep) 0%,
      #0d1333 25%,
      #111846 50%,
      #0e1230 75%,
      #060a1a 100%
    );
  padding: clamp(6rem, 14vw, 10rem) var(--hp-section-pad-x);
  text-align: center;
}

/* Warm amber radial glow behind text */
.hp-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 45% 55% at 50% 50%,
      rgba(245, 158, 11, 0.06) 0%,
      rgba(245, 158, 11, 0.025) 35%,
      transparent 70%
    );
}

/* Noise overlay uses shared .hp-noise class */
.hp-cta {
  --hp-noise-opacity: 0.25;
}

/* Inner content wrapper */
.hp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- CTA Heading --- */
.hp-cta-heading {
  font-family: var(--hp-font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hp-white);
  margin: 0 0 1.25rem;
}

/* --- CTA Subline --- */
.hp-cta-subline {
  font-family: var(--hp-font-body);
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  line-height: 1.7;
  color: var(--hp-slate-light);
  margin: 0 0 2.5rem;
  max-width: 500px;
}

/* --- CTA Actions container --- */
.hp-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* --- Primary CTA Button --- */
.hp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-navy);
  background: var(--hp-white);
  padding: 1.125rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    transform var(--hp-transition-base),
    box-shadow var(--hp-transition-base),
    background var(--hp-transition-fast);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(245, 158, 11, 0.1);
  background: #fffdf9;
}

.hp-cta-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- Secondary link --- */
.hp-cta-link {
  font-family: var(--hp-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--hp-transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
}

.hp-cta-link:hover {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* --- CTA responsive: mobile --- */
@media (max-width: 640px) {
  .hp-cta {
    padding: clamp(5rem, 15vw, 8rem) var(--hp-section-pad-x);
  }

  .hp-cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    width: 100%;
    max-width: 320px;
  }
}

/* --- CTA reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hp-cta-btn {
    transition: none;
  }
}


/* ===================================
   16. SOURCES LINK
   Small centered link above footer.
   =================================== */

.hp-sources-link {
  text-align: center;
  padding: 2rem var(--hp-section-pad-x) 0;
  background: var(--hp-white);
}

.hp-sources-link a {
  font-family: var(--hp-font-body);
  font-size: 0.875rem;
  color: var(--hp-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--hp-transition-fast),
              border-color var(--hp-transition-fast);
}

.hp-sources-link a:hover {
  color: var(--hp-navy);
  border-bottom-color: var(--hp-navy);
}
