/* =====================================================================
   MineWaterBalances.com — Coming Soon
   A standalone brand landing page. Dark "water showcase" theme,
   drawn from the main application's design tokens (main.css / login.css).
   ===================================================================== */

:root {
    /* ---- Water palette (from the app) ------------------------------- */
    --navy-950: #051422;
    --navy-900: #07192b;
    --navy-850: #0a2236;
    --navy-800: #0c2b42;
    --ocean-700: #075985;
    --ocean-600: #0369a1;
    --ocean-500: #0284c7;
    --ocean-400: #2b9fde;
    --sky-400:  #38bdf8;
    --sky-300:  #7dd3fc;
    --aqua-400: #22d3ee;
    --aqua-300: #67e8f9;
    --leaf:     #16b67e;

    /* ---- Dark-surface text ------------------------------------------ */
    --on-dark:        #eaf4fb;
    --on-dark-soft:   #a9c6da;
    --on-dark-faint:  #6f8ca2;

    /* ---- Radii / motion --------------------------------------------- */
    --r-sm: 9px;
    --r-md: 13px;
    --r-lg: 18px;
    --r-pill: 999px;

    --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; color: inherit; }

body {
    font-family: var(--font-sans);
    color: var(--on-dark);
    background: var(--navy-950);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--sky-400);
    outline-offset: 3px;
    border-radius: 6px;
}

/* =====================================================================
   Atmosphere — layered background (glows + grid)
   ===================================================================== */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 680px at 78% -12%, rgba(56, 189, 248, 0.20), transparent 60%),
        radial-gradient(900px 560px at 4% 108%, rgba(8, 145, 178, 0.16), transparent 55%),
        linear-gradient(178deg, var(--navy-850), var(--navy-900) 48%, var(--navy-950));
}
.atmosphere__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 20%, #000 40%, transparent 78%);
    mask-image: radial-gradient(120% 80% at 50% 20%, #000 40%, transparent 78%);
}
.atmosphere__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
}
.atmosphere__glow--sky {
    width: 460px; height: 460px;
    top: -140px; right: -100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 65%);
    animation: drift-a 18s var(--ease) infinite alternate;
}
.atmosphere__glow--aqua {
    width: 420px; height: 420px;
    bottom: -160px; left: -120px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
    animation: drift-b 22s var(--ease) infinite alternate;
}

/* =====================================================================
   Stage / layout
   ===================================================================== */
.stage {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(24px, 4vw, 40px);
}

.hero {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 760px;
    width: 100%;
    padding: 24px 0;
}

/* ---- Brand ---------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 66px; height: 66px;
    padding: 9px;
    flex: 0 0 auto;
    border-radius: 18px;
    /* Seamless: the logo artwork sits on a white field, so a white chip
       reads as one piece — matching the app's own brand-mark treatment. */
    background: #fff;
    box-shadow:
        0 12px 30px -10px rgba(56, 189, 248, 0.6),
        0 2px 8px rgba(5, 20, 34, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: bob 6s var(--ease) infinite;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__word {
    font-size: clamp(18px, 3.2vw, 23px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.brand__tld { color: var(--leaf); font-weight: 700; }

/* ---- Status pill ---------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border-radius: var(--r-pill);
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--sky-300);
    margin-bottom: 26px;
}
.pill__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--aqua-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
    animation: pulse 2.4s var(--ease) infinite;
    flex: 0 0 auto;
}

/* ---- Headline ------------------------------------------------------- */
.hero__title {
    font-size: clamp(38px, 8.5vw, 72px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 22px;
}
.hero__gradient {
    background: linear-gradient(100deg, var(--sky-300) 0%, var(--aqua-300) 42%, var(--leaf) 108%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__lede {
    font-size: clamp(15px, 2.1vw, 18px);
    line-height: 1.65;
    color: var(--on-dark-soft);
    max-width: 54ch;
    margin: 0 auto;
}
.hero__lede strong { color: var(--on-dark); font-weight: 600; }

/* ---- Feature chips -------------------------------------------------- */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin: 34px auto 6px;
}
.feature {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.14);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--on-dark);
    transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.feature:hover {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(34, 211, 238, 0.08);
    transform: translateY(-2px);
}
.feature__icon {
    display: grid;
    place-items: center;
    color: var(--aqua-300);
    flex: 0 0 auto;
}
.feature__icon svg { width: 18px; height: 18px; }

/* ---- Notify form ---------------------------------------------------- */
.notify {
    width: 100%;
    max-width: 460px;
    margin: 40px auto 0;
}
.notify__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark-faint);
    margin-bottom: 12px;
}
.notify__row {
    display: flex;
    gap: 8px;
    padding: 7px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -24px rgba(5, 20, 34, 0.9);
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.notify__row:focus-within {
    border-color: var(--sky-400);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 3px rgba(56, 189, 248, 0.5);
}
.notify__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px 0 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
}
.notify__input::placeholder { color: var(--on-dark-faint); }
.notify__input:focus { outline: none; }

.notify__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    font-size: 14.5px;
    font-weight: 600;
    /* Dark ink on a bright water gradient — vivid and high-contrast
       (navy on sky/ocean ≈ 6.3–8.7:1), echoing the app's nav badge. */
    color: var(--navy-950);
    background: linear-gradient(140deg, var(--sky-400), var(--ocean-400));
    box-shadow: 0 10px 24px -10px rgba(56, 189, 248, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 160ms var(--ease), box-shadow 220ms var(--ease), filter 160ms var(--ease);
}
.notify__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.notify__btn:active { transform: translateY(0); }
.notify__btn-icon { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.notify__btn:hover .notify__btn-icon { transform: translateX(3px); }

.notify__msg {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--on-dark-soft);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.notify__msg.is-shown { opacity: 1; transform: translateY(0); }
.notify__msg.is-error { color: #fca5a5; }
.notify__msg.is-success { color: var(--aqua-300); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding-top: 8px;
}
.site-foot__powered {
    height: 30px;
    width: auto;
    opacity: 0.9;
    transition: opacity 200ms var(--ease);
}
.site-foot__powered:hover { opacity: 1; }
.site-foot__copy {
    font-size: 12px;
    color: var(--on-dark-faint);
    letter-spacing: 0.01em;
}

/* =====================================================================
   Reveal-on-load animation
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal-in 720ms var(--ease-out) forwards;
}
.reveal:nth-child(1) { animation-delay: 60ms; }
.reveal:nth-child(2) { animation-delay: 150ms; }
.reveal:nth-child(3) { animation-delay: 240ms; }
.reveal:nth-child(4) { animation-delay: 330ms; }
.reveal:nth-child(5) { animation-delay: 420ms; }
.reveal:nth-child(6) { animation-delay: 510ms; }
.site-foot.reveal { animation-delay: 600ms; }

/* =====================================================================
   Keyframes
   ===================================================================== */
@keyframes reveal-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.05); }
}
@keyframes drift-a {
    from { transform: translate(0, 0); }
    to   { transform: translate(-48px, 40px); }
}
@keyframes drift-b {
    from { transform: translate(0, 0); }
    to   { transform: translate(52px, -36px); }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 560px) {
    .brand { gap: 11px; margin-bottom: 24px; }
    .brand__mark { width: 56px; height: 56px; padding: 8px; border-radius: 15px; }
    .notify__row { flex-wrap: wrap; border-radius: var(--r-lg); }
    .notify__input { width: 100%; padding: 12px 14px; }
    .notify__btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
