/* Career Fixx — home page only, on top of cf-gloss-site.css (tokens, glossy buttons, clay cards,
   framed banners for every page): the hero in its rounded lavender frame with the violet ribbon,
   the four feature cards, "Scroll for more", and the sections' Urbanist type.
   Loaded after the layout's stylesheets (@stack('css-last')). */

/* ══ Home tokens ══════════════════════════════════════════════════════ */
html {
    --gl-font: 'Urbanist', sans-serif;
    /* hero, as it was: lavender, ink title, violet "Monetize." */
    --gl-frame: linear-gradient(135deg, #e9d9fd 0%, #d6cbfd 38%, #f1ecff 66%, #cdbdfb 100%);
    --gl-hero-ink: #212121;
    --gl-hero-text: #26232f;
    --gl-hero-grad: linear-gradient(100deg, #7c14ea 0%, #6d28d9 55%, #9333ea 100%);
}
html[data-theme="dark"] {
    --gl-frame: #0c0820;
    --gl-hero-ink: #ffffff;
    --gl-hero-text: #d3cdef;
    --gl-hero-grad: linear-gradient(100deg, #b46cff 0%, #a855f7 50%, #c4b5fd 100%);
}

/* ══ Type ═════════════════════════════════════════════════════════════ */
html[data-theme] body { font-family: var(--gl-font); }
html body :is(h1, h2, h3, h4, h5, h6, .title) { font-family: var(--gl-font); }
html body :is(.cfx-sl, .cfx-mgr) { font-family: var(--gl-font); }
.cfx-gl-btn { font-family: var(--gl-font); }

/* ══ Hero ═════════════════════════════════════════════════════════════ */
html body .rbt-splash-slider.cfx-gh { position: relative; padding: 16px 16px 0; background: transparent; }
.cfx-gh-frame {
    position: relative;
    isolation: isolate;
    padding: 150px 48px 120px;
    overflow: hidden;
    border-radius: 40px;
    background: var(--gl-frame);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), inset 0 -8px 0 rgba(91, 33, 182, .06);
}
.cfx-gh-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
html[data-theme="dark"] .cfx-gh-art { opacity: .28; }
html[data-theme="dark"] .cfx-gh-frame { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }

/* copy on the left, the student on the right */
.cfx-gh-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 16px; max-width: 1392px; min-height: 560px; margin: 0 auto; }
.cfx-gh-copy { position: relative; }

html body .cfx-gh .cfx-gh-title {
    margin: 0 0 16px;
    color: var(--gl-hero-ink);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 3.9vw, 58px);
    font-weight: 800;
    line-height: 1.14;
    text-transform: uppercase;
    letter-spacing: -.015em;
}
.cfx-gh-grad {
    display: inline-block;
    padding-bottom: .06em;
    background: var(--gl-hero-grad);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
html body .cfx-gh .cfx-gh-desc {
    max-width: 590px;
    margin: 0;
    color: var(--gl-hero-text);
    font-family: var(--gl-font);
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}
.cfx-gh-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cfx-gh-btns .cfx-gl-btn i { font-size: 16px; }
html body .cfx-gh .cfx-gh-line { display: block; font-family: 'Poppins', sans-serif; }
@media (min-width: 1200px) {
    html body .cfx-gh .cfx-gh-line { white-space: nowrap; }
    html body .cfx-gh .cfx-gh-title { font-size: clamp(38px, 3.35vw, 52px); font-weight: 700; }
    .cfx-gh-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
html body .cfx-gh .cfx-gh-script { padding-right: .04em; font-family: 'Elsie', serif; font-size: 1.18em; font-weight: 400; line-height: 1; letter-spacing: -.02em; text-transform: none; }
html body .cfx-gh .cfx-gh-desc,
html body .cfx-gh .cfx-gh-btns .cfx-gl-btn { font-family: 'Poppins', sans-serif; }
html body .cfx-gh .cfx-gh-btns .cfx-gl-btn { font-size: 13px; font-weight: 600; text-transform: uppercase; }

.cfx-gh-visual { position: relative; display: flex; justify-content: center; }
.cfx-gh-img { position: relative; width: 100%; max-width: 600px; max-height: 470px; height: auto; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(50, 10, 120, .22)); animation: cfxGlBob 6s ease-in-out infinite; }
@keyframes cfxGlBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* floating tool tiles: dark with the violet edge they had, plus the sheen */
.cfx-gh-tool {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--gl-sheen), linear-gradient(#0b0614, #0b0614);
    box-shadow: 0 5px 0 #4c1de0, 0 16px 26px rgba(76, 29, 224, .35), inset 0 -8px 14px rgba(124, 58, 237, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #efe4ff;
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    rotate: var(--tilt);
    animation: cfxGlFloat 6s ease-in-out infinite;
}
.cfx-gh-tool.is-ae { top: 150px; left: 11.8%; --tilt: 9deg; }
.cfx-gh-tool.is-ux { top: 104px; left: 59%; --tilt: 12deg; animation-delay: -1.5s; }
.cfx-gh-tool.is-ui { top: 188px; left: 38.8%; --tilt: -10deg; animation-delay: -3s; }
.cfx-gh-tool.is-pr { bottom: 110px; left: 43.6%; --tilt: -14deg; animation-delay: -4.5s; }
@keyframes cfxGlFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* "Scroll for more": a tab cut into the bottom of the frame */
.cfx-gh-scroll {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 40px 12px;
    border-radius: 40px 40px 0 0;
    background: var(--gl-page);
    color: var(--gl-ink);
    font-size: 16px;
    white-space: nowrap;
    transform: translateX(-50%);
}
.cfx-gh-scroll::before,
.cfx-gh-scroll::after { content: ''; position: absolute; bottom: 0; width: 32px; height: 32px; }
.cfx-gh-scroll::before { right: 100%; background: radial-gradient(circle at 0 0, transparent 32px, var(--gl-page) 32.5px); }
.cfx-gh-scroll::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 32px, var(--gl-page) 32.5px); }
.cfx-gh-scroll span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--gl-accent); font-size: 14px; animation: cfxGlNudge 2s ease-in-out infinite; }
html[data-theme="dark"] .cfx-gh-scroll span { color: #d8b4fe; }
.cfx-gh-scroll:hover { color: var(--gl-accent); }
html[data-theme="dark"] .cfx-gh-scroll:hover { color: #d8b4fe; }
@keyframes cfxGlNudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }

/* four clay cards under the frame */
.cfx-gh-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1360px; margin: 40px auto 0; padding: 0 16px; }
.cfx-gh-feat {
    position: relative;
    padding: 28px 26px 32px;
    border-radius: 32px;
    background: var(--gl-card);
    box-shadow: var(--gl-clay);
    transition: transform .35s ease, box-shadow .35s ease;
}
.cfx-gh-feat:hover { box-shadow: var(--gl-clay-hover); }
.cfx-gh-feat-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: var(--gl-sheen), linear-gradient(135deg, #9b3cf6, #5b21b6); box-shadow: inset 0 -4px 0 rgba(30, 5, 70, .35), inset 0 2px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(91, 33, 182, .25); }
.cfx-gh-feat-icon img { width: 30px; height: 30px; object-fit: contain; }
html body .cfx-gh-feat .title { margin: 22px 0 8px; color: var(--gl-ink); font-size: 21px; font-weight: 600; line-height: 1.3; }
html body .cfx-gh-feat p { margin: 0; color: var(--gl-text); font-size: 15px; line-height: 1.6; text-align: left; }
.cfx-gh-feat-num { position: absolute; top: 26px; right: 26px; color: var(--gl-muted); font-size: 14px; }
.cfx-gh-feat-num::before { content: '('; }
.cfx-gh-feat-num::after { content: ')'; }

/* ══ Smaller screens ══════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .cfx-gh-frame { padding: 112px 24px 110px; }
    .cfx-gh-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; min-height: 0; }
    html body .cfx-gh .cfx-gh-desc { font-size: 17px; }
    .cfx-gh-img { max-height: 380px; }
    .cfx-gh-tool { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; }
    .cfx-gh-tool.is-ui, .cfx-gh-tool.is-pr { display: none; }
    .cfx-gh-tool.is-ae { top: 84px; left: 42%; }
    .cfx-gh-tool.is-ux { top: 84px; left: auto; right: 5%; }
    .cfx-gh-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .cfx-gh-frame { border-radius: 32px; }
    .cfx-gh-row { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .cfx-gh-visual { order: -1; }
    .cfx-gh-img { max-width: 440px; max-height: 340px; }
    html body .cfx-gh .cfx-gh-desc { margin: 0 auto; text-align: center; }
    .cfx-gh-btns { justify-content: center; }
}
@media (max-width: 767.98px) {
    html body .rbt-splash-slider.cfx-gh { padding: 10px 10px 0; }
    .cfx-gh-frame { padding: 94px 14px 92px; border-radius: 26px; }
    /* narrow screens: the ribbon runs behind the text, so keep it faint */
    .cfx-gh-art { opacity: .22; }
    .cfx-gh-img { max-width: 340px; max-height: 270px; }
    html body .cfx-gh .cfx-gh-title { margin: 14px 0 12px; }
    html body .cfx-gh .cfx-gh-desc { font-size: 15.5px; line-height: 1.55; }
    .cfx-gh-btns { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
    .cfx-gh-btns .cfx-gl-btn { flex: 1 1 auto; gap: 6px; padding: 12px; font-size: 14.5px; white-space: nowrap; }
    html body .cfx-gh .cfx-gh-btns .cfx-gl-btn { font-size: 12px; }
    .cfx-gh-tool { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
    .cfx-gh-scroll { padding: 12px 26px 10px; font-size: 14px; }
    .cfx-gh-feats { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; padding: 0 10px; }
    .cfx-gh-feat { padding: 24px 22px 26px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .cfx-gh-tool, .cfx-gh-img, .cfx-gh-scroll span { animation: none; }
}
