/* ===================================
   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;
}

/* Faint hero background photo */
.hp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/doors.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.04;
  mix-blend-mode: luminosity;
  z-index: -1;
}

/* --- 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;
  }
}


/* ===================================
   8b. HERO SPLIT LAYOUT
   Two-column: left = text/CTA, right = hub preview
   =================================== */

.hp-hero--split {
  min-height: 90vh;
  align-items: center;
  padding: 6rem 2rem 4rem;
}

.hp-hero-split-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Left column */
.hp-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Inline hero input */
.hp-hero-inline-input {
  margin-top: 2rem;
}

.hp-hero-inline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
}

.hp-hero-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-hero-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-family: var(--hp-font-display);
  font-size: 1rem;
  border: none;
  outline: none;
  background: #fff;
  color: var(--hp-navy-deep);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hp-hero-input::placeholder {
  color: #9ca3af;
  font-size: 0.875rem;
}

.hp-hero-input-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--hp-amber);
  color: var(--hp-navy-deep);
  border: none;
  border-radius: 12px;
  font-family: var(--hp-font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform var(--hp-transition-base), box-shadow var(--hp-transition-base);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.hp-hero-input-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

.hp-hero-input-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* CTA button */
.hp-hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  background: var(--hp-amber);
  color: var(--hp-navy-deep);
  border: none;
  border-radius: 12px;
  padding: 1rem 2.25rem 0.75rem;
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform var(--hp-transition-base), box-shadow var(--hp-transition-base);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.hp-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

.hp-hero-cta-note {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.hp-hero-skip {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
}

.hp-hero-skip a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
  transition: color var(--hp-transition-fast);
}

.hp-hero-skip a:hover {
  color: rgba(255,255,255,0.9);
}

/* Right column — preview card container */
.hp-hero-right {
  display: flex;
  justify-content: center;
}

.hp-hub-preview {
  position: relative;
  width: 100%;
  max-width: 700px;
}

/* Screenshot image */
.hp-hub-screenshot-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.25);
  line-height: 0;
  height: 680px;
}

.hp-hub-screenshot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  opacity: 1;
  transition: opacity 250ms ease;
}

.hp-hub-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hp-hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 250ms ease, transform 250ms ease;
}

.hp-hub-dot:hover {
  background: rgba(255,255,255,0.5);
}

.hp-hub-dot.active {
  background: var(--hp-amber);
  transform: scale(1.25);
}

/* Hub card */
.hp-hub-card {
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 4px 16px rgba(0,0,0,0.2);
}

.hp-hub-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.hp-hub-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--hp-font-display);
}

.hp-hub-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.hp-hub-card-title {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
}

.hp-hub-card-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.hp-hub-card-agents {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hp-hub-agent-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  position: relative;
}

.hp-hub-agent-card--admin {
  background: #fff;
}

.hp-hub-agent-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.hp-hub-agent-badge--expert {
  background: rgba(67,56,202,0.1);
  color: #4338ca;
}

.hp-hub-agent-badge--admin {
  background: rgba(107,114,128,0.1);
  color: #6b7280;
}

.hp-hub-agent-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}

.hp-hub-agent-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Callout annotations */
.hp-hub-callout {
  position: absolute;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-amber);
  white-space: nowrap;
  pointer-events: none;
}

.hp-hub-callout--top {
  top: 3.5rem;
  right: -1rem;
}

.hp-hub-callout--bottom {
  bottom: 1.5rem;
  right: -1rem;
}

/* ===================================
   8c. BUILD HUB MODAL
   =================================== */

.hp-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.hp-modal-backdrop.active {
  display: flex;
}

.hp-modal {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 620px;
  min-height: 280px;
  margin: 1rem;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.hp-modal-close:hover { color: #374151; }

.hp-modal-title {
  font-family: var(--hp-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hp-navy-deep);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.hp-modal-sub {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

.hp-modal-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hp-modal-toggle-btn {
  padding: 6px 20px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: var(--hp-font-display);
  transition: all var(--hp-transition-fast);
}

.hp-modal-toggle-btn.active {
  background: white;
  color: var(--hp-navy-deep);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.hp-modal-input-row {
  display: flex;
  margin-top: 0.75rem;
}

.hp-modal-input-row:first-of-type {
  margin-top: 0;
}

.hp-modal-go-row {
  margin-top: 1rem;
}

.hp-modal-go-btn {
  width: 100%;
  background: var(--hp-amber);
  color: var(--hp-navy-deep);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-family: var(--hp-font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--hp-transition-base), box-shadow var(--hp-transition-base);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.hp-modal-go-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.hp-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--hp-font-display);
  color: var(--hp-navy-deep);
  transition: border-color var(--hp-transition-fast);
  outline: none;
}

.hp-modal-input:focus {
  border-color: var(--hp-amber);
}

@keyframes hp-modal-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.hp-modal-input.shake {
  animation: hp-modal-shake 0.4s ease;
  border-color: #dc2626;
}

.hp-modal-status {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  line-height: 1.5;
}

.hp-modal-status--error { color: #dc2626; }
.hp-modal-status--hint { color: #6b7280; }
.hp-modal-status--loading {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-modal-waiting-label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hp-amber);
  margin: 1.25rem 0 0.75rem;
}

.hp-modal-waiting-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.hp-modal-search-progress-track {
  width: 100%;
  height: 5px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.hp-modal-search-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--hp-amber);
  border-radius: 99px;
}

.hp-modal-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(245,158,11,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hp-modal-progress-bar {
  height: 100%;
  width: 40%;
  background: repeating-linear-gradient(
    -45deg,
    var(--hp-amber),
    var(--hp-amber) 8px,
    rgba(245,158,11,0.4) 8px,
    rgba(245,158,11,0.4) 16px
  );
  border-radius: 99px;
}

.hp-modal-waiting-msg {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
  transition: opacity 0.3s ease;
  min-height: 4.8em;
}

.hp-modal-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245,158,11,0.2);
  border-top-color: var(--hp-amber);
  border-radius: 50%;
  animation: hp-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes hp-spin { to { transform: rotate(360deg); } }

/* Hero split responsive */
@media (max-width: 960px) {
  .hp-hero-split-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hp-hero-left {
    align-items: center;
    text-align: center;
  }

  .hp-hero-right {
    display: flex;
    justify-content: center;
  }

  .hp-hub-screenshot-wrap {
    height: 420px;
  }

  .hp-hub-preview {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .hp-hero--split {
    min-height: auto;
    padding: 5rem 1.25rem 2.5rem;
  }

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

  .hp-hero-sub {
    max-width: 100%;
    font-size: 1rem;
  }

  .hp-hero-input-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hp-hero-input-btn {
    width: auto;
  }

  .hp-hero-input-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
    justify-content: center;
  }

  .hp-hero-inline-input {
    width: 100%;
  }

  .hp-hub-screenshot-wrap {
    height: 480px;
  }

  .hp-hub-preview {
    max-width: 100%;
  }
}

/* ===================================
   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;
  text-align: left;
}

/* --- 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: 700px;
  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;
  }
}


/* ===================================
   14b. PREMIUM AGENTS
   Dark section, three-card grid.
   =================================== */

.hp-premium {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      var(--hp-navy-deep) 0%,
      #0d1333 40%,
      #111846 100%
    );
  padding: var(--hp-section-pad-y) var(--hp-section-pad-x);
  text-align: center;
}

.hp-premium-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hp-premium-header {
  max-width: 680px;
  margin: 0 auto 4rem;
}

.hp-premium-eyebrow {
  display: inline-block;
  font-family: var(--hp-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-amber);
  margin-bottom: 1rem;
}

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

.hp-premium-subline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--hp-slate-light);
  margin: 0;
}

.hp-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 960px;
  margin: 0 auto;
}

.hp-premium-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  text-align: left;
}

.hp-premium-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--hp-amber);
}

.hp-premium-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.hp-premium-card-title {
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.hp-premium-card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--hp-slate-light);
  margin: 0;
}

@media (max-width: 768px) {
  .hp-premium-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ===================================
   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);
}
