:root {
    color-scheme: light;
    --bg: #f7f7f2;
    --surface: #ffffff;
    --surface-soft: #ecefeb;
    --ink: #171a1f;
    --muted: #5d6672;
    --line: #d9ded8;
    --brand: #087d72;
    --brand-strong: #075f57;
    --accent: #b55f25;
    --shadow: 0 24px 70px rgba(30, 34, 40, 0.16);
    --radius: 8px;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
}

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

a {
    color: inherit;
    text-decoration-color: rgba(8, 125, 114, 0.36);
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration-color: currentColor;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.zh,
html[data-language="zh"] .en {
    display: none;
}

html[data-language="zh"] .zh {
    display: inline;
}

html[data-language="zh"] .zh.block {
    display: block;
}

html[data-language="zh"] .hero h1 {
    max-width: 900px;
    font-size: clamp(2.9rem, 6.4vw, 5.6rem);
}

.page-shell {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(23, 26, 31, 0.08);
    background: rgba(247, 247, 242, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.02rem;
    font-weight: 760;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #16191f;
    color: #fff;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav a {
    text-decoration: none;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-toggle {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.language-toggle button {
    min-width: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1;
    padding: 8px 10px;
}

.language-toggle button.is-active {
    background: var(--ink);
    color: #fff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 740;
    text-decoration: none;
    white-space: nowrap;
}

.button.primary {
    background: var(--ink);
    color: #fff;
}

.button.primary:hover {
    background: #2a2f38;
}

.button.secondary {
    border-color: rgba(23, 26, 31, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.button.secondary:hover {
    border-color: rgba(23, 26, 31, 0.32);
}

.hero {
    position: relative;
    min-height: calc(100vh - 180px);
    display: grid;
    align-items: end;
    isolation: isolate;
    color: #fff;
    background: #11161c;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("assets/dopax-desktop-preview.png");
    background-position: center;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 12, 16, 0.86) 0%, rgba(8, 12, 16, 0.72) 42%, rgba(8, 12, 16, 0.4) 100%),
        rgba(8, 12, 16, 0.2);
}

.hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0 50px;
}

.eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3rem, 7.3vw, 6.1rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 690px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.55;
}

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

.hero-actions .button.secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 780px;
    margin-top: 48px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-note span::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #85ddd5;
}

.section {
    padding: 92px 0;
}

.section.compact {
    padding: 70px 0;
}

.section.alt {
    background: #eeeee8;
}

.section-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 42px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

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

.feature-card,
.download-card,
.pricing-card,
.policy-card,
.faq-item,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-card {
    min-height: 236px;
    padding: 26px;
}

.feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand-strong);
    font-weight: 800;
}

.feature-card h3,
.download-card h3,
.pricing-card h3,
.policy-card h3,
.faq-item h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.feature-card p,
.download-card p,
.policy-card p,
.faq-item p,
.pricing-card p {
    color: var(--muted);
    line-height: 1.58;
}

.feature-card p,
.download-card p,
.policy-card p {
    margin: 14px 0 0;
}

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.58fr);
    gap: 32px;
    align-items: center;
}

.product-shot {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(23, 26, 31, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #dfe3e3;
}

.workflow-list {
    display: grid;
    gap: 16px;
}

.workflow-item {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.workflow-item:last-child {
    border-bottom: 0;
}

.workflow-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}

.workflow-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.56;
}

.download-section {
    background: #f8fbfa;
}

.download-card {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 26px;
}

.download-card.is-current {
    border-color: rgba(8, 125, 114, 0.45);
    box-shadow: inset 0 0 0 1px rgba(8, 125, 114, 0.18);
}

.platform-mark,
.plan-label {
    width: fit-content;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #e8f4f2;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 760;
    padding: 6px 10px;
}

.download-card p {
    margin-bottom: 24px;
}

.download-card .button,
.pricing-card .button {
    margin-top: auto;
}

.download-footnote {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.pricing-card {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    padding: 26px;
}

.pricing-card.highlight {
    border-color: rgba(8, 125, 114, 0.42);
    box-shadow: inset 0 0 0 1px rgba(8, 125, 114, 0.18);
}

.price {
    margin: 18px 0 0;
    font-size: 2.4rem;
    font-weight: 820;
    letter-spacing: 0;
}

.price small {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.pricing-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.pricing-card li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 800;
}

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

.policy-card,
.faq-item {
    min-height: 210px;
    padding: 24px;
}

.faq-item p {
    margin: 12px 0 0;
}

.security-band {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 34px 0;
}

.security-band h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    line-height: 1.05;
}

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

.security-point {
    border-left: 3px solid var(--brand);
    padding-left: 14px;
}

.security-point strong {
    display: block;
    margin-bottom: 6px;
}

.security-point span {
    color: var(--muted);
    line-height: 1.5;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.5fr);
    gap: 36px;
    padding: 34px;
    background: #171a1f;
    color: #fff;
}

.contact-panel h2 {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.02;
}

.contact-panel p {
    max-width: 640px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.contact-list {
    display: grid;
    gap: 12px;
    align-content: center;
}

.contact-list a,
.contact-list span {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 12px;
    color: #fff;
    text-decoration: none;
}

.contact-list small {
    color: rgba(255, 255, 255, 0.58);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 34px 0;
}

.footer-inner {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
}

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

    .section-heading,
    .showcase,
    .security-band,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .download-grid,
    .pricing-grid,
    .policy-grid,
    .faq-grid,
    .security-points {
        grid-template-columns: 1fr;
    }

    .download-card,
    .pricing-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        min-height: 66px;
        gap: 12px;
    }

    .brand-name {
        display: none;
    }

    .button {
        min-height: 40px;
        padding: 0 14px;
    }

    .header-actions .button {
        display: none;
    }

    .hero {
        min-height: calc(100vh - 150px);
    }

    .hero-inner,
    .section-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-inner {
        padding: 86px 0 38px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 17vw, 4.3rem);
    }

    .section {
        padding: 64px 0;
    }

    .section.compact {
        padding: 50px 0;
    }

    .section-heading {
        gap: 20px;
        margin-bottom: 28px;
    }

    .contact-panel {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
    }
}
