:root {
  --teal: #0b3a51;
  --teal-deep: #082c3d;
  --cream: #f4ede1;
  --max-width: 1180px;
  --card-radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--teal);
  color: var(--cream);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem 9vh;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center top;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,58,81,.15) 45%, rgba(11,58,81,.92) 82%, rgba(11,58,81,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-lockup {
  width: min(560px, 82vw);
  height: auto;
  aspect-ratio: 701 / 349;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(0,0,0,.35));
}

/* ---------- Intro ---------- */
.intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}
.intro img {
  margin: 0 auto;
  width: min(100%, 720px);
}

/* ---------- Benefit sections ---------- */
main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  padding: 1rem 0;
  overflow: hidden;
}

.benefit {
  display: flex;
  align-items: center;
  width: 100%;
  gap: clamp(.5rem, 2.5vw, 2rem);
}

.benefit-media {
  flex: 0 1 42%;
  min-width: 0;
}

.benefit-card {
  flex: 1 1 0;
  min-width: 0;
}

.benefit-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  display: block;
}

.benefit-media[data-reveal="left"] img  { margin: 0 auto 0 0; }
.benefit-media[data-reveal="right"] img { margin: 0 0 0 auto; }

.benefit-card img {
  width: 100%;
  display: block;
}

/* ---------- Footer / CTA ---------- */
.cta-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.cta-wrap { width: 100%; }
.cta-wrap img {
  width: 100%;
  border-radius: 20px;
}

.footer-logo {
  width: min(360px, 70vw);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transform: translateY(36px);
}
.reveal[data-reveal="left"]  { transform: translate(-56px, 10px); }
.reveal[data-reveal="right"] { transform: translate(56px, 10px); }
.reveal[data-reveal="up"]    { transform: translateY(44px); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* gentle continuous parallax drift (JS-driven) */
[data-parallax] { transform: translateY(var(--py, 0px)); }
.hero-bg { transform: translateY(var(--py, 0px)) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero {
    min-height: 100vh;
    align-items: flex-end;
    padding-bottom: 12vh;
  }
  .benefit {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .benefit-card { width: 100%; }
  .benefit-media { flex-basis: auto; width: 100%; }
  .benefit-media img {
    max-height: 42vh;
    margin: 0 auto !important;
  }
  .hero-lockup { width: min(420px, 78vw); }
}
