/* waterejector.in */
:root {
    --bg: #050b18;
    --bg-2: #0a1428;
    --panel: #0d1a33;
    --line: #1b2c4d;
    --text: #dbe7fb;
    --muted: #8fa3c4;
    --head: #ffffff;
    --aqua: #38d6ff;
    --blue: #2b7fff;
    --good: #3ddc97;
    --bad: #ff6b7a;
    --warn: #ffc857;
    --radius: 18px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--aqua); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { color: var(--head); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6.500vw, 3.600rem); font-weight: 800; }
h2 { font-size: clamp(1.450rem, 3.600vw, 1.900rem); font-weight: 750; }
h3 { font-size: 1.150rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
[hidden], .hidden { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); font-size: .9rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .8em 1.4em; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, var(--aqua), var(--blue)); color: #03101f;
    font: inherit; font-weight: 700; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 6px 24px -8px rgba(56, 214, 255, .6);
}
.btn:hover { transform: translateY(-2px); color: #03101f; box-shadow: 0 12px 30px -8px rgba(56, 214, 255, .75); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--aqua); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 11, 24, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo svg { color: var(--aqua); transition: transform .5s var(--ease); }
.logo:hover svg { transform: translateY(2px) scale(1.08); }
.logo b { color: var(--aqua); font-weight: 800; }
.logo small { color: var(--muted); font-size: .7em; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .has-sub > button {
    background: none; border: 0; cursor: pointer; font: inherit; font-size: .93rem; font-weight: 550;
    color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px;
    transition: color .2s, background .2s;
}
.nav > a:not(.btn):hover, .has-sub > button:hover, .nav [aria-current] { color: #fff; background: rgba(255, 255, 255, .06); }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.sub {
    position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 50px -20px #000;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .92rem; }
.sub a:hover, .sub a[aria-current] { background: rgba(56, 214, 255, .1); color: #fff; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > button::after, .has-sub.open > button::after { transform: translateY(1px) rotate(225deg); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 11px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100vh - 64px); overflow-y: auto; padding: 8px 16px 20px;
        background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav.open { display: flex; animation: drop .3s var(--ease); }
    .nav > a:not(.btn), .has-sub > button { text-align: left; width: 100%; padding: 12px 8px; font-size: 1rem; }
    .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; }
    .has-sub.open .sub { display: block; }
    .nav .btn { margin: 12px 0 0; justify-content: center; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Hero */
.hero { position: relative; padding: 44px 0 36px; text-align: center; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: -64px 0 0; z-index: -1;
    background:
        radial-gradient(600px 340px at 50% 0, rgba(43, 127, 255, .28), transparent 70%),
        radial-gradient(420px 260px at 85% 20%, rgba(56, 214, 255, .12), transparent 70%);
}
.hero h1 em, .grad { font-style: normal; background: linear-gradient(100deg, var(--aqua), #7aa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.080rem; max-width: 620px; margin: 0 auto 28px; }
.badge {
    display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: 999px;
    border: 1px solid rgba(56, 214, 255, .3); background: rgba(56, 214, 255, .08);
    color: var(--aqua); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .5; }

/* Tool */
.tool {
    position: relative; max-width: 560px; margin: 0 auto; padding: 20px;
    background: linear-gradient(180deg, rgba(13, 26, 51, .9), rgba(8, 16, 33, .9));
    border: 1px solid var(--line); border-radius: 26px;
    box-shadow: 0 40px 80px -40px rgba(43, 127, 255, .5);
    text-align: center;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(56, 214, 255, .14); color: var(--aqua); font-size: .78rem; }
.stage { position: relative; height: 250px; display: grid; place-items: center; }
.viz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.eject-btn {
    position: relative; width: 168px; height: 168px; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
    background: none; color: #fff; font: inherit; -webkit-tap-highlight-color: transparent;
    transition: transform .3s var(--ease);
}
.eject-btn:hover { transform: scale(1.04); }
.eject-btn:active { transform: scale(.96); }
.core {
    position: absolute; inset: 12px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: radial-gradient(circle at 30% 25%, #6fe3ff, var(--blue) 55%, #1447b8);
    box-shadow: inset 0 -10px 24px rgba(0, 0, 0, .25), inset 0 6px 14px rgba(255, 255, 255, .3), 0 16px 40px -10px rgba(43, 127, 255, .8);
    transition: background .4s, box-shadow .4s;
}
.btn-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ico-stop { display: none; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 3; }
.ring .ring-fg { stroke: var(--aqua); stroke-linecap: round; stroke-dasharray: 351.900; stroke-dashoffset: 351.900; }
.ripples i {
    position: absolute; inset: 12px; border-radius: 50%; border: 2px solid var(--aqua); opacity: 0;
    animation: ripple 3.600s var(--ease) infinite;
}
.ripples i:nth-child(2) { animation-delay: 1.2s; }
.ripples i:nth-child(3) { animation-delay: 2.400s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.550); opacity: 0; } }

.tool.playing .ripples i { animation-duration: 1.2s; }
.tool.playing .ripples i:nth-child(2) { animation-delay: .4s; }
.tool.playing .ripples i:nth-child(3) { animation-delay: .8s; }
.tool.playing .core { animation: throb .22s ease-in-out infinite alternate; background: radial-gradient(circle at 30% 25%, #9af0ff, #1ea7e8 55%, #0d3fa8); }
.tool.playing .ico-play { display: none; }
.tool.playing .ico-stop { display: block; }
@keyframes throb { to { transform: scale(1.025); } }

.status { min-height: 1.7em; margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.tool.playing .status { color: var(--aqua); }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.modes button {
    display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 4px; cursor: pointer;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px;
    color: var(--muted); font: inherit; font-size: .86rem; line-height: 1.25;
    transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.modes button strong { color: var(--text); font-weight: 650; }
.modes button small { font-size: .68rem; }
.modes button:hover { transform: translateY(-2px); border-color: rgba(56, 214, 255, .5); }
.modes button[aria-pressed="true"] { border-color: var(--aqua); background: rgba(56, 214, 255, .12); }
.modes button[aria-pressed="true"] strong { color: #fff; }
.slider { text-align: left; }
.slider label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.slider output { color: var(--aqua); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 28px; margin: 0; background: none; accent-color: var(--aqua); cursor: pointer; }
input[type="range"]:disabled { opacity: .4; cursor: not-allowed; }
.readout { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 14px; color: var(--muted); }
.readout output { font-size: 2.800rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.steppers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.steppers button { padding: 8px 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: .86rem; cursor: pointer; transition: border-color .2s, transform .15s; }
.steppers button:hover { border-color: var(--aqua); }
.steppers button:active { transform: scale(.95); }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section > .wrap > h2 { text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px auto 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--good); margin-right: 7px; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--muted); text-decoration: none; font-size: .92rem; line-height: 1.5; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card-link strong { color: #fff; font-size: 1.020rem; padding-right: 24px; }
.card-link i { position: absolute; top: 20px; right: 20px; font-style: normal; color: var(--aqua); transition: transform .3s var(--ease); }
.card-link:hover { transform: translateY(-4px); border-color: rgba(56, 214, 255, .55); box-shadow: 0 18px 40px -22px rgba(56, 214, 255, .7); color: var(--text); }
.card-link:hover i { transform: translateX(4px); }
.card.do { border-color: rgba(61, 220, 151, .35); }
.card.do h3, .card.do h4 { color: var(--good); }
.card.dont { border-color: rgba(255, 107, 122, .35); }
.card.dont h3, .card.dont h4 { color: var(--bad); }
.card.warn { border-color: rgba(255, 200, 87, .4); background: rgba(255, 200, 87, .06); }
.card.warn h3, .card.warn h4 { color: var(--warn); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1.6em 0; }
.icon-dot { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: rgba(56, 214, 255, .12); color: var(--aqua); font-weight: 800; }

/* Prose */
.prose { padding: 40px 0 16px; }
.prose h2 { margin-top: 1.8em; }
.prose > h2:first-child, .prose > section:first-child h2 { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose .card h3, .prose .card h4 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--aqua); font-weight: 700; }
.prose strong { color: #fff; font-weight: 650; }
.prose code { background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 3px solid var(--aqua); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--panel); color: #fff; font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.post-meta { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(56, 214, 255, .45); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; color: #fff; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(56, 214, 255, .12); color: var(--aqua); font-weight: 500; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--text); animation: fade .35s var(--ease); }
.faq details > div p:last-child { margin: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* CTA band */
.cta { margin: 32px 0 48px; padding: 30px 24px; text-align: center; border-radius: 22px; border: 1px solid rgba(56, 214, 255, .3); background: radial-gradient(400px 200px at 50% 0, rgba(56, 214, 255, .16), transparent 70%), var(--panel); }
.cta h2 { margin: 0 0 .3em; font-size: 1.4rem; }
.cta p { color: var(--muted); margin-bottom: 18px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: #fff; font: inherit; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(56, 214, 255, .18); }

/* Ads: space is reserved only when a manual unit is configured */
.ad { margin: 28px auto; min-height: 280px; text-align: center; overflow: hidden; }
.ad-label { display: block; margin-bottom: 6px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #5b6f92; }

/* Footer */
.site-footer { margin-top: 24px; padding: 48px 0 24px; background: #030812; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.site-footer nav h2:not(:first-child) { margin-top: 22px; }
.site-footer nav a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; transition: color .2s, transform .2s var(--ease); }
.site-footer nav a:hover { color: var(--aqua); transform: translateX(3px); }
.site-footer .logo { margin-bottom: 12px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; }
.foot-base a { color: var(--muted); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div { grid-column: 1 / -1; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero { padding-top: 28px; }
    .tool { padding: 14px; border-radius: 22px; }
    .stage { height: 220px; }
    .eject-btn { width: 150px; height: 150px; }
    .modes button small { display: none; }
    .section { padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
