/* Tue Tran ecosystem website. Colours and spacing follow the approved design file. */

@import url('fonts.css');

:root {
    --pink: #FB7B9B;
    --navy: #172948;
    --ink: #2C3A52;
    --ink-soft: #3E4A60;
    --muted: #5A6678;
    --muted-light: #6B7688;
    --hint: #93A0B4;
    --line: #ECEFF3;
    --line-strong: #E7EAEF;
    --page: #ffffff;
    --page-soft: #FAFBFC;
    --shell: 1220px;
    --pad-x: 40px;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--navy);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Never let a wide child push the whole page sideways on a phone. */
    overflow-x: hidden;
}

a { color: var(--pink); text-decoration: none; }

img { max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }

p { margin: 0; text-wrap: pretty; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    width: 100%;
}

.mono {
    font-family: var(--mono);
    letter-spacing: 0.2em;
    font-size: 11.5px;
    color: var(--hint);
    text-transform: uppercase;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .shell {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand__text { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.brand__wordmark { height: 24px; width: 73px; display: block; }

.brand__note {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--hint);
}

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
}

.site-nav a:hover { color: var(--pink); }

.lang {
    display: flex;
    align-items: center;
    border: 1px solid #E3E7ED;
    border-radius: 999px;
    padding: 3px;
}

.lang a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--hint);
}

.lang a.is-active { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color .18s, border-color .18s, color .18s;
}

.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #0C87A5; color: #fff; }
.btn--ghost { border-color: #DDE2E9; color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--mono { font-family: var(--mono); font-size: 13.5px; padding: 15px 24px; }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section__inner { padding-top: 88px; padding-bottom: 88px; }
.section--tint { background: #FDF7F9; }
.section--soft { background: var(--page-soft); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.section-head h2 { font-size: 34px; }

.hero { padding-top: 96px; padding-bottom: 88px; }
.hero__inner { max-width: 880px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 54px; line-height: 1.1; letter-spacing: -0.025em; }
.hero__intro { max-width: 660px; font-size: 19px; line-height: 1.65; font-weight: 300; color: var(--muted); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow__rule { width: 28px; height: 2px; background: var(--pink); flex: none; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.split--top { align-items: start; }

.stack { display: flex; flex-direction: column; gap: 22px; }

.lead { max-width: 540px; font-size: 16.5px; line-height: 1.7; font-weight: 300; color: var(--muted); }

.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tick { display: flex; gap: 12px; align-items: flex-start; }
.tick__rule { width: 16px; height: 2px; background: var(--pink); margin-top: 12px; flex: none; }
.tick__text { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

.tile-wrap { display: flex; justify-content: center; }
.tile-wrap img { border-radius: 58px; box-shadow: 0 40px 80px -50px rgba(251, 123, 155, 0.85); }

/* Product cards */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.card {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.card:hover { border-color: var(--card-color, var(--pink)); transform: translateY(-2px); }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.card__domain {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.card__name { font-size: 27px; letter-spacing: -0.015em; }
.card__name .prefix { font-weight: 300; color: var(--hint); }
.card__name .core { font-weight: 700; }
.card__name .extra { font-weight: 300; color: var(--hint); font-size: 19px; margin-left: 10px; }

.card__tagline { font-size: 16px; font-weight: 500; color: var(--ink); }
.card__text { font-size: 14.5px; line-height: 1.65; font-weight: 300; color: var(--muted-light); }
.card__more { margin-top: auto; font-size: 14px; font-weight: 500; }

.card--row { flex-direction: row; gap: 24px; align-items: flex-start; }
.card--row .card__name { font-size: 23px; font-weight: 600; }

/* Company facts */
.facts { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.fact { padding: 22px 28px; border-bottom: 1px solid #EEF1F5; display: flex; justify-content: space-between; gap: 24px; }
.fact:last-child { border-bottom: 0; }
.fact__label { font-size: 14px; font-weight: 500; color: var(--hint); }
.fact__value { font-family: var(--mono); font-size: 14px; text-align: right; }
.fact__value--plain { font-family: inherit; line-height: 1.6; }

/* Contact band */
.band { background: var(--navy); color: #fff; }
.band .shell { padding-top: 88px; padding-bottom: 88px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.band h2 { font-size: 34px; }
.band p { font-size: 16.5px; line-height: 1.7; font-weight: 300; color: #A9B6C9; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--onDark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--onDark:hover { background: rgba(255, 255, 255, 0.2); }
.btn--outlineLight { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--outlineLight:hover { border-color: #fff; }

/* Product detail */
.detail-hero { border-bottom: 1px solid var(--line); padding: 34px 0 76px; }
.detail-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.025em; }
.detail-hero__tagline { font-size: 22px; font-weight: 400; color: var(--ink); }
.detail-hero .lead { max-width: 540px; font-size: 17px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-light);
    margin-bottom: 44px;
}

.back-link:hover { color: var(--navy); }

.store-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; align-items: center; }

.btn--small { font-size: 14.5px; padding: 14px 24px; }

.soon { font-size: 14px; font-weight: 300; color: var(--muted-light); }

.detail-features { padding: 80px 0 40px; display: flex; flex-direction: column; gap: 36px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.feature {
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
}

.feature__rule { width: 26px; height: 2px; display: block; }
.feature__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature__text { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--muted-light); }

.rider {
    border: 1px solid #F0D9C6;
    background: #FDF7F2;
    border-radius: 20px;
    padding: 38px;
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.pill-row { display: flex; gap: 16px; flex-wrap: wrap; }

.pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 12px 24px 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color .18s;
}

.pill:hover { border-color: var(--navy); }

/* Long-form legal pages */
.legal-head { border-bottom: 1px solid var(--line); background: var(--page-soft); padding: 34px 0 56px; }

.legal-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }

.legal-switch__item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid #DDE2E9;
    color: var(--muted);
}

.legal-switch__item.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.legal-body {
    padding-top: 72px;
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.legal-toc__list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }

.legal-toc__list a {
    padding: 10px 0 10px 18px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 13.8px;
    line-height: 1.45;
    color: var(--muted);
}

.legal-toc__list a:hover { color: var(--navy); border-left-color: var(--pink); }

.legal-help { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-help__title { font-size: 13px; font-weight: 600; color: var(--ink); }
.legal-help__text { font-size: 12.8px; line-height: 1.6; font-weight: 300; color: var(--muted-light); }

.legal-main { display: flex; flex-direction: column; gap: 52px; max-width: 780px; }
.legal-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 104px; }
.legal-section__head { display: flex; align-items: baseline; gap: 14px; }
.legal-section__num { font-family: var(--mono); font-size: 12px; color: var(--pink); flex: none; }
.legal-text { font-size: 16px; line-height: 1.8; font-weight: 300; color: #4C5A70; }

.legal-list { display: flex; flex-direction: column; gap: 12px; }
.legal-list__item { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.75; font-weight: 300; color: #4C5A70; }
.legal-list__rule { width: 14px; height: 2px; background: var(--pink); margin-top: 13px; flex: none; }

.legal-entity { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.legal-entity__name { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.legal-entity__line { font-size: 14px; line-height: 1.7; font-weight: 300; color: var(--muted); }

/* One-screen pages: 404 and thank you */
.short-page { flex: 1; display: flex; align-items: center; }

.short-page__inner {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 88px var(--pad-x);
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
}

.big-number {
    font-family: var(--mono);
    font-size: 104px;
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.pill-note {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted-light);
    background: #FDF7F9;
    border: 1px solid #F3E1E7;
    border-radius: 999px;
    padding: 9px 18px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer .shell { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--hint); }

/* Floating contact, desktop only */
.floating { position: fixed; right: 26px; bottom: 26px; z-index: 30; display: flex; flex-direction: column; gap: 12px; }
.floating a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 18px 40px -22px rgba(23, 41, 72, 0.6);
}
.floating__zalo { background: var(--navy); }
.floating__call { background: var(--pink); }

/* Bottom tab bar, phones only */
.tabbar { display: none; }

@media (max-width: 860px) {
    :root { --pad-x: 20px; }

    .hero { padding-top: 56px; padding-bottom: 56px; }
    .hero h1 { font-size: 36px; }
    .hero__intro { font-size: 17px; }
    .section__inner { padding-top: 56px; padding-bottom: 56px; }
    .section-head h2, .band h2 { font-size: 27px; }
    .detail-hero h1 { font-size: 32px; }
    .detail-hero { padding: 24px 0 48px; }
    .detail-hero__tagline { font-size: 19px; }
    .detail-features { padding: 48px 0 24px; }
    .rider { padding: 26px; gap: 20px; }
    .legal-body { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 56px; }
    .legal-toc { display: none; }
    .legal-head h1 { font-size: 30px; }
    .big-number { font-size: 72px; }
    .short-page__inner { padding: 48px var(--pad-x); min-height: auto; }

    .split, .card-grid, .feature-grid, .other-grid { grid-template-columns: 1fr; gap: 22px; }

    .site-nav { gap: 16px; }
    .site-nav .nav-link { display: none; }

    body { padding-bottom: 68px; }

    .floating { display: none; }

    .tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .tabbar a {
        flex: 1;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 500;
        color: var(--ink-soft);
    }

    .tabbar a.is-accent { color: var(--pink); }
}
