/* Homepage — Why Thanh Trung
 * Warm Precision / Proof Arc. Page-local override; CMS copy and icon slots stay intact.
 */

.home .section-reason {
    --tt-proof-blue: #273b94;
    --tt-proof-accent: #eb7b3b;
    --tt-proof-ink: #10283b;
    --tt-proof-muted: #5f6f7d;
    --tt-proof-canvas: #f7f6f1;
    --tt-proof-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(86px, 7.2vw, 108px) 0 clamp(92px, 7.6vw, 116px) !important;
    border-top: 1px solid rgba(16, 40, 59, .065);
    background:
        radial-gradient(ellipse 44% 48% at 50% 88%, rgba(235, 123, 59, .12), transparent 72%),
        linear-gradient(180deg, #faf9f5 0%, var(--tt-proof-canvas) 100%) !important;
    background-size: auto !important;
}

.home .section-reason::after {
    position: absolute;
    z-index: 0;
    top: 34%;
    left: 50%;
    width: min(760px, 66vw);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(235, 123, 59, .085), rgba(39, 59, 148, .025) 42%, transparent 68%);
    opacity: 0;
    transform: translate3d(-50%, -42%, 0) scale(.72);
    pointer-events: none;
}

.home .section-reason.is-motion-visible::after {
    animation: ttReasonProofField 1250ms cubic-bezier(.22, 1, .36, 1) 180ms both;
}

.home .section-reason .section-bg {
    background: transparent !important;
}

.home .section-reason .section-content {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 1250px);
    max-width: none;
    margin: 0 auto;
    padding: 0 30px;
}

.home .section-reason .tt-reason-heading-row,
.home .section-reason .tt-reason-grid {
    width: 100%;
    max-width: none !important;
    margin-inline: 0 !important;
}

.home .section-reason .tt-reason-heading-row {
    margin-bottom: clamp(46px, 4.2vw, 58px) !important;
}

.home .section-reason .tt-reason-intro {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.home .section-reason .tt-reason-intro .col-inner {
    padding: 0 !important;
}

.home .section-reason .tt-reason-intro .text {
    max-width: none;
    text-align: center;
}

.home .section-reason .tt-reason-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 0 18px;
    color: var(--tt-proof-blue);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.home .section-reason .tt-reason-eyebrow::before {
    width: 24px;
    height: 2px;
    flex: 0 0 24px;
    border-radius: 99px;
    content: "";
    background: var(--tt-proof-accent);
    transform-origin: left center;
}

.home .section-reason.is-motion-visible .tt-reason-eyebrow::before {
    animation: ttReasonMeasureLine 680ms cubic-bezier(.22, 1, .36, 1) 120ms both;
}

.home .section-reason .tt-reason-intro h2 {
    max-width: none;
    margin: 0;
    color: var(--tt-proof-ink);
    font-family: inherit;
    font-size: clamp(3.5rem, 5vw, 4.45rem);
    font-weight: 690;
    line-height: .96;
    letter-spacing: -.05em;
    text-wrap: balance;
}

html[lang^="vi"] .home .section-reason .tt-reason-intro h2 {
    letter-spacing: -.035em;
}

.home .section-reason .tt-reason-grid {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.7vw, 22px);
    align-items: stretch;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.home .section-reason .tt-reason-grid::before,
.home .section-reason .tt-reason-grid::after {
    position: absolute;
    z-index: 0;
    top: 47px;
    content: "";
    pointer-events: none;
}

.home .section-reason .tt-reason-grid::before {
    right: 5%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39, 59, 148, .16) 18%, rgba(235, 123, 59, .28) 50%, rgba(39, 59, 148, .16) 82%, transparent);
    transform: scaleX(0);
    transform-origin: center;
}

.home .section-reason .tt-reason-grid::after {
    left: 5%;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-radius: 50%;
    background: #f1a33b;
    box-shadow: 0 0 0 5px rgba(241, 163, 59, .1), 0 0 18px rgba(235, 123, 59, .36);
    opacity: 0;
}

.home .section-reason.is-motion-visible .tt-reason-grid::before {
    animation: ttReasonMeasureLine 920ms cubic-bezier(.22, 1, .36, 1) 420ms both;
}

.home .section-reason.is-motion-visible .tt-reason-grid::after {
    animation: ttReasonScanPoint 980ms cubic-bezier(.22, 1, .36, 1) 460ms both;
}

.home .section-reason .tt-reason-card {
    position: relative;
    z-index: 1;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin-top: 18px;
    padding: 0 !important;
    border: 0;
    background: transparent !important;
}

.home .section-reason .tt-reason-card--precision {
    margin-top: 0;
}

.home .section-reason .tt-reason-card > .col-inner {
    height: 100%;
    padding: 0 !important;
}

.home .section-reason .tt-reason-card .icon-box {
    position: relative;
    display: grid;
    min-height: 260px;
    height: 100%;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: 56px auto;
    gap: 24px 18px;
    align-content: start;
    align-items: start;
    padding: clamp(29px, 2.35vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(39, 59, 148, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 18px 50px rgba(16, 40, 59, .06);
    --tt-reason-rx: 0deg;
    --tt-reason-ry: 0deg;
    transform: perspective(1100px) rotateX(var(--tt-reason-rx)) rotateY(var(--tt-reason-ry)) translate3d(0, 0, 0);
    transform-origin: 50% 42%;
    transition: transform 560ms cubic-bezier(.22, 1, .36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.home .section-reason .tt-reason-card--precision .icon-box {
    border-color: rgba(235, 123, 59, .2);
    box-shadow: 0 22px 56px rgba(16, 40, 59, .075);
}

.home .section-reason .tt-reason-card .icon-box::before {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    color: rgba(39, 59, 148, .62);
    font-family: var(--tt-proof-mono);
    font-size: .73rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .1em;
    z-index: 3;
}

.home .section-reason .tt-reason-card--affordability .icon-box::before {
    content: "01";
}

.home .section-reason .tt-reason-card--precision .icon-box::before {
    content: "02";
}

.home .section-reason .tt-reason-card--durability .icon-box::before {
    content: "03";
}

.home .section-reason .tt-reason-card .icon-box::after {
    position: absolute;
    top: 0;
    left: clamp(29px, 2.35vw, 34px);
    width: 54px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    content: "";
    background: linear-gradient(90deg, var(--tt-proof-accent), #f1b348);
    transform-origin: left center;
    z-index: 4;
}

.home .section-reason.is-motion-visible .tt-reason-card .icon-box::after {
    animation: ttReasonMeasureLine 720ms cubic-bezier(.22, 1, .36, 1) both;
}

.home .section-reason.is-motion-visible .tt-reason-card:nth-child(1) .icon-box::after { animation-delay: 500ms; }
.home .section-reason.is-motion-visible .tt-reason-card:nth-child(2) .icon-box::after { animation-delay: 615ms; }
.home .section-reason.is-motion-visible .tt-reason-card:nth-child(3) .icon-box::after { animation-delay: 730ms; }

.home .section-reason .tt-reason-card .icon-box-img {
    display: grid;
    width: 56px !important;
    height: 56px;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 16px;
    background: rgba(39, 59, 148, .065);
    position: relative;
    z-index: 2;
    transform-origin: 50% 58%;
}

.home .section-reason .tt-reason-card--precision .icon-box-img {
    background: rgba(235, 123, 59, .09);
}

.home .section-reason .tt-reason-card .icon-box-img .icon,
.home .section-reason .tt-reason-card .icon-box-img .icon-inner {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: none !important;
}

.home .section-reason .tt-reason-card .icon-box-img img {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain;
}

.home .section-reason .tt-reason-card .icon-box-text,
.home .section-reason .tt-reason-card .icon-box-left .icon-box-img + .icon-box-text {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 !important;
    position: relative;
    z-index: 2;
}

.home .section-reason.is-motion-visible .tt-reason-card .icon-box-img {
    animation: ttReasonIconDock 720ms cubic-bezier(.22, 1, .36, 1) both;
}

.home .section-reason.is-motion-visible .tt-reason-card:nth-child(1) .icon-box-img { animation-delay: 470ms; }
.home .section-reason.is-motion-visible .tt-reason-card:nth-child(2) .icon-box-img { animation-delay: 585ms; }
.home .section-reason.is-motion-visible .tt-reason-card:nth-child(3) .icon-box-img { animation-delay: 700ms; }

.home .section-reason .tt-reason-card .text-1 {
    margin: 0 0 11px;
    color: var(--tt-proof-ink);
    text-transform: none;
}

.home .section-reason .tt-reason-card .text-1 h3 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(1.18rem, 1.55vw, 1.3rem);
    font-weight: 730;
    line-height: 1.24;
    letter-spacing: -.02em;
}

.home .section-reason .tt-reason-card .text-2 {
    max-width: 31ch;
    margin: 0;
    color: var(--tt-proof-muted);
    font-size: .94rem;
    line-height: 1.62;
}

.home .section-reason .tt-reason-card .text-2 p {
    margin: 0;
}

@media (hover: hover) and (pointer: fine) {
    .home .section-reason .tt-reason-card:hover .icon-box {
        border-color: rgba(39, 59, 148, .16);
        box-shadow: 0 22px 58px rgba(16, 40, 59, .085);
    }

    .home .section-reason .tt-reason-card.is-pointer-active .icon-box {
        border-color: rgba(235, 123, 59, .22);
        box-shadow: 0 28px 66px rgba(16, 40, 59, .11), 0 8px 28px rgba(235, 123, 59, .075);
        transition-duration: 150ms, 220ms, 220ms;
    }

    .home .section-reason .tt-reason-card.is-pointer-active .icon-box-img img {
        transform: scale(1.08) rotate(-3deg);
    }
}

.home .section-reason .tt-reason-card .icon-box-img img {
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 1099px) {
    .home .section-reason {
        padding: 76px 0 86px !important;
    }

    .home .section-reason .section-content {
        padding-inline: 24px;
    }

    .home .section-reason .tt-reason-heading-row {
        margin-bottom: 42px !important;
    }

    .home .section-reason .tt-reason-intro h2 {
        font-size: clamp(3.05rem, 6.2vw, 3.8rem);
    }

    .home .section-reason .tt-reason-grid {
        gap: 16px;
    }

    .home .section-reason .tt-reason-card {
        margin-top: 14px;
    }

    .home .section-reason .tt-reason-card--precision {
        margin-top: 0;
    }

    .home .section-reason .tt-reason-card .icon-box {
        min-height: 260px;
        padding: 26px 24px 28px;
    }

    .home .section-reason .tt-reason-card .icon-box::after {
        left: 24px;
    }
}

@media (max-width: 767px) {
    .home .section-reason {
        padding: 64px 0 72px !important;
        background:
            radial-gradient(ellipse 110% 32% at 50% 24%, transparent, transparent 72%),
            linear-gradient(180deg, #faf9f5 0%, var(--tt-proof-canvas) 100%) !important;
    }

    .home .section-reason .section-content {
        padding-inline: 18px;
    }

    .home .section-reason .tt-reason-heading-row {
        margin-bottom: 32px !important;
    }

    .home .section-reason .tt-reason-intro .text {
        text-align: left;
    }

    .home .section-reason .tt-reason-eyebrow {
        justify-content: flex-start;
        margin-bottom: 13px;
        font-size: .67rem;
    }

    .home .section-reason .tt-reason-intro h2,
    html[lang^="vi"] .home .section-reason .tt-reason-intro h2 {
        max-width: 11ch;
        font-size: clamp(2.35rem, 10vw, 2.8rem);
        line-height: 1.01 !important;
        letter-spacing: -.045em;
    }

    html[lang^="vi"] .home .section-reason .tt-reason-intro h2 {
        line-height: 1.1 !important;
        letter-spacing: -.03em;
    }

    .home .section-reason .tt-reason-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .home .section-reason .tt-reason-grid::before,
    .home .section-reason .tt-reason-grid::after {
        display: none;
    }

    .home .section-reason .tt-reason-card,
    .home .section-reason .tt-reason-card--precision {
        margin-top: 0;
    }

    .home .section-reason .tt-reason-card .icon-box {
        min-height: 0;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-rows: 48px auto;
        gap: 17px 14px;
        padding: 22px 20px 23px;
        border-radius: 16px;
        box-shadow: 0 12px 36px rgba(16, 40, 59, .055);
    }

    .home .section-reason .tt-reason-card--precision .icon-box {
        box-shadow: 0 14px 40px rgba(16, 40, 59, .065);
    }

    .home .section-reason .tt-reason-card .icon-box::before {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        padding: 0;
        font-size: .7rem;
    }

    .home .section-reason .tt-reason-card .icon-box::after {
        left: 20px;
        width: 46px;
    }

    .home .section-reason .tt-reason-card .icon-box-img {
        width: 48px !important;
        height: 48px;
        grid-column: 1;
        grid-row: 1;
        border-radius: 14px;
    }

    .home .section-reason .tt-reason-card .icon-box-img img {
        width: 29px !important;
        height: 29px !important;
    }

    .home .section-reason .tt-reason-card .icon-box-text,
    .home .section-reason .tt-reason-card .icon-box-left .icon-box-img + .icon-box-text {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .home .section-reason .tt-reason-card .text-1 {
        margin-bottom: 8px;
    }

    .home .section-reason .tt-reason-card .text-1 h3 {
        font-size: 1.14rem;
        line-height: 1.28;
    }

    .home .section-reason .tt-reason-card .text-2 {
        max-width: none;
        font-size: .91rem;
        line-height: 1.6;
    }
}

@keyframes ttReasonProofField {
    from { opacity: 0; transform: translate3d(-50%, -42%, 0) scale(.72); }
    to { opacity: 1; transform: translate3d(-50%, -42%, 0) scale(1); }
}

@keyframes ttReasonMeasureLine {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes ttReasonScanPoint {
    0% { left: 5%; opacity: 0; transform: translate3d(0, 0, 0) scale(.7); }
    12% { opacity: 1; }
    84% { opacity: .9; }
    100% { left: 95%; opacity: 0; transform: translate3d(-100%, 0, 0) scale(1.15); }
}

@keyframes ttReasonIconDock {
    0% { opacity: .25; transform: translate3d(0, 13px, 0) scale(.82) rotate(-5deg); }
    68% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.035) rotate(1deg); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home .section-reason::after,
    .home .section-reason .tt-reason-eyebrow::before,
    .home .section-reason .tt-reason-grid::before,
    .home .section-reason .tt-reason-grid::after,
    .home .section-reason .tt-reason-card,
    .home .section-reason .tt-reason-card .icon-box,
    .home .section-reason .tt-reason-card .icon-box::after,
    .home .section-reason .tt-reason-card .icon-box-img,
    .home .section-reason .tt-reason-card .icon-box-img img {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}
