/* Scenario hero — before/after comparison with screenshots and demo preview */

@layer components {
  .scenario-hero {
    background: var(--color-dark, #1a1a2e);
    color: #fff;
    padding: var(--space-2xl) 0;
    text-align: center;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg, 0.75rem);
  }
  .scenario-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent, #996b1d);
    margin-bottom: var(--space-sm);
  }
  .scenario-hero__heading {
    font-family: var(--font-display, "DM Serif Display", serif);
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
  }
  .scenario-hero__subtitle {
    color: rgba(255, 255, 255, 0.65);
    max-width: 36rem;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
  }
  .scenario-hero__comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-direction: column;
  }
  .scenario-hero__frame {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    position: relative;
    padding: var(--space-md);
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 20rem;
  }
  .scenario-hero__frame--before {
    border: 1px solid rgba(239, 68, 68, 0.3);
  }
  .scenario-hero__frame--after {
    border: 1px solid rgba(34, 197, 94, 0.3);
  }
  .scenario-hero__badge {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 1;
  }
  .scenario-hero__badge--before {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
  }
  .scenario-hero__badge--after {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
  }
  .scenario-hero__arrow {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transform: rotate(90deg);
  }
  .scenario-hero__arrow-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .scenario-hero__icon-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
  .scenario-hero__icon {
    width: 4rem;
    height: 4rem;
  }
  .scenario-hero__icon--success {
    width: 3rem;
    height: 3rem;
  }
  .scenario-hero__icon-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }
  .scenario-hero__icon-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
  }
  .scenario-hero__screenshot {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    opacity: 0.85;
    filter: saturate(0.7);
  }
  .scenario-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    min-height: 8rem;
    width: 100%;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
  }
  .scenario-hero__demo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: linear-gradient(
      135deg,
      var(--color-primary, #1b4d3e) 0%,
      var(--color-accent, #996b1d) 100%
    );
    border-radius: 0.375rem;
    min-height: 8rem;
    width: 100%;
    padding: var(--space-md);
  }
  .scenario-hero__demo-name {
    font-family: var(--font-display, "DM Serif Display", serif);
    font-size: 1rem;
    font-weight: 600;
  }
  .scenario-hero__demo-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
  }
  .scenario-hero__address-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: #333;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 16rem;
  }
  .scenario-hero__address-bar-warning {
    color: #ef4444;
    font-weight: 700;
    white-space: nowrap;
  }
  .scenario-hero__address-bar-url {
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .scenario-hero__ssl-secure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
  .scenario-hero__ssl-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #1b4d3e);
  }
  .scenario-hero__stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
  }
  .scenario-hero__stack-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
  }
  .scenario-hero__comparison--mobile {
    gap: var(--space-md);
  }
  .scenario-hero__phone-frame {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    padding: var(--space-xl) var(--space-sm) var(--space-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 200px;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scenario-hero__phone-notch {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
  }
  .scenario-hero__phone-screenshot {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    opacity: 0.85;
    filter: saturate(0.7);
  }

  /* Scenario hero responsive */
  @media (min-width: 640px) {
    .scenario-hero__comparison {
      flex-direction: row;
    }
    .scenario-hero__arrow {
      transform: rotate(0deg);
    }
    .scenario-hero__heading {
      font-size: 2.25rem;
    }
    .scenario-hero__phone-frame {
      max-width: 220px;
    }
  }
  @media (min-width: 1024px) {
    .scenario-hero {
      padding: var(--space-3xl) 0;
    }
    .scenario-hero__heading {
      font-size: 2.75rem;
    }
    .scenario-hero__phone-frame {
      max-width: 240px;
      min-height: 24rem;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .scenario-hero,
    .scenario-hero * {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
}
