/* ============================================================
   NVR Health Monitor — Marketing Site
   Modern refresh of the legacy GoCentral site.
   Palette pulled from the app: navy #0a2540 + brand blue #007bff
   ============================================================ */

:root {
    --navy-900: #07182b;
    --navy-800: #0a2540;
    --navy-700: #103458;
    --navy-600: #16466f;
    --blue-600: #0a64d6;
    --blue-500: #007bff;
    --blue-400: #3d95f5;
    --blue-300: #79b8fb;
    --sky-100: #eaf3ff;
    --ink: #16263a;
    --muted: #5a6b7e;
    --line: #e4ebf2;
    --bg: #ffffff;
    --bg-soft: #f5f9fd;
    --ok: #28b463;
    --warn: #f0ad4e;
    --danger: #e74c3c;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(13, 40, 70, 0.06);
    --shadow-md: 0 10px 30px rgba(13, 40, 70, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 40, 70, 0.18);
    --maxw: 1140px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy-800); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-600);
    background: var(--sky-100);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, .32);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0, 123, 255, .42); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.nav__logo img { height: 38px; }
.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__links a {
    color: var(--ink);
    font-weight: 500;
    font-size: .97rem;
    padding: 10px 14px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--blue-600); background: var(--sky-100); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--navy-800);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(61,149,245,.35), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(900px 500px at 70% 10%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    padding: 96px 0 104px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--blue-300); }
.hero__tag {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--blue-300);
    margin-bottom: 14px;
}
.hero p.lead { font-size: 1.1rem; color: #c7d6e6; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 38px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #aebfd2; }
.hero__badge i { color: var(--ok); font-size: 1.05rem; }

/* Hero visual — a stylized "monitor" panel */
.monitor-card {
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}
.monitor-card__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #cfe0f2;
    font-size: .85rem;
    font-weight: 600;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    margin-bottom: 10px;
    font-size: .92rem;
    color: #e7eefb;
}
.status-row:last-child { margin-bottom: 0; }
.status-row .label { display: flex; align-items: center; gap: 10px; }
.status-row .label i { width: 18px; text-align: center; color: var(--blue-300); }
.pill {
    font-size: .74rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: .03em;
}
.pill--ok { background: rgba(40,180,99,.18); color: #56e08f; }
.pill--warn { background: rgba(240,173,78,.18); color: #ffce7a; }
.pill--bad { background: rgba(231,76,60,.20); color: #ff8a7d; }

/* ---------- Trust strip ---------- */
.trust {
    background: var(--navy-900);
    color: #9fb3c8;
    padding: 22px 0;
    text-align: center;
    font-size: .95rem;
    letter-spacing: .02em;
}
.trust strong { color: #fff; }

/* ---------- Feature grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card__icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky-100), #d7e8ff);
    color: var(--blue-600);
    font-size: 1.35rem;
    margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Problem section ---------- */
.problem-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin-top: 10px; }
.problem-item { display: flex; gap: 14px; align-items: flex-start; }
.problem-item i { color: var(--danger); font-size: 1.1rem; margin-top: 4px; flex: 0 0 auto; }
.problem-item h4 { margin: 0 0 2px; font-size: 1.02rem; color: var(--navy-800); }
.problem-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num {
    counter-increment: step;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff; font-weight: 800; font-size: 1.15rem;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(0,123,255,.3);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(800px 300px at 85% 120%, rgba(61,149,245,.35), transparent 60%),
        linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c7d6e6; margin: 0; font-size: 1.08rem; }
.cta-band .phone { font-size: 1.5rem; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.cta-band .phone i { color: var(--blue-300); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9fb3c8; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: #9fb3c8; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer__contact p { margin: 0 0 10px; display: flex; gap: 11px; align-items: flex-start; }
.footer__contact i { color: var(--blue-400); margin-top: 5px; width: 16px; text-align: center; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 10px; background: rgba(255,255,255,.06); color: #cdddee; font-size: 1.05rem; padding: 0;
}
.footer__social a:hover { background: var(--blue-600); color: #fff; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 44px; padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: .86rem; color: #7d92a8;
}

/* ---------- Login modal ---------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 24, 43, .55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: #fff;
    width: 100%;
    max-width: 410px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    padding: 26px 28px 22px;
    text-align: center;
    position: relative;
}
.modal__head img { height: 34px; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.modal__head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.modal__head p { color: #b9cbe0; margin: 4px 0 0; font-size: .88rem; }
.modal__close {
    position: absolute; top: 14px; right: 16px;
    background: rgba(255,255,255,.12); color: #fff;
    border: 0; width: 32px; height: 32px; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer; line-height: 1;
    transition: background .15s ease;
}
.modal__close:hover { background: rgba(255,255,255,.28); }
.modal__body { padding: 26px 28px 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.field input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    font-size: 1rem; font-family: var(--font);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(0,123,255,.15); }
.modal .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.modal__foot { text-align: center; margin-top: 16px; font-size: .9rem; }
.modal__foot a { color: var(--blue-600); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
    .hero__visual { order: -1; max-width: 480px; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .grid, .steps { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav__links, .nav__cta .btn-text-hide { display: none; }
    .nav__links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 74px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 12px 20px; gap: 2px; box-shadow: var(--shadow-md);
    }
    .nav__toggle { display: block; }
    .section { padding: 60px 0; }
    .grid, .steps, .problem-list, .footer__grid { grid-template-columns: 1fr; }
    .cta-band { padding: 36px 28px; text-align: center; justify-content: center; }
    .cta-band > div { width: 100%; }
}
