/* styles.css — AquaPure Demo Website */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0ea5e9;
  --blue-d:  #0284c7;
  --blue-l:  #e0f2fe;
  --dark:    #0f172a;
  --text:    #334155;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --bg-alt:  #f0f9ff;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(14,165,233,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: white; border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-l); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800; color: var(--dark);
}
.logo span { color: var(--blue); }
.nav-links {
  display: flex; list-style: none; gap: 28px; flex: 1;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1px solid var(--blue);
  color: var(--blue); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 56px; font-weight: 800; line-height: 1.15;
  color: var(--dark); margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 480px;
  margin-bottom: 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; gap: 20px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--dark); }
.stat span { font-size: 13px; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Purifier illustration */
.hero-image { display: flex; justify-content: center; align-items: center; }
.purifier-visual {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.purifier-body {
  width: 180px; height: 320px;
  background: linear-gradient(160deg, #ffffff, #e0f2fe);
  border-radius: 32px 32px 16px 16px;
  box-shadow: 0 20px 60px rgba(14,165,233,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  border: 1px solid rgba(14,165,233,0.2);
  position: relative; z-index: 1;
}
.purifier-screen {
  width: 80px; height: 60px;
  background: var(--dark);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.purifier-label {
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.05em;
}
.purifier-tap {
  position: absolute; bottom: -30px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.water-drop {
  width: 6px; height: 8px;
  background: var(--blue);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: drip 1.4s infinite;
  opacity: 0;
}
.water-drop.d2 { animation-delay: 0.45s; }
.water-drop.d3 { animation-delay: 0.9s; }
@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(20px); }
}
.purifier-glow {
  position: absolute; bottom: -20px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── Trust Bar ────────────────────────────────────────── */
.trust-bar {
  background: var(--dark); color: white; padding: 18px 0;
}
.trust-inner {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 13px; font-weight: 600; opacity: 0.9;
}

/* ── Section ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center; margin-bottom: 52px;
}
.section-header h2 {
  font-size: 38px; font-weight: 800; color: var(--dark); margin-bottom: 10px;
}
.section-header p {
  font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 auto;
}

/* ── Products Grid ────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: stretch;
}
.product-card {
  background: white; border-radius: 16px; padding: 32px 28px;
  border: 2px solid var(--border); position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(14,165,233,0.12); }
.product-card.featured {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(14,165,233,0.18);
}
.product-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue-l); color: var(--blue-d);
  padding: 4px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.product-card.featured .product-badge { background: var(--blue); color: white; }
.product-badge.popular { background: var(--blue); color: white; }
.product-badge.premium { background: #7c3aed; color: white; }
.product-icon { font-size: 40px; margin-bottom: 4px; }
.product-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.product-price { font-size: 32px; font-weight: 800; color: var(--blue); margin: 4px 0; }
.product-price-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-features {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  flex: 1; margin-bottom: 20px;
}
.product-features li { font-size: 14px; color: var(--text); }

/* ── Features Grid ────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: white; border-radius: 14px; padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Stages ───────────────────────────────────────────── */
.stages {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding-bottom: 8px;
}
.stage {
  flex-shrink: 0; text-align: center;
  background: white; border: 2px solid var(--border);
  border-radius: 14px; padding: 20px 14px; min-width: 110px;
}
.stage.highlight { border-color: var(--blue); background: var(--blue-l); }
.stage-num {
  width: 36px; height: 36px; background: var(--blue);
  color: white; border-radius: 50%; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
}
.stage-name { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.stage-desc { font-size: 11px; color: var(--muted); }
.stage-arrow { font-size: 20px; color: var(--blue); flex-shrink: 0; }

/* ── Testimonials ─────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: white; border-radius: 14px; padding: 28px;
  border: 1px solid var(--border);
}
.stars { font-size: 18px; margin-bottom: 12px; }
.testimonial p { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: white; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--dark); }
.testimonial-author span { font-size: 12px; color: var(--muted); }

/* ── CTA Section ──────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.cta-text h2 { font-size: 36px; font-weight: 800; color: white; margin-bottom: 16px; }
.cta-text p { color: #94a3b8; font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.cta-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cta-points li { font-size: 15px; color: #e2e8f0; }
.cta-form-card {
  background: white; border-radius: 20px; padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cta-form-card h3 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form select {
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.contact-form input:focus, .contact-form select:focus { border-color: var(--blue); }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--blue); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: #0f172a; padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid #1e293b;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #64748b; line-height: 1.7; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #64748b; transition: color 0.15s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: #475569; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid, .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: 38px; }
  .nav-links { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .products-grid, .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 16px; justify-content: flex-start; }
  .stages { flex-direction: column; }
  .stage-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
}

/* ── Toast notification ───────────────────────────────── */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #16a34a; color: white;
  padding: 14px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(22,163,74,0.3);
  opacity: 0; transition: all 0.3s;
  z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
