/* ===========================================
   HERO V2 STYLES — Light, Clean, Bold Borders
   Transparent/grey alternating sections, dark navy
   accents on card borders, rounded buttons
   All values use var(--im-*) tokens
   =========================================== */

/* -----------------------------------------
   Section Utilities (gradient / grey)
   ----------------------------------------- */
.im-section-gradient {
  background: transparent;
  color: var(--im-text-100);
  position: relative;
  z-index: 1;
}

.im-section-grey {
  background: var(--im-bg-200);
  color: var(--im-text-100);
  position: relative;
  z-index: 1;
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
.im-hero {
  position: relative;
  min-height: clamp(600px, 80vh, 900px);
  padding-top: clamp(6rem, 10vh, 8rem);
  padding-bottom: 4rem;
  overflow: visible;
  display: flex;
  align-items: flex-start;
}

/* -----------------------------------------
   Kicker Badge (subtle blue tint on light bg)
   ----------------------------------------- */
.im-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.625rem;
  background: rgba(0, 102, 140, 0.06);
  border: 1px solid var(--im-border-accent);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--im-text-200);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  margin-bottom: 1rem;
}

.im-hero-kicker:hover {
  border-color: var(--im-accent-200);
  background: rgba(0, 102, 140, 0.1);
  color: var(--im-text-100);
}

.im-hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--im-accent-200);
  animation: im-pulse 2s ease-in-out infinite;
}

@keyframes im-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.im-hero-kicker .ai-arrow-right {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.im-hero-kicker:hover .ai-arrow-right {
  transform: translateX(3px);
}

/* -----------------------------------------
   Hero Typography (dark text on light bg)
   ----------------------------------------- */
.im-hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--im-text-100);
  margin-bottom: 1.25rem;
  max-width: 860px;
}

.im-hero-title .im-accent {
  color: var(--im-accent-200);
}

.im-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--im-text-200);
  max-width: 720px;
  margin-bottom: 2rem;
}

/* -----------------------------------------
   Hero Credentials Strip
   ----------------------------------------- */
.im-hero-credentials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.im-hero-credentials-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--im-border-accent);
  object-fit: cover;
}

/* -----------------------------------------
   Hero CTA Buttons — rounded-3
   ----------------------------------------- */
.im-hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.im-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
}

.im-hero-btn .ai-arrow-right {
  transition: transform 0.25s ease;
  font-size: 0.875rem;
}

.im-hero-btn:hover .ai-arrow-right {
  transform: translateX(4px);
}

/* Primary — accent blue fill */
.im-hero-btn--primary {
  background: var(--im-accent-200);
  color: #fff;
}

.im-hero-btn--primary:hover {
  background: var(--im-accent-200-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 140, 0.25);
}

/* Secondary — navy outline on light bg */
.im-hero-btn--secondary {
  background: transparent;
  border: 2px solid var(--im-dark-navy);
  color: var(--im-dark-navy);
}

.im-hero-btn--secondary:hover {
  background: var(--im-dark-navy);
  color: #fff;
  transform: translateY(-2px);
}

/* Businesses variant — charcoal fill */
.im-hero-btn--businesses {
  background: var(--im-primary-300);
  color: #fff;
}

.im-hero-btn--businesses:hover {
  background: var(--im-primary-300);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 60, 61, 0.2);
}

/* -----------------------------------------
   Scope Cards — icon + title grid below credentials
   ----------------------------------------- */
.im-scope-grid {
  margin-top: 0;
}

.im-scope-card {
  background: var(--im-bg-100);
  border-radius: 14px;
  border: 1px solid var(--im-border-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.im-scope-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--im-dark-navy);
}

.im-scope-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 102, 140, 0.08);
  color: var(--im-accent-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.im-scope-card:hover .im-scope-card-icon {
  background: var(--im-accent-200);
  color: #fff;
}

.im-scope-card-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--im-text-100);
  line-height: 1.3;
}

/* Scope card CTA variant — "Explore All" */
.im-scope-card--cta {
  border-style: dashed;
  border-color: var(--im-accent-200);
  background: rgba(0, 102, 140, 0.03);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.im-scope-card--cta .im-scope-card-icon {
  background: transparent;
  border: 1px solid var(--im-accent-200);
}

.im-scope-card--cta:hover {
  background: var(--im-accent-200);
  border-style: solid;
  border-color: var(--im-accent-200);
}

.im-scope-card--cta:hover .im-scope-card-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent;
  color: #fff;
}

.im-scope-card--cta:hover .im-scope-card-label {
  color: #fff;
}

/* -----------------------------------------
   Trust Bar Section
   ----------------------------------------- */
.im-trust-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--im-bg-300);
}

.im-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.im-trust-strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  border-left: 1px solid var(--im-bg-300);
}

.im-trust-strip-stat:first-child {
  border-left-color: transparent;
}

.im-trust-strip-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--im-accent-200);
  line-height: 1.2;
}

.im-trust-strip-label {
  font-size: 0.8125rem;
  color: var(--im-text-200);
  text-align: center;
  line-height: 1.3;
  max-width: 120px;
}

/* -----------------------------------------
   Who We Help Section
   ----------------------------------------- */
.im-who-section {
  padding: 4rem 0;
}

.im-who-card {
  background: var(--im-bg-100);
  border-radius: 16px;
  border: 1px solid var(--im-border-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.im-who-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--im-dark-navy);
}

.im-who-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.im-who-icon--individual {
  background: rgba(0, 102, 140, 0.1);
  color: var(--im-accent-200);
}

.im-who-icon--business {
  background: rgba(59, 60, 61, 0.1);
  color: var(--im-primary-300);
}

.im-who-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--im-text-100);
  margin-bottom: 0.75rem;
}

.im-who-card p {
  font-size: 0.9375rem;
  color: var(--im-text-200);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.im-who-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.im-who-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--im-text-100);
}

.im-who-features li i {
  color: var(--im-accent-200);
  font-size: 1rem;
  flex-shrink: 0;
}

.im-who-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--im-accent-200);
  text-decoration: none;
  transition: gap 0.25s ease;
}

.im-who-cta:hover {
  gap: 0.75rem;
  color: var(--im-accent-200-dark);
}

/* -----------------------------------------
   Free Tools Section
   ----------------------------------------- */
.im-tools-section {
  padding: 4rem 0;
}

.im-tool-card {
  background: var(--im-bg-100);
  border-radius: 16px;
  border: 1px solid var(--im-border-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 1.75rem;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  text-decoration: none;
  display: block;
}

.im-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--im-dark-navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.im-tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 102, 140, 0.08);
  color: var(--im-accent-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.im-tool-card:hover .im-tool-card-icon {
  background: var(--im-accent-200);
  color: #fff;
}

.im-tool-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--im-text-100);
  margin-bottom: 0.5rem;
}

.im-tool-card p {
  font-size: 0.875rem;
  color: var(--im-text-200);
  margin-bottom: 0;
  line-height: 1.5;
}

/* -----------------------------------------
   How It Works Section
   ----------------------------------------- */
.im-how-section {
  padding: 4rem 0;
}

.im-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.im-how-step {
  text-align: center;
  position: relative;
}

/* Connecting line between steps */
.im-how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--im-accent-200);
  opacity: 0.2;
}

.im-how-step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--im-accent-200);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.im-how-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--im-text-100);
  margin-bottom: 0.5rem;
}

.im-how-step p {
  font-size: 0.875rem;
  color: var(--im-text-200);
  line-height: 1.5;
  margin-bottom: 0;
}

/* How It Works — step number hover (ring glow) */
.im-how-step-number {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.im-how-step:hover .im-how-step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(0, 102, 140, 0.1);
}

/* -----------------------------------------
   Social Proof / Trust Section
   ----------------------------------------- */
.im-social-section {
  padding: 4rem 0;
}

.im-trust-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--im-accent-200);
  line-height: 1.2;
}

.im-trust-stat-label {
  font-size: 0.8125rem;
  color: var(--im-text-200);
  line-height: 1.3;
}

/* -----------------------------------------
   Platform Capabilities Section
   ----------------------------------------- */
.im-capabilities-section {
  padding: 4rem 0;
}

.im-cap-card {
  background: var(--im-bg-100);
  border-radius: 16px;
  border: 1px solid var(--im-border-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.im-cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--im-dark-navy);
}

.im-cap-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 102, 140, 0.08);
  color: var(--im-accent-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.im-cap-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--im-text-100);
  margin-bottom: 0.5rem;
}

.im-cap-card p {
  font-size: 0.875rem;
  color: var(--im-text-200);
  line-height: 1.6;
  margin-bottom: 0;
}

/* -----------------------------------------
   Final CTA Section
   ----------------------------------------- */
.im-final-cta {
  padding: 4rem 0;
  text-align: center;
}

.im-final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--im-text-100);
  margin-bottom: 1rem;
}

.im-final-cta p {
  font-size: 1.125rem;
  color: var(--im-text-200);
  margin-bottom: 2rem;
}

.im-final-cta .im-hero-ctas {
  justify-content: center;
}

.im-final-cta-note {
  font-size: 0.875rem;
  color: var(--im-text-200);
  margin-top: 1rem;
}

/* -----------------------------------------
   Section Headers (reusable)
   ----------------------------------------- */
.im-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--im-accent-200);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.im-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--im-text-100);
  margin-bottom: 0.75rem;
}

.im-section-subtitle {
  font-size: 1.125rem;
  color: var(--im-text-200);
  max-width: 600px;
  line-height: 1.6;
}

/* -----------------------------------------
   Responsive — Tablet (<=991px)
   ----------------------------------------- */
@media (max-width: 991.98px) {
  .im-hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
    text-align: center;
    align-items: flex-start;
  }

  /* Force hero content visible immediately — AOS fade-up sets
     opacity:0 + translate3d(0,100px,0) which hides content on mobile */
  .im-hero [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }

  .im-scope-grid {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .im-hero-title {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .im-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .im-hero-ctas {
    justify-content: center;
  }

  .im-hero-credentials {
    justify-content: center;
  }

  /* Trust strip */
  .im-trust-strip {
    justify-content: center;
  }

  /* How It Works grid */
  .im-how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .im-how-step:not(:last-child)::after {
    display: none;
  }
}

/* -----------------------------------------
   Responsive — Mobile (<=575px)
   ----------------------------------------- */
@media (max-width: 575.98px) {
  .im-hero {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }

  .im-scope-card {
    padding: 1rem 0.75rem;
  }

  .im-scope-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .im-scope-card-label {
    font-size: 0.8125rem;
  }

  .im-hero-title {
    letter-spacing: -0.02em;
    max-width: 100%;
  }

  .im-hero-credentials-photo {
    width: 40px;
    height: 40px;
  }

  .im-hero-credentials img[width="260"] {
    width: 180px;
  }

  .im-hero-ctas {
    flex-direction: column;
  }

  .im-hero-btn {
    width: 100%;
    justify-content: center;
  }

  /* Trust strip: wrap 2x2 */
  .im-trust-strip {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .im-trust-strip-stat {
    padding: 0 1rem;
  }

  .im-trust-strip-stat + .im-trust-strip-stat {
    border-left: none;
  }

  /* How It Works: single column */
  .im-how-steps {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   Waitlist Section Utilities
   ----------------------------------------- */
.im-waitlist-bg {
  height: calc(100% - 3rem);
}

.im-waitlist-lists {
  max-width: 370px;
}

.im-waitlist-form {
  max-width: 360px;
}

/* -----------------------------------------
   Testimonial Card
   ----------------------------------------- */
.im-testimonial-card {
  border: 1px solid var(--im-border-accent);
  background: var(--im-bg-100);
  border-radius: 0.75rem;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.im-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--im-dark-navy);
}

/* -----------------------------------------
   Focus Visible (Keyboard Navigation)
   ----------------------------------------- */
.im-hero-btn:focus-visible,
.im-scope-card--cta:focus-visible,
.im-tool-card:focus-visible,
.im-who-cta:focus-visible,
.im-cap-card:focus-visible {
  outline: 2px solid var(--im-accent-200);
  outline-offset: 2px;
}

/* -----------------------------------------
   Dark Mode
   ----------------------------------------- */
.dark-mode .im-hero-title,
.dark-mode .im-section-title {
  color: rgba(255, 255, 255, 0.95);
}

.dark-mode .im-hero-subtitle,
.dark-mode .im-section-subtitle,
.dark-mode .im-section-label {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .im-section-grey {
  background: rgba(255, 255, 255, 0.03);
}

.dark-mode .im-scope-card,
.dark-mode .im-who-card,
.dark-mode .im-tool-card,
.dark-mode .im-cap-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--im-border-dark);
}

.dark-mode .im-scope-card:hover,
.dark-mode .im-who-card:hover,
.dark-mode .im-tool-card:hover,
.dark-mode .im-cap-card:hover {
  border-color: var(--im-border-dark-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark-mode .im-scope-card-label,
.dark-mode .im-who-card h4,
.dark-mode .im-tool-card h4,
.dark-mode .im-cap-card h4 {
  color: rgba(255, 255, 255, 0.95);
}

.dark-mode .im-who-card p,
.dark-mode .im-tool-card p,
.dark-mode .im-cap-card p,
.dark-mode .im-who-features li,
.dark-mode .im-trust-strip-label,
.dark-mode .im-trust-stat-label,
.dark-mode .im-how-step p,
.dark-mode .im-final-cta p,
.dark-mode .im-final-cta-note {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .im-who-cta {
  color: var(--im-accent-bright);
}

.dark-mode .im-who-cta:hover {
  color: var(--im-accent-100);
}

.dark-mode .im-hero-btn--primary:hover {
  background: var(--im-accent-bright);
}

.dark-mode .im-hero-btn--businesses:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dark-mode .im-trust-section {
  border-bottom-color: var(--im-border-dark);
}

.dark-mode .im-trust-strip-stat {
  border-left-color: var(--im-border-dark);
}

.dark-mode .im-how-step h4,
.dark-mode .im-tool-card h4,
.dark-mode .im-cap-card h4,
.dark-mode .im-how-step-number,
.dark-mode .im-final-cta h2 {
  color: rgba(255, 255, 255, 0.95);
}

.dark-mode .im-how-step:not(:last-child)::after {
  background: var(--im-accent-bright);
}

.dark-mode .im-testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--im-border-dark);
}

.dark-mode .im-testimonial-card:hover {
  border-color: var(--im-border-dark-hover);
}

/* -----------------------------------------
   Reduced Motion
   ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .im-hero-kicker,
  .im-hero-btn,
  .im-who-card,
  .im-tool-card,
  .im-cap-card,
  .im-scope-card,
  .im-how-step-number {
    transition: none;
  }

  .im-hero-kicker-dot {
    animation: none;
  }

  .im-hero-btn:hover,
  .im-who-card:hover,
  .im-tool-card:hover,
  .im-cap-card:hover,
  .im-scope-card:hover {
    transform: none;
  }

  .im-how-step:hover .im-how-step-number {
    transform: none;
    box-shadow: none;
  }
}
