/* ===========================
   DESIGN TOKENS
=========================== */

:root {
    --ink: #0b3d4a;
    --ink-deep: #062a33;
    --teal: #1a6b7a;
    --teal-soft: #2a8a9a;
    --mist: #e8f2f4;
    --fog: #f4f8f9;
    --paper: #ffffff;
    --line: #c9dde2;
    --muted: #5a7a82;
    --accent: #c45c26;
    --accent-soft: #fdf0e9;
    --ok: #1b6b45;
    --ok-bg: #e6f5ee;
    --radius: 4px;
    --font-sans: "Be Vietnam Pro", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    --shadow-soft: 0 1px 0 rgba(11, 61, 74, 0.06);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--fog);
    color: var(--ink);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, 1080px);
    margin-inline: auto;
}

section {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.section-label--light {
    color: rgba(255, 255, 255, 0.7);
}

.section-label--notice {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    border-radius: var(--radius);
    margin-bottom: 1.15rem;
}

.notice-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.section-label--large {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-label--accent {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9a3412;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink-deep);
    margin-bottom: 2.75rem;
    max-width: 18ch;
}

.section-title--left {
    margin-bottom: 0;
}

.section-title--sm {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}


/* ===========================
   HERO — full-bleed composition
=========================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    color: #fff;
    overflow: clip;
    padding: 5rem 0 4.5rem;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(42, 138, 154, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 80%, rgba(196, 92, 38, 0.18), transparent 50%),
        linear-gradient(155deg, #062a33 0%, #0b3d4a 42%, #145a68 78%, #1a6b7a 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.22;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(255, 255, 255, 0.07) 31px,
            rgba(255, 255, 255, 0.07) 32px
        );
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    padding-block: 1rem;
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    animation: rise 0.9s var(--ease) both;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
    max-width: 28ch;
    animation: rise 0.9s var(--ease) 0.12s both;
}

.hero h1 .subject {
    color: #f0c9a8;
    font-weight: 600;
}

.subtitle {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 36ch;
    margin-bottom: 2.25rem;
    animation: rise 0.9s var(--ease) 0.22s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: rise 0.9s var(--ease) 0.32s both;
}

.hero-buttons .btn {
    font-size: 1.15rem;
    padding: 1rem 1.75rem;
}


/* ===========================
   BUTTONS
=========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.55rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #f5c518;
    color: var(--ink-deep);
}

.btn-primary:hover {
    background: #ffd84d;
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--ink-deep);
}

.btn-light:hover {
    background: var(--mist);
}


/* ===========================
   NOTICE
=========================== */

.notice {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.notice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    max-width: 40rem;
}

.notice-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--ink-deep);
}

.notice-copy p {
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.65;
}

.notice-copy strong {
    color: var(--ink);
    font-weight: 600;
}


/* ===========================
   BENEFITS — list, not cards
=========================== */

.benefits {
    background:
        linear-gradient(180deg, var(--fog) 0%, var(--mist) 100%);
}

.benefit-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.benefit-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.15rem;
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.benefit-list li:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
}

.benefit-list li:nth-child(even) {
    padding-left: 2rem;
}

.benefit-list li.is-visible {
    opacity: 1;
    transform: none;
}

.benefit-num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal-soft);
    line-height: 1.4;
}

.benefit-list h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink-deep);
}

.benefit-list p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.55;
}


/* ===========================
   PRICING TABLE
=========================== */

.pricing {
    background: var(--paper);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

thead {
    background: var(--ink);
    color: #fff;
}

th,
td {
    padding: 1rem 1.15rem;
    text-align: left;
    font-size: 0.95rem;
}

th {
    font-weight: 600;
    letter-spacing: 0.02em;
}

tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: var(--fog);
}

tbody tr:hover {
    background: var(--mist);
}

th:first-child,
td:first-child {
    text-align: center;
    width: 4.5rem;
    color: var(--muted);
}

td:first-child {
    font-variant-numeric: tabular-nums;
}

th:nth-child(3),
td:nth-child(3) {
    text-align: right;
    width: 8rem;
    white-space: nowrap;
}

td:nth-child(3) {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

th:nth-child(4),
td:nth-child(4) {
    text-align: center;
    width: 8rem;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius);
    background: var(--ok-bg);
    color: var(--ok);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-mon {
    color: var(--accent);
    font-weight: 700;
}


/* ===========================
   COMMITMENT
=========================== */

.commitment {
    background:
        linear-gradient(135deg, var(--mist) 0%, #dcecf0 100%);
}

.commitment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
}

.commitment-list {
    list-style: none;
}

.commitment-list li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.commitment-list li:last-child {
    border-bottom: none;
}

.commitment-list li.is-visible {
    opacity: 1;
    transform: none;
}

.commitment-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.35rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--teal);
    border-radius: 1px;
}


/* ===========================
   CONTACT
=========================== */

.contact {
    background: transparent;
    color: var(--ink);
    text-align: center;
}

.contact-inner {
    max-width: 36rem;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ink-deep);
}

.contact-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0 auto 2.25rem;
    max-width: 28rem;
}

.contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-details dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0;
}

.contact-details dd {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink-deep);
}

.contact-details dd a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-details dd a:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}


/* ===========================
   FOOTER
=========================== */

footer {
    background: var(--ink-deep);
    color: rgba(255, 255, 255, 0.55);
    padding: 1.75rem 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}


/* ===========================
   MOTION
=========================== */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .benefit-list li,
    .commitment-list li {
        opacity: 1;
        transform: none;
    }
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 800px) {
    .container {
        width: min(94%, 1080px);
    }

    section {
        padding: 3.25rem 0;
    }

    .section-title {
        margin-bottom: 1.75rem;
        max-width: none;
    }

    .benefit-list {
        grid-template-columns: 1fr;
    }

    .benefit-list li:nth-child(odd),
    .benefit-list li:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-right: none;
    }

    .benefit-list li {
        gap: 0.9rem;
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
    }

    .commitment-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .commitment-list li {
        font-size: 1rem;
        padding: 0.9rem 0 0.9rem 1.75rem;
    }

    .commitment-list li::before {
        top: 1.2rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 1.5rem, 1080px);
    }

    section {
        padding: 2.75rem 0;
    }

    .hero {
        min-height: auto;
        padding: 3.5rem 0 2.75rem;
        align-items: start;
    }

    .hero-inner {
        padding-block: 0.25rem;
        max-width: none;
    }

    .brand {
        font-size: clamp(2.1rem, 11vw, 2.75rem);
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 1.05rem;
        max-width: none;
        margin-bottom: 1rem;
    }

    .break-desktop {
        display: none;
    }

    .subtitle {
        font-size: 0.98rem;
        max-width: none;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .hero-buttons .btn,
    .contact .btn,
    .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1.05rem;
        padding: 0.95rem 1.25rem;
    }

    .section-label--notice,
    .section-label--accent {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }

    .notice-copy h2 {
        font-size: 1.25rem;
    }

    .notice-copy p {
        font-size: 1.1rem;
    }

    .section-title--sm {
        font-size: 1.2rem;
        margin-bottom: 1.35rem;
    }

    .benefit-list h3 {
        font-size: 1rem;
    }

    .benefit-list p {
        font-size: 0.92rem;
    }

    /* Bảng giá → thẻ trên điện thoại */
    .table-wrap {
        border: none;
        background: transparent;
        overflow: visible;
    }

    table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name status"
            "price price";
        gap: 0.55rem 0.75rem;
        padding: 1rem 1.1rem;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    tbody tr:nth-child(even),
    tbody tr:hover {
        background: var(--paper);
    }

    tbody td {
        padding: 0;
        border: none;
        width: auto !important;
        text-align: left !important;
        font-size: 0.95rem;
    }

    tbody td:first-child {
        display: none;
    }

    tbody td:nth-child(2) {
        grid-area: name;
        font-size: 1.05rem;
        color: var(--ink-deep);
        align-self: center;
    }

    tbody td:nth-child(3) {
        grid-area: price;
        font-size: 1.15rem;
        padding-top: 0.35rem;
        border-top: 1px dashed var(--line);
    }

    tbody td:nth-child(4) {
        grid-area: status;
        justify-self: end;
        align-self: center;
    }

    .contact-inner {
        max-width: none;
    }

    .contact h2 {
        font-size: 1.55rem;
    }

    .contact-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        max-width: none;
        gap: 0.65rem;
        margin-bottom: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.95rem 0.75rem;
    }

    .contact-details dd {
        font-size: 1.05rem;
        word-break: break-word;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .contact-details dd a {
        display: inline-block;
        padding: 0.15rem 0;
    }

    footer {
        padding: 1.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .brand {
        font-size: 1.9rem;
    }

    .hero-buttons .btn {
        font-size: 1rem;
    }

    tbody td:nth-child(2) {
        font-size: 0.98rem;
    }
}
