/* ==========================================================================
   RazorEdge brand theme - red / black
   Change brand colors here (and in wwwroot/js/charts.js palette) only.
   ========================================================================== */
:root {
    --re-red: #e01e2b;
    --re-red-bright: #ff3b47;
    --re-red-deep: #9e111b;
    --re-black: #0a0a0b;
    --re-surface: #131316;
    --re-surface-2: #1b1b20;
    --re-border: #2a2a31;
    --re-text: #ececf0;
    --re-muted: #9a9aa6;

    --bs-body-bg: var(--re-black);
    --bs-body-color: var(--re-text);
    --bs-primary: var(--re-red);
    --bs-primary-rgb: 224, 30, 43;
    --bs-link-color: var(--re-red-bright);
    --bs-link-color-rgb: 255, 59, 71;
    --bs-link-hover-color: #ff7a83;
    --bs-border-color: var(--re-border);
}

html { scroll-behavior: smooth; }

body {
    background: var(--re-black);
    color: var(--re-text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.re-main { flex: 1 0 auto; padding-top: 72px; }

h1, h2, h3, h4 { letter-spacing: -0.01em; font-weight: 700; }
.re-accent { color: var(--re-red); }
.text-muted, .re-muted { color: var(--re-muted) !important; }

/* ---- Navbar ---- */
.re-navbar {
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--re-border);
}
.re-navbar::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--re-red), transparent 60%);
}
.re-brand { display: inline-flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.re-logo { height: 52px; width: auto; display: block; }
@media (max-width: 575.98px) { .re-logo { height: 42px; } }
.re-navbar .nav-link { color: var(--re-muted); font-weight: 500; }
.re-navbar .nav-link:hover,
.re-navbar .nav-link:focus { color: #fff; }

/* ---- Buttons ---- */
.btn-re, .btn-re-outline {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border-radius: 4px; line-height: 1.5;
}
.btn-re:not(.btn-sm), .btn-re-outline:not(.btn-sm) { padding: .65rem 1.4rem; }
.btn-re { background: var(--re-red); border: 1px solid var(--re-red); color: #fff; }
.btn-re:hover { background: var(--re-red-bright); border-color: var(--re-red-bright); color: #fff; }
.btn-re-outline { background: transparent; border: 1px solid var(--re-red); color: #fff; }
.btn-re-outline:hover { background: var(--re-red); color: #fff; }

/* ---- Hero ---- */
.re-hero {
    position: relative; overflow: hidden;
    padding: 7rem 0 6rem;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(224, 30, 43, .28), transparent 60%),
        linear-gradient(180deg, #0f0f12 0%, var(--re-black) 100%);
    border-bottom: 1px solid var(--re-border);
}
.re-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--re-border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--re-border) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .25;
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
}
.re-hero .container { position: relative; }
.re-eyebrow { color: var(--re-red-bright); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; }
.re-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.re-lead { color: var(--re-muted); font-size: 1.2rem; max-width: 40rem; }

/* ---- Sections / cards ---- */
.re-section { padding: 4.5rem 0; }
.re-section-alt { background: var(--re-surface); border-top: 1px solid var(--re-border); border-bottom: 1px solid var(--re-border); }
.re-page-header { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--re-border); background: linear-gradient(180deg, #101013, var(--re-black)); }

.re-card {
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: 6px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
}
.re-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
    background: var(--re-red); opacity: 0; transition: opacity .2s ease;
}
.re-card:hover { border-color: #3a3a44; transform: translateY(-2px); }
.re-card:hover::before { opacity: 1; }
.re-card h3, .re-card h4 { font-size: 1.15rem; }
.re-card p { color: var(--re-muted); margin-bottom: 0; }

.re-icon {
    width: 44px; height: 44px; border-radius: 6px; margin-bottom: 1rem;
    display: grid; place-items: center;
    background: rgba(224, 30, 43, .12); color: var(--re-red-bright); border: 1px solid rgba(224, 30, 43, .35);
    font-weight: 800;
}

.re-chart-wrap { position: relative; height: 280px; }
.re-chart-wrap.tall { height: 340px; }

.re-tag {
    display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 600;
    border: 1px solid var(--re-border); color: var(--re-muted); margin: 0 .35rem .35rem 0;
}
.re-tag.hot { border-color: rgba(224,30,43,.5); color: var(--re-red-bright); }

/* ---- Footer ---- */
.re-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--re-border);
    background: #070708; color: var(--re-muted);
    padding: 1.5rem 0; font-size: .9rem;
}
.re-footer a { color: var(--re-muted); text-decoration: none; }
.re-footer a:hover { color: #fff; }

/* ---- Portal placeholder ---- */
.re-portal-panel {
    max-width: 480px; margin: 0 auto;
    background: var(--re-surface); border: 1px solid var(--re-border); border-top: 3px solid var(--re-red);
    border-radius: 6px; padding: 2rem;
}
.form-control:disabled { background: var(--re-surface-2); border-color: var(--re-border); }

/* ---- Forms ---- */
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select {
    background: var(--re-surface-2); border: 1px solid var(--re-border); color: var(--re-text); border-radius: 4px;
}
.form-control::placeholder { color: #6b6b78; }
.form-control:focus {
    background: var(--re-surface-2); color: #fff;
    border-color: var(--re-red); box-shadow: 0 0 0 .2rem rgba(224, 30, 43, .25);
}
.re-field-error { color: var(--re-red-bright); font-size: .85rem; display: block; margin-top: .25rem; }
.form-control.input-validation-error { border-color: var(--re-red); }
.re-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.re-alert { border-radius: 6px; padding: 1rem 1.25rem; border: 1px solid var(--re-border); border-left-width: 3px; background: var(--re-surface); }
.re-alert-success { border-left-color: #3ecf8e; }
.re-alert-error { border-left-color: var(--re-red); }

/* ---- Capability cards / icons ---- */
.re-svg { display: block; }
.re-card-link { display: block; text-decoration: none; color: inherit; }
.re-card-link h3 { color: #fff; }
.re-card-link .re-more { display: inline-block; margin-top: 1rem; color: var(--re-red-bright); font-weight: 600; font-size: .9rem; }
.re-card-link:hover .re-more { color: #ff7a83; }
section[id] { scroll-margin-top: 72px; }

a.re-tag { text-decoration: none; }
a.re-tag:hover { border-color: rgba(224,30,43,.6); color: #fff; }

/* ---- Long-form text (privacy policy etc.) ---- */
.re-prose { max-width: 48rem; line-height: 1.75; color: #c9c9d1; }
.re-prose h2 { font-size: 1.25rem; color: #fff; margin: 2.25rem 0 .75rem; }
.re-prose p, .re-prose ul { margin-bottom: 1rem; }
.re-prose li { margin-bottom: .5rem; }
.re-prose strong { color: #fff; }
