
:root{
  --deep-water:#073B4C;
  --pool-tile:#178A97;
  --chlorine:#4FD9DE;
  --sun-deck:#FFAD4A;
  --coral-warn:#FF7A59;
  --foam:#F4FBFC;
  --ink:#0B2027;
  --line:#D8EEF0;
  --white:#FFFFFF;
}

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

html{scroll-behavior:smooth;}

body{
  font-family:'Inter',sans-serif;
  background:var(--foam);
  color:var(--ink);
  line-height:1.5;
  overflow-x:hidden;
}

body.lang-fr [data-lang="en"]{display:none;}
body.lang-en [data-lang="fr"]{display:none;}

h1,h2,h3,.display{
  font-family:'Space Grotesk',sans-serif;
  letter-spacing:-0.01em;
}

.mono{
  font-family:'IBM Plex Mono',monospace;
}

a{color:inherit;text-decoration:none;}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}

/* ---------- HEADER ---------- */

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(244,251,252,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}

.logo{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:22px;
  color:var(--deep-water);
  display:flex;
  align-items:center;
  gap:8px;
}

.logo-dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--sun-deck);
  display:inline-block;
  transform:translateY(-6px);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.lang-toggle{
  display:flex;
  border:1px solid var(--pool-tile);
  border-radius:100px;
  overflow:hidden;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
}

.lang-toggle button{
  background:none;
  border:none;
  padding:7px 13px;
  cursor:pointer;
  color:var(--pool-tile);
  font-family:inherit;
  font-size:inherit;
  transition:all .2s ease;
}

.lang-toggle button.active{
  background:var(--pool-tile);
  color:white;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 22px;
  border-radius:100px;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  border:none;
  transition:transform .2s ease, box-shadow .2s ease;
}

.btn-primary{
  background:var(--deep-water);
  color:white;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(7,59,76,0.5);
}

/* ---------- HERO ---------- */

.hero{
  padding:88px 0 60px;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  color:var(--pool-tile);
  background:rgba(23,138,151,0.08);
  border:1px solid rgba(23,138,151,0.25);
  padding:6px 14px;
  border-radius:100px;
  margin-bottom:22px;
}

.eyebrow .pulse{
  width:7px;height:7px;border-radius:50%;
  background:var(--chlorine);
  box-shadow:0 0 0 0 rgba(79,217,222,0.6);
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(79,217,222,0.55);}
  70%{box-shadow:0 0 0 8px rgba(79,217,222,0);}
  100%{box-shadow:0 0 0 0 rgba(79,217,222,0);}
}

.hero h1{
  font-size:52px;
  font-weight:600;
  color:var(--deep-water);
  line-height:1.06;
  margin-bottom:22px;
}

.hero h1 em{
  font-style:normal;
  color:var(--pool-tile);
  position:relative;
}

.hero p.lead{
  font-size:18px;
  color:#3B5A63;
  max-width:480px;
  margin-bottom:34px;
}

.hero-ctas{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.btn-secondary{
  background:transparent;
  color:var(--deep-water);
  padding:11px 4px;
  display:flex;
  align-items:center;
  gap:8px;
}

.btn-secondary svg{transition:transform .2s ease;}
.btn-secondary:hover svg{transform:translateX(4px);}

.btn-lg{
  padding:15px 28px;
  font-size:15px;
}

/* --- hero visual: before/after water signal --- */

.hero-visual{
  position:relative;
  background:linear-gradient(160deg,#0B4B59,var(--deep-water) 65%);
  border-radius:28px;
  padding:34px 30px 30px;
  color:white;
  box-shadow:0 30px 60px -22px rgba(7,59,76,0.55);
}

.hero-visual-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.hv-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.55);
}

.hv-label.good{color:var(--chlorine);}

.wave-box{
  position:relative;
  height:150px;
}

.wave-box svg{position:absolute;top:0;left:0;width:100%;height:100%;}

.wave-before{
  stroke:var(--coral-warn);
  fill:none;
  stroke-width:2.5;
  opacity:0.85;
  filter:drop-shadow(0 0 6px rgba(255,122,89,0.25));
}

.wave-after{
  stroke:var(--chlorine);
  fill:none;
  stroke-width:3;
  stroke-dasharray:6 460;
  stroke-dashoffset:0;
  animation:flow 3.4s ease-in-out infinite;
  filter:drop-shadow(0 0 8px rgba(79,217,222,0.45));
}

@keyframes flow{
  0%{stroke-dasharray:6 460; stroke-dashoffset:0;}
  50%{stroke-dasharray:460 6; stroke-dashoffset:-230;}
  100%{stroke-dasharray:6 460; stroke-dashoffset:-460;}
}

.chips{
  display:flex;
  gap:10px;
  margin-top:22px;
  flex-wrap:wrap;
}

.chip{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  padding:9px 13px;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:88px;
}

.chip .k{color:rgba(255,255,255,0.5); font-size:10.5px;}
.chip .v{color:var(--chlorine); font-weight:500;}
.chip .v.warn{color:var(--sun-deck);}

.hv-caption{
  margin-top:20px;
  font-size:13px;
  color:rgba(255,255,255,0.55);
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:16px;
}

/* ---------- SECTION SHARED ---------- */

section{padding:100px 0;}

.section-head{
  max-width:620px;
  margin-bottom:56px;
}

.tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--pool-tile);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:14px;
  display:block;
}

.section-head h2{
  font-size:36px;
  color:var(--deep-water);
  font-weight:600;
  line-height:1.15;
}

.section-head p{
  color:#3B5A63;
  font-size:16.5px;
  margin-top:16px;
}

/* ---------- PROBLEM ---------- */

.problem{background:var(--white);}

.problem-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
}

.problem-card{
  background:var(--white);
  padding:34px 28px;
}

.problem-card .icon{
  width:38px;height:38px;
  margin-bottom:20px;
  color:var(--coral-warn);
}

.problem-card h3{
  font-size:18px;
  color:var(--deep-water);
  margin-bottom:10px;
  font-weight:600;
}

.problem-card p{
  font-size:14.5px;
  color:#4A6B73;
}

/* ---------- HOW IT WORKS ---------- */

.steps{
  position:relative;
}

.steps-list{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}

.steps-list::before{
  content:'';
  position:absolute;
  top:23px;
  left:8%;
  right:8%;
  height:1px;
  background:repeating-linear-gradient(to right, var(--pool-tile) 0 8px, transparent 8px 16px);
  opacity:0.4;
}

.step{
  position:relative;
  z-index:1;
}

.step-num{
  width:46px;height:46px;
  border-radius:50%;
  background:var(--foam);
  border:1.5px solid var(--pool-tile);
  color:var(--pool-tile);
  font-family:'IBM Plex Mono',monospace;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  margin-bottom:22px;
}

.step h3{
  font-size:19px;
  color:var(--deep-water);
  margin-bottom:10px;
  font-weight:600;
}

.step p{
  font-size:14.5px;
  color:#4A6B73;
  max-width:280px;
}

/* ---------- FEATURES ---------- */

.features{background:var(--white);}

.feat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.feat-card{
  padding:30px 26px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--foam);
  transition:border-color .2s ease, transform .2s ease;
}

.feat-card:hover{
  border-color:var(--pool-tile);
  transform:translateY(-3px);
}

.feat-card .icon{
  width:34px;height:34px;
  color:var(--pool-tile);
  margin-bottom:18px;
}

.feat-card h3{
  font-size:16.5px;
  color:var(--deep-water);
  margin-bottom:9px;
  font-weight:600;
}

.feat-card p{
  font-size:14px;
  color:#4A6B73;
}

/* ---------- COMPATIBILITY ---------- */

.compat{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.compat-visual{
  background:var(--deep-water);
  border-radius:24px;
  padding:40px;
  position:relative;
  overflow:hidden;
}

.compat-visual::after{
  content:'';
  position:absolute;
  width:280px;height:280px;
  border-radius:50%;
  border:1px solid rgba(79,217,222,0.25);
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  animation:ripple 4s ease-out infinite;
}

@keyframes ripple{
  0%{width:60px;height:60px;opacity:0.9;}
  100%{width:300px;height:300px;opacity:0;}
}

.compat-visual-inner{
  position:relative;
  z-index:1;
  color:white;
  text-align:center;
  padding:30px 0;
}

.compat-visual-inner .big{
  font-family:'Space Grotesk',sans-serif;
  font-size:44px;
  font-weight:700;
  color:var(--chlorine);
}

.compat-visual-inner .small{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  color:rgba(255,255,255,0.6);
  margin-top:6px;
}

.compat-list{
  list-style:none;
  margin-top:24px;
}

.compat-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:15px;
  color:#3B5A63;
}

.compat-list li svg{
  flex-shrink:0;
  color:var(--pool-tile);
  margin-top:2px;
}

/* ---------- CTA ---------- */

.cta{
  background:linear-gradient(135deg,var(--deep-water),#0B5A69);
  border-radius:28px;
  padding:70px 50px;
  text-align:center;
  color:white;
  position:relative;
  overflow:hidden;
}

.cta h2{
  font-size:34px;
  font-weight:600;
  margin-bottom:16px;
}

.cta p{
  font-size:16px;
  color:rgba(255,255,255,0.7);
  max-width:480px;
  margin:0 auto 32px;
}

.cta .btn-primary{
  background:var(--sun-deck);
  color:var(--deep-water);
}

.cta .btn-primary:hover{
  box-shadow:0 10px 24px -8px rgba(255,173,74,0.5);
}

/* ---------- FOOTER ---------- */

footer{
  padding:44px 0 40px;
  border-top:1px solid var(--line);
}

.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}

.footer-note{
  font-size:13px;
  color:#5C7982;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:900px){
  .hero-grid,.compat,.problem-grid,.steps-list,.feat-grid{
    grid-template-columns:1fr;
  }
  .steps-list::before{display:none;}
  .hero h1{font-size:38px;}
  section{padding:70px 0;}
  .hero{padding:60px 0 40px;}
  .cta{padding:50px 26px;}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001s !important; animation-iteration-count:1 !important;}
}


/* ================= BLOG ================= */

.blog-hero{
  padding:70px 0 20px;
}

.blog-hero .section-head{margin-bottom:0;}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  margin-top:10px;
}

.blog-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--white);
  overflow:hidden;
  transition:transform .2s ease, border-color .2s ease;
}

.blog-card:hover{
  transform:translateY(-3px);
  border-color:var(--pool-tile);
}

.blog-card-top{
  height:6px;
  background:linear-gradient(90deg,var(--pool-tile),var(--chlorine));
}

.blog-card-body{
  padding:26px 24px 28px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.blog-date{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--pool-tile);
  margin-bottom:12px;
}

.blog-card h3{
  font-size:18px;
  color:var(--deep-water);
  font-weight:600;
  margin-bottom:10px;
  line-height:1.3;
}

.blog-card p{
  font-size:14px;
  color:#4A6B73;
  margin-bottom:18px;
  flex:1;
}

.blog-read{
  font-size:13.5px;
  font-weight:600;
  color:var(--pool-tile);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.blog-read svg{transition:transform .2s ease;}
.blog-card:hover .blog-read svg{transform:translateX(3px);}

.blog-empty{
  padding:60px 30px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:18px;
  color:#5C7982;
}

/* single article */

.article{
  padding:70px 0 40px;
}

.article-header{
  max-width:720px;
  margin:0 auto 40px;
  text-align:left;
}

.article-header .blog-date{margin-bottom:16px;}

.article-header h1{
  font-size:38px;
  color:var(--deep-water);
  font-weight:600;
  line-height:1.15;
  margin-bottom:16px;
}

.article-header p.excerpt{
  font-size:17px;
  color:#3B5A63;
}

.article-body{
  max-width:720px;
  margin:0 auto;
  font-size:16px;
  color:#284349;
}

.article-body h2{
  font-size:24px;
  color:var(--deep-water);
  margin:36px 0 14px;
  font-weight:600;
}

.article-body h3{
  font-size:19px;
  color:var(--deep-water);
  margin:28px 0 10px;
  font-weight:600;
}

.article-body p{margin-bottom:16px;}

.article-body ul, .article-body ol{
  margin:0 0 16px 22px;
}

.article-body li{margin-bottom:8px;}

.article-body strong{color:var(--deep-water);}

.article-body img{
  width:100%;
  border-radius:14px;
  margin:22px 0;
  display:block;
}

.article-body figcaption{
  font-size:13px;
  color:#5C7982;
  text-align:center;
  margin-top:-12px;
  margin-bottom:22px;
}

.article-back{
  max-width:720px;
  margin:0 auto 30px;
}

.article-back a{
  font-size:14px;
  color:var(--pool-tile);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.article-cta{
  max-width:720px;
  margin:50px auto 0;
  background:var(--foam);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.article-cta p{
  font-size:15px;
  color:var(--deep-water);
  font-weight:500;
  margin:0;
}

/* ================= PRICING ================= */

.pricing-hero{
  padding:70px 0 10px;
  text-align:center;
}

.pricing-hero .section-head{
  margin:0 auto 10px;
  text-align:center;
}

.pricing-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  max-width:860px;
  margin:50px auto 0;
}

.price-card{
  border:1px solid var(--line);
  border-radius:22px;
  padding:38px 34px;
  background:var(--white);
  position:relative;
}

.price-card.premium{
  background:linear-gradient(160deg,#0B4B59,var(--deep-water) 70%);
  color:white;
  border:none;
  box-shadow:0 30px 60px -22px rgba(7,59,76,0.5);
}

.price-badge{
  position:absolute;
  top:-13px;
  right:28px;
  background:var(--sun-deck);
  color:var(--deep-water);
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:600;
  padding:6px 14px;
  border-radius:100px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}

.price-card h3{
  font-size:20px;
  font-weight:600;
  margin-bottom:6px;
}

.price-card.premium h3{color:white;}
.price-card:not(.premium) h3{color:var(--deep-water);}

.price-tagline{
  font-size:14px;
  margin-bottom:26px;
}

.price-card:not(.premium) .price-tagline{color:#5C7982;}
.price-card.premium .price-tagline{color:rgba(255,255,255,0.65);}

.price-amount{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:42px;
  margin-bottom:4px;
}

.price-card:not(.premium) .price-amount{color:var(--deep-water);}
.price-card.premium .price-amount{color:var(--chlorine);}

.price-period{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  margin-bottom:28px;
  display:block;
}

.price-card:not(.premium) .price-period{color:#5C7982;}
.price-card.premium .price-period{color:rgba(255,255,255,0.55);}

.price-features{
  list-style:none;
  margin-bottom:30px;
}

.price-features li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 0;
  font-size:14.5px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.price-card.premium .price-features li{
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.price-features li svg{flex-shrink:0; margin-top:2px;}
.price-card:not(.premium) .price-features li svg{color:var(--pool-tile);}
.price-card.premium .price-features li svg{color:var(--chlorine);}

.price-card .btn{width:100%; justify-content:center;}

.price-card:not(.premium) .btn{
  background:var(--foam);
  color:var(--deep-water);
  border:1px solid var(--line);
}

.pricing-note{
  text-align:center;
  max-width:520px;
  margin:34px auto 0;
  font-size:13.5px;
  color:#5C7982;
}

@media (max-width:760px){
  .blog-grid{grid-template-columns:1fr;}
  .pricing-grid{grid-template-columns:1fr;}
  .article-header h1{font-size:28px;}
}

/* ================= NAV LINKS (multi page) ================= */

.nav-links{
  display:flex;
  align-items:center;
  gap:26px;
  font-size:14.5px;
  font-weight:500;
  color:var(--deep-water);
}

.nav-links a{
  opacity:0.75;
  transition:opacity .2s ease;
}

.nav-links a:hover, .nav-links a.active{
  opacity:1;
}

@media (max-width:760px){
  .nav-links{display:none;}
}
