/* ========== Tokens ========== */
:root {
    --bg: #F5F4EF;
    --bg-soft: #ECEAE2;
    --card: #FFFFFF;
    --ink: #111114;
    --text: #2A2A30;
    --muted: #86868B;
    --line: #E2E0D8;
    --accent: #22C55E;

    --radius: 14px;
    --radius-lg: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(34, 197, 94, 0.06), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(244, 185, 66, 0.05), transparent 50%);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }

/* ========== Container ========== */
.nav, .hero, .features, .testimonial, .screens, .contact, .footer {
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* ========== Nav ========== */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); }
.brand img { width: 28px; height: 28px; }

.nav-menu { display: flex; gap: 32px; font-size: 15px; }
.nav-menu a { color: var(--text); transition: color .2s var(--ease); }
.nav-menu a:hover { color: var(--ink); }

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

/* ========== Buttons ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 500;
    font-family: inherit;
    transition: all .25s var(--ease);
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

.btn .url {
    font-size: 12px; color: var(--muted);
    padding-left: 10px; margin-left: 2px;
    border-left: 1px solid var(--line);
}

/* ========== Section heads ========== */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
}
.eyebrow {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* ========== Hero ========== */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 60px;
}
.hero-text { max-width: 560px; }
.hero-text .eyebrow {
    color: var(--muted);
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}
.hero-text h1 {
    font-size: clamp(38px, 4.8vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 28px;
}
.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Platform buttons */
.platform-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-family: inherit;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    text-align: left;
}
.platform-btn:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: 0 10px 24px -10px rgba(34, 197, 94, 0.5);
}
.platform-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.platform-btn > div { display: flex; flex-direction: column; line-height: 1.1; }
.platform-btn .p-sub { font-size: 11px; opacity: .65; font-weight: 400; letter-spacing: 0.02em; }
.platform-btn .p-name { font-size: 14px; font-weight: 600; margin-top: 3px; letter-spacing: 0.01em; }

/* Awards (standalone section, dida365 style) */
.awards-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}
.awards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.award {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.laurel {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    opacity: .9;
}
.award-body {
    text-align: center;
    padding: 0;
}
.award b {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #6A6A70;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.3;
}
.award span {
    display: block;
    font-size: 13px;
    color: #8C8C92;
    margin-top: 4px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    font-weight: 400;
}

.hero-image { display: grid; place-items: center; }
.hero-image img {
    max-width: 380px;
    width: 100%;
}

/* ========== Features ========== */
.features { padding: 80px 32px; }
.features-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.features-col { display: flex; flex-direction: column; gap: 36px; }
.features-image {
    display: flex;
    justify-content: center;
}
.features-image .phone-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    border: 10px solid var(--ink);
    border-radius: 24px;
    overflow: hidden;
    background: var(--ink);
    line-height: 0;
}
.features-image .phone-frame img {
    display: block;
    width: 100%;
    margin-top: -8px;
}

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--ink);
    display: grid; place-items: center;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature:hover .feature-icon { background: var(--accent); color: #fff; }
.feature h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ========== Counter ========== */
.counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 100px;
    padding: 56px 32px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    text-align: center;
}
.counter-item b {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.counter-item span {
    font-size: 24px;
    color: var(--ink);
    font-weight: 700;
    margin-left: 2px;
}
.counter-item p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

/* ========== Web entry ========== */
.web { padding-top: 40px; padding-bottom: 80px; }
.web-inner {
    background: var(--ink);
    color: #fff;
    padding: 72px 56px;
    border-radius: var(--radius-lg);
    text-align: center;
}
.web-inner .eyebrow { color: var(--accent); }
.web-inner h2 {
    color: #fff;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    margin-bottom: 14px;
}
.web-inner p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin-bottom: 28px;
}
.web-inner .btn-solid {
    background: var(--accent);
    color: var(--ink);
}
.web-inner .btn-solid:hover { background: #fff; color: var(--ink); }

/* ========== Testimonials ========== */
.testimonial { padding-top: 80px; padding-bottom: 80px; }
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.quote {
    margin: 0;
    padding: 28px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: 24px;
    transition: transform .3s var(--ease);
}
.quote:hover { transform: translateY(-4px); }
.quote p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    flex-grow: 1;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.quote figcaption span { font-size: 12.5px; color: var(--muted); }

/* ========== Screens ========== */
.screens { padding-top: 80px; padding-bottom: 80px; }
.screens-wrap {
    position: relative;
}
.screens-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}
.screens-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.screens-track::-webkit-scrollbar { display: none; }
.screen-item {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-soft);
    transition: transform .3s var(--ease);
}
.screen-item:hover { transform: translateY(-6px); }
.screen-item img { width: 100%; display: block; pointer-events: none; }

.screens-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: all .25s var(--ease);
    cursor: pointer;
}
.screens-nav:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-50%) scale(1.05);
}
.screens-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.screens-nav svg { width: 20px; height: 20px; }
.screens-prev { left: -8px; }
.screens-next { right: -8px; }

/* ========== Contact ========== */
.contact {
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: center;
}
.contact h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}
.contact p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 4px;
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--line);
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--ink); }
.footer p { margin-bottom: 6px; }
.footer .beian a:hover { color: var(--ink); text-decoration: underline; }

/* ========== Reveal ========== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children — hero-actions */
.hero-actions .platform-btn {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
}
.hero-actions.is-visible .platform-btn {
    opacity: 1;
    transform: translateY(0);
}
.award[data-stagger="1"] { --d: .05s; }
.award[data-stagger="2"] { --d: .15s; }
.award[data-stagger="3"] { --d: .25s; }
.award[data-stagger="4"] { --d: .35s; }
.hero-actions [data-stagger="1"] { --d: .05s; }
.hero-actions [data-stagger="2"] { --d: .12s; }
.hero-actions [data-stagger="3"] { --d: .19s; }
.hero-actions [data-stagger="4"] { --d: .26s; }

/* Hero text stagger delays */
.hero-text [data-stagger="1"] { --d: .05s; }
.hero-text [data-stagger="2"] { --d: .18s; }
.hero-text [data-stagger="3"] { --d: .32s; }
.hero-actions.reveal { --d: .46s; }

/* Features columns stagger */
.features-col .feature:nth-child(2) { transition-delay: .1s; }
.features-col .feature:nth-child(3) { transition-delay: .2s; }

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 100;
    max-width: calc(100vw - 40px);
}
.toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 40px; padding-bottom: 60px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }

    .features-row { grid-template-columns: 1fr; gap: 32px; }
    .features-image { order: -1; }

    .awards-section { padding: 20px 20px 60px; }
    .awards { gap: 12px; }
    .award { gap: 8px; }
    .laurel { width: 32px; }
    .award b { font-size: 14px; }
    .award span { font-size: 11px; }
    .hero-actions { justify-content: center; }

    .counter { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }

    .web-inner { padding: 48px 24px; }
    .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .nav { padding-left: 20px; padding-right: 20px; }
    .nav-cta .btn-ghost { display: none; }
    .hero, .features, .testimonial, .screens, .contact, .footer { padding-left: 20px; padding-right: 20px; }
    .screens-nav { display: none; }
    .screen-item { width: 240px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
