/* WaterFilters.com — 2030 edition. No frameworks, no web fonts. */
@view-transition { navigation: auto; }

:root {
  color-scheme: light dark;
  --bg: oklch(98.5% 0.008 230);
  --bg-2: oklch(95.5% 0.018 230);
  --ink: oklch(22% 0.03 250);
  --ink-2: oklch(45% 0.03 250);
  --line: oklch(22% 0.03 250 / 0.1);
  --glass: oklch(100% 0 0 / 0.55);
  --glass-line: oklch(100% 0 0 / 0.7);
  --aqua: oklch(72% 0.15 210);
  --aqua-deep: oklch(55% 0.17 240);
  --mint: oklch(85% 0.13 175);
  --violet: oklch(68% 0.17 285);
  --radius: 28px;
  --shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 20px 60px -20px oklch(40% 0.1 240 / 0.25);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(15% 0.025 250);
    --bg-2: oklch(19% 0.03 250);
    --ink: oklch(95% 0.01 230);
    --ink-2: oklch(75% 0.02 230);
    --line: oklch(100% 0 0 / 0.09);
    --glass: oklch(25% 0.03 250 / 0.5);
    --glass-line: oklch(100% 0 0 / 0.1);
    --shadow: 0 1px 0 oklch(100% 0 0 / 0.06) inset, 0 30px 80px -30px oklch(0% 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.0625rem)/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Ambient aurora behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora::before { background: var(--aqua); top: -35vmax; left: -20vmax; }
.aurora::after { background: var(--violet); bottom: -40vmax; right: -25vmax; animation-delay: -13s; opacity: 0.22; }
@keyframes drift { to { transform: translate(10vmax, 8vmax) scale(1.15); } }

/* Header */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 12px; padding: 10px 10px 10px 18px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 99px;
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.brand span b { font-weight: 650; color: var(--aqua-deep); }
@media (prefers-color-scheme: dark) { .brand span b { color: var(--aqua); } }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-size: 0.94rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--line); color: var(--ink); }
@media (max-width: 560px) {
  .nav { padding-left: 14px; }
  .brand span { display: none; }
  .nav ul a { padding: 8px 11px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px;
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  box-shadow: 0 10px 30px -10px var(--aqua-deep), 0 1px 0 oklch(100% 0 0 / .35) inset;
}
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: clamp(48px, 10vw, 120px) clamp(40px, 8vw, 96px); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .orb-stage { order: -1; max-width: 340px; margin-inline: auto; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--glass); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px oklch(85% 0.13 175 / .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px oklch(85% 0.13 175 / 0); } }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 6vw, 6.4rem); font-weight: 700; margin-block: 22px 20px; }
.grad { background: linear-gradient(100deg, var(--aqua-deep), var(--aqua) 45%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--ink-2); max-width: 34ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The liquid orb */
.orb-stage { position: relative; aspect-ratio: 1; width: 100%; }
.orb {
  position: absolute; inset: 6%; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background:
    radial-gradient(circle at 32% 28%, oklch(100% 0 0 / .95) 0 4%, transparent 14%),
    radial-gradient(circle at 70% 75%, oklch(85% 0.13 175 / .9), transparent 55%),
    radial-gradient(circle at 30% 70%, oklch(68% 0.17 285 / .7), transparent 50%),
    radial-gradient(circle at 50% 40%, var(--aqua), var(--aqua-deep) 75%);
  box-shadow: inset -30px -40px 80px oklch(30% 0.12 260 / .55), inset 20px 30px 60px oklch(100% 0 0 / .35), 0 50px 120px -30px var(--aqua-deep);
  animation: morph 14s ease-in-out infinite;
}
.orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from 0deg, transparent, oklch(100% 0 0 / .25), transparent 30%); mix-blend-mode: overlay; animation: spin 9s linear infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: spin 40s linear infinite; }
.ring::before { content: ""; position: absolute; top: 12%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 20px var(--mint); }
.ring.r2 { inset: -6%; animation-duration: 60s; animation-direction: reverse; border-style: dashed; opacity: .6; }
.ring.r2::before { background: var(--violet); box-shadow: 0 0 20px var(--violet); top: auto; bottom: 14%; left: auto; right: 10%; width: 8px; height: 8px; }
.chip-float { position: absolute; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.chip-float b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.chip-float.c1 { top: 8%; right: -2%; }
.chip-float.c2 { bottom: 10%; left: -4%; animation-delay: -3s; }
@keyframes morph { 50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(8deg) scale(1.03); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Sections */
section { padding-block: clamp(56px, 9vw, 110px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 700; max-width: 16ch; }
.sec-head p { color: var(--ink-2); max-width: 42ch; margin: 0; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-deep); margin: 0 0 12px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--aqua); } }

/* Bento category grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
  container-type: inline-size;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--aqua) 50%, transparent); }
.card::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(var(--hue, var(--aqua)), transparent 70%); opacity: .35; transition: opacity .35s, transform .5s; }
.card:hover::before { opacity: .6; transform: scale(1.2); }
.card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in oklch, var(--hue, var(--aqua)) 18%, transparent); color: var(--hue, var(--aqua-deep)); margin-bottom: 28px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0; }
.card .tag { display: inline-block; margin-top: 18px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.card.feature { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 900px) { .span-3, .span-2, .span-4 { grid-column: span 3; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .span-3, .span-2, .span-4 { grid-column: auto; } }

/* Filtration pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: stage; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--mint), var(--violet)); opacity: .6; }
.stage { counter-increment: stage; padding: 0 16px; text-align: left; position: relative; }
.stage .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg); border: 2px solid var(--aqua); margin-bottom: 20px; position: relative; }
.stage .dot::after { content: "0" counter(stage); font-size: .9rem; }
.stage h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.stage p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 760px) {
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipeline::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--aqua), var(--mint), var(--violet)); }
  .stage { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0; }
  .stage .dot { grid-row: span 2; margin: 0; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stats div { padding: clamp(24px, 4vw, 40px) 8px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(2rem, 1.2rem + 3.5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stats span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stats div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Domain offer */
.offer {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px);
  color: white;
  background:
    radial-gradient(60% 80% at 100% 0%, oklch(85% 0.13 175 / .55), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, oklch(68% 0.17 285 / .6), transparent 60%),
    linear-gradient(135deg, oklch(45% 0.16 245), oklch(28% 0.1 260));
  box-shadow: 0 40px 100px -40px oklch(45% 0.16 245);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.offer::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(oklch(100% 0 0 / .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, black); pointer-events: none; }
.offer > * { position: relative; z-index: 1; }
.offer .kicker { color: oklch(90% 0.1 175); }
.offer h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 700; margin-bottom: 16px; }
.offer p { color: oklch(100% 0 0 / .82); margin: 0 0 28px; max-width: 48ch; }
.price { text-align: right; }
.price small { display: block; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.price b { display: block; font-size: clamp(3rem, 2rem + 5vw, 6rem); letter-spacing: -0.05em; line-height: 1; margin: 6px 0; }
.offer .btn-primary { background: white; color: oklch(30% 0.1 255); box-shadow: 0 10px 30px -10px oklch(0% 0 0 / .5); }
.offer .btn-ghost { color: white; border-color: oklch(100% 0 0 / .3); background: oklch(100% 0 0 / .08); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .price { text-align: left; order: -1; } }

/* Page header for inner pages */
.page-head { padding-block: clamp(56px, 10vw, 120px) clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem); font-weight: 700; margin: 18px 0 16px; }
.page-head p { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
th, td { text-align: left; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
tbody th { font-weight: 650; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: color-mix(in oklch, var(--aqua) 6%, transparent); }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.meter[data-v="1"] i:nth-child(-n+1), .meter[data-v="2"] i:nth-child(-n+2), .meter[data-v="3"] i:nth-child(-n+3), .meter[data-v="4"] i:nth-child(-n+4), .meter[data-v="5"] i:nth-child(-n+5) { background: linear-gradient(90deg, var(--aqua), var(--mint)); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 20px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); padding: 4px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--aqua-deep); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 16px; align-content: start; }
.info .card { padding: 24px; }
.info .card .ico { margin-bottom: 16px; }
.info a { text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; }
.info address { font-style: normal; color: var(--ink-2); }
form.card { display: grid; gap: 16px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input, textarea, select {
  font: inherit; color: var(--ink); width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: color-mix(in oklch, var(--bg) 70%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px color-mix(in oklch, var(--aqua) 22%, transparent); }
textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* Footer */
footer { padding-block: 48px 40px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise both cubic-bezier(.2,.8,.2,1); animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Card hues (classes, so CSP can forbid inline styles) */
a.card { text-decoration: none; }
.h-aqua { --hue: oklch(72% 0.15 210); } .h-mint { --hue: oklch(80% 0.13 175); } .h-violet { --hue: oklch(68% 0.17 285); }
.h-sky { --hue: oklch(74% 0.13 230); } .h-blue { --hue: oklch(62% 0.16 250); }
.mt { margin-top: 32px; }
.card .tag { align-self: flex-start; }

/* Contact form states */
.opt { font-weight: 400; opacity: .7; }
.err { color: oklch(60% 0.2 25); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: oklch(60% 0.2 25); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-kind="good"] { color: oklch(62% 0.15 160); }
.form-status[data-kind="bad"] { color: oklch(60% 0.2 25); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
form h2 { font-size: 1.6rem; }
.turnstile { min-height: 65px; }
