/* PvP Bootcamp: calm, focused, dark. Own visual identity, no game assets.
   System fonts only (no external font requests). */

:root {
    --bg: #0b1020;
    --bg-alt: #0f1629;
    --surface: #121a2e;
    --surface-2: #18223a;
    --border: #24304d;
    --text: #e6ebf5;
    --muted: #9aa6bf;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-ink: #062a26;
    --warn: #f5b74a;
    --danger: #f87171;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .35);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
h1:focus { outline: none; }
p { margin: 0 0 1em; }

code {
    font-family: var(--mono);
    font-size: .9em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: .1em .4em;
    border-radius: 6px;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent { color: var(--accent); }

/* Header & footer */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 16, 32, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-small { font-size: 1rem; }
.header-nav { display: flex; align-items: center; gap: 1.4rem; }
.header-nav a:not(.btn) { color: var(--muted); font-size: .95rem; }
.header-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: var(--muted); }
.disclaimer { color: var(--muted); font-size: .8rem; margin-top: 1.5rem; max-width: 760px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 750; font-size: 1rem;
    padding: .8rem 1.4rem; border-radius: 10px; border: 0; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-block { width: 100%; margin-top: 1rem; }

/* Hero: illustration on the right, fading into navy behind the text on the left */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; padding: 4rem 0; }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(11, 16, 32, .94) 35%, rgba(11, 16, 32, .6) 55%, rgba(11, 16, 32, .12) 78%),
        linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-content { position: relative; z-index: 1; }
.hero-copy { max-width: 580px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.lead { font-size: 1.15rem; color: #c9d2e3; max-width: 34em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .55rem; }

/* Mock report */
.report-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1rem;
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; }
.report-title { font-weight: 800; font-size: 1.1rem; }
.report-meta { color: var(--muted); font-size: .85rem; }
.pill { font-size: .78rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; }
.pill-loss { background: rgba(248, 113, 113, .15); color: var(--danger); }
.report-timeline {
    position: relative; height: 8px; margin: 1rem 0 1.1rem;
    background: linear-gradient(90deg, var(--surface-2), #22304f); border-radius: 999px;
}
.tl-mark { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); border: 3px solid var(--surface); }
.tl-high { background: var(--danger); }
.tl-mid { background: var(--warn); }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: .75rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: .75rem .85rem; }
.finding-title { font-weight: 700; font-size: .95rem; }
.finding-text { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.ts { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-left: .35rem; font-weight: 500; }
.sev { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .45rem; border-radius: 6px; height: fit-content; }
.sev-high { background: rgba(248, 113, 113, .15); color: var(--danger); }
.sev-mid { background: rgba(245, 183, 74, .15); color: var(--warn); }
.report-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.link-like { color: var(--accent); font-weight: 700; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step p { color: var(--muted); margin: 0; }
.step-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 1.1rem; background: var(--bg); }
.step-num {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(45, 212, 191, .12); color: var(--accent); font-weight: 800; margin-bottom: .9rem;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split p { color: #c9d2e3; }
.split-reverse { grid-template-columns: 1fr 1.1fr; }
.section-waves { background: linear-gradient(rgba(15, 22, 41, .55), rgba(15, 22, 41, .55)), url("images/bg-waves.webp") center / cover no-repeat, var(--bg-alt); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .6rem; }

/* Flashcard */
.flashcard {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem; max-width: 440px; justify-self: center;
}
.flashcard-tag { font-size: .78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.flashcard-q { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.flashcard-a { color: #c9d2e3; border-top: 1px dashed var(--border); padding-top: 1rem; }
.flashcard-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.2rem; }
.flashcard-actions span { text-align: center; font-size: .85rem; padding: .45rem 0; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); }
.flashcard-actions .on { background: rgba(45, 212, 191, .14); border-color: var(--accent); color: var(--accent); font-weight: 700; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.4rem; }
.trust > div { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.trust p { color: var(--muted); margin: 0; }

/* Join form */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 650; font-size: .92rem; margin: .9rem 0 .35rem; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input[type=email], .form-card input[type=text], .form-card input:not([type]), .form-card select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem;
}
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-card .consent { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 1.1rem; }
.form-card .consent input { margin-top: .3rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-card.success h3 { color: var(--accent); }
.result-card { max-width: 560px; margin: 2rem auto; text-align: center; }
.result-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.result-card p { color: #c9d2e3; }
.result-card .btn { margin-top: .6rem; }
.form-error { color: var(--danger); margin: .8rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.validation-message { color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.invalid { outline: 1px solid var(--danger) !important; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .8rem 0 0; }

/* Legal pages */
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: #c9d2e3; }
.draft-note { background: rgba(245, 183, 74, .12); border: 1px solid rgba(245, 183, 74, .4); color: var(--warn) !important; padding: .7rem 1rem; border-radius: 10px; }

/* Responsive */
@media (max-width: 900px) {
    .split, .split-reverse, .join { grid-template-columns: 1fr; gap: 2.2rem; }
    .split-reverse > .report-card { order: 2; }
    .steps, .trust { grid-template-columns: 1fr; }
    .header-nav a:not(.btn) { display: none; }
    .hero { min-height: 0; padding: 3rem 0 3.5rem; }
    .hero-art img { object-position: 78% center; }
    .hero-art::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 16, 32, .82) 45%, rgba(11, 16, 32, .6) 100%); }
    .step-art { aspect-ratio: 16 / 9; }
}

/* Blazor error UI */
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
