/*
 * Home experience v2
 * Loaded after global responsive styles. All selectors are page-scoped so the
 * redesign cannot leak into courses, profile, basket, admin, or auth pages.
 */

:where(.home-hero-v2, .home-learning-v2),
:where(.home-hero-v2, .home-learning-v2) * {
    box-sizing: border-box;
}

:where(.home-hero-v2, .home-learning-v2) a {
    text-decoration: none;
}

:where(.home-hero-v2, .home-learning-v2) svg {
    display: block;
}

.home-kicker-v2 {
    width: max-content;
    max-width: 100%;
    min-height: 38px;
    padding-inline: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border-soft));
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.home-kicker-v2 svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Shared home buttons
   -------------------------------------------------------------------------- */
.home-button-v2 {
    min-width: 0;
    min-height: 50px;
    padding-inline: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background-color .22s ease,
        border-color .22s ease;
}

.home-button-v2 svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.home-button-v2--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow:
        0 15px 34px rgba(79, 70, 229, .24),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.home-button-v2--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 42px rgba(79, 70, 229, .34),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

.home-button-v2--secondary {
    color: var(--text-primary);
    border-color: var(--border-soft);
    background: color-mix(in srgb, var(--bg-card) 86%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.home-button-v2--secondary:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border-soft));
    background: var(--bg-card-hover);
}

.home-button-v2:focus-visible,
.home-learning-v2 a:focus-visible,
.home-hero-v2 a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 34%, transparent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.home-hero-v2 {
    width: 100%;
    min-height: min(760px, calc(100svh - var(--header-desktop, 80px)));
    padding-block: clamp(56px, 6vw, 88px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 22%, rgba(79, 124, 255, .16), transparent 31%),
        radial-gradient(circle at 12% 78%, rgba(124, 58, 237, .16), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-page) 88%, var(--primary) 12%), var(--bg-page));
}

.home-hero-v2::before {
    content: "";
    position: absolute;
    inset: 18px max(16px, calc((100% - 1390px) / 2));
    z-index: -2;
    border: 1px solid color-mix(in srgb, var(--border-soft) 74%, transparent);
    border-radius: 36px;
    pointer-events: none;
}

.home-hero-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .33;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--border-soft) 26%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--border-soft) 26%, transparent) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.home-hero-v2__orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
}

.home-hero-v2__orb--one {
    width: 320px;
    height: 320px;
    top: -130px;
    right: 7%;
    background: rgba(34, 211, 238, .16);
}

.home-hero-v2__orb--two {
    width: 400px;
    height: 400px;
    bottom: -230px;
    left: 9%;
    background: rgba(124, 58, 237, .24);
}

.home-hero-v2__container {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(460px, 1.07fr);
    align-items: center;
    gap: clamp(36px, 5vw, 76px);
    direction: rtl;
}

.home-hero-v2__content {
    min-width: 0;
    max-width: 650px;
    justify-self: start;
}

.home-hero-v2__title {
    max-width: 630px;
    margin: 17px 0 0;
    color: var(--text-primary);
    font-size: clamp(37px, 3.45vw, 52px);
    font-weight: 900;
    line-height: 1.42;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.home-hero-v2__title span {
    display: block;
    color: transparent;
    background: linear-gradient(125deg, #22d3ee 0%, var(--primary) 45%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.home-hero-v2__description {
    max-width: 620px;
    margin: 19px 0 0;
    color: var(--text-secondary);
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 500;
    line-height: 2;
    text-wrap: pretty;
}

.home-hero-v2__description .brand-text {
    font-weight: 900;
}

.home-hero-v2__actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.home-hero-v2__actions .home-button-v2 {
    min-width: 174px;
}

.home-proof-v2 {
    width: min(100%, 630px);
    min-height: 78px;
    margin-top: 27px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: color-mix(in srgb, var(--bg-card) 82%, transparent);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px);
}

.home-proof-v2__members {
    display: flex;
    align-items: center;
    direction: ltr;
    padding-inline-start: 7px;
}

.home-proof-v2__member {
    width: 42px;
    height: 42px;
    margin-left: -9px;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    color: #fff;
    background: #172036;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}

.home-proof-v2__member:hover {
    z-index: 2;
    transform: translateY(-3px);
}

.home-proof-v2__member i {
    font-size: 20px;
}

.home-proof-v2__member svg {
    width: 21px;
    height: 21px;
}

.home-proof-v2__member--python {
    color: #ffe56f;
    background: linear-gradient(145deg, #173a61, #2f6fa3);
}

.home-proof-v2__member--django {
    color: #d1fae5;
    background: linear-gradient(145deg, #073f30, #0f7255);
}

.home-proof-v2__member--code {
    color: #e9d5ff;
    background: linear-gradient(145deg, #42236d, #7046b7);
}

.home-proof-v2__member--count {
    margin-left: 0;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 900;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
}

.home-proof-v2__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-proof-v2__copy strong {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.55;
}

.home-proof-v2__copy span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.55;
}

.home-proof-v2__rating {
    min-width: 102px;
    padding-inline-start: 14px;
    display: flex;
    flex-direction: column;
    border-inline-start: 1px solid var(--border-soft);
}

.home-proof-v2__rating > span:last-child {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
}

.home-proof-v2__stars {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 900;
}

.home-proof-v2__stars svg {
    width: 15px;
    height: 15px;
    color: #f59e0b;
}

.home-hero-v2__highlights {
    margin-top: 17px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.home-hero-v2__highlights > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.home-hero-v2__highlights svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Hero product preview */
.home-hero-v2__visual {
    width: 100%;
    min-width: 0;
    min-height: 540px;
    display: grid;
    place-items: center;
    position: relative;
    direction: rtl;
}

.learning-os-v2 {
    width: min(660px, calc(100% - 34px));
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 29px;
    color: #e2e8f0;
    background:
        linear-gradient(145deg, rgba(17, 25, 43, .98), rgba(6, 10, 20, .99));
    box-shadow:
        0 42px 100px rgba(15, 23, 42, .36),
        0 18px 46px rgba(79, 70, 229, .16),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: perspective(1200px) rotateY(2deg) rotateX(.8deg);
}

.learning-os-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .07), transparent 28%, transparent 72%, rgba(124, 58, 237, .08));
}

.learning-os-v2__header {
    min-height: 64px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: rgba(8, 13, 25, .78);
    backdrop-filter: blur(18px);
}

.learning-os-v2__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.learning-os-v2__logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #5b7cff, #7c3aed);
    box-shadow: 0 9px 23px rgba(79, 70, 229, .34);
}

.learning-os-v2__logo svg {
    width: 22px;
    height: 22px;
}

.learning-os-v2__brand > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.learning-os-v2__brand strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.learning-os-v2__brand small {
    margin-top: 3px;
    color: #718096;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .7px;
}

.learning-os-v2__live {
    min-height: 30px;
    padding-inline: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid rgba(52, 211, 153, .2);
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, .08);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.learning-os-v2__live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .1);
    animation: homeLivePulse 2s ease-out infinite;
}

.learning-os-v2__body {
    min-height: 398px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    direction: ltr;
}

.learning-os-v2__sidebar {
    padding: 14px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    border-right: 1px solid rgba(148, 163, 184, .12);
    background: rgba(7, 11, 21, .72);
}

.learning-os-v2__sidebar > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #64748b;
}

.learning-os-v2__sidebar > span.is-active {
    color: #c4b5fd;
    background: rgba(124, 58, 237, .16);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .17);
}

.learning-os-v2__sidebar svg {
    width: 19px;
    height: 19px;
}

.learning-os-v2__workspace {
    min-width: 0;
    padding: 17px;
    direction: rtl;
}

.learning-os-v2__welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.learning-os-v2__welcome > div:first-child {
    min-width: 0;
}

.learning-os-v2__welcome > div:first-child > span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
}

.learning-os-v2__welcome h3 {
    margin: 4px 0 0;
    overflow: hidden;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.learning-os-v2__stack {
    display: flex;
    align-items: center;
    direction: ltr;
    padding-left: 5px;
}

.learning-os-v2__stack > span {
    width: 31px;
    height: 31px;
    margin-left: -7px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 10px;
    color: #dbeafe;
    background: #111b2e;
    box-shadow: 0 6px 13px rgba(0, 0, 0, .22);
}

.learning-os-v2__stack i {
    font-size: 16px;
}

.learning-os-v2__project-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 12px;
    direction: rtl;
}

.learning-os-v2__project-card,
.learning-os-v2__terminal {
    min-width: 0;
    min-height: 226px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 18px;
    background: rgba(15, 23, 42, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.learning-os-v2__project-card {
    padding: 14px;
}

.learning-os-v2__project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.learning-os-v2__project-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 13px;
    color: #93c5fd;
    background: linear-gradient(145deg, rgba(59, 130, 246, .16), rgba(124, 58, 237, .08));
}

.learning-os-v2__project-icon svg {
    width: 22px;
    height: 22px;
}

.learning-os-v2__project-status {
    padding: 5px 7px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, .11);
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.learning-os-v2__project-card h4 {
    margin: 17px 0 0;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
}

.learning-os-v2__project-card p {
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.8;
}

.learning-os-v2__progress-meta {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 9px;
}

.learning-os-v2__progress-meta strong {
    color: #f8fafc;
    font-size: 10px;
}

.learning-os-v2__progress {
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #1d293b;
}

.learning-os-v2__progress span {
    width: 78%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #6366f1 58%, #a855f7);
    box-shadow: 0 0 18px rgba(99, 102, 241, .4);
}

.learning-os-v2__terminal {
    direction: ltr;
    background: #080d18;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.learning-os-v2__terminal > header {
    height: 36px;
    padding-inline: 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: #64748b;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    background: #0d1422;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 7px;
}

.learning-os-v2__terminal > header > span {
    display: flex;
    gap: 5px;
}

.learning-os-v2__terminal > header i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: #fb7185;
}

.learning-os-v2__terminal > header i:nth-child(2) {
    background: #fbbf24;
}

.learning-os-v2__terminal > header i:nth-child(3) {
    background: #34d399;
}

.learning-os-v2__terminal > header strong {
    color: #94a3b8;
    font-weight: 500;
}

.learning-os-v2__terminal > header small {
    justify-self: end;
    color: #64748b;
}

.learning-os-v2__terminal > div {
    padding-block: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 8px;
    line-height: 1.7;
}

.learning-os-v2__terminal code {
    min-height: 25px;
    padding-right: 9px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    color: #cbd5e1;
}

.learning-os-v2__terminal code b {
    color: #475569;
    font-weight: 400;
    text-align: center;
}

.learning-os-v2__terminal code span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.learning-os-v2__terminal code em {
    color: #c084fc;
    font-style: normal;
}

.learning-os-v2__terminal code mark {
    padding: 0;
    color: #86efac;
    background: transparent;
}

.learning-os-v2__terminal code.is-active {
    border-left: 2px solid #8b5cf6;
    background: linear-gradient(90deg, rgba(124, 58, 237, .17), transparent 78%);
}

.learning-os-v2__metrics {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 8px;
}

.learning-os-v2__metrics > span,
.learning-os-v2__metrics > a {
    min-width: 0;
    min-height: 52px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 13px;
    background: rgba(15, 23, 42, .64);
}

.learning-os-v2__metrics > span {
    flex-direction: column;
}

.learning-os-v2__metrics strong {
    color: #f8fafc;
    font-size: 11px;
    line-height: 1.25;
}

.learning-os-v2__metrics small {
    margin-top: 3px;
    color: #718096;
    font-size: 7px;
    white-space: nowrap;
}

.learning-os-v2__metrics > a {
    gap: 5px;
    color: #c4b5fd;
    border-color: rgba(124, 58, 237, .2);
    background: rgba(124, 58, 237, .09);
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.learning-os-v2__metrics > a svg {
    width: 13px;
    height: 13px;
}

.home-float-card-v2 {
    min-width: 168px;
    min-height: 68px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    position: absolute;
    z-index: 4;
    border: 1px solid color-mix(in srgb, var(--border-soft) 76%, transparent);
    border-radius: 17px;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
    animation: homeFloatCard 5s ease-in-out infinite;
}

.home-float-card-v2--career {
    top: 24px;
    left: 0;
}

.home-float-card-v2--streak {
    right: 0;
    bottom: 34px;
    animation-delay: -2.4s;
}

.home-float-card-v2__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: var(--accent-soft);
}

.home-float-card-v2--streak .home-float-card-v2__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, .11);
}

.home-float-card-v2__icon svg {
    width: 21px;
    height: 21px;
}

.home-float-card-v2 > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-float-card-v2 strong {
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}

.home-float-card-v2 small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Guided learning system
   -------------------------------------------------------------------------- */
.home-learning-v2 {
    width: 100%;
    padding-block: clamp(72px, 8vw, 112px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, rgba(34, 211, 238, .08), transparent 26%),
        radial-gradient(circle at 8% 86%, rgba(124, 58, 237, .11), transparent 29%),
        var(--bg-page);
}

.home-learning-v2__container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.home-learning-v2__intro {
    width: min(850px, 100%);
    margin-inline: auto;
    text-align: center;
}

.home-learning-v2__intro .home-kicker-v2 {
    margin-inline: auto;
}

.home-learning-v2__intro h2 {
    max-width: 830px;
    margin: 17px auto 0;
    color: var(--text-primary);
    font-size: clamp(31px, 3.4vw, 47px);
    font-weight: 900;
    line-height: 1.52;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.home-learning-v2__intro p {
    max-width: 720px;
    margin: 14px auto 0;
    color: var(--text-muted);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.95;
    text-wrap: pretty;
}

.home-learning-v2__shell {
    margin-top: clamp(38px, 5vw, 58px);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: stretch;
    gap: 24px;
    direction: ltr;
    border: 1px solid var(--border-soft);
    border-radius: 34px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 94%, var(--primary) 6%), var(--bg-card));
    box-shadow:
        0 34px 90px rgba(15, 23, 42, .12),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-roadmap-v2,
.home-learning-v2__content {
    min-width: 0;
    direction: rtl;
}

.home-roadmap-v2 {
    padding: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 25px;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 12% 5%, rgba(124, 58, 237, .2), transparent 27%),
        linear-gradient(145deg, #121b2d, #080d18 82%);
    box-shadow:
        0 24px 58px rgba(15, 23, 42, .24),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-roadmap-v2::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    left: -105px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .1);
    filter: blur(42px);
    pointer-events: none;
}

.home-roadmap-v2__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.home-roadmap-v2__header > div {
    min-width: 0;
}

.home-roadmap-v2__eyebrow {
    display: block;
    color: #94a3b8;
    font-size: 10px;
}

.home-roadmap-v2__header h3 {
    max-width: 390px;
    margin: 6px 0 0;
    color: #f8fafc;
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 900;
    line-height: 1.55;
    text-wrap: balance;
}

.home-roadmap-v2__level {
    min-height: 31px;
    padding-inline: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, .09);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.home-roadmap-v2__progress {
    margin-top: 19px;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 16px;
    background: rgba(15, 23, 42, .72);
}

.home-roadmap-v2__progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 10px;
}

.home-roadmap-v2__progress strong {
    color: #f8fafc;
    font-size: 11px;
}

.home-roadmap-v2__rail {
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #202b3e;
}

.home-roadmap-v2__rail span {
    width: 64%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #6366f1 58%, #a855f7);
    box-shadow: 0 0 18px rgba(99, 102, 241, .36);
}

.home-roadmap-v2__progress small {
    margin-top: 7px;
    display: block;
    color: #64748b;
    font-size: 8px;
}

.home-roadmap-v2__timeline {
    margin-top: 17px;
    display: grid;
    gap: 8px;
    position: relative;
}

.home-roadmap-v2__timeline::before {
    content: "";
    width: 1px;
    position: absolute;
    z-index: 0;
    inset-block: 27px;
    inset-inline-start: 19px;
    background: linear-gradient(to bottom, #10b981 0 38%, #6366f1 38% 63%, rgba(148, 163, 184, .17) 63% 100%);
}

.home-roadmap-step-v2 {
    min-width: 0;
    min-height: 64px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 15px;
    background: rgba(15, 23, 42, .74);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.home-roadmap-step-v2:hover {
    transform: translateX(-3px);
    border-color: rgba(148, 163, 184, .25);
}

.home-roadmap-step-v2.is-current {
    border-color: rgba(99, 102, 241, .38);
    background: linear-gradient(90deg, rgba(79, 124, 255, .13), rgba(124, 58, 237, .07));
    box-shadow: 0 12px 30px rgba(79, 70, 229, .1);
}

.home-roadmap-step-v2.is-locked {
    opacity: .62;
}

.home-roadmap-step-v2__node {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 12px;
    color: #94a3b8;
    background: #172033;
}

.home-roadmap-step-v2__node svg {
    width: 19px;
    height: 19px;
}

.home-roadmap-step-v2__node > span {
    font-size: 10px;
    font-weight: 900;
}

.home-roadmap-step-v2.is-complete .home-roadmap-step-v2__node {
    color: #34d399;
    border-color: rgba(52, 211, 153, .2);
    background: rgba(16, 185, 129, .1);
}

.home-roadmap-step-v2.is-current .home-roadmap-step-v2__node {
    border-color: rgba(99, 102, 241, .25);
    background: rgba(99, 102, 241, .13);
}

.home-roadmap-step-v2.is-current .home-roadmap-step-v2__node i {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 0 7px rgba(99, 102, 241, .12);
    animation: homeRoadmapPulse 2s ease-out infinite;
}

.home-roadmap-step-v2.is-next .home-roadmap-step-v2__node {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, .2);
    background: rgba(124, 58, 237, .09);
}

.home-roadmap-step-v2 > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-roadmap-step-v2 strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-roadmap-step-v2 small {
    margin-top: 3px;
    overflow: hidden;
    color: #718096;
    font-size: 9px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-roadmap-step-v2__badge {
    padding: 5px 7px;
    border-radius: 999px;
    color: #718096;
    background: rgba(148, 163, 184, .08);
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.home-roadmap-step-v2.is-complete .home-roadmap-step-v2__badge {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .09);
}

.home-roadmap-step-v2.is-current .home-roadmap-step-v2__badge {
    color: #c4b5fd;
    background: rgba(124, 58, 237, .1);
}

.home-roadmap-step-v2.is-next .home-roadmap-step-v2__badge {
    color: #93c5fd;
    background: rgba(59, 130, 246, .09);
}

.home-roadmap-v2__mentor {
    margin-top: 14px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    border: 1px dashed rgba(167, 139, 250, .25);
    border-radius: 15px;
    background: rgba(124, 58, 237, .06);
}

.home-roadmap-v2__mentor-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, .13);
}

.home-roadmap-v2__mentor-icon svg {
    width: 21px;
    height: 21px;
}

.home-roadmap-v2__mentor > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-roadmap-v2__mentor strong {
    color: #f8fafc;
    font-size: 11px;
    line-height: 1.5;
}

.home-roadmap-v2__mentor small {
    margin-top: 3px;
    overflow: hidden;
    color: #718096;
    font-size: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-roadmap-v2__online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #34d399;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.home-roadmap-v2__online i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .09);
}

.home-learning-v2__content {
    padding: clamp(24px, 3.1vw, 42px) clamp(18px, 2.6vw, 34px);
    align-self: center;
}

.home-learning-v2__label {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.home-learning-v2__label::before {
    content: "";
    width: 22px;
    height: 2px;
    margin-inline-end: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.home-learning-v2__content > h3 {
    max-width: 540px;
    margin: 13px 0 0;
    color: var(--text-primary);
    font-size: clamp(25px, 2.55vw, 36px);
    font-weight: 900;
    line-height: 1.58;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.home-learning-v2__content > p {
    max-width: 530px;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.9;
}

.home-benefits-v2 {
    margin-top: 23px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-benefit-v2 {
    min-width: 0;
    min-height: 112px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 17px;
    background: color-mix(in srgb, var(--bg-surface-strong) 72%, transparent);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-benefit-v2:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 36%, var(--border-soft));
    box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
}

.home-benefit-v2__check {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: 12px;
    color: #10b981;
    background: linear-gradient(145deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-benefit-v2__check svg {
    width: 21px;
    height: 21px;
}

.home-benefit-v2 > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-benefit-v2 strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
}

.home-benefit-v2 small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.75;
}

.home-learning-v2__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.home-learning-v2__actions .home-button-v2 {
    min-width: 200px;
}

.home-learning-v2__actions > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.home-learning-v2__actions > span svg {
    width: 18px;
    height: 18px;
    color: #10b981;
}

/* --------------------------------------------------------------------------
   Theme refinements
   -------------------------------------------------------------------------- */
[data-theme="light"] .home-proof-v2,
.light-theme .home-proof-v2,
[data-theme="light"] .home-float-card-v2,
.light-theme .home-float-card-v2 {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(255, 255, 255, .86);
}

[data-theme="light"] .home-proof-v2__member,
.light-theme .home-proof-v2__member {
    border-color: #fff;
}

[data-theme="light"] .home-learning-v2__shell,
.light-theme .home-learning-v2__shell {
    background: linear-gradient(145deg, #ffffff, #f7f9ff);
    box-shadow:
        0 34px 90px rgba(30, 41, 59, .11),
        inset 0 1px 0 #fff;
}

[data-theme="dark"] .home-benefit-v2,
.home-benefit-v2 {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

/* --------------------------------------------------------------------------
   Responsive behavior
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .home-hero-v2__container {
        grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
        gap: 32px;
    }

    .home-hero-v2__title {
        font-size: clamp(36px, 3.75vw, 48px);
    }

    .home-float-card-v2--career {
        left: -4px;
    }

    .home-float-card-v2--streak {
        right: -4px;
    }

    .home-learning-v2__shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
        gap: 16px;
    }

    .home-learning-v2__content {
        padding-inline: 22px;
    }

    .home-benefits-v2 {
        grid-template-columns: 1fr;
    }

    .home-benefit-v2 {
        min-height: 86px;
    }
}

@media (max-width: 980px) {
    .home-hero-v2 {
        min-height: auto;
        padding-block: 64px 76px;
    }

    .home-hero-v2__container {
        width: min(760px, calc(100% - 32px));
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .home-hero-v2__content {
        max-width: 720px;
        justify-self: center;
        text-align: center;
    }

    .home-kicker-v2,
    .home-hero-v2__actions,
    .home-hero-v2__highlights {
        margin-inline: auto;
        justify-content: center;
    }

    .home-hero-v2__title,
    .home-hero-v2__description {
        margin-inline: auto;
    }

    .home-proof-v2 {
        margin-inline: auto;
        text-align: start;
    }

    .home-hero-v2__visual {
        min-height: 530px;
    }

    .learning-os-v2 {
        transform: none;
    }

    .home-learning-v2__container {
        width: min(820px, calc(100% - 32px));
    }

    .home-learning-v2__shell {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .home-learning-v2__content {
        order: -1;
        padding: 28px 22px 18px;
        text-align: center;
    }

    .home-learning-v2__label {
        justify-content: center;
    }

    .home-learning-v2__content > h3,
    .home-learning-v2__content > p {
        margin-inline: auto;
    }

    .home-benefits-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: start;
    }

    .home-learning-v2__actions {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .home-hero-v2::before {
        inset: 10px;
        border-radius: 27px;
    }

    .home-hero-v2__container,
    .home-learning-v2__container {
        width: min(100%, calc(100% - 24px));
    }

    .home-hero-v2__title {
        font-size: clamp(31px, 9vw, 42px);
        line-height: 1.52;
    }

    .home-hero-v2__description {
        font-size: 14px;
        line-height: 1.9;
    }

    .home-proof-v2 {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-proof-v2__rating {
        grid-column: 1 / -1;
        padding: 9px 0 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-inline-start: 0;
        border-top: 1px solid var(--border-soft);
    }

    .home-proof-v2__rating > span:last-child {
        margin-top: 0;
    }

    .home-hero-v2__visual {
        min-height: auto;
        padding-block: 16px 48px;
    }

    .learning-os-v2 {
        width: 100%;
        border-radius: 23px;
    }

    .learning-os-v2__body {
        grid-template-columns: 1fr;
    }

    .learning-os-v2__sidebar {
        display: none;
    }

    .learning-os-v2__project-grid {
        grid-template-columns: 1fr;
    }

    .learning-os-v2__project-card,
    .learning-os-v2__terminal {
        min-height: 198px;
    }

    .learning-os-v2__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learning-os-v2__metrics > a {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    .home-float-card-v2 {
        display: none;
    }

    .home-learning-v2 {
        padding-block: 64px;
    }

    .home-learning-v2__intro h2 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .home-learning-v2__shell {
        border-radius: 27px;
    }

    .home-benefits-v2 {
        grid-template-columns: 1fr;
    }

    .home-benefit-v2 {
        min-height: 82px;
    }

    .home-roadmap-v2 {
        padding: 18px;
        border-radius: 21px;
    }
}

@media (max-width: 480px) {
    .home-kicker-v2 {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .home-hero-v2 {
        padding-block: 48px 58px;
    }

    .home-hero-v2__title {
        font-size: clamp(29px, 9.4vw, 37px);
        letter-spacing: -.02em;
    }

    .home-hero-v2__title span {
        display: inline;
    }

    .home-hero-v2__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-hero-v2__actions .home-button-v2 {
        width: 100%;
        min-width: 0;
    }

    .home-proof-v2 {
        padding: 11px;
        gap: 10px;
        border-radius: 17px;
    }

    .home-proof-v2__member {
        width: 37px;
        height: 37px;
    }

    .home-proof-v2__member i {
        font-size: 17px;
    }

    .home-proof-v2__copy strong {
        font-size: 12px;
    }

    .home-proof-v2__copy span {
        font-size: 9px;
    }

    .home-hero-v2__highlights {
        gap: 8px 12px;
    }

    .home-hero-v2__highlights > span {
        font-size: 10px;
    }

    .learning-os-v2__header {
        min-height: 57px;
        padding: 9px 10px;
    }

    .learning-os-v2__logo {
        width: 34px;
        height: 34px;
    }

    .learning-os-v2__live {
        padding-inline: 7px;
        font-size: 8px;
    }

    .learning-os-v2__workspace {
        padding: 12px;
    }

    .learning-os-v2__welcome h3 {
        font-size: 13px;
    }

    .learning-os-v2__stack > span {
        width: 27px;
        height: 27px;
    }

    .learning-os-v2__project-card {
        padding: 12px;
    }

    .learning-os-v2__terminal > div {
        font-size: 7.2px;
    }

    .learning-os-v2__metrics {
        gap: 6px;
    }

    .learning-os-v2__metrics > span {
        padding-inline: 5px;
    }

    .home-learning-v2__intro h2 {
        font-size: clamp(27px, 8.2vw, 34px);
    }

    .home-learning-v2__shell {
        width: 100%;
        padding: 9px;
        border-radius: 23px;
    }

    .home-learning-v2__content {
        padding: 23px 12px 15px;
    }

    .home-learning-v2__content > h3 {
        font-size: clamp(23px, 7vw, 30px);
    }

    .home-learning-v2__content > p {
        font-size: 12px;
    }

    .home-benefit-v2 {
        padding: 12px;
    }

    .home-benefit-v2__check {
        width: 35px;
        height: 35px;
    }

    .home-learning-v2__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-learning-v2__actions .home-button-v2 {
        width: 100%;
        min-width: 0;
    }

    .home-learning-v2__actions > span {
        justify-content: center;
    }

    .home-roadmap-v2 {
        padding: 14px;
    }

    .home-roadmap-v2__header {
        align-items: center;
    }

    .home-roadmap-v2__header h3 {
        font-size: 16px;
    }

    .home-roadmap-v2__level {
        display: none;
    }

    .home-roadmap-step-v2 {
        grid-template-columns: 36px minmax(0, 1fr);
        min-height: 61px;
        padding: 8px;
    }

    .home-roadmap-step-v2__badge {
        display: none;
    }

    .home-roadmap-step-v2 small {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .home-roadmap-v2__mentor {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .home-roadmap-v2__online {
        display: none;
    }
}

@media (max-width: 330px) {
    .home-kicker-v2 {
        max-width: 100%;
        overflow: hidden;
        font-size: 9px;
        text-overflow: ellipsis;
    }

    .home-proof-v2__members {
        display: none;
    }

    .home-proof-v2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-proof-v2__copy {
        align-items: center;
    }

    .learning-os-v2__live {
        display: none;
    }

    .learning-os-v2__project-top {
        align-items: flex-start;
    }

    .learning-os-v2__project-status {
        font-size: 7px;
    }

    .home-roadmap-v2__mentor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-roadmap-v2__mentor-icon {
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-v2 *,
    .home-learning-v2 * {
        scroll-behavior: auto;
        animation-duration: .01ms;
        animation-iteration-count: 1;
        transition-duration: .01ms;
    }
}

@keyframes homeLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .34); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes homeRoadmapPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .35); }
    70% { box-shadow: 0 0 0 9px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes homeFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
