/* Phenominal Consulting — marketing site styles
 * Dark theme adapted from neon-glass (digitalisstudios/neon-glass), dialed
 * back for a senior-compliance-memo register: dark base, glass surfaces,
 * subtle neon accents — no animated effects, no rainbow gradients.
 *
 * Pinned to Bootstrap 5.3.3.
 */

:root {
    /* Base palette (dark) */
    --bg:           #0b0f14;
    --bg-elev:      rgba(20, 26, 34, 0.75);
    --bg-soft:      rgba(14, 18, 24, 0.55);
    --glass-bg:     rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-strong: rgba(255, 255, 255, 0.14);
    --glass-blur:   blur(8px);

    /* Ink */
    --ink:          #f3f6fb;
    --ink-soft:     #c8d0db;
    --muted:        #8e98a8;
    --muted-soft:   #6b7585;
    --rule:         rgba(255, 255, 255, 0.08);

    /* Neon accents (used sparingly) */
    --neon-cyan:    #22d3ee;
    --neon-blue:    #0ea5ea;
    --neon-purple:  #7c3aed;
    --accent:       var(--neon-cyan);
    --accent-soft:  rgba(34, 211, 238, 0.12);
    --accent-glow:  0 0 18px rgba(34, 211, 238, 0.35);

    /* Type — sans-serif throughout. Inter for body, Space Grotesk for display. */
    --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* Surfaces */
    --shadow-base:   0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 10px 50px rgba(124, 58, 237, 0.18), 0 0 60px rgba(14, 165, 234, 0.12);

    /* Bootstrap variable bridges (for any Bootstrap components that survive) */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--glass-border);
}

/* Base */
html { scroll-behavior: smooth; background: var(--bg); }
body {
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 60% at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 110%, rgba(14, 165, 234, 0.12), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

h1, h2, h3, h4, .display-serif {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p, li { color: var(--ink-soft); }
strong, b { color: var(--ink); font-weight: 600; }
em { color: var(--ink); }
code {
    font-family: var(--mono);
    font-size: 0.9em;
    color: var(--neon-cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    border: 1px solid rgba(34, 211, 238, 0.18);
}

p.lead, .lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; }

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
    transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover {
    color: #fff;
    border-bottom-color: var(--neon-cyan);
}

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

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

.site-nav {
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-nav__brand {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -0.02em;
}
.site-nav__brand:hover { color: var(--neon-cyan); border-bottom: none; }
.site-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav__links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
}
.site-nav__links a:hover { color: var(--ink); border-bottom-color: transparent; }
.site-nav__links a.is-active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}
.site-nav__cta {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(124, 58, 237, 0.35);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.site-nav__cta:hover {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(124, 58, 237, 0.55), 0 0 30px rgba(34, 211, 238, 0.25);
}

.site-nav__toggle {
    background: none;
    border: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
}

@media (max-width: 767.98px) {
    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(11, 15, 20, 0.95);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
        padding: 0.5rem 1rem 1rem;
    }
    .site-nav__links.is-open { display: flex; }
    .site-nav__links a { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
    .site-nav__links a.is-active { border-bottom-color: var(--rule); color: var(--neon-cyan); }
    .site-nav__cta { margin-top: 0.5rem; text-align: center; }
}

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

.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.section--tint {
    background: linear-gradient(180deg, rgba(14, 18, 24, 0.6), rgba(20, 26, 34, 0.4));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.section--dark {
    background: rgba(8, 11, 16, 0.7);
    color: var(--ink);
}
.section__narrow { max-width: 720px; }
.section__header { margin-bottom: 2.5rem; max-width: 800px; }
.section__title { margin-bottom: 1rem; }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); }

@media (max-width: 767.98px) {
    .section { padding: 3rem 0; }
}

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

.hero {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, rgba(124, 58, 237, 0.20), transparent 65%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(14, 165, 234, 0.15), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero__eyebrow { color: var(--neon-cyan); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.5rem; max-width: 18ch; }
.hero__sub { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.5rem; }
.hero__credential {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 2.5rem 0;
    border-left: 2px solid var(--neon-cyan);
    padding: 0.25rem 0 0.25rem 1rem;
    box-shadow: -2px 0 18px rgba(34, 211, 238, 0.18);
}
.hero__cta { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 767.98px) {
    .hero { padding: 3.5rem 0; }
}

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

.btn-cta {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff !important;
    padding: 0.85rem 1.65rem;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-cta:hover {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55), 0 0 35px rgba(34, 211, 238, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.btn-cta--ghost {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--ink) !important;
    border-color: var(--glass-border-strong);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.btn-cta--ghost:hover {
    background: rgba(34, 211, 238, 0.08);
    color: #fff !important;
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 24px rgba(34, 211, 238, 0.3);
}

/* ---------- failure-mode block (glass card) ---------- */

.failure-mode {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 1.75rem;
    max-width: 72ch;
    box-shadow: var(--shadow-base);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.failure-mode:hover {
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: var(--neon-cyan);
    box-shadow: var(--shadow-base), 0 0 30px rgba(34, 211, 238, 0.12);
}
.failure-mode__looked {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem 0;
}
.failure-mode__looked em {
    font-style: normal;
    color: var(--neon-cyan);
}
.failure-mode__body p {
    color: var(--ink-soft);
    margin: 0 0 0.75rem 0;
}
.failure-mode__line {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0.4rem 0 0;
}
.failure-mode__label {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- stat ---------- */

.stat {
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
    position: relative;
}
.stat__number {
    font-family: var(--display);
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 60%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.045em;
    margin-bottom: 0.5rem;
}
.stat__label {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.stat__source {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
}

/* ---------- outcome comparison ---------- */

.outcomes {
    border-top: 1px solid var(--rule);
}
.outcome-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
}
.outcome-row__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--neon-cyan);
    grid-column: 1 / -1;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}
.outcome-cell { color: var(--ink-soft); }
.outcome-cell strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA block ---------- */

.cta-block {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-base);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.18), transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.cta-block__headline {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--ink);
}
.cta-block__sub { color: var(--ink-soft); margin-bottom: 2rem; }
.cta-block__actions { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-block__mailto {
    font-size: 0.95rem;
    color: var(--muted);
    border-bottom-color: transparent;
}
.cta-block__mailto:hover { color: var(--neon-cyan); border-bottom-color: rgba(34, 211, 238, 0.3); }

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

.site-footer {
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--ink-soft);
    border-top: 1px solid var(--glass-border);
}
.site-footer a {
    color: var(--ink-soft);
    border-bottom-color: transparent;
}
.site-footer a:hover {
    color: var(--neon-cyan);
    border-bottom-color: rgba(34, 211, 238, 0.3);
}
.site-footer__brand {
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.site-footer__tag { color: var(--muted); font-size: 0.95rem; max-width: 32ch; }
.site-footer__heading {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.site-footer__bottom {
    border-top: 1px solid var(--rule);
    color: var(--muted-soft);
}
.site-footer .text-muted { color: var(--muted-soft) !important; }

/* ---------- list treatments ---------- */

.bullet-clean {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.25rem 0;
}
.bullet-clean li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--ink-soft);
}
.bullet-clean li::before {
    content: "—";
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
    top: 0;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem 1.5rem;
    margin: 0;
}
.kv dt { color: var(--muted); font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.kv dd { margin: 0; color: var(--ink); }

@media (max-width: 575.98px) {
    .kv { grid-template-columns: 1fr; gap: 0.25rem; }
    .kv dt { color: var(--neon-cyan); }
}

/* ---------- skip link ---------- */

.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-within {
    background: var(--bg-elev);
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
