﻿
:root {
    --home-primary: #0756a3;
    --home-primary-dark: #053b72;
    --home-primary-light: #eaf4ff;
    --home-cyan: #12a8d8;
    --home-success: #159447;
    --home-warning: #ffb703;
    --home-text: #0f172a;
    --home-muted: #64748b;
    --home-border: #dce8f4;
    --home-surface: #ffffff;
    --home-shadow: 0 20px 55px rgba(15, 23, 42, .10);
    --home-shadow-hover: 0 28px 68px rgba(15, 23, 42, .16);
}

.home-page {
    overflow: hidden;
    color: var(--home-text);
    background: #f5f9fd;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 178px;
    color: #fff;
    background: linear-gradient(135deg, #064785 0%, #075fab 50%, #0b95c9 100%);
    isolation: isolate;
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image: linear-gradient(rgba(255,255,255,.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.26) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    z-index: -3;
}

.home-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    z-index: -2;
}

.home-hero__glow--one {
    width: 480px;
    height: 480px;
    right: -130px;
    top: -180px;
    background: rgba(70, 229, 255, .22);
}

.home-hero__glow--two {
    width: 360px;
    height: 360px;
    left: -170px;
    bottom: -160px;
    background: rgba(255, 255, 255, .12);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    animation: homeFadeUp .7s ease both;
}

.home-hero__badge,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    letter-spacing: .02em;
}

.home-hero__badge {
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

.home-hero__title {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.06;
    font-weight: 850;
    letter-spacing: -.045em;
}

    .home-hero__title span {
        display: block;
        color: #8fe9ff;
    }

.home-hero__description {
    max-width: 690px;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,.9);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 720px;
    padding: 9px;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 50px rgba(0,0,0,.20);
}

.hero-search__field {
    position: relative;
}

    .hero-search__field i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--home-primary);
        font-size: 20px;
    }

    .hero-search__field input {
        width: 100%;
        height: 54px;
        border: 0;
        outline: 0;
        padding: 0 16px 0 50px;
        color: var(--home-text);
        background: transparent;
        font-size: 15.5px;
    }

.hero-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 158px;
    height: 54px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--home-primary), #0b87c0);
    box-shadow: 0 12px 24px rgba(7,86,163,.28);
    font-weight: 750;
    transition: .25s ease;
}

    .hero-search__button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(7,86,163,.34);
    }

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 20px;
    border: 0;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 760;
    transition: .25s ease;
}

    .home-btn:hover {
        transform: translateY(-3px);
    }

.home-btn--light {
    color: var(--home-primary-dark);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.home-btn--warning {
    color: #18202a;
    background: linear-gradient(135deg, #ffd34e, var(--home-warning));
    box-shadow: 0 14px 30px rgba(255,183,3,.24);
}

.home-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--home-primary), var(--home-cyan));
    box-shadow: 0 14px 30px rgba(7,86,163,.24);
}

    .home-btn--primary:hover,
    .home-btn--light:hover,
    .home-btn--warning:hover {
        color: inherit;
    }

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    color: rgba(255,255,255,.82);
    font-size: 13.5px;
    font-weight: 650;
}

    .home-hero__trust span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .home-hero__trust i {
        color: #98efff;
    }

.home-visual {
    position: relative;
    width: 420px;
    height: 420px;
    margin-left: auto;
    animation: homeFadeIn 1s ease both;
}

.home-visual__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
}

.home-visual__ring--outer {
    inset: 0;
    animation: homeSpin 24s linear infinite;
}

.home-visual__ring--inner {
    inset: 42px;
    border-style: dashed;
    animation: homeSpinReverse 18s linear infinite;
}

.home-visual__logo {
    position: absolute;
    inset: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 34px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 30px 70px rgba(0,0,0,.24);
}

    .home-visual__logo img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

.home-visual__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 178px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 18px;
    color: var(--home-text);
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 38px rgba(0,0,0,.17);
    backdrop-filter: blur(14px);
}

.home-visual__float--jobs {
    left: -18px;
    top: 64px;
    animation: homeFloat 4.6s ease-in-out infinite;
}

.home-visual__float--people {
    right: -10px;
    bottom: 56px;
    animation: homeFloat 5.2s ease-in-out infinite reverse;
}

.home-visual__float-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-primary);
    background: var(--home-primary-light);
    font-size: 19px;
}

.home-visual__float strong,
.home-visual__float small {
    display: block;
}

.home-visual__float strong {
    font-size: 22px;
    line-height: 1.05;
    font-weight: 850;
}

.home-visual__float small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 12px;
}

.market-overview {
    position: relative;
    z-index: 5;
    margin-top: -94px;
}

.market-overview__panel {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 70px rgba(15,23,42,.18);
    backdrop-filter: blur(18px);
}

.market-overview__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--home-border);
}

.section-eyebrow {
    color: var(--home-primary);
    font-size: 13px;
    text-transform: uppercase;
}

.section-eyebrow--light {
    color: #9beaff;
}

.market-overview__heading h2,
.section-heading h2 {
    margin: 8px 0 8px;
    font-weight: 850;
    letter-spacing: -.025em;
    color: var(--home-text);
}

.market-overview__heading h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.market-overview__heading p,
.section-heading p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.7;
}

.market-overview__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-primary);
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.market-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    transition: .25s ease;
}

    .market-stat:hover {
        transform: translateY(-5px);
        box-shadow: var(--home-shadow);
    }

.market-stat__icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--home-primary);
    background: var(--home-primary-light);
    font-size: 25px;
}

.market-stat__content span,
.market-stat__content strong,
.market-stat__content small {
    display: block;
}

.market-stat__content > span {
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 650;
}

.market-stat__content strong {
    margin: 4px 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 880;
}

.market-stat__content small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.market-stat--up small {
    color: #149447;
}

.market-stat--down small {
    color: #dc3545;
}

.market-stat--same small {
    color: #64748b;
}

.home-section {
    padding: 92px 0;
}

.section-heading {
    max-width: 720px;
}

.section-heading--center {
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.service-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 330px;
    padding: 32px;
    border: 1px solid var(--home-border);
    border-radius: 28px;
    box-shadow: var(--home-shadow);
    transition: .28s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--home-shadow-hover);
    }

.service-card--blue {
    background: linear-gradient(145deg, #fff, #eaf4ff);
}

.service-card--green {
    background: linear-gradient(145deg, #fff, #ecfff3);
}

.service-card--orange {
    background: linear-gradient(145deg, #fff, #fff5e8);
}

.service-card__number {
    position: absolute;
    right: 24px;
    top: 16px;
    color: rgba(15,23,42,.08);
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
}

.service-card__icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 20px;
    font-size: 28px;
    box-shadow: 0 14px 28px rgba(15,23,42,.10);
}

.service-card--blue .service-card__icon {
    color: var(--home-primary);
    background: #e4f2ff;
}

.service-card--green .service-card__icon {
    color: #159447;
    background: #e7faee;
}

.service-card--orange .service-card__icon {
    color: #cc6b00;
    background: #fff0da;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 23px;
    font-weight: 820;
}

.service-card p {
    min-height: 80px;
    color: var(--home-muted);
    line-height: 1.75;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-primary);
    text-decoration: none;
    font-weight: 780;
}

.home-process {
    background: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-step {
    position: relative;
    min-height: 250px;
    padding: 28px 24px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: linear-gradient(160deg, #fff, #f7fbff);
    transition: .25s ease;
}

    .process-step:hover {
        transform: translateY(-6px);
        box-shadow: var(--home-shadow);
    }

.process-step__number {
    position: absolute;
    right: 20px;
    top: 14px;
    color: rgba(7,86,163,.12);
    font-size: 46px;
    font-weight: 900;
}

.process-step__icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--home-primary), var(--home-cyan));
    box-shadow: 0 14px 26px rgba(7,86,163,.22);
    font-size: 24px;
}

.process-step h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 820;
}

.process-step p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.7;
}

.home-cta {
    padding-top: 80px;
    padding-bottom: 100px;
}

.home-cta__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 48px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #053d78, #075da8 54%, #0ba1c9);
    box-shadow: 0 30px 70px rgba(7,86,163,.28);
}

.home-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image: radial-gradient(circle at 15% 25%, #fff 1px, transparent 1px);
    background-size: 22px 22px;
}

.home-cta__content,
.home-cta__actions {
    position: relative;
    z-index: 2;
}

.home-cta__content {
    max-width: 680px;
}

    .home-cta__content h2 {
        margin: 10px 0 10px;
        font-size: clamp(30px, 4vw, 44px);
        line-height: 1.15;
        font-weight: 850;
        letter-spacing: -.025em;
    }

    .home-cta__content p {
        margin: 0;
        color: rgba(255,255,255,.82);
        line-height: 1.7;
    }

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    min-width: 310px;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeFadeIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes homeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes homeSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes homeSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@media (max-width: 1199.98px) {
    .home-visual {
        width: 360px;
        height: 360px;
    }

    .home-visual__logo {
        inset: 70px;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 84px 0 154px;
    }

    .market-stats {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta__panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta__actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 68px 0 138px;
    }

    .home-hero__title {
        font-size: 40px;
    }

    .home-hero__description {
        font-size: 16px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-search__button {
        width: 100%;
    }

    .home-hero__actions .home-btn {
        width: 100%;
    }

    .home-hero__trust {
        gap: 11px 16px;
    }

    .market-overview {
        margin-top: -78px;
    }

    .market-overview__panel {
        padding: 22px;
        border-radius: 24px;
    }

    .market-overview__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-section {
        padding: 70px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .home-cta__panel {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .home-cta__actions,
    .home-cta__actions .home-btn {
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .home-hero__title {
        font-size: 34px;
    }

    .home-hero__badge {
        align-items: flex-start;
        border-radius: 16px;
    }

    .market-stat {
        align-items: flex-start;
    }

    .service-card {
        padding: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__content,
    .home-visual,
    .home-visual__float,
    .home-visual__ring {
        animation: none !important;
    }
}


/* =========================================================
   DARK MODE V2 - HOME
   Tăng độ tương phản, giữ nguyên giao diện sáng
   ========================================================= */
html[data-theme="dark"] .home-page {
    --home-primary: #65b8ff;
    --home-primary-dark: #a7d8ff;
    --home-primary-light: #173a5c;
    --home-cyan: #47d4f4;
    --home-text: #f4f8ff;
    --home-muted: #b8c7d9;
    --home-border: #32465f;
    --home-surface: #172438;
    --home-shadow: 0 20px 55px rgba(0, 0, 0, .28);
    --home-shadow-hover: 0 28px 68px rgba(0, 0, 0, .38);
    color: var(--home-text);
    background: #0b1322;
}

html[data-theme="dark"] .market-overview__panel,
html[data-theme="dark"] .market-stat,
html[data-theme="dark"] .home-process,
html[data-theme="dark"] .process-step {
    color: var(--home-text);
    border-color: var(--home-border);
    background: linear-gradient(145deg, #172438, #111d2f);
}

html[data-theme="dark"] .service-card--blue {
    background: linear-gradient(145deg, #172438, #112b45);
}
html[data-theme="dark"] .service-card--green {
    background: linear-gradient(145deg, #172438, #123328);
}
html[data-theme="dark"] .service-card--orange {
    background: linear-gradient(145deg, #172438, #392716);
}

html[data-theme="dark"] .market-overview__heading h2,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .market-stat__content strong,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .process-step h3 {
    color: var(--home-text) !important;
}

html[data-theme="dark"] .market-overview__heading p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .market-stat__content > span,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .process-step p {
    color: var(--home-muted) !important;
}

html[data-theme="dark"] .market-overview__heading,
html[data-theme="dark"] .process-step,
html[data-theme="dark"] .market-stat {
    border-color: var(--home-border);
}

html[data-theme="dark"] .service-card__number {
    color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .hero-search {
    background: #172438;
    border: 1px solid #36506d;
}
html[data-theme="dark"] .hero-search__field input {
    color: #f4f8ff;
}
html[data-theme="dark"] .hero-search__field input::placeholder {
    color: #9dafc4;
}

/* Các thẻ nổi trong Hero cố ý giữ nền sáng: ép chữ tối để không bị trắng trên trắng */
html[data-theme="dark"] .home-visual__float,
html[data-theme="dark"] .home-visual__float strong {
    color: #10233f !important;
}
html[data-theme="dark"] .home-visual__float small {
    color: #5b6b80 !important;
}

html[data-theme="dark"] .home-btn--light {
    color: #0756a3 !important;
}
