/* =========================================================
   SMART WATER BOX — STYLES
   Palette: indigo→cyan gradient + amber CTA accent
   Type: Montserrat (headings) / Open Sans (body)
   Mobile-first: base styles = mobile, then min-width breakpoints
   ========================================================= */

:root{
  --indigo:#4F46E5;
  --cyan:#06B6D4;
  --navy:#0B1120;
  --ice:#F0F9FF;
  --white:#FFFFFF;
  --amber:#F59E0B;
  --amber-dark:#D97706;
  --success:#10B981;
  --text-main:#1E2433;
  --text-muted:#5B6577;
  --border:#E1ECF7;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:8px;
  --shadow-sm:0 2px 8px rgba(15,23,42,.06);
  --shadow-md:0 10px 30px rgba(15,23,42,.10);
  --shadow-lg:0 20px 50px rgba(79,70,229,.18);
  --grad-main:linear-gradient(135deg,var(--indigo),var(--cyan));
  --container-w:1200px;
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html{
  font-size:16px;
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  -ms-text-size-adjust:100%;
}
body{
  font-family:'Open Sans',sans-serif;
  color:var(--text-main);
  line-height:1.7;
  background:var(--white);
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  line-height:1.25;
  color:var(--navy);
}
img{max-width:100%;height:auto;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
input,select,textarea{font-size:16px;}

.container{
  width:100%;
  max-width:var(--container-w);
  margin:0 auto;
  padding-left:20px;
  padding-right:20px;
}

.section{padding:60px 0;}
.section-title{
  font-size:24px;
  text-align:center;
  margin-bottom:12px;
}
.section-subtitle{
  text-align:center;
  color:var(--text-muted);
  max-width:560px;
  margin:0 auto 36px;
  font-size:15px;
}
.grad-text{
  background:var(--grad-main);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  text-align:center;
}
.btn:active{transform:scale(.98);}
.btn-primary{
  background:var(--grad-main);
  color:var(--white);
  box-shadow:var(--shadow-md);
}
.btn-primary:hover{transform:scale(1.05);box-shadow:var(--shadow-lg);}
.btn-cta{
  background:var(--amber);
  color:var(--navy);
  box-shadow:0 10px 24px rgba(245,158,11,.35);
}
.btn-cta:hover{transform:scale(1.05);background:var(--amber-dark);box-shadow:0 14px 30px rgba(217,119,6,.4);}
.btn-large{
  width:100%;
  padding:16px 28px;
  font-size:16px;
}
.btn-block{width:100%;}

/* ===== Navbar ===== */
.navbar{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  transition:padding .25s ease, box-shadow .25s ease;
}
.navbar.scrolled{box-shadow:var(--shadow-sm);}
.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:68px;
}
.navbar.scrolled .nav-container{height:56px;}
.nav-logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  font-size:17px;
  color:var(--navy);
}
.logo-droplet{width:24px;height:24px;fill:var(--indigo);}

.nav-links{
  position:fixed;
  top:0;right:-100%;
  width:78%;
  max-width:320px;
  height:100vh;
  background:var(--white);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:22px;
  padding:90px 28px 28px;
  transition:right .35s ease;
  box-shadow:-10px 0 30px rgba(15,23,42,.15);
  z-index:1001;
}
.nav-links.open{right:0;}
.nav-link{
  font-weight:600;
  font-size:16px;
  color:var(--text-main);
  padding:8px 0;
}
.nav-cta{width:100%;}

.nav-overlay{
  position:fixed;inset:0;
  background:rgba(11,17,32,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:999;
}
.nav-overlay.open{opacity:1;pointer-events:auto;}

.hamburger{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;height:44px;
  align-items:center;
}
.hamburger span{
  display:block;width:24px;height:2.5px;
  background:var(--navy);
  border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);}

/* ===== Hero ===== */
.hero{
  position:relative;
  padding:120px 0 60px;
  overflow:hidden;
  background:linear-gradient(180deg,var(--ice) 0%, var(--white) 100%);
}
.hero-blob{
  position:absolute;
  border-radius:50%;
  filter:blur(50px);
  opacity:.35;
  z-index:0;
}
.hero-blob-1{width:280px;height:280px;background:var(--indigo);top:-80px;right:-80px;animation:float1 9s ease-in-out infinite;}
.hero-blob-2{width:220px;height:220px;background:var(--cyan);bottom:-60px;left:-60px;animation:float2 11s ease-in-out infinite;}
@keyframes float1{0%,100%{transform:translateY(0) translateX(0);}50%{transform:translateY(30px) translateX(-20px);}}
@keyframes float2{0%,100%{transform:translateY(0) translateX(0);}50%{transform:translateY(-25px) translateX(20px);}}

.hero-container{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:36px;
}
.hero-visual{display:flex;justify-content:center;}
.hero-device{position:relative;width:220px;animation:deviceFloat 5s ease-in-out infinite;}
@keyframes deviceFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-12px);}}
.device-svg{width:100%;display:block;}
.device-glow{
  position:absolute;
  inset:auto 10% -18px 10%;
  height:24px;
  background:radial-gradient(ellipse at center, rgba(79,70,229,.35), transparent 70%);
  filter:blur(6px);
  z-index:-1;
}
#waterWave{animation:waveMove 3.5s ease-in-out infinite;}
@keyframes waveMove{
  0%,100%{transform:translateY(0) scaleY(1);}
  50%{transform:translateY(-4px) scaleY(1.04);}
}
.status-led{animation:ledBlink 2.2s ease-in-out infinite;}
@keyframes ledBlink{0%,100%{opacity:1;}50%{opacity:.35;}}

.hero-content{text-align:center;}
.eyebrow{
  display:inline-block;
  font-weight:700;
  font-size:13px;
  letter-spacing:.04em;
  color:var(--indigo);
  background:rgba(79,70,229,.08);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.hero h1{
  font-size:28px;
  margin-bottom:18px;
}
.hero p{
  color:var(--text-muted);
  margin-bottom:16px;
  font-size:16px;
}
.hero .btn-large{margin-top:8px;}
.hero-microcopy{
  margin-top:14px;
  font-size:13px;
  color:var(--text-muted);
}

/* ===== Fade-up scroll animation ===== */
.fade-up{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-up.in-view{opacity:1;transform:translateY(0);}

/* ===== Why Choose Us ===== */
.why-section{background:var(--white);}
.why-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}
.why-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
  transition:transform .3s ease, box-shadow .3s ease, rotate .3s ease;
}
.why-card:hover{transform:scale(1.05) rotate(1deg);box-shadow:var(--shadow-md);}
.why-icon svg{width:56px;height:56px;margin:0 auto 16px;display:block;}
.why-card h3{font-size:17px;margin-bottom:10px;}
.why-card p{color:var(--text-muted);font-size:14.5px;}

/* ===== What Is ===== */
.what-is-section{background:var(--ice);}
.what-is-grid{
  display:flex;
  flex-direction:column;
  gap:32px;
  align-items:center;
}
.what-is-image{width:100%;max-width:320px;}
.what-is-content{text-align:center;}
.what-is-content p{color:var(--text-muted);margin-bottom:14px;}
.what-is-content .section-title{text-align:center;}

/* ===== Accordion (How It Works / FAQ) ===== */
.accordion{max-width:720px;margin:0 auto;}
.accordion-item{
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  margin-bottom:14px;
  overflow:hidden;
  background:var(--white);
}
.accordion-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  min-height:44px;
  font-weight:700;
  font-size:15px;
  text-align:left;
  color:var(--navy);
}
.accordion-icon{
  flex-shrink:0;
  font-size:20px;
  color:var(--indigo);
  transition:transform .3s ease;
  margin-left:12px;
}
.accordion-header[aria-expanded="true"] .accordion-icon{transform:rotate(45deg);}
.accordion-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  padding:0 20px;
}
.accordion-body.open{max-height:600px;padding-bottom:18px;}
.accordion-body p{color:var(--text-muted);font-size:14.5px;}

/* ===== Reviews ===== */
.reviews-section{background:var(--white);}
.reviews-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.review-card{
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.review-avatar{
  width:56px;height:56px;
  border-radius:50%;
  background:var(--grad-main);
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  margin:0 auto 14px;
}
.review-card h4{font-size:15px;margin-bottom:4px;}
.review-location{font-weight:400;color:var(--text-muted);font-size:13px;}
.stars{color:var(--amber);margin-bottom:10px;letter-spacing:2px;}
.review-card p{color:var(--text-muted);font-size:14px;}

/* ===== Pricing ===== */
.pricing-section{background:var(--ice);}
.countdown{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-bottom:40px;
}
.countdown-box{
  background:var(--navy);
  color:var(--white);
  border-radius:var(--radius-md);
  min-width:72px;
  padding:14px 8px;
  text-align:center;
}
.countdown-box span{
  display:block;
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  font-size:26px;
}
.countdown-box small{font-size:11px;opacity:.7;letter-spacing:.05em;}

.pricing-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.price-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
  position:relative;
}
.price-card-popular{
  background:var(--grad-main);
  color:var(--white);
  box-shadow:var(--shadow-lg);
  transform:scale(1.02);
}
.price-card-popular h3,.price-card-popular .supply,.price-card-popular small{color:var(--white);}
.badge-popular{
  position:absolute;
  top:-12px;left:50%;
  transform:translateX(-50%);
  background:var(--amber);
  color:var(--navy);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  padding:6px 16px;
  border-radius:999px;
  box-shadow:0 6px 14px rgba(245,158,11,.4);
}
.price-label{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--indigo);
  background:rgba(79,70,229,.08);
  padding:4px 12px;
  border-radius:999px;
  margin-bottom:14px;
}
.price-card-popular .price-label{color:var(--white);background:rgba(255,255,255,.18);}
.price-card h3{font-size:22px;margin-bottom:4px;}
.supply{color:var(--text-muted);font-size:13px;margin-bottom:14px;}
.price-card-icon svg{width:60px;height:60px;margin:0 auto 14px;}
.price{font-family:'Montserrat',sans-serif;font-weight:800;font-size:24px;margin-bottom:14px;}
.strike{text-decoration:line-through;opacity:.55;font-weight:500;font-size:16px;margin-right:6px;}
.price small{font-size:13px;font-weight:500;opacity:.85;}
.mini-badges{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;}
.mini-badge{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  background:rgba(255,255,255,.2);
  padding:5px 12px;
  border-radius:999px;
}
.price-card:not(.price-card-popular) .mini-badge{background:rgba(16,185,129,.1);color:var(--success);}
.pay-note{font-size:11.5px;color:var(--text-muted);margin-top:12px;}
.price-card-popular .pay-note{color:rgba(255,255,255,.85);}
.stars-row{text-align:center;margin-top:36px;color:var(--amber);font-size:20px;}
.stars-row span{display:block;color:var(--text-muted);font-size:13px;letter-spacing:0;margin-top:6px;}

/* ===== Bonus ===== */
.bonus-section{background:var(--white);}
.bonus-grid{display:grid;grid-template-columns:1fr;gap:20px;}
.bonus-card{
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.bonus-icon svg{width:56px;height:56px;margin:0 auto 14px;}
.bonus-card h3{font-size:16px;margin-bottom:8px;}
.bonus-card p{color:var(--text-muted);font-size:14px;}

/* ===== Features (Ingredients) ===== */
.features-section{background:var(--ice);}
.features-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.feature-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px 18px;
}
.feature-card h4{font-size:15px;margin-bottom:6px;color:var(--indigo);}
.feature-card p{font-size:13.5px;color:var(--text-muted);}

/* ===== Science ===== */
.science-section{background:var(--white);}
.science-grid{display:grid;grid-template-columns:1fr;gap:16px;}
.science-card{
  border-left:4px solid var(--cyan);
  background:var(--ice);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  padding:18px 20px;
}
.science-card h4{font-size:15px;margin-bottom:6px;}
.science-card p{font-size:14px;color:var(--text-muted);line-height:1.75;}

/* ===== Guarantee ===== */
.guarantee-section{background:var(--ice);}
.guarantee-grid{
  display:flex;
  flex-direction:column;
  gap:30px;
  align-items:center;
  text-align:center;
}
.guarantee-image{width:100%;max-width:220px;}
.guarantee-list{text-align:left;max-width:480px;margin:0 auto;}
.guarantee-list li{margin-bottom:14px;color:var(--text-muted);font-size:15px;}
.guarantee-list strong{color:var(--navy);}

/* ===== Benefits ===== */
.benefits-section{background:var(--white);}
.benefits-list{max-width:560px;margin:0 auto;}
.benefits-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
  font-size:15.5px;
}
.benefits-list li:last-child{border-bottom:none;}
.check{
  flex-shrink:0;
  width:26px;height:26px;
  border-radius:50%;
  background:rgba(16,185,129,.12);
  color:var(--success);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  font-size:14px;
}

/* ===== FAQ section spacing reuse accordion styles ===== */
.faq-section{background:var(--ice);}

/* ===== Final CTA ===== */
.final-cta-section{
  background:var(--navy);
  position:relative;
  overflow:hidden;
}
.final-cta-grid{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:28px;
  position:relative;
  z-index:1;
}
.final-cta-visual{width:160px;position:relative;}
.final-cta-visual::after{
  content:'';
  position:absolute;
  inset:-40px;
  border-radius:50%;
  border:2px solid rgba(79,70,229,.35);
  z-index:-1;
}
.final-cta-section.ripple .final-cta-visual::after{animation:rippleBurst 1.8s ease-out;}
@keyframes rippleBurst{
  0%{transform:scale(.4);opacity:1;}
  100%{transform:scale(2.4);opacity:0;}
}
.final-cta-content h2{color:var(--white);font-size:24px;margin-bottom:16px;}
.final-price{
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  font-size:24px;
  color:var(--white);
  margin-bottom:22px;
}
.final-price .strike{color:rgba(255,255,255,.5);}

/* ===== Footer ===== */
.footer{background:var(--navy);color:rgba(255,255,255,.85);padding:50px 0 24px;}
.footer-grid{
  display:flex;
  flex-direction:column;
  gap:30px;
  text-align:center;
  margin-bottom:30px;
}
.footer-col h4{color:var(--white);font-size:15px;margin-bottom:12px;}
.footer-disclaimer{font-size:12.5px;color:rgba(255,255,255,.55);max-width:380px;margin:0 auto;}
.footer-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:13.5px;}
.legal-link{color:rgba(255,255,255,.8);}
.legal-link:hover{color:var(--white);}
.link-separator{color:rgba(255,255,255,.3);}
.social-icons{display:flex;justify-content:center;gap:14px;}
.social-icons a{
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease, transform .25s ease;
}
.social-icons a:hover{background:var(--grad-main);transform:translateY(-3px);}
.social-icons svg{width:18px;height:18px;fill:var(--white);}
.copyright{text-align:center;font-size:12.5px;color:rgba(255,255,255,.45);}

/* ===== Promo Popup (exit-intent / scroll / timed) ===== */
.promo-popup{
  position:fixed;
  left:50%;
  bottom:-200px;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width:380px;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:0 -10px 40px rgba(15,23,42,.2);
  padding:20px;
  z-index:1100;
  transition:bottom .4s ease;
  border:1px solid var(--border);
}
.promo-popup.show{bottom:16px;}
.promo-close{
  position:absolute;
  top:10px;right:10px;
  width:32px;height:32px;
  border-radius:50%;
  background:var(--ice);
  display:flex;align-items:center;justify-content:center;
  font-size:14px;
}
.promo-text{font-size:14.5px;margin:6px 36px 14px 0;}

/* ===== Scroll To Top ===== */
.scroll-top-btn{
  position:fixed;
  right:16px;bottom:16px;
  width:48px;height:48px;
  border-radius:50%;
  background:var(--grad-main);
  color:var(--white);
  font-size:20px;
  box-shadow:var(--shadow-md);
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  z-index:900;
}
.scroll-top-btn.show{opacity:1;transform:translateY(0);pointer-events:auto;}

/* =========================================================
   BREAKPOINTS — mobile-first (min-width)
   ========================================================= */

/* ---- 480px: large phones ---- */
@media (min-width:480px){
  .hero h1{font-size:30px;}
}

/* ---- 576px: large phones / small tablets ---- */
@media (min-width:576px){
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .reviews-grid{grid-template-columns:repeat(2,1fr);}
  .pricing-grid{grid-template-columns:repeat(2,1fr);}
  .bonus-grid{grid-template-columns:repeat(2,1fr);}
  .features-grid{grid-template-columns:repeat(2,1fr);}
  .science-grid{grid-template-columns:repeat(2,1fr);}
  .promo-popup{left:auto;right:20px;bottom:-220px;transform:none;}
  .promo-popup.show{bottom:20px;}
}

/* ---- 768px: tablets ---- */
@media (min-width:768px){
  .container{padding-left:32px;padding-right:32px;}
  .section{padding:84px 0;}
  .section-title{font-size:32px;}
  .hero{padding:150px 0 90px;}
  .hero-container{flex-direction:row;align-items:center;gap:60px;}
  .hero-visual{flex:1;}
  .hero-device{width:280px;}
  .hero-content{flex:1.1;text-align:left;}
  .hero h1{font-size:38px;}
  .hero .btn-large{width:auto;}
  .hamburger{display:none;}
  .nav-links{
    position:static;
    flex-direction:row;
    align-items:center;
    width:auto;height:auto;
    padding:0;
    box-shadow:none;
    gap:32px;
  }
  .nav-cta{width:auto;}
  .nav-overlay{display:none;}

  .what-is-grid{flex-direction:row;text-align:left;gap:60px;}
  .what-is-image{flex:1;max-width:380px;}
  .what-is-content{flex:1.1;text-align:left;}
  .what-is-content .section-title{text-align:left;}

  .reviews-grid{grid-template-columns:repeat(3,1fr);}
  .features-grid{grid-template-columns:repeat(3,1fr);}

  .guarantee-grid{flex-direction:row;text-align:left;gap:60px;}
  .guarantee-image{flex:1;max-width:260px;}
  .guarantee-content{flex:1.2;}
  .guarantee-content .section-title{text-align:left;}

  .final-cta-grid{flex-direction:row;text-align:left;gap:60px;justify-content:center;}
  .final-cta-content .btn-large{width:auto;}
}

/* ---- 1024px: small laptops ---- */
@media (min-width:1024px){
  .why-grid{grid-template-columns:repeat(4,1fr);}
  .pricing-grid{grid-template-columns:repeat(3,1fr);align-items:center;}
  .price-card-popular{padding:36px 22px;}
  .bonus-grid{grid-template-columns:repeat(2,1fr);max-width:760px;margin:0 auto;}
  .features-grid{grid-template-columns:repeat(4,1fr);}
  .science-grid{grid-template-columns:repeat(2,1fr);max-width:900px;margin:0 auto;}
  .hero h1{font-size:44px;}
}

/* ---- 1440px: desktop ---- */
@media (min-width:1440px){
  .hero h1{font-size:48px;}
  .section-title{font-size:36px;}
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}
