/* MetricHarbor public landing page.
 *
 * Deliberately a separate stylesheet from app.css, and the landing template is a standalone
 * document that does not load app.css at all. The operator UI is dense, follows the system
 * light/dark preference and reuses class names like .card and .btn; this page is a fixed dark
 * marketing surface. Sharing a stylesheet between the two would mean every change to one
 * risking the other, so the two surfaces are kept apart and the duplication in <head> is the
 * price of that isolation.
 *
 * No build step, matching app.css and the rest of the project: deploying is a file copy.
 */

/* Fonts live in fonts.css, loaded alongside this file and shared with the operator UI. */

/* ------------------------------------------------------------------- type */

/* Text is sized in rem, so it follows the reader's own browser font setting. In px it does
 * not: someone who has set a larger default gets nothing from it, and page zoom becomes their
 * only lever — which magnifies the layout, the artwork and the chrome along with the words
 * they actually wanted bigger. 1rem is 16px unless the reader has said otherwise.
 *
 * The one exception is what sits inside .app-window, the dashboard in the hero. That is a
 * picture of an interface rather than text to be read: its 7-10px labels exist to look like a
 * dense tool seen from across the room. Those scale with the artwork, in px, and the figure
 * carries a written description for anyone who cannot see it.
 */

/* ----------------------------------------------------------------- tokens */

/* Only what more than one rule reads. The surfaces are deliberately NOT tokenised: the design
 * uses about a dozen distinct panel colours, each tuned against the one behind it, and
 * flattening them to four names would change the page rather than describe it. A token that
 * nothing reads is worse than a literal, because the next person will edit it and expect
 * something to happen.
 *
 * Every text colour on this page was checked against the surface it actually sits on rather
 * than against the background token. One pair failed AA and is fixed at its own rule. */
:root {
    --bg: #09151e;
    --text: #f3f7f6;

    /* Status colours are reserved: mint means healthy, orange means attention, coral means
     * broken. None of the three is ever reused as decoration, so that a colour on this page
     * means the same thing it means in the product. Every use is paired with a word or a
     * glyph, because colour alone is not a signal. */
    --mint: #84e8bf;
    --mint-hi: #a3f2d0;
    --orange: #f9a86c;
    --red: #ff817a;

    --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-code: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 1.0625rem/1.6 var(--font-body);
    /* The hero's decorative rings extend past the viewport by design. */
    overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* A visible focus ring on everything reachable by keyboard. Mint on navy is 12.6:1, so it
 * reads as an outline rather than a suggestion. */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
    border-radius: 4px;
}

::selection { background: #7ce4b0; color: #09151e; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }

h1 {
    font-size: clamp(3.125rem, 5.35vw, 4.75rem);
    letter-spacing: -.075em;
    line-height: 1.085;
    font-weight: 600;
    margin: 26px 0 22px;
    max-width: 700px;
}

/* The second sentence is the product's whole thesis, so it gets its own line and the one
 * colour that means "signal" on this page. Marked up as <em> rather than a <span>, so the
 * emphasis survives with the stylesheet off. */
h1 em { display: block; font-style: normal; color: var(--mint); }

h2 {
    font-size: clamp(2.0625rem, 3.65vw, 3.0625rem);
    line-height: 1.17;
    letter-spacing: -.065em;
    font-weight: 600;
    margin: 17px 0 18px;
}

.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--mint);
    font: 600 .75rem/1.35 var(--font-code);
    text-transform: uppercase;
    letter-spacing: .13em;
}
.eyebrow:before { content: ''; width: 18px; height: 1px; background: currentColor; }

/* --------------------------------------------------------------- backdrop */

.page-top { position: relative; overflow: hidden; isolation: isolate; }

/* Two soft pools of light behind the hero art, and a faint grid that fades in from the left.
 * Both are z-index: -1 and pointer-events: none, so nothing here can intercept a click or sit
 * on top of text. */
.page-top:before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 0 34%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 52% at 60% 37%, rgba(45, 131, 115, .17), transparent 76%),
        radial-gradient(ellipse 60% 60% at 85% 65%, rgba(45, 74, 103, .16), transparent 75%);
}

.page-top:after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .19;
    background-image:
        linear-gradient(#365463 1px, transparent 1px),
        linear-gradient(90deg, #365463 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, transparent 7%, black 100%);
}

/* ----------------------------------------------------------------- header */

header {
    border-bottom: 1px solid rgba(130, 179, 185, .12);
    height: 82px;
    position: relative;
    z-index: 20;
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--mint); }
.brand-name { font: 700 1.375rem var(--font-display); letter-spacing: -.055em; }
.brand-name span { color: var(--mint); }

.nav { display: flex; gap: 35px; margin-left: auto; padding-right: 28px; }
.nav a { color: #bed0d3; font-size: .9375rem; transition: color .2s; }
.nav a:hover { color: var(--mint); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.sign-in { white-space: nowrap; color: #e6f2f1; font-size: .9375rem; font-weight: 700; }
.sign-in:hover { color: var(--mint); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    font-size: .9375rem;
    font-weight: 700;
    /* 48px: a comfortable touch target without measuring it on a phone. */
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: transform .2s, background .2s, border-color .2s;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--mint); color: #09251d; box-shadow: 0 10px 24px rgba(61, 193, 144, .11); }
.btn-primary:hover { background: var(--mint-hi); }
.btn-outline { background: rgba(255, 255, 255, .025); color: #e8f2f1; border-color: #3a5660; }
.btn-outline:hover { background: #1a323b; border-color: #668c94; }

/* ------------------------------------------------------------------- hero */

.hero {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    min-height: 705px;
    padding-block: 58px 94px;
    gap: 28px;
}

.hero-copy { position: relative; z-index: 2; padding-bottom: 12px; }

.hero .tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #355750;
    background: rgba(105, 214, 165, .075);
    border-radius: 24px;
    color: #b6efd4;
    font: 500 .75rem var(--font-code);
    letter-spacing: -.02em;
}
.tag .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(132, 232, 191, .1);
}

.hero-lead { font-size: 1.1875rem; line-height: 1.72; max-width: 510px; color: #acc1c8; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 9px; color: #859eaa; font-size: .875rem; margin-top: 19px; }
.hero-note svg { color: var(--mint); width: 14px; height: 14px; flex-shrink: 0; }

/* --------------------------------------------- hero art: product preview */

.hero-art { position: relative; margin-left: 12px; min-width: 0; }

/* Radar rings. Decorative, and the reason .page-top clips its overflow. */
.orbit {
    position: absolute;
    width: 720px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(110, 223, 184, .095);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.orbit:before, .orbit:after {
    content: '';
    position: absolute;
    border: 1px solid rgba(110, 223, 184, .095);
    border-radius: 50%;
    inset: 65px;
}
.orbit:after { inset: 130px; border-color: rgba(110, 223, 184, .16); }
.orbit-dot {
    position: absolute; top: -3px; left: 50%;
    width: 7px; height: 7px;
    background: var(--mint); border-radius: 50%;
    box-shadow: 0 0 22px #80e9bb;
}

.app-window {
    position: relative;
    background: #0e1d27;
    border: 1px solid #38515c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 10px rgba(105, 186, 170, .025);
    transform: perspective(1300px) rotateY(-5deg) rotateX(2deg);
    transform-origin: 50% 50%;
}

.window-bar { height: 43px; padding: 0 15px; display: flex; align-items: center; gap: 7px; background: #152731; border-bottom: 1px solid #2b424d; }
.window-dot { height: 7px; width: 7px; border-radius: 50%; background: #54717d; }
.window-dot:first-child { background: var(--orange); }
.window-name { margin-inline: auto; padding-right: 23px; font: 500 10px var(--font-code); color: #8198a3; }

/* The overview page in miniature.
 *
 * It mirrors the real screen rather than resembling one: the same topbar, the same four
 * counters under the labels they actually carry, the silent-agent banner that really does sit
 * above them, and two rows of the firing-alerts table. The earlier version of this was an
 * invented dashboard that looked nothing like signing in, which is a small lie a monitoring
 * product has no business telling on its own front page.
 *
 * Sized in px, not rem: this is a picture of an interface seen from across the room, and it
 * should scale with the artwork rather than with the reader's text preference. The figure
 * carries a written description of everything in it.
 */

.dash { padding: 0; }

.dash-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    height: 36px;
    background: #10212b;
    border-bottom: 1px solid #25414d;
}
.dash-brand { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dash-brand .name { font: 600 11px var(--font-display); letter-spacing: -.045em; }
.dash-brand svg { width: 15px; height: 15px; color: var(--mint); }
.dash-brand em { font-style: normal; color: var(--mint); }
.dash-links { display: flex; gap: 11px; margin-right: auto; font: 500 9px var(--font-body); color: #8198a3; white-space: nowrap; }
.dash-links b { color: var(--text); font-weight: 600; }
.dash-org { font: 9px var(--font-code); color: #8198a3; white-space: nowrap; }

.dash-body { padding: 16px 14px 18px; }
.dash-title { font: 600 15px var(--font-display); letter-spacing: -.035em; }
.dash-caption { font-size: 9px; color: #8aa1aa; margin-top: 3px; }

/* The banner that outranks every counter below it. Coral-edged, because an agent that has
 * stopped reporting is not a quieter version of an alert — it is the reason the alerts below
 * cannot be trusted. */
.dash-notice {
    margin-top: 11px;
    padding: 9px 11px;
    border: 1px solid #2a4651;
    border-left: 3px solid var(--red);
    border-radius: 7px;
    background: #142833;
    font-size: 9px;
    line-height: 1.5;
    color: #9db3bc;
}
.dash-notice strong { display: block; color: var(--text); font-size: 10px; margin-bottom: 2px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 11px; }
.metric-card { background: #142833; border: 1px solid #2a4651; border-radius: 7px; padding: 10px 10px 9px; min-width: 0; }
.metric-card.alarm { border-color: #6d4a48; }
.metric-label { color: #8da7b0; font: 500 8px var(--font-code); text-transform: uppercase; letter-spacing: .03em; }
.metric-num { font: 600 23px/1.1 var(--font-display); letter-spacing: -.06em; margin-top: 4px; }
/* Never colour alone: the label above each number says which counter it is, and a count of
 * zero in the same coral would still read as "none firing". */
.metric-num.crit { color: var(--red); }
.metric-num span { font-size: 12px; color: #8da7b0; letter-spacing: -.02em; }

.dash-panel { margin-top: 11px; border: 1px solid #2a4651; border-radius: 7px; background: #142833; overflow: hidden; }
.dash-panel-head { padding: 8px 11px; border-bottom: 1px solid #2a4651; font: 600 10px var(--font-display); }

.dash-row { display: grid; grid-template-columns: 62px 1fr 1fr; align-items: center; gap: 8px; padding: 7px 11px; border-bottom: 1px solid #223c47; font-size: 9px; }
.dash-row:last-child { border-bottom: 0; }
.dash-row-head { color: #839fa9; font: 500 8px var(--font-code); text-transform: uppercase; letter-spacing: .05em; }
.dash-subject { font-family: var(--font-code); color: #c0d2d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The severity reads as a word, in a pill whose colour only repeats what the word says. */
.dash-tag { display: inline-block; padding: 1px 6px; border: 1px solid currentColor; border-radius: 999px; font-style: normal; font-size: 8px; font-weight: 500; }
.dash-tag.crit { color: var(--red); }
.dash-tag.warn { color: var(--orange); }

.alert-chip {
    position: absolute;
    right: -29px; bottom: 22px;
    z-index: 3;
    width: 252px;
    background: #172a33;
    border: 1px solid #80594d;
    border-left: 3px solid var(--orange);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .4);
    border-radius: 8px;
    padding: 14px;
}
.alert-chip .alert-top { display: flex; align-items: center; gap: 8px; font: 600 .6875rem var(--font-code); color: var(--orange); }
.alert-chip .alert-top svg { flex-shrink: 0; }
.alert-chip strong { display: block; font: 600 .875rem var(--font-display); margin-top: 8px; }
.alert-chip small { display: block; color: #a7bac0; margin-top: 4px; font-size: .75rem; }

/* Says plainly that the numbers above are made up. Not a hover title or a footnote: it sits
 * under the thing it describes, because a fabricated dashboard presented as real is the one
 * marketing lie a monitoring vendor cannot come back from. */
.illustration-label { position: absolute; bottom: -32px; right: 2px; color: #698592; font: .75rem var(--font-code); }

/* -------------------------------------------------------------- proof bar */

.proof-bar { position: relative; z-index: 1; border-top: 1px solid #27414a; border-bottom: 1px solid #27414a; background: #0c1b25; }
.proof-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.proof-item { min-height: 104px; display: flex; align-items: center; gap: 15px; padding: 21px 26px; border-right: 1px solid #25414a; }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-icon {
    display: grid; place-items: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid #346356; border-radius: 11px;
    color: var(--mint); background: #17392f;
}
.proof-icon svg { width: 20px; height: 20px; }
.proof-item strong { display: block; font: 600 .9375rem var(--font-display); }
.proof-item span:not([class]) { display: block; font-size: .875rem; margin-top: 2px; color: #8ea8b1; }

/* A note on the selectors below.
 *
 * Every rule here that styles a bare tag inside a section — ".install p", ".proof-item span"
 * — is written ":not([class])". A descendant selector outranks a single class, so
 * ".proof-item span" silently beat ".proof-icon" and replaced its display:grid with
 * display:block: the icon stopped being centred and sat in the corner of its tile. It still
 * rendered, so nothing failed and nobody looking at the CSS would see it.
 *
 * The rule is therefore: these style the section's plain prose, and anything carrying a class
 * owns its own appearance. LandingStyleTest enforces it.
 */

/* --------------------------------------------------------------- sections */

section { scroll-margin-top: 30px; }
.section { padding-block: 125px; }
.section-head { max-width: 690px; margin-bottom: 52px; }
.section-lead { font-size: 1.0625rem; color: #9eb7bf; line-height: 1.75; }

/* --------------------------------------------------------------- features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature {
    min-height: 310px;
    display: flex; flex-direction: column;
    padding: 30px;
    border: 1px solid #25414b; border-radius: 12px;
    background: linear-gradient(160deg, #122730, #0d1e28);
    transition: border-color .25s, transform .25s;
}
.feature:hover { border-color: #507c7a; transform: translateY(-3px); }
.feature-number { color: var(--mint); font: 500 .75rem var(--font-code); }
.feature-symbol {
    display: grid; place-items: center;
    width: 55px; height: 55px;
    margin: 25px 0 24px;
    background: #1c403a; color: #9ceccc;
    border-radius: 12px; border: 1px solid #37645b;
}
.feature-symbol svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4375rem; line-height: 1.2; font-weight: 600; letter-spacing: -.045em; margin-bottom: 12px; }
.feature p:not([class]) { color: #9eb5bd; font-size: .9375rem; line-height: 1.75; margin-bottom: 0; }

/* ----------------------------------------------------------- architecture */

.architecture { background: #0e202b; border-block: 1px solid #223b47; position: relative; overflow: hidden; }
.architecture:after {
    content: '';
    position: absolute;
    width: 720px; height: 720px;
    border-radius: 50%;
    border: 1px solid rgba(104, 195, 164, .07);
    top: 10%; right: -280px;
    pointer-events: none;
}
.architecture .wrap { position: relative; z-index: 1; }
.arch-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 78px; align-items: center; }
.arch-copy h2 { max-width: 440px; }
.arch-copy p:not([class]) { color: #a9bec5; font-size: 1.0625rem; line-height: 1.8; }

.checklist { list-style: none; padding: 0; margin: 25px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: #e1eeec; font-size: .9375rem; margin: 13px 0; }
.checklist svg { width: 17px; height: 17px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }

/* CSS and SVG rather than an illustration, so it stays sharp, stays small, and can be read by
 * a screen reader from the figure's caption. */
.arch-diagram { border: 1px solid #36525d; background: #0c1922; padding: 23px; border-radius: 13px; box-shadow: 0 24px 55px rgba(0, 0, 0, .18); margin: 0; }
.diagram-label { color: #6e909c; font: 500 .6875rem var(--font-code); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 19px; }
.diagram-flow { display: grid; grid-template-columns: minmax(0, 1fr) 85px minmax(0, .8fr); align-items: center; gap: 10px; }
.diagram-node { min-height: 178px; padding: 17px; border-radius: 10px; border: 1px solid #3a5b62; background: #142b32; }
.diagram-node.cloud { border-color: #397260; background: #14332f; }
.diagram-node svg { width: 28px; height: 28px; color: #a9eed2; }
.diagram-node strong { display: block; font: 600 1rem var(--font-display); margin: 13px 0 6px; }
.diagram-node small { display: block; color: #95aeb6; font-size: .8125rem; line-height: 1.6; }
.diagram-arrow { text-align: center; position: relative; color: var(--mint); font: 500 .6875rem var(--font-code); }
.diagram-arrow .line { height: 1px; background: var(--mint); position: relative; margin: 12px 0 8px; }
.diagram-arrow .line:after {
    content: '';
    position: absolute; right: 0; top: -4px;
    border-left: 6px solid var(--mint);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.diagram-arrow span { display: block; color: #89a5ab; font-size: .625rem; }
.diagram-secrets { margin-top: 15px; color: #90b6a6; font: .75rem var(--font-code); border: 1px dashed #42665b; padding: 11px 13px; border-radius: 7px; }

/* --------------------------------------------------------------- coverage */

.use-cases { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.use-case-list { display: grid; gap: 10px; }
.use-case { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #2d4a55; border-radius: 10px; padding: 17px 20px; background: #10222d; }
.use-case svg { flex-shrink: 0; height: 25px; width: 25px; color: var(--mint); }
.use-case strong { display: block; font: 600 1.0625rem var(--font-display); }
.use-case p:not([class]) { margin: 4px 0 0; color: #94abb3; font-size: .875rem; line-height: 1.65; }

/* ----------------------------------------------------------- installation */

.install { padding-block: 110px; border-top: 1px solid #263f49; background: linear-gradient(180deg, #0e202b, #09151e); }
.install-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 75px; }
.install h2 { margin-bottom: 14px; }
.install p:not([class]) { color: #a9bec5; font-size: 1.0625rem; line-height: 1.8; }
.install-guide { margin-top: 22px; color: #a9bec5; font-size: .9375rem; line-height: 1.7; }
.install-guide a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.install-guide a:hover { color: var(--mint-hi); }

.terminal {
    /* The anchor for the copy button app.js injects, which lands in the head strip. */
    position: relative;
    border-radius: 12px;
    border: 1px solid #3a555c;
    background: #071119;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.terminal + .terminal { margin-top: 14px; }
.terminal-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 17px; border-bottom: 1px solid #253e48; background: #142630; font: .75rem var(--font-code); color: #88a1aa; }
.terminal-foot { padding: 13px 19px; border-top: 1px solid #233844; color: #78919d; font: .75rem var(--font-code); line-height: 1.6; }

.terminal pre {
    /* Wrapping rather than scrolling: a command you cannot see the end of is a command you
     * cannot check before running it. Each command stays one line for copying. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 500 .875rem/1.9 var(--font-code);
    padding: 20px;
    color: #e4f1ed;
    margin: 0;
}

/* The prompt is generated, not written into the markup, so copying the block yields the
 * commands and not a column of dollar signs. */
.terminal .cmd { display: block; color: #cbdcfb; }
.terminal .cmd:before { content: '$ '; color: var(--mint); }

/* app.js wraps pre.copy in .copy-wrap and inserts .copy-button; both are styled here because
 * this page does not load app.css. Reusing that implementation rather than writing a second
 * one: it already handles the non-secure-context fallback and reports failure honestly. */
.copy-wrap { display: block; }
.copy-button {
    position: absolute;
    top: 9px; right: 15px;
    font: 500 .6875rem var(--font-code);
    color: #c3e7d7;
    padding: 7px 10px;
    border: 1px solid #406259;
    background: #1a3934;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s;
}
.copy-button:hover { background: #285146; }
.copy-button.copied { background: var(--mint); color: #09251d; border-color: var(--mint); }

/* --------------------------------------------------------- closing and footer */

.bottom-cta { text-align: center; padding-block: 108px 120px; position: relative; overflow: hidden; }
.bottom-cta:before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 43% 75% at 50% 90%, rgba(83, 178, 148, .14), transparent 80%);
    pointer-events: none;
}
.bottom-cta .wrap { position: relative; }
.bottom-cta h2 { max-width: 750px; margin: 17px auto; font-size: clamp(2.375rem, 4.5vw, 3.75rem); }
.bottom-cta p:not([class]) { color: #a0b7bd; font-size: 1.0625rem; max-width: 540px; margin: 0 auto 30px; }

.footer { border-top: 1px solid #25414b; }
.footer-inner { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer .brand-name { font-size: 1.125rem; }
.footer .brand-icon { width: 29px; height: 29px; }
.footer p:not([class]) { margin: 0; font: .8125rem var(--font-code); color: #7d99a4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: .875rem; color: #9eb5be; }
.footer-links a:hover { color: var(--mint); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
    .hero { grid-template-columns: 50% 50%; gap: 0; }
    .hero-art { margin-left: -2px; }
    .alert-chip { right: -8px; }
    .nav { gap: 20px; padding-right: 10px; }
    .feature { padding: 23px; }
    .arch-layout, .use-cases, .install-grid { gap: 40px; }
}

@media (max-width: 850px) {
    .wrap { width: min(680px, calc(100% - 36px)); }
    header { height: 69px; }

    /* With JavaScript blocked the links stay in the flow, stacked, and the header grows to
     * hold them — every destination still reachable. landing.js marks the header
     * collapsible, and only then does the nav become a menu behind a button. A menu that
     * exists only when a script runs is a navigation bar that sometimes is not there. */
    header { height: auto; }
    .header-inner { flex-wrap: wrap; padding-block: 14px; }
    .nav { order: 3; width: 100%; margin: 0; padding: 14px 0 4px; flex-direction: column; gap: 15px; }
    .nav a { font-size: 1rem; }

    header[data-nav="collapsible"] { height: 69px; }
    header[data-nav="collapsible"] .header-inner { flex-wrap: nowrap; padding-block: 0; }
    /* The primary action moves into the menu rather than being duplicated beside it. */
    header[data-nav="collapsible"] .header-actions .btn { display: none; }
    header[data-nav="collapsible"] .menu-toggle { display: inline-flex; }
    header[data-nav="collapsible"] .nav {
        display: none;
        position: absolute;
        top: 69px; left: 0; right: 0;
        order: 0; width: auto;
        margin: 0; padding: 22px;
        background: #10222c;
        border-bottom: 1px solid #35505b;
    }
    header[data-nav="collapsible"] .nav.open { display: flex; }

    .hero { grid-template-columns: 1fr; gap: 45px; padding-block: 75px 105px; }
    h1 { font-size: clamp(3.125rem, 9vw, 4.5rem); max-width: 650px; }
    .hero-art { margin: 0 20px 0 0; }
    /* Flat on a narrow screen: the perspective tilt costs legibility it cannot repay here. */
    .app-window { transform: none; }

    .proof-inner { grid-template-columns: 1fr; }
    .proof-item, .proof-item:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid #25414b; min-height: 0; }
    .proof-item:last-child { border-bottom: 0; }

    .features { grid-template-columns: 1fr; }
    .feature { min-height: 0; }
    .feature-symbol { margin: 25px 0 20px; }

    .arch-layout, .use-cases, .install-grid { grid-template-columns: 1fr; gap: 38px; }
    .section { padding-block: 85px; }
    .install { padding-block: 90px; }
}

@media (max-width: 510px) {
    .wrap { width: calc(100% - 32px); }
    .brand-name { font-size: 1.1875rem; }
    .brand-icon { width: 32px; }
    .sign-in { font-size: .875rem; }
    .header-actions { gap: 5px; }

    /* Extra bottom room: the alert card and its "illustrative" label both sit below the
     * window at this width. */
    .hero { padding-top: 56px; padding-bottom: 170px; gap: 45px; }
    .hero .tag { font-size: .6875rem; }
    h1 { font-size: clamp(2.8125rem, 12vw, 3.75rem); }
    .hero-lead { font-size: 1.0625rem; }
    /* Stacked, not two half-width buttons. At 320px "Start monitoring" and its arrow do not
     * fit in half the screen at any size worth reading, and a wrapped label in a squeezed
     * button is a worse answer than a full-width one. */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-art { margin: 0; }

    /* The miniature tightens rather than shrinking its text further: the counters drop to
     * two rows so each one keeps a readable number, and the table's severity column loses
     * its fixed width. */
    .dash-nav { gap: 9px; padding: 0 10px; }
    .dash-links { gap: 8px; }
    .dash-org { display: none; }
    .dash-body { padding: 12px 10px 14px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .metric-card { padding: 8px; }
    .dash-row { grid-template-columns: 54px 1fr 1fr; gap: 6px; padding: 6px 9px; }
    .alert-chip { width: 214px; right: -3px; bottom: -49px; }
    .illustration-label { bottom: -82px; }

    h2 { font-size: 2.1875rem; }
    /* One column. Three abreast at this width only fits by shrinking the labels to 7px,
     * which is not a diagram anybody can read — it is a diagram-shaped object. */
    .diagram-flow { grid-template-columns: 1fr; gap: 12px; }
    .diagram-node { padding: 16px; min-height: 0; }
    .diagram-arrow { padding: 2px 0; }
    .diagram-arrow .line { margin: 9px 0 7px; }

    .footer-inner { flex-direction: column; align-items: flex-start; padding-block: 26px; gap: 16px; }
}

/* Nothing on this page needs motion to be understood, so there is nothing to degrade. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation: none !important; transition: none !important; }
    .btn:hover, .feature:hover { transform: none; }
}
