@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&family=Barlow:wght@400;500;600&display=swap');

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

:root {
  --deep: #04141d;
  --navy: #06283a;
  --teal: #063d3f;
  --green: #34d399;
  --mint: #6ee7b7;
  --lime: #a3f0a0;
  --aqua: #22d3ee;
  --sky: #38bdf8;
  --blue: #60a5fa;
  --text: #f2fbfa;
  --muted: #c3dcde;
  --card: rgba(6, 30, 42, 0.84);
  --line: rgba(255, 255, 255, 0.12);
}

/* Only html clips horizontal overflow; doing it on body too would break position: sticky */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--deep);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ---------- Layers: bg 0, canvas 1, content sections 2, nav 100, footer 3 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(80% 60% at 90% 100%, rgba(52, 211, 153, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep) 45%, var(--teal) 100%);
}

#water {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero,
.cards-section,
.cta,
.signal-line {
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 22px 28px;
  background: rgba(4, 20, 29, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: padding 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  transition: font-size 250ms ease;
}
.logo:hover { color: var(--text); }
.logo svg { width: 1.15em; height: 1.15em; flex: none; transition: width 250ms ease, height 250ms ease; }
.logo-row {
  background: linear-gradient(90deg, var(--mint), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav .nav-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  color: #03221f;
  background: linear-gradient(90deg, var(--mint), var(--aqua));
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25);
  transition: padding 250ms ease, font-size 250ms ease, transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
nav .nav-link:hover,
nav .nav-link:focus {
  color: #03221f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.45);
  filter: brightness(1.06);
}
nav .nav-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

nav.nav-scrolled {
  padding: 10px 28px;
  background: rgba(4, 20, 29, 0.92);
  border-bottom-color: rgba(110, 231, 183, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
nav.nav-scrolled .logo { font-size: 1.4rem; }
nav.nav-scrolled .nav-link { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 12vh 24px 6vh;
  text-align: center;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(6, 30, 42, 0.8);
  color: var(--mint);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(3, 18, 26, 0.85);
}
.hero h1 .line { display: block; }
.hero h1 .line.accent {
  background: linear-gradient(90deg, var(--lime), var(--mint) 35%, var(--aqua) 70%, var(--blue));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(3, 18, 26, 0.8));
  animation: sheen 9s linear infinite;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: -200% 0; } }

/* Decorative weekly progress tracker (seven strokes filling in turn) */
.week {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 44px auto 0;
}
.pip {
  position: relative;
  width: 38px;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transform: skewX(-20deg);
}
.pip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  transform-origin: left center;
  transform: scaleX(0);
  animation: pipfill 8.4s cubic-bezier(.3, .7, .3, 1) infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes pipfill {
  0% { transform: scaleX(0); opacity: 1; }
  10% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  92% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* ---------- Cards ---------- */
.cards-section { padding: 0; }
.cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7vh 24px 4vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  display: block;
  padding: 38px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(110, 231, 183, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 32px rgba(52, 211, 153, 0.18);
}
.icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(56, 189, 248, 0.28));
  color: var(--mint);
}
.icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.15;
  color: #ffffff;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta {
  padding: 9vh 24px 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.cta .signal-status {
  margin: 0;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.4);
  background: rgba(6, 30, 42, 0.85);
  color: var(--mint);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 1;
  text-transform: none;
}
.cta .signal-cta {
  display: inline-block;
  padding: 22px 52px;
  border-radius: 999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  color: #03221f;
  background: linear-gradient(90deg, var(--lime), var(--mint) 40%, var(--aqua));
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.38);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}
.cta .signal-cta:hover {
  color: #03221f;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 54px rgba(34, 211, 238, 0.5);
  filter: brightness(1.06);
}
.cta .signal-cta:active { transform: translateY(-1px); }
.cta .signal-cta:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.cta .signal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  opacity: 1;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: 0 1px 12px rgba(3, 18, 26, 0.9);
}

/* ---------- Footer ---------- */
/* Footer markup is injected via SSI and is not edited per-domain - visibility lives here. */
footer {
  position: relative;
  z-index: 3;
  padding: 20px 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #dcebed;
  background: rgba(4, 20, 29, 0.96);
  border-top: 1px solid var(--line);
}
footer div { margin: 0; }
footer div + div { margin-top: 4px; }
footer a { color: inherit; }

/* ---------- Responsive / motion ---------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  nav { padding: 14px 16px; }
  nav.nav-scrolled { padding: 8px 16px; }
  .logo { font-size: 1.55rem; }
  nav.nav-scrolled .logo { font-size: 1.2rem; }
  nav .nav-link { padding: 9px 16px; font-size: 0.85rem; }
  nav.nav-scrolled .nav-link { padding: 7px 13px; font-size: 0.8rem; }
  .hero { padding: 10vh 18px 4vh; }
  .pip { width: 26px; }
  .cards { padding: 5vh 16px 3vh; }
  .feature-card { padding: 30px 26px; }
  .cta .signal-cta { padding: 18px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav, .logo, .logo svg, nav .nav-link, .feature-card, .cta .signal-cta { transition: none; }
  .hero h1 .line.accent { animation: none; }
  .pip::after { animation: none; transform: scaleX(1); }
}
