/* DOM – bộ giao diện dùng chung (đồng bộ với dom.com.vn). Bảng màu: ngọc lục bảo & vàng champagne. */
/* ===== Bảng màu: Ngọc lục bảo & vàng champagne ===== */
:root {
    --bg: #06110D;
    --bg-2: #0B1F17;
    --bg-3: #0F2A1F;
    --panel: rgba(13, 34, 25, .72);
    --panel-strong: rgba(9, 26, 19, .92);
    --line: rgba(216, 180, 106, .18);
    --line-strong: rgba(216, 180, 106, .45);
    --line-soft: rgba(245, 240, 227, .08);
    --gold: #D8B46A;
    --gold-light: #F3E3B5;
    --gold-deep: #B48A3C;
    --gold-grad: linear-gradient(135deg, #F3E3B5 0%, #D8B46A 45%, #B48A3C 100%);
    --emerald: #1FBF75;
    --emerald-deep: #0E7A4E;
    --ivory: #F5F0E3;
    --mist: #CBD5CC;
    --muted: #93A89C;
    --danger: #FF8A7A;
    --max: 1180px;
    --pad: clamp(18px, 3vw, 40px);
    --radius: 14px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35);
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Lớp nền cố định: ánh xanh ngọc + ánh vàng, không bị trắng khi cuộn dài */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 8% -8%, rgba(31, 191, 117, .16), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(216, 180, 106, .12), transparent 55%),
        radial-gradient(900px 700px at 50% 120%, rgba(14, 122, 78, .14), transparent 60%),
        linear-gradient(180deg, #06110D 0%, #0A1A13 50%, #050C09 100%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--ivory);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.wrap {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto;
}

.gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 46px;
    height: 1px;
    background: var(--gold-grad);
    flex: 0 0 auto;
}

.kicker.center {
    justify-content: center;
}

.ico {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.ico.sm {
    width: 30px;
    height: 30px;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(6, 17, 13, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 108px;
    height: auto;
    object-fit: contain;
}

/* Logo đầy đủ (DOM + Domain First. Own the Brand) dùng trên dom.com.vn */
.brand-logo.full {
    width: 136px;
    margin: 6px 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
}

.brand-tag {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .06em;
}

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

.nav a {
    position: relative;
    color: var(--mist);
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.nav a:hover {
    color: var(--gold-light);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.lang {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(245, 240, 227, .04);
}

.lang button {
    min-width: 46px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: 600 .8rem var(--font-body);
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.lang button[aria-pressed="true"] {
    background: var(--gold-grad);
    color: #1A140A;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font: 600 .95rem var(--font-body);
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-gold {
    border: 1px solid rgba(243, 227, 181, .6);
    background: var(--gold-grad);
    color: #1A140A;
    box-shadow: 0 14px 34px rgba(216, 180, 106, .22);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(216, 180, 106, .32);
}

.btn-ghost {
    border: 1px solid var(--line-strong);
    background: rgba(245, 240, 227, .03);
    color: var(--ivory);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-sm {
    min-height: 42px;
    padding: 0 14px;
    font-size: .86rem;
}

/* ===== Hero ===== */
.hero {
    padding: 144px 0 64px;
    border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.host-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 600;
    line-height: 1.02;
}

.hero h1 span {
    display: block;
}

.hero h1 em {
    display: block;
    font-style: italic;
    font-weight: 500;
}

.hero-sub {
    margin-top: 26px;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-style: italic;
}

.hero-desc {
    max-width: 620px;
    margin-top: 12px;
    color: var(--mist);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.contact-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--mist);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .2s ease, transform .2s ease, color .2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    color: var(--gold-light);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 420px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(420px 260px at 70% 10%, rgba(216, 180, 106, .14), transparent 70%),
        linear-gradient(160deg, rgba(15, 42, 31, .9), rgba(6, 17, 13, .9));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(216, 180, 106, .1);
    border-radius: 16px;
    pointer-events: none;
}

.hero-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 200px;
}

.hero-logo {
    width: min(380px, 80%);
    max-height: 230px;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(31, 191, 117, .28));
}

.hero-mark {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 20px 40px rgba(31, 191, 117, .3));
}

.hero-wordmark {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: .12em;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.proof-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(6, 17, 13, .6);
}

.proof-card .ico {
    margin-bottom: 10px;
}

.proof-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
}

.proof-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

/* ===== Sections ===== */
.section {
    padding: clamp(64px, 8vw, 104px) 0;
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p,
.lead {
    color: var(--mist);
    font-size: 1.04rem;
    line-height: 1.75;
}

.card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 56px rgba(0, 0, 0, .34), 0 0 0 1px rgba(216, 180, 106, .08);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--gold-light);
}

.why-card p,
.service-card p,
.process-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.65;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.why-card {
    padding: 26px 24px;
}

.why-num {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-style: italic;
    line-height: 1;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 18px;
}

.story-card {
    padding: clamp(24px, 3vw, 40px);
}

.story-card.primary {
    background: linear-gradient(170deg, rgba(31, 191, 117, .12), rgba(13, 34, 25, .8));
}

.story-card h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.story-card .lead {
    margin-top: 18px;
}

.quote {
    position: relative;
    padding-left: 26px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-style: italic;
    line-height: 1.25;
    color: var(--ivory);
}

.quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--gold-grad);
}

.story-card .quote+p {
    margin-top: 22px;
    color: var(--mist);
    line-height: 1.75;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    padding: 22px 20px;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--emerald));
}

.service-card .ico {
    margin-bottom: 14px;
}

.seo-box {
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(245, 240, 227, .03);
}

.seo-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.seo-box .lead {
    margin-top: 14px;
}

.seo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.seo-list li {
    position: relative;
    padding-left: 24px;
    color: var(--mist);
}

.seo-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-card {
    padding: 24px 22px;
}

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
}

/* ===== Domain market ===== */
.market-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.market-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.market-head .lead {
    margin-top: 10px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(500px, 100%);
}

.field {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--ivory);
    font: 500 .95rem var(--font-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field::placeholder {
    color: var(--muted);
}

.field:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(216, 180, 106, .16);
}

select.field {
    appearance: none;
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select.field option {
    background: var(--bg-2);
    color: var(--ivory);
}

.result-count {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .88rem;
}

.result-count strong {
    color: var(--gold-light);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.domain-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.domain-card.is-current {
    border-color: var(--gold);
    background: linear-gradient(170deg, rgba(216, 180, 106, .12), rgba(13, 34, 25, .85));
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.4;
}

.chip.here {
    border-color: transparent;
    background: var(--gold-grad);
    color: #1A140A;
    font-weight: 600;
}

.domain-name {
    overflow-wrap: anywhere;
    color: var(--ivory);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .2s ease;
}

.domain-name:hover {
    color: var(--gold-light);
}

.domain-sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: .82rem;
}

.domain-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

/* ===== Trust & contact ===== */
.trust {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(170deg, rgba(216, 180, 106, .1), rgba(9, 26, 19, .85));
    color: var(--mist);
    line-height: 1.75;
}

.trust strong {
    color: var(--gold-light);
}

.contact-box {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(520px 260px at 50% 0%, rgba(216, 180, 106, .12), transparent 70%),
        var(--panel-strong);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-box h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-box .lead {
    max-width: 620px;
    margin: 12px auto 0;
}

.contact-box .btn {
    margin-top: 26px;
}

.contact-box .contact-strip {
    margin-top: 30px;
}

.site-footer {
    padding: 30px 0;
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
}

.site-footer span.sep {
    margin: 0 8px;
    color: var(--gold);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .hero-grid,
    .section-head,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .process-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-head {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .nav {
        display: none;
    }

    .contact-strip {
        flex-direction: column;
    }

    .contact-item {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .brand-tag {
        display: none;
    }

    .brand-logo {
        width: 92px;
    }

    .brand-logo.full {
        width: 108px;
        margin: 4px 0;
    }

    .hero {
        padding-top: 108px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 0;
    }

    .why-grid,
    .process-grid,
    .service-grid,
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ===== Trang chào bán từng tên miền (index.php) ===== */
.quick {
    display: flex;
    gap: 8px;
}

.quick a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--mist);
    font-size: .85rem;
    font-weight: 500;
    transition: border-color .2s ease, color .2s ease;
}

.quick a:hover {
    border-color: var(--line-strong);
    color: var(--gold-light);
}

/* Cột chữ bên trái là "khung đo": cỡ chữ tên miền tự tính theo độ rộng khung để luôn nằm trên một dòng */
.hero-text {
    min-width: 0;
    container-type: inline-size;
}

/* .hero .lander-name: đủ mạnh để thắng quy tắc ".hero h1" của trang chủ; cỡ tối đa giống tiêu đề dom.com.vn */
.hero .lander-name {
    margin-top: 4px;
    font-size: min(clamp(2.6rem, 6vw, 5.4rem), calc(100cqi / (var(--chars, 12) * .55)));
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

/* Phần đuôi cùng font, cùng kiểu chữ với tên miền – chỉ khác màu vàng */
.hero .lander-name .tld {
    display: inline;
    font-style: normal;
    font-weight: inherit;
}

.facts {
    display: grid;
    gap: 10px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(6, 17, 13, .6);
}

.fact-label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fact-value {
    color: var(--ivory);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    padding: 24px 22px;
}

.info-card .ico {
    margin-bottom: 14px;
}

.info-card p,
.faq-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.65;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-item {
    padding: 22px 24px;
}

.faq-item h3 {
    font-size: 1.12rem;
}

.related-foot {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 980px) {

    .grid-3,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quick a {
        padding: 0 5px;
    }

    .quick a span {
        display: none;
    }
}
