/* ============================================================
   MINITOR marketing site — design tokens
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --panel: #141414;
    --panel-2: #1b1b1b;
    --line: #262626;
    --line-soft: #1e1e1e;
    --paper: #fafafa;
    --mist: #9a9a9a;
    --mist-2: #616161;
    --pulse: #3ecf8e;
    --pulse-dim: #3ecf8e33;
    --warn: #f2a93b;
    --bad: #f1615a;

    --font-display:
        'Geom', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji';
    --font-mono:
        ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Consolas,
        Menlo, monospace;

    --container: 1160px;
    --edge: clamp(1.25rem, 4vw, 3rem);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

.wrap {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--edge);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pulse);
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pulse);
    box-shadow: 0 0 0 3px var(--pulse-dim);
}

/* ---------- pulse-line divider (echoes the logo's waveform) ---------- */

.pulse-rule {
    width: 100%;
    height: 28px;
    display: block;
    overflow: visible;
}

.pulse-rule path {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pulse-rule circle {
    fill: var(--pulse);
}

/* ---------- nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1.1rem var(--edge) 0;
    background: linear-gradient(var(--ink) 55%, transparent);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
    padding: 0.5rem 0.5rem 0.5rem 1.35rem;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    max-width: var(--container);
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ink);
    border: 1px solid var(--line);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0.3rem;
    background: var(--ink);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--mist);
    font-size: 0.86rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--paper);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-cta .btn {
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    color: var(--paper);
    align-items: center;
    justify-content: center;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 1.35rem;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--paper);
    color: var(--ink);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--paper) 88%, var(--pulse) 12%);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--mist-2);
}

.btn-sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
}

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

.hero {
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
    position: relative;
}

.hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(1.85rem, 7.5vw, 4.6rem);
    line-height: 1.1;
    margin: 1.1rem 0 1.3rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--pulse);
}

.hero p.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--mist);
    max-width: 620px;
    margin: 0 auto 2.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.hero-note {
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--mist-2);
}

/* ---------- console (signature element) ---------- */

.console {
    max-width: 880px;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}

.console-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--mist);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.console-title .live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pulse);
    box-shadow: 0 0 0 3px var(--pulse-dim);
}

.console-body {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    height: 268px;
    overflow: hidden;
    position: relative;
}

.console-row {
    display: grid;
    grid-template-columns: 52px 1fr auto auto 14px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 1.15rem;
    border-bottom: 1px solid var(--line-soft);
    animation: row-in 0.5s ease both;
}

.console-row .method {
    font-weight: 700;
    color: var(--mist);
}

.console-row .method.get {
    color: #6fb8ff;
}
.console-row .method.post {
    color: #d9a4ff;
}
.console-row .method.sql {
    color: var(--mist);
}
.console-row .method.job {
    color: var(--warn);
}

.console-row .path {
    color: var(--paper);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-row .status {
    color: var(--mist);
    justify-self: end;
}

.console-row .dur {
    color: var(--mist-2);
    justify-self: end;
    min-width: 3.5em;
    text-align: right;
}

.console-row .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    justify-self: end;
}

.console-row .dot.good {
    background: var(--pulse);
    box-shadow: 0 0 0 3px var(--pulse-dim);
}
.console-row .dot.warn {
    background: var(--warn);
    box-shadow: 0 0 0 3px #f2a93b2e;
}
.console-row .dot.bad {
    background: var(--bad);
    box-shadow: 0 0 0 3px #f1615a2e;
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.console-fade-top,
.console-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    pointer-events: none;
    z-index: 2;
}
.console-fade-top {
    top: 0;
    background: linear-gradient(var(--panel), transparent);
}
.console-fade-bottom {
    bottom: 0;
    background: linear-gradient(transparent, var(--panel));
}

/* ---------- install strip ---------- */

.install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.55rem 0.9rem;
    color: var(--mist);
}

.chip strong {
    color: var(--paper);
    font-weight: 500;
}

.chip .prompt {
    color: var(--pulse);
}

/* ---------- section shell ---------- */

section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-head {
    max-width: 620px;
    margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.01em;
    margin: 0.7rem 0 0.85rem;
}

.section-head p {
    color: var(--mist);
    font-size: 1.02rem;
    margin: 0;
}

/* ---------- feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.feature-card {
    background: var(--ink);
    padding: 1.6rem 1.5rem;
    transition: background 0.15s ease;
}

.feature-card:hover {
    background: var(--panel);
}

.feature-card .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--pulse);
    letter-spacing: 0.02em;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.6rem 0 0.5rem;
    text-transform: none;
}

.feature-card p {
    margin: 0;
    color: var(--mist);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- how it works ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step {
    position: relative;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--pulse);
    border: 1px solid var(--line);
    background: var(--panel);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.step h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.step p {
    color: var(--mist);
    font-size: 0.92rem;
    margin: 0 0 0.9rem;
}

.step .chip {
    width: 100%;
}

/* ---------- diff comparison ---------- */

.diff {
    max-width: 760px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.diff-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.diff-head div {
    padding: 0.85rem 1.1rem;
    color: var(--mist);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.diff-head div:first-child {
    border-right: 1px solid var(--line);
}

.diff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.diff-row + .diff-row {
    border-top: 1px solid var(--line-soft);
}

.diff-cell {
    padding: 0.75rem 1.1rem;
    display: flex;
    gap: 0.6rem;
}

.diff-cell.minus {
    border-right: 1px solid var(--line);
    color: #d99a97;
    background: #f1615a0d;
}

.diff-cell.plus {
    color: #9fe3c2;
    background: #3ecf8e0d;
}

.diff-cell .sym {
    opacity: 0.7;
    user-select: none;
}

/* ---------- final CTA ---------- */

.cta-band {
    text-align: center;
}

.cta-panel {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(2.25rem, 6vw, 3.5rem);
    background: radial-gradient(
        120% 140% at 50% 0%,
        var(--panel) 0%,
        var(--ink) 70%
    );
}

.cta-panel h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    margin: 0.6rem 0 0.7rem;
}

.cta-panel p {
    color: var(--mist);
    margin: 0 0 1.6rem;
}

/* ---------- footer ---------- */

footer {
    border-top: 1px solid var(--line-soft);
    padding-block: 2.75rem 3.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand p {
    color: var(--mist);
    font-size: 0.88rem;
    max-width: 320px;
    margin: 0.9rem 0 0;
}

.footer-col h4 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--mist-2);
    margin: 0 0 0.9rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--mist);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--paper);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--mist-2);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 880px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .diff-cell {
        font-size: 0.8rem;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.1rem);
        letter-spacing: -0.005em;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .diff-head div,
    .diff-cell {
        padding: 0.65rem 0.8rem;
    }
    .console-row {
        grid-template-columns: 40px 1fr auto 10px;
        font-size: 0.72rem;
    }
    .console-row .dur {
        display: none;
    }
}
