:root {
  --bg: #f7fbfd;
  --fg: #16243d;
  --muted: #f0f5f8;
  --muted-fg: #6b7a90;
  --card: #ffffff;
  --border: #e3eaf1;
  --primary: #2870d6;
  --primary-deep: #1a3a7a;
  --primary-glow: #4f96ff;
  --secondary: #2bb673;
  --danger: #dc3545;
  --primary-fg: #ffffff;
  --radius: 14px;
  --shadow-soft: 0 10px 30px -10px rgba(26,58,122,0.18);
  --shadow-water: 0 20px 50px -15px rgba(40,112,214,0.4);
  --grad-hero: linear-gradient(135deg, #eaf3fb 0%, #d6eaf6 50%, #def3e6 100%);
  --grad-primary: linear-gradient(135deg, var(--primary), var(--primary-deep));
  --grad-water: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-text: linear-gradient(90deg, var(--primary), var(--secondary));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--primary-deep); letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-muted { background: rgba(0,0,0,0.025); }
.section-hero { background: var(--grad-hero); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,251,253,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227,234,241,0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--primary-deep); }
.brand img { width: 38px; height: 38px; object-fit: contain; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: none; cursor: pointer;
  font-weight: 600; border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  padding: 0.65rem 1.1rem; font-size: 0.9rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn-hero { background: var(--grad-primary); color: var(--primary-fg); box-shadow: var(--shadow-water); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--primary-deep); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-secondary { background: var(--card); color: var(--primary-deep); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.pill-primary { background: rgba(40,112,214,0.08); color: var(--primary); border: 1px solid rgba(40,112,214,0.2); }
.pill-secondary { background: rgba(43,182,115,0.12); color: var(--secondary); }
.pill-danger { background: rgba(220,53,69,0.1); color: var(--danger); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  padding: 5rem 1.5rem; align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; padding: 6rem 1.5rem; } }
.lead { margin-top: 1.4rem; color: var(--muted-fg); font-size: 1.1rem; max-width: 36rem; }
.tagline { margin-top: 0.9rem; font-weight: 600; color: var(--primary-deep); }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { max-width: 380px; filter: drop-shadow(0 30px 50px rgba(40,112,214,0.25)); position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: 0; background: rgba(40,112,214,0.18); border-radius: 50%; filter: blur(60px); animation: pulse 3s ease-in-out infinite; }
.hero-blobs { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.blob-1 { width: 380px; height: 380px; background: rgba(40,112,214,0.35); top: 5rem; left: -100px; }
.blob-2 { width: 320px; height: 320px; background: rgba(43,182,115,0.3); bottom: 2rem; right: -60px; }
@keyframes pulse { 0%,100%{opacity:0.6} 50%{opacity:0.9} }

/* Section heads */
.section-head { max-width: 38rem; margin: 0 auto; text-align: center; }
.section-head .pill { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; color: var(--muted-fg); }

/* Grids */
.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.align-center { align-items: center; }

/* Problem cards */
.problem-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.problem-card:hover { transform: translateY(-6px); }
.problem-card > p { padding: 1.4rem; color: var(--muted-fg); font-size: 0.95rem; }
.problem-img { position: relative; height: 220px; overflow: hidden; }
.problem-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.problem-card:hover .problem-img img { transform: scale(1.06); }
.problem-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,122,0.85), rgba(26,58,122,0.2) 50%, transparent);
}
.badge-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(220,53,69,0.95); color: #fff;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.problem-overlay {
  position: absolute; bottom: 1rem; left: 1.2rem; right: 1.2rem; z-index: 2;
  display: flex; align-items: flex-end; gap: 0.8rem;
}
.problem-num { font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,0.9); line-height: 1; }
.problem-overlay h3 { color: #fff; padding-bottom: 0.3rem; font-size: 1.1rem; }

.result-card {
  display: flex; align-items: center; gap: 0.8rem; justify-content: center;
  max-width: 38rem; margin: 3rem auto 0;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(220,53,69,0.25);
  background: rgba(220,53,69,0.06);
  border-radius: var(--radius);
}
.result-card span { color: var(--danger); font-size: 1.3rem; }
.result-card p { font-weight: 500; }

/* Feature cards */
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card h3 { margin-top: 1rem; }
.feature-card p { margin-top: 0.6rem; color: var(--muted-fg); font-size: 0.95rem; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
}
.icon-water { background: var(--grad-water); }
.icon-primary { background: var(--grad-primary); }
.feature-card.glow { position: relative; }
.feature-card.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  background: var(--grad-water); opacity: 0; filter: blur(10px); z-index: -1;
  transition: opacity 0.3s ease;
}
.feature-card.glow:hover::before { opacity: 0.6; }
.center-note { text-align: center; max-width: 38rem; margin: 2.5rem auto 0; font-weight: 500; color: var(--primary-deep); }

/* Why */
.muted { color: var(--muted-fg); margin-top: 1rem; }
.check-list { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.check-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(43,182,115,0.15); color: var(--secondary); font-weight: 700;
}
.engagement-card {
  background: var(--card); border: 1px solid rgba(40,112,214,0.1);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-water);
}
.engagement-head { display: flex; align-items: center; gap: 0.6rem; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.big { margin-top: 1.5rem; font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.stats div { text-align: center; }
.stats strong { display: block; font-size: 1.5rem; color: var(--primary-deep); font-weight: 700; }
.stats span { font-size: 0.75rem; color: var(--muted-fg); }

/* CTA */
.cta { background: var(--grad-primary); color: var(--primary-fg); padding: 6rem 0; position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 40rem; }
.cta h2 { color: #fff; margin-top: 1rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.cta p { margin-top: 1rem; color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.cta .italic { font-style: italic; font-size: 1.2rem; }
.cta-icon { font-size: 3rem; }
.cta .btn-secondary { margin-top: 2rem; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
@media (min-width: 760px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-title { font-weight: 700; color: var(--primary-deep); }
.footer-sub { font-size: 0.8rem; color: var(--muted-fg); }
.footer .brand img { width: 32px; height: 32px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Multi-page additions */
.main-nav { display: none; gap: 1.6rem; font-size: 0.92rem; font-weight: 500; }
.main-nav a { color: var(--muted-fg); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
@media (min-width: 760px) { .main-nav { display: flex; } }

.page-hero { background: var(--grad-hero); padding: 5rem 0 3rem; text-align: center; }
.page-hero .pill { margin-bottom: 1rem; }
.page-hero h1 { max-width: 50rem; margin: 0.5rem auto; }
.page-hero .lead { margin: 1.2rem auto 0; }

.seo-content { max-width: 50rem; margin: 0 auto; }
.seo-content h2 { margin-bottom: 1rem; }
.seo-content h3 { margin: 2rem 0 0.6rem; color: var(--primary); font-size: 1.15rem; }
.seo-content p { color: var(--muted-fg); margin-bottom: 1rem; line-height: 1.7; }
.seo-content strong { color: var(--fg); }
.link-primary { color: var(--primary); font-weight: 600; }
.link-primary:hover { text-decoration: underline; }

.align-start { align-items: start; }
.contact-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; gap: 0.2rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-list strong { color: var(--primary-deep); font-size: 0.85rem; }
.contact-list a { color: var(--primary); }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.88rem; font-weight: 500; color: var(--primary-deep); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--fg);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-msg { font-size: 0.9rem; min-height: 1.2em; }
.form-msg.success { color: var(--secondary); font-weight: 600; }

.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; }
.footer-nav a { color: var(--muted-fg); }
.footer-nav a:hover { color: var(--primary); }
