:root {
    --ink: #061416;
    --ink-soft: #0b2425;
    --jade: #43d7bb;
    --jade-deep: #159b88;
    --gold: #e9b961;
    --paper: #f4f0e5;
    --mist: #dce8e4;
    --white: #fffef9;
    --muted: #829792;
    --line: rgba(171, 204, 195, .18);
    --display: 'Playfair Display', Georgia, serif;
    --body: 'Be Vietnam Pro', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--white);
    background: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(67, 215, 187, .55);
    outline-offset: 4px;
}

::selection {
    color: #041313;
    background: var(--jade);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--ink);
    background: var(--jade);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    border-color: var(--line);
    background: rgba(4, 18, 20, .88);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    color: var(--gold);
    border: 1px solid rgba(233, 185, 97, .42);
    border-radius: 50% 50% 46% 46%;
    background: rgba(233, 185, 97, .08);
    box-shadow: inset 0 0 18px rgba(233, 185, 97, .08);
    font-family: serif;
    font-size: 21px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand-copy strong {
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: .04em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--gold);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .38em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0 auto;
}

.main-nav a {
    position: relative;
    padding: 29px 0 25px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    width: 0;
    height: 1px;
    margin: auto;
    content: '';
    background: var(--gold);
    transition: width .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 22px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-login {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 600;
}

.nav-login:hover {
    color: var(--jade);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-small {
    min-height: 40px;
    padding: 0 18px;
    color: #071d1b;
    background: var(--gold);
}

.button-primary {
    color: #041b18;
    background: linear-gradient(135deg, #69e6cf, #27bda5);
    box-shadow: 0 13px 35px rgba(31, 180, 157, .22);
}

.button-primary:hover {
    box-shadow: 0 18px 42px rgba(31, 180, 157, .34);
}

.button-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .26);
    background: rgba(5, 24, 25, .18);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
}

.download-icon {
    font-size: 20px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--white);
    transition: transform .25s ease, opacity .25s ease;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    isolation: isolate;
    background-color: #102b32;
    background-image: url('../images/tru-tien-hero.webp');
    background-position: center;
    background-size: cover;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background:
        linear-gradient(90deg, rgba(3, 17, 19, .93) 0%, rgba(3, 17, 19, .77) 30%, rgba(3, 17, 19, .18) 67%, rgba(3, 17, 19, .14) 100%),
        linear-gradient(0deg, var(--ink) 0%, transparent 28%, rgba(2, 12, 15, .12) 100%);
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 28% 42%, rgba(48, 196, 172, .12), transparent 36%);
}

.hero-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 130px 0 80px;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    display: flex;
    flex-direction: column;
    width: min-content;
    margin: 22px 0 8px;
    font-family: var(--display);
    font-size: clamp(64px, 9vw, 112px);
    font-weight: 600;
    line-height: .8;
    letter-spacing: -.055em;
    text-shadow: 0 10px 44px rgba(0, 0, 0, .32);
}

.hero h1 span {
    white-space: nowrap;
}

.hero h1 strong {
    margin-top: 20px;
    color: transparent;
    background: linear-gradient(100deg, #fff5d2, #dfaa4e 70%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: .62em;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-tagline {
    margin-top: 29px;
    color: rgba(255, 255, 255, .9);
    font-family: var(--display);
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: .05em;
}

.hero-description {
    max-width: 570px;
    margin-top: 15px;
    color: rgba(224, 238, 233, .68);
    font-size: 14px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 31px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-note i {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jade);
    box-shadow: 0 0 0 5px rgba(67, 215, 187, .1), 0 0 14px var(--jade);
}

.scroll-cue {
    position: absolute;
    bottom: 33px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .5);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-cue i {
    position: relative;
    width: 1px;
    height: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, .2);
}

.scroll-cue i::after {
    position: absolute;
    top: -15px;
    left: 0;
    width: 1px;
    height: 14px;
    content: '';
    background: var(--jade);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(0); }
    70%, 100% { transform: translateY(54px); }
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 116px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 54px;
}

.section-heading h2,
.community-copy h2 {
    margin: 13px 0 15px;
    font-family: var(--display);
    font-size: clamp(35px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-heading > p,
.community-copy > p {
    max-width: 590px;
    color: var(--muted);
    font-size: 14px;
}

.intro {
    position: relative;
}

.intro::before {
    position: absolute;
    top: 65px;
    right: -210px;
    width: 390px;
    height: 390px;
    content: '';
    border: 1px solid rgba(67, 215, 187, .06);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(67, 215, 187, .03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-card {
    position: relative;
    min-height: 350px;
    padding: 44px 38px 39px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
    transition: background .3s ease, transform .3s ease;
}

.feature-card:last-child {
    border-right: 0;
}

.feature-card:hover {
    background: linear-gradient(150deg, rgba(67, 215, 187, .08), rgba(255, 255, 255, .01));
    transform: translateY(-6px);
}

.feature-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(255, 255, 255, .15);
    font-size: 10px;
    letter-spacing: .15em;
}

.feature-icon,
.step-orb {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 30px;
    border: 1px solid rgba(67, 215, 187, .28);
    border-radius: 50%;
    color: var(--jade);
    background: rgba(67, 215, 187, .06);
    font-family: serif;
    font-size: 23px;
    box-shadow: inset 0 0 25px rgba(67, 215, 187, .05);
}

.feature-icon.gold {
    color: var(--gold);
    border-color: rgba(233, 185, 97, .27);
    background: rgba(233, 185, 97, .06);
}

.feature-icon.sky {
    color: #8dc8da;
    border-color: rgba(141, 200, 218, .27);
    background: rgba(141, 200, 218, .06);
}

.feature-card h3,
.journey-step h3 {
    margin-bottom: 13px;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
}

.feature-card p,
.journey-step p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 38px;
    width: 0;
    height: 2px;
    background: var(--jade);
    transition: width .35s ease;
}

.feature-card:hover .feature-line {
    width: 56px;
}

.world-banner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 490px;
    padding: 80px 25px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(40, 126, 115, .22), transparent 35%),
        linear-gradient(rgba(4, 19, 21, .77), rgba(4, 19, 21, .94)),
        url('../images/tru-tien-hero.webp') center 48% / cover;
}

.world-banner::before,
.world-banner::after {
    position: absolute;
    top: 50%;
    width: 22%;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(233, 185, 97, .35));
}

.world-banner::before { left: 0; }
.world-banner::after { right: 0; transform: scaleX(-1); }

.world-symbol {
    position: absolute;
    color: rgba(255, 255, 255, .025);
    font-family: serif;
    font-size: 330px;
    line-height: 1;
}

.world-copy {
    position: relative;
    z-index: 1;
}

.world-copy > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.world-copy blockquote {
    max-width: 830px;
    margin: 19px auto 15px;
    font-family: var(--display);
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.3;
}

.world-copy p {
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

.journey {
    padding-bottom: 135px;
}

.journey-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.journey-grid::before {
    position: absolute;
    top: 54px;
    right: 16%;
    left: 16%;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(67, 215, 187, .28), rgba(233, 185, 97, .28), transparent);
}

.journey-step {
    position: relative;
    z-index: 1;
    padding: 0 28px;
    text-align: center;
}

.step-index {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.step-orb {
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;
    color: var(--paper);
    border-color: rgba(233, 185, 97, .3);
    background: var(--ink-soft);
    box-shadow: 0 0 0 10px var(--ink), 0 0 0 11px rgba(233, 185, 97, .08);
}

.journey-step a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--jade);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.journey-step a span {
    transition: transform .2s ease;
}

.journey-step a:hover span {
    transform: translateX(4px);
}

.community {
    padding: 0 20px 110px;
}

.community-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    width: min(1180px, 100%);
    min-height: 320px;
    margin: 0 auto;
    padding: 62px clamp(28px, 6vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(67, 215, 187, .2);
    background:
        linear-gradient(105deg, rgba(8, 39, 39, .98), rgba(13, 55, 52, .9)),
        url('../images/tru-tien-hero.webp') center / cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
}

.community-seal {
    position: absolute;
    top: -65px;
    right: 27%;
    color: rgba(233, 185, 97, .045);
    font-family: serif;
    font-size: 230px;
    line-height: 1;
    writing-mode: vertical-rl;
}

.community-copy {
    position: relative;
    z-index: 1;
}

.community-copy h2 {
    font-size: clamp(34px, 4vw, 50px);
}

.community-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 205px;
}

.community-actions .button {
    width: 100%;
}

.text-link {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
}

.text-link:hover {
    color: var(--jade);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #041011;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 36px;
    width: min(1180px, calc(100% - 40px));
    min-height: 140px;
    margin: 0 auto;
}

.footer-inner > p,
.footer-inner > small {
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
}

.footer-inner nav {
    display: flex;
    gap: 22px;
}

.footer-inner nav a {
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    text-transform: uppercase;
}

.footer-inner nav a:hover {
    color: var(--jade);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(2),
.journey-step:nth-child(2) { transition-delay: .1s; }

.feature-card:nth-child(3),
.journey-step:nth-child(3) { transition-delay: .2s; }

@media (max-width: 980px) {
    .nav-wrap {
        min-height: 72px;
    }

    .main-nav {
        gap: 20px;
    }

    .nav-actions .nav-login {
        display: none;
    }

    .hero {
        background-position: 57% center;
    }

    .feature-card {
        padding: 38px 25px 34px;
    }

    .footer-inner {
        grid-template-columns: auto 1fr auto;
    }

    .footer-inner > small {
        grid-column: 2 / -1;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        width: calc(100% - 28px);
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .main-nav {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        border-top: 1px solid var(--line);
        background: rgba(4, 18, 20, .97);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease;
        backdrop-filter: blur(18px);
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .main-nav a::after {
        display: none;
    }

    .nav-actions {
        margin-left: 11px;
    }

    .button-small {
        min-height: 38px;
        padding: 0 14px;
        font-size: 10px;
    }

    .hero {
        min-height: 820px;
        background-position: 67% center;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(3, 17, 19, .92), rgba(3, 17, 19, .35)),
            linear-gradient(0deg, var(--ink) 0%, transparent 42%, rgba(2, 12, 15, .25) 100%);
    }

    .hero-content {
        width: calc(100% - 36px);
        padding-top: 140px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 84px);
    }

    .hero-description {
        max-width: 500px;
        color: rgba(235, 244, 241, .78);
    }

    .section {
        width: calc(100% - 32px);
        padding: 84px 0;
    }

    .feature-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 280px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .journey-grid {
        gap: 60px;
    }

    .journey-grid::before {
        top: 10%;
        right: auto;
        bottom: 10%;
        left: 50%;
        width: 1px;
        height: auto;
        background: linear-gradient(transparent, rgba(67, 215, 187, .2), transparent);
    }

    .journey-step {
        padding: 0 12px;
        background: var(--ink);
    }

    .community-card {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .community-actions {
        align-items: flex-start;
        width: min(260px, 100%);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 38px 0;
        text-align: center;
    }

    .footer-brand,
    .footer-inner nav {
        justify-content: center;
    }

    .footer-inner > small {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { font-size: 7px; }
    .brand-mark { width: 39px; height: 39px; }
    .nav-actions { display: none; }

    .hero {
        min-height: 760px;
        background-position: 70% center;
    }

    .hero h1 strong {
        letter-spacing: .1em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
    }

    .hero-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-note i { display: none; }
    .status-dot { position: absolute; margin-top: 5px; }
    .hero-note span:not(.status-dot) { margin-left: 18px; }
    .scroll-cue { display: none; }

    .world-banner {
        min-height: 420px;
    }

    .world-symbol {
        font-size: 230px;
    }

    .community {
        padding: 0 12px 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
