:root {
  --hero-image: url('../assets/images/hero.jpg'); /* path to your hero image */
  --overlay-color: rgba(6, 10, 16, 0.36);
  --accent: #35b7c3;
  --cta-top: #6ad5de;
  --cta-bottom: #35b7c3;
}

/* Basic reset for demo */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* HERO: layout */
.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 6rem) 1.25rem;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* slight dark overlay to improve contrast */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.26)
  );
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  color: #fff;
  text-align: left;
  margin-left: clamp(
    0.5rem,
    6vw,
    6rem
  ); /* push content slightly right on big screens */
}

.eyebrow {
  margin: 0 0 0.45rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.8rem, 5.6vw, 3.6rem);
  line-height: 1.02;
  font-weight: 800;
  color: white;
  text-shadow: 0 6px 20px rgba(6, 10, 16, 0.45);
  opacity: 0;
  transform: translateX(-18px) rotateZ(-0.001deg);
}

.hero__title .accent {
  color: var(--accent);
}

.hero__lead {
  margin: 0.9rem 0 1.25rem 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  opacity: 0;
  transform: translateY(8px);
}

/* actions */
.hero__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
}

/* CTA primary (gradient button) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 1.05rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.98rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  box-shadow: 0 12px 36px rgba(53, 183, 195, 0.18);
  transition:
    transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.18s ease,
    filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 68px rgba(53, 183, 195, 0.22);
  filter: brightness(1.02);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(53, 183, 195, 0.18);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 30px 68px rgba(53, 183, 195, 0.22),
    0 0 0 5px rgba(53, 183, 195, 0.12);
  border-radius: 10px;
}

/* ghost button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ANIMATIONS - initial hidden -> visible */
.hero--visible .eyebrow,
.hero--visible .hero__title,
.hero--visible .hero__lead,
.hero--visible .hero__actions {
  opacity: 1;
  transform: none;
}

/* stagger with transitions */
.hero--visible .eyebrow {
  transition:
    opacity 0.48s ease 0.08s,
    transform 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) 0.08s;
}
.hero--visible .hero__title {
  transition:
    opacity 0.6s ease 0.14s,
    transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) 0.14s;
}
.hero--visible .hero__lead {
  transition:
    opacity 0.52s ease 0.28s,
    transform 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) 0.28s;
}
.hero--visible .hero__actions {
  transition:
    opacity 0.44s ease 0.42s,
    transform 0.44s cubic-bezier(0.2, 0.9, 0.2, 1) 0.42s;
}

/* small screens: center content */
@media (max-width: 900px) {
  .hero__content {
    margin-left: 0;
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero--visible .eyebrow,
  .hero--visible .hero__title,
  .hero--visible .hero__lead,
  .hero--visible .hero__actions {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 12px 36px rgba(53, 183, 195, 0.18);
  }
}
