body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
}

:root {
  /* overall overlay: use for modest darkening; tuned for conversions */
  --hero-overlay-uniform: rgba(0,0,0,0.48);
  /* left-heavy gradient keeps focus area darker where left-aligned text sits */
  --hero-overlay-left: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.38) 40%, rgba(0,0,0,0.10) 100%);
  --hero-min-height: 65vh; /* adjust as needed, ensures hero vertical space */
  --hero-content-max: 1100px;
  --hero-content-padding: 5vw; /* responsive padding from edges */
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero {
  position: relative;      /* stacking context for absolute children */
  isolation: isolate;      /* isolate stacking context to avoid ancestor issues */
  overflow: hidden;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;     /* vertical center of the content */
}

/* Put the picture/image behind everything */
.hero-picture,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Overlay sits above the image but below content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay-left);
  pointer-events: none;
}

/* Content sits on top */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hero-content-max);
  margin: 0 auto;                    
  padding: 2.25rem var(--hero-content-padding); 
  box-sizing: border-box;
}

/* Optional text panel that ensures perfect contrast regardless of image */
.hero-text-panel {
  display: inline-block;             /* shrinks to content width; keeps visual grouping */
  background: rgba(0,0,0,0.32);      /* translucent panel; adjust opacity to taste */
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);        /* subtle blur behind panel (optional) */
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}


/* Mobile adjustments: stack, full-width CTA & inputs */
@media (max-width: 720px) {
  :root { --hero-min-height: 52vh; } /* slightly smaller on phones */
  .hero-inner { padding: 1.25rem var(--hero-content-padding); }
  .hero-text-panel { width: 100%; padding: 1rem; }
  .hero-text-panel h1 { font-size: clamp(1.25rem, 5.2vw, 1.6rem); }
  .hero-form input[type="email"], .hero-form .btn-primary { width: 100%; flex-basis: 100%; }
}

/* If you want a stronger fallback for small viewports where the image is too busy,
   you can increase uniform overlay for mobile */
@media (max-width:720px) {
  .hero-overlay { background: var(--hero-overlay-uniform); }
}

h1 {
  font-size: 2.4rem;
  line-height: 1.25;
}

.subheadline {
  font-size: 1.2rem;
  max-width: 720px;
}

.benefits {
  margin: 30px 0;
}

.benefits li {
  margin-bottom: 10px;
}

.cta-box {
  background: #fff;
  padding: 30px;
  border: 1px solid #ddd;
  max-width: 480px;
}

.cta-note {
  font-weight: 500;
}

.privacy {
  font-size: 0.85rem;
  color: #555;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 32px;
  background: #111;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.cta-button:hover {
  background: #000;
}


.signup {
  background: #f7f8fa;
}

.signup-container {
  max-width: 560px;
}

.signup-intro {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.privacy {
  font-size: 0.85rem;
  color: #555;
  margin-top: 15px;
}


footer {
  background: #111;
  color: #fff;
  text-align: center;
}


