
:root {
    --bg: #08111f;
    --bg-soft: #0d1830;
    --surface: rgba(16, 27, 49, 0.88);
    --surface-strong: rgba(12, 23, 43, 0.95);
    --card: rgba(15, 29, 56, 0.92);
    --line: rgba(126, 170, 255, 0.17);
    --line-strong: rgba(126, 170, 255, 0.28);
    --text: #ebf2ff;
    --muted: #9db0d1;
    --blue: #4f86ff;
    --cyan: #48d3ff;
    --green: #28d17c;
    --warning: #f1aa4b;
    --shadow: 0 25px 90px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --radius-sm: 16px;
    --content: 1220px;
    --transition: 180ms ease;
    --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(79, 134, 255, 0.18), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(72, 211, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #091120 0%, #08111f 35%, #060d18 100%);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    min-height: 100vh;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 85%);
    opacity: .5;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--blue);
    color: white;
    padding: 12px 16px;
    z-index: 9999;
}
.skip-link:focus { left: 16px; }

.container {
    width: min(100% - 32px, var(--content));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-tinted {
    background:
        linear-gradient(180deg, rgba(11, 21, 40, 0.72), rgba(11, 21, 40, 0.35));
    border-block: 1px solid rgba(126, 170, 255, 0.07);
}

.section-compact {
    padding: 56px 0 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8ad7ff;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8ad7ff);
}

h1, h2, h3 {
    margin: 0 0 14px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.51rem, 2.04vw + 0.56rem, 2.44rem); max-width: 14ch; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.25rem); max-width: 20ch; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: clamp(1rem, 1.5vw, 1.16rem); max-width: 62ch; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 14, 26, 0.66);
    border-bottom: 1px solid rgba(126, 170, 255, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 82px;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(79, 134, 255, 0.3), rgba(72, 211, 255, 0.12)),
        var(--card);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    font-weight: 700;
}

.brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.brand-copy strong { font-size: 1rem; font-weight: 700; }
.brand-copy small {
    color: var(--muted);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: space-between;
}

.nav > a {
    color: var(--muted);
    font-size: .96rem;
}
.nav > a:hover,
.nav > a.is-active { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    display: block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid transparent;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition);
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    background: linear-gradient(135deg, var(--blue), #6aa0ff);
    color: white;
    box-shadow: 0 10px 24px rgba(79, 134, 255, 0.25);
}
.button-secondary {
    background: rgba(255,255,255,0.04);
    border-color: var(--line);
    color: var(--text);
}
.button-ghost {
    background: transparent;
    border-color: var(--line);
    color: #a9d9ff;
}
.button-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,0.2);
    color: var(--muted);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}
.lang-switcher a {
    min-width: 46px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: .9rem;
}
.lang-switcher a.is-current {
    color: var(--text);
    background: rgba(79, 134, 255, 0.2);
}

.hero {
    padding: 72px 0 88px;
    position: relative;
}
.hero-grid,
.sub-hero-grid,
.annual-shell,
.download-card,
.docs-grid,
.contact-grid,
.footer-grid,
.three-grid,
.two-grid,
.four-grid {
    display: grid;
    gap: 24px;
}
.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 18px;
}
.hero-note { color: #8fa7cf; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}
.metric-card,
.panel-card,
.product-card,
.route-card,
.plan-card,
.legal-card,
.contact-card {
    background: var(--surface);
    border: 1px solid rgba(126, 170, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.metric-card::before,
.panel-card::before,
.product-card::before,
.route-card::before,
.plan-card::before,
.legal-card::before,
.contact-card::before,
.download-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent 30%);
    pointer-events: none;
}
.metric-card {
    padding: 18px 18px 16px;
}
.metric-card strong {
    display: block;
    font-size: 1.7rem;
    color: white;
    margin-bottom: 4px;
}
.metric-card span {
    color: var(--muted);
    font-size: .9rem;
}

.hero-visual { position: relative; }
.interface-card {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(126, 170, 255, 0.16);
    background: rgba(9, 18, 34, 0.92);
    box-shadow: 0 45px 90px rgba(0,0,0,0.46);
}
.interface-top {
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(126,170,255,0.1);
}
.interface-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
}
.interface-body {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
    padding: 16px;
}
.interface-stack {
    display: grid;
    gap: 16px;
}
.interface-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(126,170,255,0.1);
    border-radius: 20px;
    padding: 12px;
}
.interface-heading {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8fd2ff;
    margin-bottom: 12px;
}
.interface-panel img {
    width: 100%;
    border-radius: 16px;
}
.interface-panel-large img {
    min-height: 100%;
    object-fit: cover;
}
.floating-chip {
    position: absolute;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(9, 18, 34, 0.84);
    border: 1px solid rgba(126,170,255,0.18);
    box-shadow: 0 22px 35px rgba(0,0,0,0.32);
    color: #dff4ff;
    font-size: .88rem;
}
.chip-one { top: 10%; right: -18px; }
.chip-two { bottom: 6%; left: -10px; }

.section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 34px;
}
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-grid,
.docs-grid,
.footer-grid,
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-grid-single { grid-template-columns: 1fr; }

.panel-card,
.route-card,
.legal-card,
.contact-card,
.product-card,
.plan-card {
    padding: 26px;
}
.panel-card,
.route-card,
.legal-card,
.contact-card,
.product-card,
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .text-link,
.contact-card .button,
.route-card .button,
.plan-actions {
    margin-top: auto;
}

.product-card .text-link,
.plan-actions {
    padding-top: 18px;
}

section[id],
article[id],
.download-card[id] {
    scroll-margin-top: 112px;
}
#products,
#pricing,
#annual {
    scroll-margin-top: 28px;
}
.panel-card.compact {
    min-height: auto;
}
.layer-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.layer-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(12, 24, 46, 0.85);
    border: 1px solid rgba(126,170,255,0.12);
    box-shadow: var(--shadow);
}
.layer-tag,
.pill,
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .8rem;
}
.layer-tag,
.pill {
    background: rgba(79, 134, 255, 0.12);
    color: #b6d9ff;
    border: 1px solid rgba(79, 134, 255, 0.22);
}
.version-badge {
    background: rgba(40, 209, 124, 0.12);
    color: #b1f8d0;
    border: 1px solid rgba(40, 209, 124, 0.28);
}
.product-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-top,
.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.product-card h3,
.plan-head h3 {
    margin-bottom: 8px;
}
.plan-head {
    align-items: flex-start;
    flex-direction: column;
}
.plan-head span { color: #8fc0ef; }
.text-link {
    margin-top: auto;
    color: #8ad7ff;
    font-weight: 600;
    display: inline-flex;
}
.bullet-list,
.plan-list,
.steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bullet-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}
.bullet-list li,
.plan-list li {
    position: relative;
    padding-left: 18px;
    color: #dbe8ff;
}
.bullet-list li::before,
.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.proof-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.3fr .7fr .7fr;
    grid-template-rows: auto auto;
    margin-bottom: 20px;
}
.proof-shot {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(126,170,255,0.14);
    background: rgba(255,255,255,0.02);
}
.proof-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proof-shot-large { grid-row: span 2; }
.proof-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card-accent {
    background:
        radial-gradient(circle at top right, rgba(72, 211, 255, 0.13), transparent 34%),
        rgba(12, 26, 49, 0.95);
}
.plan-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}
.plan-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-left: 18px;
}
.plan-list li span {
    color: #b7d7ff;
    white-space: nowrap;
}
.plan-note { min-height: 70px; }
.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.annual-shell {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
}
.annual-price {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    margin: 24px 0 8px;
}
.annual-scope-card {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(126,170,255,0.14);
}
.annual-scope-card p {
    margin: 8px 0 0;
    color: #d7e6ff;
}
.annual-scope-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(79, 134, 255, 0.14);
    border: 1px solid rgba(79, 134, 255, 0.24);
    color: #b6d9ff;
    font-size: .82rem;
    font-weight: 600;
}
.annual-visual img {
    width: 100%;
    border-radius: 28px;
    border: 1px solid rgba(126,170,255,0.14);
    box-shadow: var(--shadow);
}
.annual-upgrade {
    margin-top: 16px;
}

.docs-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(17, 30, 56, 0.94), rgba(9, 18, 33, 0.96));
    border: 1px solid rgba(126,170,255,0.14);
    box-shadow: var(--shadow);
}

.sub-hero,
.legal-hero {
    padding: 72px 0 36px;
}
.sub-hero-grid {
    align-items: end;
    grid-template-columns: 1fr auto;
}
.sub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.stack-large { display: grid; gap: 30px; }
.download-card {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(126,170,255,0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.download-card-visual img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(126,170,255,0.12);
}
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 14px;
}
.live-version {
    color: #b0f5cf;
    font-weight: 600;
    margin-top: 10px;
}
.download-note,
.strip-note { color: #92a5c7; }
.resource-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.resource-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(126,170,255,0.1);
}
.resource-item:hover {
    border-color: rgba(126,170,255,0.22);
    background: rgba(255,255,255,0.05);
}
.resource-item strong { color: var(--text); }
.steps-list {
    counter-reset: steps;
    display: grid;
    gap: 14px;
}
.steps-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: #d8e6ff;
}
.steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(79, 134, 255, 0.16);
    border: 1px solid rgba(79, 134, 255, 0.26);
    color: white;
    font-weight: 700;
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-card-primary {
    background:
        radial-gradient(circle at top right, rgba(79, 134, 255, 0.14), transparent 28%),
        rgba(13, 26, 50, 0.95);
}

.legal-stack {
    display: grid;
    gap: 20px;
}
.legal-card {
    padding: 28px;
}
.legal-card h2 {
    font-size: 1.25rem;
    max-width: none;
}
.legal-notice {
    max-width: 78ch;
    color: #d4e6ff;
}

.site-footer {
    border-top: 1px solid rgba(126,170,255,0.08);
    padding: 34px 0 52px;
    background: rgba(7, 12, 20, 0.64);
}
.footer-grid {
    align-items: start;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.footer-copy,
.footer-note {
    max-width: 46ch;
}
.footer-links {
    display: grid;
    gap: 12px;
    justify-items: start;
}
.footer-links a,
.footer-disabled {
    color: var(--muted);
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 1160px) {
    .hero-grid,
    .annual-shell,
    .download-card,
    .three-grid,
    .proof-grid,
    .pricing-grid,
    .product-grid,
    .layer-grid,
    .contact-grid,
    .four-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .proof-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .proof-shot-large { grid-row: auto; grid-column: span 2; }
    .docs-strip,
    .sub-hero-grid { grid-template-columns: 1fr; align-items: start; }
    .sub-hero-actions { justify-content: flex-start; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav {
        position: fixed;
        inset: 82px 16px auto 16px;
        background: rgba(6, 12, 22, 0.98);
        border: 1px solid rgba(126,170,255,0.16);
        border-radius: 24px;
        box-shadow: var(--shadow);
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .nav.is-open { display: flex; }
    .nav > a { padding: 10px 0; }
    .nav-actions { justify-content: flex-start; }
    .hero,
    .section { padding: 72px 0; }
    .hero-grid,
    .download-card,
    .docs-grid,
    .pricing-grid,
    .product-grid,
    .contact-grid,
    .annual-shell,
    .three-grid,
    .proof-grid,
    .layer-grid,
    .four-grid,
    .footer-grid,
    .two-grid {
        grid-template-columns: 1fr;
    }
    .proof-gallery { grid-template-columns: 1fr; }
    .proof-shot-large { grid-column: auto; }
    .hero-stats { grid-template-columns: 1fr; }
    .floating-chip { display: none; }
    .interface-body { grid-template-columns: 1fr; }
    .docs-strip { padding: 24px; }
    .brand-copy small { white-space: normal; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, var(--content)); }
    .section,
    .hero { padding: 62px 0; }
    .panel-card,
    .product-card,
    .plan-card,
    .legal-card,
    .contact-card,
    .download-card { padding: 22px; }
    .button { width: 100%; }
    .hero-actions,
    .download-links,
    .plan-actions,
    .sub-hero-actions { flex-direction: column; }
    .lang-switcher { width: 100%; justify-content: space-between; }
    .lang-switcher a { flex: 1; }
}


/* ===== frontend micro-fix: hero title, anchor spacing, centered card buttons ===== */
#products,
#pricing,
#annual {
    padding-top: 74px;
}

.route-card,
.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-card .button,
.route-card .button {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}
