:root {
  --blue: #007BFF;
  --cyan: #00D4FF;
  --navy-dark: #0A2540;
  --navy: #1E3A5E;
  --white: #FFFFFF;
  --light-blue: #56CAF5;
  --ink: #10233b;
  --muted: #5a7290;
  --radius: 16px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy-dark);
  color: var(--white);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--white);
}

.nav__brand img { width: 32px; height: 32px; }

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--light-blue);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav__cta:hover { background: var(--cyan); color: var(--navy-dark); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--blue) 130%);
  color: var(--white);
  padding: 72px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--light-blue);
  background: rgba(86, 202, 245, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #cfe3f7;
  max-width: 46ch;
  margin: 0 0 30px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--cyan); color: var(--navy-dark); }

.btn--ghost { border-color: var(--light-blue); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(0,212,255,0.35), rgba(10,37,64,0.1) 70%);
}

.hero__art .placeholder {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  text-align: center;
  padding: 20px;
}

/* ---------- Hero carousel ---------- */
.carousel__slide {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel__slide:not(.carousel__slide--chat) > img { width: 100%; height: 100%; object-fit: contain; }

.carousel__slide--chat { display: block; }

.carousel__char {
  position: absolute;
  left: 10%;
  bottom: 8%;
  height: 42%;
  width: auto;
}

.chat-bubbles {
  position: absolute;
  right: 6%;
  top: 12%;
  width: 62%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.chat-bubble--user {
  background: rgba(255,255,255,0.97);
  color: var(--navy-dark);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble--weefee {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-weight: 600;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.carousel__dot:hover { background: rgba(255,255,255,0.7); }

.carousel__dot.is-active {
  background: var(--cyan);
  width: 22px;
  border-radius: 5px;
}

/* ---------- Review carousel slides ---------- */
.carousel__slide--review { display: flex; align-items: center; justify-content: center; }

.review-card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  max-width: 92%;
  box-shadow: 0 14px 34px rgba(0,0,0,0.3);
}

.review-card__stars {
  color: #F5B400;
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.review-card__quote {
  color: var(--navy-dark);
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 18px;
}

.review-card__source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.review-card__source svg { width: 20px; height: 20px; flex-shrink: 0; }

.review-card__source span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Availability banner ---------- */
.banner {
  background: var(--light-blue);
  color: var(--navy-dark);
}

.banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.banner__item { display: flex; align-items: center; gap: 8px; }

.banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Section shared ---------- */
section { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section-head .eyebrow { background: rgba(0,123,255,0.08); color: var(--blue); }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy-dark);
  margin: 0 0 12px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Problem/solution cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #e3ecf6;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.06);
}

.card__pose {
  height: 84px;
  width: auto;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 10px; color: var(--navy-dark); font-size: 1.15rem; }
.card p.problem { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }

.card .solution {
  border-top: 1px dashed #cfe0f2;
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--ink);
}

.card .solution strong { color: var(--blue); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: #f4f9ff;
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.step__pose {
  height: 110px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ---------- WiFi Therapy CTA ---------- */
.therapy {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  border-radius: 24px;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.therapy h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.therapy p { color: #cfe3f7; margin: 0 0 24px; max-width: 52ch; }
.therapy .btn--primary { background: var(--cyan); color: var(--navy-dark); }
.therapy .btn--primary:hover { background: var(--white); }

.therapy__badge {
  justify-self: end;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(86,202,245,0.35);
  border-radius: 18px;
  padding: 28px 20px;
}

.therapy__badge .big { font-size: 2.4rem; font-weight: 800; color: var(--cyan); display: block; }
.therapy__badge .label { font-size: 0.85rem; color: #cfe3f7; }

.therapy__pose {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}

/* ---------- Trust stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 32px 20px;
  border-radius: var(--radius);
  background: #f4f9ff;
}

.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

.stat .label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #cfe3f7;
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer__logo { height: 40px; width: auto; margin-bottom: 10px; }
.footer__col p, .footer__col a { font-size: 0.92rem; margin: 4px 0; text-decoration: none; color: #cfe3f7; }
.footer__col a:hover { color: var(--cyan); }
.footer__col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #93a9c2;
  text-align: center;
}

.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom a:hover { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .therapy { grid-template-columns: 1fr; text-align: center; }
  .therapy__badge { justify-self: center; }
  .nav__links, .nav__cta-wrap { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav.open .nav__cta-wrap {
    display: block;
    position: absolute;
    top: calc(100% + 190px);
    left: 24px;
  }
}
