/* =========================================================================
   Advance Careers UK — REBRAND CONCEPT
   "Bold Gradient SaaS" — fully self-contained, no Bootstrap dependency.
   ========================================================================= */

:root {
    --bg: #06070d;
    --bg-1: #0a0c18;
    --bg-2: #10142a;
    --panel: rgba(255, 255, 255, .045);
    --panel-strong: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);

    --ink: #f6f7fb;
    --ink-dim: #a6adc9;
    --ink-faint: #6b7290;

    --violet: #8b5cf6;
    --violet-2: #c4b5fd;
    --orange: #ff7a45;
    --orange-2: #ffb545;
    --blue: #4f7bff;

    --grad-brand: linear-gradient(135deg, var(--violet), var(--blue) 55%, var(--orange));
    --grad-text: linear-gradient(90deg, #ffffff, #c8cdfb 45%, #ffd7b0);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 60px rgba(0, 0, 0, .55);
    --shadow-violet: 0 20px 60px -12px rgba(139, 92, 246, .45);
    --shadow-orange: 0 20px 60px -12px rgba(255, 122, 69, .35);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

.rb * { box-sizing: border-box; }

.rb {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.rb img { max-width: 100%; display: block; }
.rb a { color: inherit; text-decoration: none; }
.rb ul { list-style: none; margin: 0; padding: 0; }
.rb h1, .rb h2, .rb h3, .rb h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
}

.rb-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.rb-section { padding: 6.5rem 0; position: relative; }

@media (max-width: 767px) {
    .rb-section { padding: 3.5rem 0; }
}

/* ---- background mesh ---------------------------------------------------- */

.rb-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rb-mesh::before, .rb-mesh::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
}

.rb-mesh::before {
    background: var(--violet);
    top: -20vw;
    left: -10vw;
}

.rb-mesh::after {
    background: var(--orange);
    top: 5vw;
    right: -18vw;
    opacity: .35;
}

.rb-mesh.rb-mesh-blue::before { background: var(--blue); opacity: .4; }
.rb-mesh.rb-mesh-blue::after { background: var(--violet); }

/* ---- eyebrow / labels ----------------------------------------------------- */

.rb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--violet-2);
    background: var(--panel);
    border: 1px solid var(--border);
    padding: .5rem 1.1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.rb-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 12px var(--orange);
}

.rb-h2 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    margin-bottom: 1rem;
}

.rb-lede {
    color: var(--ink-dim);
    font-size: 1.1rem;
    max-width: 620px;
}

.rb-center { text-align: center; margin-left: auto; margin-right: auto; }

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

.rb-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    padding: .95rem 1.9rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}

.rb-btn-grad {
    background: var(--grad-brand);
    color: #0a0a14;
    box-shadow: var(--shadow-violet);
}

.rb-btn-grad:hover { transform: translateY(-3px); filter: brightness(1.08); }

.rb-btn-ghost {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    color: var(--ink);
}

.rb-btn-ghost:hover { background: var(--panel-strong); transform: translateY(-3px); }

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

.rb-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 7, 13, .72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.rb-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.rb-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.rb-logo-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-violet);
}

.rb-nav-links {
    display: flex;
    align-items: center;
    gap: 2.1rem;
}

.rb-nav-links a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-dim);
    transition: color .2s var(--ease);
}

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

.rb-nav-mobile-toggle {
    display: none;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--ink);
    border-radius: 10px;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .rb-nav-links { display: none; }
    .rb-nav-mobile-toggle { display: flex; }
}

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

.rb-hero {
    position: relative;
    padding: 7rem 0 5rem;
}

.rb-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .rb-hero-grid { grid-template-columns: 1fr; }
}

.rb-hero h1 {
    font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--ink);
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.rb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.25rem 0 2.75rem;
}

.rb-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.rb-hero-stats .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--violet-2);
    -webkit-text-fill-color: transparent;
}

.rb-hero-stats .label { font-size: .82rem; color: var(--ink-faint); margin-top: .2rem; }

/* hero visual */
.rb-hero-visual { position: relative; }

.rb-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-glow);
    transform: rotate(2.5deg);
}

.rb-photo-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.rb-photo-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(139, 92, 246, .35), transparent 45%, rgba(255, 122, 69, .28));
    mix-blend-mode: color;
}

.rb-float-card {
    position: absolute;
    background: rgba(12, 14, 26, .8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: .85rem;
}

.rb-float-card .ic {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.rb-float-card .t1 { font-weight: 700; font-family: var(--font-display); font-size: .95rem; }
.rb-float-card .t2 { font-size: .78rem; color: var(--ink-faint); }

.rb-float-1 { top: -8%; right: -8%; transform: rotate(-4deg); }
.rb-float-2 { bottom: -6%; left: -10%; transform: rotate(3deg); }

@media (max-width: 600px) {
    .rb-photo-card { transform: none; }
    .rb-float-card { position: static; transform: none; margin-top: 1rem; }
}

/* ---- bento grid ------------------------------------------------------------- */

.rb-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .rb-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .rb-bento { grid-template-columns: 1fr; }
}

.rb-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    position: relative;
    overflow: hidden;
}

.rb-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--panel-strong);
}

.rb-card .ic {
    width: 48px; height: 48px;
    border-radius: 13px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-violet);
}

.rb-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.rb-card p { color: var(--ink-dim); font-size: .92rem; margin: 0; }

.rb-span-2 { grid-column: span 2; }
.rb-span-4 { grid-column: span 4; }

@media (max-width: 900px) {
    .rb-span-2, .rb-span-4 { grid-column: span 2; }
}

@media (max-width: 560px) {
    .rb-span-2, .rb-span-4 { grid-column: span 1; }
}

.rb-card-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rb-card-feature .big-stat {
    font-family: var(--font-display);
    font-size: 3rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--violet-2);
    -webkit-text-fill-color: transparent;
}

/* ---- course cards ------------------------------------------------------------ */

.rb-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 991px) { .rb-course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rb-course-grid { grid-template-columns: 1fr; } }

.rb-course-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
    display: flex;
    flex-direction: column;
}

.rb-course-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }

.rb-course-media {
    position: relative;
    height: 170px;
}

.rb-course-media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(0) contrast(1.1) brightness(.85);
    transition: filter .4s var(--ease);
}

.rb-course-card:hover .rb-course-media img { filter: saturate(.6) contrast(1.05) brightness(.95); }

.rb-course-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(139, 92, 246, .55), rgba(255, 122, 69, .35));
    mix-blend-mode: hue;
}

.rb-course-tag {
    position: absolute;
    top: .85rem; left: .85rem;
    z-index: 2;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(6, 7, 13, .75);
    border: 1px solid var(--border-strong);
    padding: .35rem .7rem;
    border-radius: var(--radius-pill);
}

.rb-course-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.rb-course-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.rb-course-body p { color: var(--ink-dim); font-size: .87rem; flex-grow: 1; }

.rb-course-link {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .88rem;
    color: var(--violet-2);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ---- process timeline ---------------------------------------------------------- */

.rb-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

@media (max-width: 1100px) { .rb-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rb-timeline { grid-template-columns: 1fr; } }

.rb-timeline-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.rb-timeline-num {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-faint);
    margin-bottom: 1rem;
    display: block;
}

.rb-timeline-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.rb-timeline-card ul { color: var(--ink-dim); font-size: .9rem; }
.rb-timeline-card li { padding-left: 1.2rem; position: relative; margin-bottom: .55rem; }
.rb-timeline-card li::before {
    content: '';
    position: absolute; left: 0; top: .5em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--grad-brand);
}

/* ---- stats banner ---------------------------------------------------------------- */

.rb-stats-banner {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(79,123,255,.12) 50%, rgba(255,122,69,.15));
    border: 1px solid var(--border-strong);
    padding: 3.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 800px) { .rb-stats-banner { grid-template-columns: repeat(2, 1fr); } }

.rb-stats-banner .num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
}

.rb-stats-banner .label { color: var(--ink-dim); font-size: .85rem; margin-top: .3rem; }

/* ---- testimonials ------------------------------------------------------------------ */

.rb-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) { .rb-testi-grid { grid-template-columns: 1fr; } }

.rb-testi-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
}

.rb-testi-quote {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--violet-2);
    margin-bottom: .75rem;
    display: block;
}

.rb-testi-card p { color: var(--ink-dim); font-size: .92rem; margin-bottom: 1.5rem; }

.rb-testi-person { display: flex; align-items: center; gap: .8rem; }

.rb-testi-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-strong);
    filter: grayscale(.3);
}

.rb-testi-person .name { font-weight: 700; font-size: .88rem; }
.rb-testi-person .role { font-size: .76rem; color: var(--ink-faint); }

/* ---- CTA banner ------------------------------------------------------------------- */

.rb-cta {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 4.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-strong);
    background: var(--bg-2);
}

.rb-cta h2 {
    font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
    max-width: 700px;
    margin: 0 auto 1.25rem;
}

.rb-cta p { color: var(--ink-dim); max-width: 520px; margin: 0 auto 2.25rem; }

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

.rb-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

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

@media (max-width: 800px) { .rb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .rb-footer-grid { grid-template-columns: 1fr; } }

.rb-footer h5 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1.1rem;
}

.rb-footer li { margin-bottom: .65rem; }
.rb-footer a { color: var(--ink-dim); font-size: .9rem; transition: color .2s var(--ease); }
.rb-footer a:hover { color: var(--ink); }

.rb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--ink-faint);
}

.rb-social { display: flex; gap: .6rem; }
.rb-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all .2s var(--ease);
}
.rb-social a:hover { background: var(--grad-brand); color: #0a0a14; transform: translateY(-2px); }

/* ---- version switch pill ---------------------------------------------------------------- */

.rb-version-pill {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    gap: .3rem;
    background: rgba(10, 12, 24, .85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: .35rem;
    box-shadow: var(--shadow-glow);
}

.rb-version-pill a {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-pill);
    color: var(--ink-dim);
}

.rb-version-pill a.active {
    background: var(--grad-brand);
    color: #0a0a14;
}
