:root {
    --bg: #f5f7ff;
    --bg-deep: #1c2256;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --text: #1a1f42;
    --muted: #6571a5;
    --line: rgba(87, 102, 191, 0.18);
    --blue: #3173ff;
    --purple: #7a56ff;
    --purple-deep: #5631d8;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(48, 61, 142, 0.16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(122, 86, 255, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(49, 115, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #eef2ff 50%, #f7f8ff 100%);
    line-height: 1.8;
}

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

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

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

.narrow {
    max-width: 860px;
}

.page-shell {
    min-height: calc(100vh - 220px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(111, 125, 211, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--bg-deep);
}

.site-brand img {
    width: 46px;
    height: 46px;
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 12px 26px rgba(74, 95, 214, 0.22);
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(100, 96, 255, 0.24), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(49, 115, 255, 0.22), transparent 22%),
        linear-gradient(135deg, rgba(28, 34, 86, 0.96), rgba(74, 44, 154, 0.92));
}

.hero-home {
    padding: 110px 0 96px;
}

.hero-grid,
.split-grid,
.download-panel,
.contact-grid,
.card-grid--two,
.footer-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    align-items: center;
}

.hero-copy,
.page-hero .container {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section .eyebrow,
.section-heading .eyebrow,
.page-hero .eyebrow {
    background: rgba(98, 92, 255, 0.1);
    color: var(--purple-deep);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.cta-card h2 {
    margin: 18px 0;
    line-height: 1.16;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
}

.page-hero {
    padding: 88px 0 48px;
}

.page-hero h1 {
    font-size: clamp(34px, 4.4vw, 54px);
}

.page-hero p,
.hero-copy p {
    margin: 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.cta-actions,
.download-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-points span,
.article-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.hero-card,
.feature-card,
.glass-card,
.article-card,
.article-row,
.price-card,
.download-card,
.cta-card,
.nav-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 34px;
    min-height: 460px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    backdrop-filter: blur(20px);
}

.hero-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.hero-card p,
.hero-card li {
    color: rgba(255, 255, 255, 0.86);
}

.hero-card ul {
    margin: 24px 0 0;
    padding-left: 20px;
}

.section {
    padding: 78px 0;
}

.section-metrics {
    margin-top: 0;
    padding-top: 36px;
}

.metrics-grid,
.feature-grid,
.nav-cards,
.article-grid,
.pricing-grid {
    display: grid;
    gap: 22px;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid article {
    padding: 28px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.metrics-grid strong {
    display: block;
    font-size: 34px;
    color: var(--purple-deep);
    line-height: 1;
    margin-bottom: 10px;
}

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

.section-heading--inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.cta-card h2 {
    font-size: clamp(30px, 4vw, 48px);
    color: var(--bg-deep);
}

.section-heading p,
.feature-card p,
.glass-card p,
.nav-card p,
.price-card p,
.download-card p,
.cta-card p,
.article-card p,
.article-row p,
.article-detail p,
.footer-block p {
    color: var(--muted);
    margin: 0;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.download-card,
.nav-card,
.article-card,
.article-row,
.price-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    padding: 28px;
}

.feature-card h3,
.feature-card h2,
.nav-card h3,
.price-card h2,
.download-card h2,
.download-card h3,
.article-card h3,
.article-row h2 {
    margin: 0 0 14px;
    color: var(--bg-deep);
}

.feature-card--tall {
    min-height: 100%;
}

.section-band {
    background: linear-gradient(180deg, rgba(79, 96, 238, 0.08), rgba(122, 86, 255, 0.04));
}

.stack-cards {
    display: grid;
    gap: 18px;
}

.glass-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(71, 105, 255, 0.94), rgba(123, 87, 255, 0.94));
    color: var(--white);
}

.glass-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.86);
}

.nav-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card,
.article-row {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover,
.article-row:hover,
.feature-card:hover,
.nav-card:hover,
.price-card:hover,
.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(63, 77, 165, 0.18);
}

.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.article-meta span {
    background: rgba(98, 92, 255, 0.08);
    color: var(--purple-deep);
}

.article-meta--center {
    justify-content: center;
    margin: 18px 0;
}

.article-list {
    display: grid;
    gap: 22px;
}

.article-row h2 {
    font-size: 28px;
}

.article-detail {
    max-width: 860px;
    padding: 44px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.article-detail p + p {
    margin-top: 18px;
}

.article-bottom-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card__tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(98, 92, 255, 0.08);
    color: var(--purple-deep);
    font-size: 13px;
    margin-bottom: 20px;
}

.price-card strong {
    display: block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 16px;
}

.price-card--featured {
    background: linear-gradient(180deg, rgba(68, 99, 255, 0.96), rgba(111, 82, 255, 0.96));
    color: var(--white);
    transform: translateY(-8px);
}

.price-card--featured h2,
.price-card--featured p,
.price-card--featured strong {
    color: var(--white);
}

.price-card--featured .price-card__tag {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.download-card--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 245, 255, 0.96));
}

.ordered-list,
.bullet-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
}

.ordered-list li,
.bullet-list li {
    margin-bottom: 10px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    background: linear-gradient(135deg, rgba(33, 44, 113, 0.98), rgba(96, 63, 214, 0.96));
    color: var(--white);
}

.cta-card h2,
.cta-card p {
    color: var(--white);
}

.btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s ease;
}

.btn {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: var(--white);
    box-shadow: 0 18px 36px rgba(73, 95, 219, 0.26);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.section .btn-secondary,
.article-bottom-nav .btn-secondary,
.contact-grid .btn-secondary {
    background: rgba(98, 92, 255, 0.08);
    color: var(--purple-deep);
    border: 1px solid rgba(98, 92, 255, 0.12);
}

.text-link {
    color: var(--purple-deep);
    font-weight: 700;
}

.btn:hover,
.text-link:hover,
.floating-telegram:hover {
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    color: var(--purple-deep);
    font-weight: 700;
}

.pagination a.active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: var(--white);
}

.site-footer {
    padding: 30px 0 44px;
    background: #f1f4ff;
    border-top: 1px solid rgba(111, 125, 211, 0.14);
}

.footer-main {
    margin-bottom: 24px;
}

.footer-block {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
}

.footer-block h3 {
    margin: 0 0 16px;
    color: var(--bg-deep);
}

.footer-block a {
    display: block;
    color: var(--muted);
    margin-top: 10px;
}

.friend-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.friend-links__items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links__items em {
    font-style: normal;
}

.footer-copy {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.floating-telegram {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, #2a62ff, #7d4dff);
    box-shadow: 0 18px 42px rgba(56, 82, 214, 0.28);
}

.floating-telegram__badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.floating-telegram__label {
    white-space: nowrap;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .feature-grid,
    .nav-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header-inner,
    .section-heading--inline,
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .split-grid,
    .download-panel,
    .contact-grid,
    .card-grid--two,
    .footer-main,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero-home {
        padding-top: 84px;
    }

    .hero-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .section {
        padding: 60px 0;
    }

    .metrics-grid,
    .feature-grid,
    .nav-cards,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .site-brand {
        font-size: 21px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .article-detail,
    .cta-card,
    .feature-card,
    .download-card,
    .nav-card,
    .article-card,
    .article-row,
    .price-card,
    .footer-block {
        padding: 22px;
    }

    .floating-telegram {
        right: 10px;
        padding: 12px 14px;
    }

    .floating-telegram__label {
        display: none;
    }
}
