*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lake:    #0c6b8f;
  --lake-mid:#0a8fb5;
  --sky:     #e8f6fb;
  --dark:    #0d1a22;
  --mid:     #2a3f4d;
  --muted:   #607080;
  --white:   #ffffff;
  --accent:  #00c4b3;
}

html { scroll-behavior: smooth; }
.obf span { display: none; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,107,143,.1);
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--lake);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-cta {
  background: var(--lake); color: var(--white);
  padding: .5rem 1.25rem; border-radius: 6px;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.nav-cta:hover { background: var(--lake-mid); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    linear-gradient(160deg, rgba(7,21,32,.88) 0%, rgba(12,61,86,.78) 55%, rgba(10,143,181,.5) 100%),
    url('../images/hero-2.jpg') center/cover no-repeat;
  position: relative; overflow: hidden;
  padding: 7rem 2rem 4rem;
}
.hero-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,196,179,.15); color: var(--accent);
  border: 1px solid rgba(0,196,179,.3);
  padding: .3rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  color: var(--white); margin-bottom: 1.25rem;
  letter-spacing: -.03em;
}
#hero h1 em { font-style: normal; color: var(--accent); }
#hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.75);
  max-width: 560px; margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--dark);
  padding: .85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0,196,179,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,196,179,.45); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.35); color: var(--white);
  padding: .85rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; display: inline-block;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 2rem; font-weight: 800; color: var(--white);
}
.hero-stat span { font-size: .875rem; color: rgba(255,255,255,.75); }

/* ── SECTIONS SHARED ── */
section {
  padding: 6rem 2rem;
  position: relative;
}
section + section {
  border-top: 1px solid rgba(12,107,143,.08);
}
.container { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lake);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.025em;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 3rem;
}
body.reveal-enabled .reveal-item,
body.reveal-enabled .reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
body.reveal-enabled .reveal-item.is-visible,
body.reveal-enabled .reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
body.reveal-enabled .reveal-group.is-visible > *:nth-child(2) { transition-delay: .08s; }
body.reveal-enabled .reveal-group.is-visible > *:nth-child(3) { transition-delay: .16s; }
body.reveal-enabled .reveal-group.is-visible > *:nth-child(4) { transition-delay: .24s; }
body.reveal-enabled .reveal-group.is-visible > *:nth-child(5) { transition-delay: .32s; }
body.reveal-enabled .reveal-group.is-visible > *:nth-child(6) { transition-delay: .4s; }

/* ── PROBLEM ── */
#problem {
  background:
    linear-gradient(180deg, rgba(232,246,251,.45), rgba(232,246,251,1) 34%),
    var(--sky);
}
.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
@media (max-width: 600px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.pain-card {
  background: var(--white); border-radius: 12px;
  padding: 1.75rem; border: 1px solid rgba(12,107,143,.1);
  display: flex; gap: 1rem; align-items: flex-start;
}
.pain-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--lake);
  background: rgba(12,107,143,.08);
}
.line-icon {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pain-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.pain-card p { font-size: .9rem; color: var(--muted); }

/* ── HOW IT WORKS ── */
#how {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(248,252,253,1));
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 1rem; }
.step { position: relative; text-align: center; padding: 2rem 1.5rem; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lake), var(--lake-mid));
  color: var(--white); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--muted); }
.step-connector { display: none; }
@media(min-width:768px){ .steps { position: relative; } }

/* ── FEATURES ── */
#features {
  background:
    linear-gradient(180deg, rgba(232,246,251,1), rgba(255,255,255,.82));
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white); border-radius: 14px;
  padding: 2rem; border: 1px solid rgba(12,107,143,.08);
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
  box-shadow: 0 8px 40px rgba(12,107,143,.12);
  transform: translateY(-3px);
}
.feature-icon {
  color: var(--lake); margin-bottom: 1rem;
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg,rgba(12,107,143,.1),rgba(0,196,179,.1));
  display: flex; align-items: center; justify-content: center;
}
.feature-icon .line-icon { width: 30px; height: 30px; stroke-width: 1.7; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--muted); }

/* ── RESULTS ── */
#results {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  color: var(--white);
}
#results .section-title { color: var(--white); }
#results .section-sub { color: rgba(255,255,255,.6); }
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.result-card {
  text-align: center; padding: 2rem 1rem;
  background: rgba(255,255,255,.05); border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.result-card strong {
  display: block; font-size: 1.25rem; font-weight: 800;
  color: var(--accent); line-height: 1.2;
  margin-bottom: .6rem;
}
.result-card p { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ── CTA ── */
#cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--lake) 100%);
  text-align: center;
  overflow: hidden;
}
#cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent),
    radial-gradient(circle at 50% 0%, rgba(0,196,179,.18), transparent 38%);
  pointer-events: none;
}
.cta-box {
  color: var(--white);
  max-width: 760px; margin: 0 auto;
  padding: 1rem 0;
  position: relative; z-index: 1;
}
.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: 1rem;
  letter-spacing: -.025em;
}
.cta-box p {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-box .btn-primary { font-size: 1.05rem; padding: 1rem 2.5rem; }
.cta-note { margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  text-align: center; padding: 2rem;
  font-size: .85rem;
}
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.footer-logo span { color: var(--accent); }

/* ── CALENDLY OVERLAY ── */
#calendly-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
#calendly-overlay[hidden] { display: none; }
#calendly-modal {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 920px;
  height: 90vh; max-height: 720px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
#calendly-close {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(0,0,0,.08); border: none;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .2s;
}
#calendly-close:hover { background: rgba(0,0,0,.18); }
#calendly-container {
  flex: 1; overflow: hidden;
}
#calendly-container .calendly-inline-widget {
  width: 100% !important; height: 100% !important; min-width: 0 !important;
}
#calendly-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--muted);
}

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--accent); color: var(--dark);
  padding: .5rem 1.25rem; font-weight: 600;
  text-decoration: none; z-index: 200;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media(max-width:600px){
  nav { padding: .875rem 1.25rem; }
  #hero { padding: 6rem 1.25rem 3rem; }
  section { padding: 4rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-item,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
