/* ========== Mobile Hamburger Menu Button ========== */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

#menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Show only on small screens */
@media (max-width: 768px) {
    #menu-toggle {
        display: flex;
    }

    nav.cta {
        display: none;
    }

    nav.cta.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }
}

/* ========== Root & Resets ========== */
:root {
    --wechat: #07C160;
    --wechat-dark: #059648;
    --ink: #0B1014;
    --muted: #6b7a8c;
    --bg: #0b1014;
    --card: #0f1520;
    --line: #1e2733;
    --white: #ffffff;
    --bubble: #e8f9ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

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

/* ========== Page ========== */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--white);
    background: linear-gradient(180deg, #0b1014 0%, #0b1014 24%, #063b1f 50%, #0b1014 76%, #0b1014 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* ========== Links & Buttons ========== */
a {
    color: var(--wechat);
    text-decoration: none;
}

a:hover {
    color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    white-space: nowrap;
}

.btn:hover {
    border-color: rgba(255, 255, 255, .22);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(180deg, var(--wechat), var(--wechat-dark));
    box-shadow: 0 8px 24px rgba(7, 193, 96, .35);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 20px;
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(15, 21, 32, .72);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
    width: 100%;
    flex-wrap: wrap;
}

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

.brand h1 {
    font-size: clamp(1rem, 1.6vw, 1.05rem);
    letter-spacing: .3px;
    margin: 0;
    white-space: nowrap;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: conic-gradient(from 180deg at 50% 50%, var(--wechat), var(--wechat-dark));
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(7, 193, 96, .3);
}

.logo svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2));
}

.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--wechat);
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin: 14px 0 10px;
}

.hero p {
    color: #c9d2df;
    margin: 0 0 20px;
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
}

.badge {
    font-size: .85rem;
    color: #b7c2d2;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.mock {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    width: 100%;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
}

.bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: .95rem;
}

.bubble.in {
    background: var(--bubble);
    color: #0d2b1a;
}

.bubble.out {
    margin-left: auto;
    background: rgba(255, 255, 255, .06);
    color: #e8eef6;
    border: 1px solid var(--line);
}

/* ========== Sections & Cards ========== */
section {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 6px;
}

.lead {
    color: #c9d2df;
    margin: 0 0 30px;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    min-width: 0;
}

.card h4 {
    margin: 0 0 8px;
}

.list {
    margin: 8px 0 0;
    padding: 0 0 0 18px;
    color: #c9d2df;
}

.list li {
    margin: 6px 0;
}

/* ========== Process ========== */
.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.step {
    border-left: 3px solid var(--wechat);
    padding: 14px;
    background: rgba(7, 193, 96, .05);
    border-radius: 10px;
    border: 1px solid var(--line);
}

/* ========== Pricing ========== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.price {
    background: linear-gradient(180deg, rgba(7, 193, 96, .08), rgba(7, 193, 96, .03));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.price .amount {
    font-size: 2rem;
    font-weight: 700;
}

.price ul {
    padding-left: 18px;
    color: #c9d2df;
}

/* ========== FAQ ========== */
.faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

details summary {
    cursor: pointer;
}

/* ========== Contact ========== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

label {
    display: block;
    font-size: .9rem;
    margin: 10px 0 6px;
    color: #c9d2df;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0b121c;
    color: var(--white);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== Footer ========== */
footer {
    padding: 28px 0;
    color: #aeb8c6;
}

/* ========== Responsive Breakpoints ========== */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {

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

    .process {
        grid-template-columns: 1fr 1fr;
    }

    .cta {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .nav {
        gap: 10px;
    }

    .brand h1 {
        white-space: normal;
    }

    .bubble {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* === Responsive Logo === */
.brand img {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.3s ease, transform 0.3s ease;
}

.brand img:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .brand img {
        height: 42px;
    }
}

@media (max-width: 768px) {
    .brand img {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 32px;
    }

    .container.nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav.cta a.btn {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* ========== Sticky “Book a Call” Button ========== */
.sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    background: var(--wechat);
    color: var(--ink);
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .15);
    box-shadow: 0 8px 24px rgba(7, 193, 96, .35);
    transition: transform .15s ease, filter .15s ease;
}

.sticky-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .sticky-cta {
        right: 16px;
        bottom: 16px;
        padding: 10px 14px;
        font-weight: 600;
    }
}

/* ========== Fade-up Animation + Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

[data-fade="up"] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.in-view {
    opacity: 1 !important;
    transform: none !important;
}