/* ═══════════════════════════════════════════
   WebVitalsLab — Global Stylesheet
   Applied to: all pages
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
    --bg:         #07090d;
    --bg2:        #0b0e14;
    --surface:    #10141c;
    --surface2:   #151a24;
    --border:     rgba(255,255,255,0.06);
    --border2:    rgba(255,255,255,0.11);
    --accent:     #00e5a0;
    --accent-dim: rgba(0,229,160,0.1);
    --red:        #ff4d6d;
    --yellow:     #ffc94d;
    --blue:       #3d9bff;
    --text:       #dce4ef;
    --text2:      #a0aab8;
    --muted:      #5a6478;
    --fg:         'Cabinet Grotesk', sans-serif;
    --mono:       'JetBrains Mono', monospace;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
    font-family: 'Cabinet Grotesk', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── NAV ── */
.wvl-nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(7,9,13,0.88);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.wvl-nav-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1.5rem;
    max-width: 1140px; margin: 0 auto;
}
.wvl-nav-links { display: flex; align-items: center; gap: 2rem; }
.wvl-nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--muted);
    text-decoration: none; letter-spacing: 0.04em;
    transition: color 0.2s;
}
.wvl-nav-links a:hover { color: var(--text); }

/* ── LOGO ── */
.wvl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wvl-logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.wvl-logo-mark svg { width: 100%; height: 100%; }
.wvl-logo-text {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800; font-size: 1.05rem;
    letter-spacing: -0.03em; color: var(--text); line-height: 1;
}
.wvl-logo-text em { font-style: normal; color: var(--accent); }

/* ── BUTTONS ── */
.btn-wvl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.03em; border: none;
    padding: 0.9rem 2rem; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: all 0.2s;
}
.btn-wvl-primary {
    color: #07090d; background: var(--accent);
}
.btn-wvl-primary:hover {
    background: #00c98a; transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,229,160,0.2); color: #07090d;
}
.btn-wvl-outline {
    color: var(--text2); background: transparent;
    border: 1px solid var(--border2);
}
.btn-wvl-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-wvl-nav {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
    color: #07090d; background: var(--accent); border: none;
    padding: 0.5rem 1.25rem; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-wvl-nav:hover { background: #00c98a; transform: translateY(-1px); color: #07090d; }

/* ── SECTION ── */
.wvl-sec { padding: 6rem 0; }
.wvl-sec-alt {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── EYEBROW ── */
.wvl-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.wvl-eyebrow::before { content: '//'; opacity: 0.6; }

/* ── SECTION TITLE ── */
.wvl-title {
    font-weight: 900;
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    line-height: 1.05; letter-spacing: -0.04em;
}

/* ── CARDS ── */
.wvl-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 2rem; height: 100%;
    transition: border-color 0.25s, transform 0.25s;
}
.wvl-card:hover { transform: translateY(-2px); }
.wvl-card-accent:hover { border-color: rgba(0,229,160,0.2); }
.wvl-card-warn:hover  { border-color: rgba(255,77,109,0.2); }

/* ── STEP PROCESS ── */
.wvl-step { display: flex; gap: 1.5rem; }
.wvl-step-l { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.wvl-step-n {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent);
}
.wvl-step-lv { width: 1px; flex: 1; min-height: 32px; background: var(--border); margin: 6px 0; }
.wvl-step-r { padding-bottom: 2.5rem; flex: 1; }
.wvl-step-r:last-child { padding-bottom: 0; }
.wvl-step-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
    color: var(--accent); letter-spacing: 0.08em;
    background: var(--accent-dim); border-radius: 4px;
    padding: 0.18rem 0.5rem; display: inline-block; margin-bottom: 0.5rem;
}
.wvl-step-r h4 { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.wvl-step-r p { font-size: 0.88rem; color: var(--text2); }

/* ── FAQ ── */
.wvl-faq-item { border-bottom: 1px solid var(--border); }
.wvl-faq-q {
    width: 100%; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 0; cursor: pointer; text-align: left;
    color: var(--text); transition: color 0.2s; font-family: 'Cabinet Grotesk', sans-serif;
}
.wvl-faq-q:hover { color: var(--accent); }
.wvl-faq-q-text { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.wvl-faq-icon {
    font-family: 'JetBrains Mono', monospace; font-size: 1.1rem;
    color: var(--muted); transition: transform 0.3s, color 0.2s;
    flex-shrink: 0; margin-left: 1rem;
}
.wvl-faq-item.open .wvl-faq-icon { transform: rotate(45deg); color: var(--accent); }
.wvl-faq-a {
    font-size: 0.9rem; color: var(--text2); line-height: 1.7;
    overflow: hidden; max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s;
}
.wvl-faq-item.open .wvl-faq-a { max-height: 300px; padding-bottom: 1.4rem; }

/* ── METRIC BARS ── */
.wvl-m-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wvl-m-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--muted); width: 32px; flex-shrink: 0; }
.wvl-m-track { flex: 1; height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.wvl-m-fill { height: 100%; border-radius: 3px; }
.wvl-m-fill.g { background: var(--accent); }
.wvl-m-fill.w { background: var(--yellow); }
.wvl-m-fill.b { background: var(--red); }
.wvl-m-val { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; width: 52px; text-align: right; flex-shrink: 0; }
.wvl-m-val.g { color: var(--accent); }
.wvl-m-val.w { color: var(--yellow); }
.wvl-m-val.b { color: var(--red); }

/* ── FOOTER ── */
.wvl-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.wvl-footer-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.wvl-foot-copy { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.wvl-foot-links { display: flex; gap: 1.5rem; }
.wvl-foot-links a {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.wvl-foot-links a:hover { color: var(--text); }

/* ── FADE UP ── */
.fu { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fu.vis { opacity: 1; transform: none; }

/* ── UTILS ── */
.text-accent { color: var(--accent); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-2      { color: var(--text2); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .wvl-sec { padding: 4.5rem 0; }
}