/* NLarchive Hero Component - Captivating, Conversion-Focused */
.nl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  overflow: hidden;
  /* Refined gradient background */
  background: linear-gradient(135deg, var(--nl-primary, #0066cc) 0%, var(--nl-secondary, #00bfae) 100%);
  color: white;
  padding: 6rem 3rem; /* Increased top padding for more breathing room */
}

.nl-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* Subtle dark overlay for better text contrast */
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through */
}

.nl-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ensure background is behind content */
  opacity: 0.6; /* Make shapes more subtle */
}

.nl-hero__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); /* Very subtle white shapes */
  animation: floatSubtle 15s ease-in-out infinite; /* Slower, more subtle animation */
}

.nl-hero__shape--1 {
  width: 400px; /* Slightly larger shape */
  height: 400px;
  top: 5%;
  right: -15%;
  animation-delay: 0s;
}

.nl-hero__shape--2 {
  width: 300px; /* Slightly larger shape */
  height: 300px;
  bottom: 10%;
  left: -10%;
  animation-delay: 5s;
}

.nl-hero__shape--3 {
  width: 200px; /* Slightly larger shape */
  height: 200px;
  top: 70%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(60deg); } /* Less pronounced movement */
}

.nl-hero__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.nl-hero__content {
  max-width: 800px; /* Increased max-width for content */
  animation: slideInUp 1s ease-out; /* Changed animation to slide up */
  margin: 0 auto; /* Center the content block */
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nl-hero__title {
  font-size: clamp(3rem, 7vw, 5rem); /* Adjusted clamp values */  
  font-weight: 800; /* Make title bolder */  
  line-height: 1.1; /* Tighter line height */
  margin-bottom: 1.5rem; /* Adjusted margin */
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Stronger text shadow */
  text-align: center; /* Center the title */
}

.nl-hero__subtitle {
  font-size: 1.3rem; /* Slightly smaller subtitle */
  line-height: 1.6; /* Adjusted line height */
  margin-bottom: 2.5rem; /* Adjusted margin */
  opacity: 0.95; /* Slightly less opaque */
  max-width: 700px; /* Adjusted max-width */
  margin: 0 auto; /* Center the subtitle */
  color: rgba(255, 255, 255, 0.9); /* Adjusted color opacity */
  padding-bottom: 1rem; /* Added padding for better spacing */
}

.nl-hero__actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-content: center; /* Center buttons */
  flex-wrap: wrap;
}

.nl-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  min-width: 180px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Added default shadow */
}

.nl-hero__cta:hover {
  transform: translateY(-3px); /* More pronounced hover effect */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.nl-hero__cta:active {
  transform: translateY(-1px); /* Subtle press effect */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Smaller shadow on press */
}

.nl-hero__cta--primary {
  background: white;
  color: var(--nl-primary, #0066cc);
}

.nl-hero__cta--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6); /* Slightly more opaque border */
}

.nl-hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
  border-color: white;
}

.nl-hero__cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.nl-hero__stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center; /* Center stats */
  padding-top: 2rem; /* Added padding top */
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator line */
}

.nl-hero__stat {
  text-align: left;
  min-width: 120px; /* Increased min-width */
}

.nl-hero__stat-number {
  display: block;
  font-size: 2.5rem; /* Larger numbers */
  font-weight: 800; /* Bolder numbers */
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.nl-hero__stat-label {
  display: block;
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem; /* Increased margin */
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   Demo-Specific Styles
   ============================================================================ */

/* Main Content Container */
.nl-body__container .demo-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--nl-spacing-xl) var(--nl-spacing-lg);
}

/* Demo Navigation */
.demo-nav {
  text-align: center;
  margin-bottom: var(--nl-spacing-lg);
}

.demo-nav__link {
  color: var(--nl-primary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--nl-spacing-sm) var(--nl-spacing-md);
  border-radius: var(--nl-border-radius);
  transition: var(--nl-transition);
}

.demo-nav__link:hover {
  background: var(--nl-light);
  transform: translateX(-4px);
}

/* Demo Header */
.demo-header {
  text-align: center;
  margin-bottom: var(--nl-spacing-xl);
}

.demo-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--nl-dark);
  margin: 0;
  background: linear-gradient(135deg, var(--nl-primary), var(--nl-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Preview Area */
.live-preview {
    margin: var(--nl-spacing-xl) 0;
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-lg);
    background: var(--nl-light);
}

.live-preview__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nl-dark);
    padding: var(--nl-spacing-md);
    border-bottom: 1px solid var(--nl-border);
    margin: 0;
    text-align: center;
    background: white;
}

/* Demo Sections */
.demo-section {
  margin-bottom: var(--nl-spacing-xl);
  padding: var(--nl-spacing-lg);
  border-radius: var(--nl-border-radius-lg);
  border-left: 4px solid;
}

.demo-section--primary {
  background: #eef2ff;
  border-left-color: var(--nl-primary);
}

.demo-section--secondary {
  background: #f0f9ff;
  border-left-color: var(--nl-secondary);
}

.demo-section--accent {
  background: #fff7ed;
  border-left-color: var(--nl-accent);
}

.demo-section__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--nl-dark);
  margin: 0 0 var(--nl-spacing-md) 0;
}

.demo-section__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--nl-text);
  margin: 0;
}

/* Demo Features Grid */
.demo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--nl-spacing-lg);
    margin-top: var(--nl-spacing-lg);
}

.demo-feature-card {
    background: white;
    padding: var(--nl-spacing-lg);
    border-radius: var(--nl-border-radius-lg);
    box-shadow: var(--nl-shadow);
    border-left: 4px solid var(--nl-primary);
    box-sizing: border-box;

}

.demo-feature-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--nl-primary);
    margin: 0 0 var(--nl-spacing-sm) 0;
}

.demo-feature-card__text {
    font-size: 1rem;
    color: var(--nl-text);
    line-height: 1.6;
    margin: 0;
}

/* Demo Showcase Components */
.demo-showcase {
  background: white;
  padding: var(--nl-spacing-lg);
  border-radius: var(--nl-border-radius-lg);
  margin: var(--nl-spacing-lg) 0;
  box-shadow: var(--nl-shadow);
  border: 1px solid var(--nl-border);
}

.demo-showcase--dark {
    background: var(--nl-dark);
    color: white;
    border-color: var(--nl-dark);
}

.demo-showcase--dark .demo-showcase__title {
    color: white;
}

.demo-showcase--dark .demo-showcase__text {
    color: rgba(255, 255, 255, 0.8);
}

.demo-showcase__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nl-primary);
  margin: 0 0 var(--nl-spacing-sm) 0;
}

.demo-showcase__text {
  color: var(--nl-text);
  margin: 0 0 var(--nl-spacing-md) 0;
  font-size: 1rem; /* Ensuring minimum 1rem */
}

/* Principles List */
.demo-principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--nl-text);
    margin-left: var(--nl-spacing-md);
    line-height: 1.8;
}

.demo-principles-list li strong {
    color: var(--nl-dark);
}

/* Interactive Features Grid */
.demo-interactive-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--nl-spacing-md);
}

.demo-feature-item {
    background: white;
    padding: var(--nl-spacing-md);
    border-radius: var(--nl-border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.demo-feature-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nl-primary);
    margin: 0 0 var(--nl-spacing-xs) 0;
}

.demo-feature-item__text {
    font-size: 1rem; /* Ensuring minimum 1rem */
    color: var(--nl-text);
    line-height: 1.6;
    margin: 0;
}

/* Callout Section */
.demo-callout {
    text-align: center;
    margin: var(--nl-spacing-xl) 0;
    padding: var(--nl-spacing-lg);
    background: linear-gradient(135deg, var(--nl-primary) 0%, var(--nl-secondary) 100%);
    border-radius: var(--nl-border-radius-lg);
    color: white;
}

.demo-callout__title {
    font-size: 1.8rem;
    margin: 0 0 var(--nl-spacing-sm) 0;
}

.demo-callout__text {
    font-size: 1.1rem;
    margin: var(--nl-spacing-sm) 0;
    opacity: 0.9;
}

.demo-callout__tip {
    font-size: 1rem; /* Changed from 0.9rem to ensure minimum 1rem */
    margin-top: var(--nl-spacing-md);
    opacity: 0.8;
}

/* Demo Tip */
.demo-tip {
  margin-top: var(--nl-spacing-md);
  font-size: 1rem; /* Changed from 0.9rem to ensure minimum 1rem */
  color: var(--nl-text-muted);
  font-style: italic;
}

/* ============================================================================
   Interactive Demo Controls Styling (from nl-control-panel.css, duplicated for clarity)
   ============================================================================ */

/* Note: These styles are ideally in a shared file like nl-control-panel.css */
/* Duplicated here for component demo self-containment if needed, but prefer shared */

/* .nl-control-panel styles are in nl-control-panel.css */

.nl-control-panel__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: var(--nl-spacing-lg);
}

.nl-control-panel__current-values {
    margin-top: var(--nl-spacing-lg);
    text-align: center;
    color: var(--nl-text);
    font-size: 1rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 992px) {
  .nl-hero__container {
    padding: 0 1.5rem;
  }

  .nl-hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem); /* Adjusted clamp values */
  }

  .nl-hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .nl-hero__actions {
    gap: 1rem;
  }

  .nl-hero__cta {
    padding: 0.8rem 2rem;
    min-width: 160px;
  }

  .nl-hero__stats {
    gap: 2rem;
  }

  .nl-hero__stat-number {
    font-size: 2.2rem;
  }

  .nl-hero__stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nl-hero {
    padding: 4rem 0;
    min-height: 80vh;
  }

  .nl-hero__container {
    padding: 0 1rem;
  }

  .nl-hero__content {
    max-width: 100%;
    text-align: center; /* Center content on small screens */
  }

  .nl-hero__title {
    font-size: clamp(2.2rem, 7vw, 3.5rem); /* Adjusted clamp values */
  }

  .nl-hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem; /* Adjusted margin */
    max-width: 90%;
    margin: 0 auto; /* Ensure subtitle remains centered on small screens */
  }

  .nl-hero__actions {
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center; /* Center stacked buttons */
    align-items: center; /* Center stacked buttons */
  }

  .nl-hero__cta {
    padding: 0.75rem 1.5rem;
    min-width: 200px;
    width: 100%;
    max-width: 250px;
  }

  .nl-hero__stats {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center; /* Center stat items */
    align-items: center; /* Center stat items */
    padding-top: 1.5rem; /* Adjusted padding top */
  }

  .nl-hero__stat {
    text-align: center; /* Center stat text */
    min-width: auto;
  }

  .nl-hero__stat-number {
    font-size: 2rem;
  }

  .nl-hero__stat-label {
    font-size: 1rem;
  }

  .nl-hero__shape {
    opacity: 0.4; /* Reduce shape opacity on small screens */
    animation-duration: 20s; /* Slow down shape animation */
  }

  .nl-hero__shape--1 {
    width: 300px;
    height: 300px;
  }

  .nl-hero__shape--2 {
    width: 220px;
    height: 220px;
  }

  .nl-hero__shape--3 {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .nl-hero {
    padding: 3rem 0;
    min-height: 70vh;
  }

  .nl-hero__title {
    font-size: clamp(1.8rem, 8vw, 3rem); /* Adjusted clamp values */
  }

  .nl-hero__subtitle {
    font-size: 1rem;
    margin-bottom: 1rem; /* Adjusted margin */
  }

  .nl-hero__cta {
    padding: 0.6rem 1rem;
    min-width: 180px;
  }

  .nl-hero__stats {
    gap: 1rem;
    padding-top: 1rem; /* Adjusted padding top */
  }

  .nl-hero__stat-number {
    font-size: 1.8rem;
  }

  .nl-hero__stat-label {
    font-size: 0.9rem; /* Slightly smaller label on very small screens */
  }

  .nl-hero__shape {
    opacity: 0.2; /* Further reduce shape opacity */
    animation-duration: 25s; /* Further slow down animation */
  }

  .nl-hero__shape--1 {
    width: 200px;
    height: 200px;
  }

  .nl-hero__shape--2 {
    width: 150px;
    height: 150px;
  }

  .nl-hero__shape--3 {
    width: 100px;
    height: 100px;
  }
}
