:root {
    --bg: #eef1f6;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --line: #d8dee8;
    --primary: #5b5cf6;
    --primary-2: #ad46ff;
    --btn-dark: #0f1b38;
    --ok: #22c55e;
    --footer-bg: #ffffff;
    --compare-frame: #ffffff;
    --compare-divider: rgba(255, 255, 255, 0.92);
}

body[data-theme="dark"] {
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --card: #111827;
    --line: #1f2937;
    --btn-dark: #0f172a;
    --footer-bg: #0f172a;
    --compare-frame: #334155;
    --compare-divider: rgba(148, 163, 184, 0.55);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 28px;
}

.logo {
    width: 40px;
}

.beta {
    font-size: 11px;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #334155;
    font-size: 14px;
}

body[data-theme="dark"] .nav {
    color: #cbd5e1;
}

.nav .divider {
    width: 1px;
    height: 20px;
    background: #d1d5db;
}

body[data-theme="dark"] .nav .divider {
    background: #334155;
}

.lang-select {
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    padding: 0 10px;
    font-weight: 600;
}

.lang-icon {
    width: 16px;
    height: 16px;
    color: #374151;
    display: inline-block;
    vertical-align: middle;
    margin-right: -6px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 0;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

body[data-theme="dark"] .lang-select,
body[data-theme="dark"] .theme-toggle {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
}

body[data-theme="dark"] .lang-icon {
    color: #9ca3af;
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    height: 46px;
    padding: 0 26px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.to-editor,
.to-gallery {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.to-gallery {
    color: #334155;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

.btn-ghost {
    background: #f2f5fa;
    border-color: #d7dfea;
    color: #0f172a;
}

.btn-dark {
    background: var(--btn-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 27, 56, .2);
}

.hero {
    text-align: center;
    padding-top: 46px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.grad {
    background: linear-gradient(90deg, #6366f1 10%, #a855f7 55%, #ec4899 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 26px auto 0;
    color: var(--muted);
    max-width: 820px;
    font-size: 28px;
    line-height: 1.45;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.checks {
    margin-top: 20px;
    color: #64748b;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 15px;
    flex-wrap: wrap;
}

.checks span::before {
    content: "\2714\0020";
    color: var(--ok);
    font-weight: 700;
}

.shot {
    margin: 42px auto 0;
    width: min(1020px, 100%);
    height: clamp(250px, 36vw, 580px);
    border-radius: 18px;
    border: 1px solid #d5dbe7;
    background: #0b1222;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .18);
    overflow: hidden;
    position: relative;
}

.shot::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, .28), transparent 40%),
        radial-gradient(circle at 75% 78%, rgba(236, 72, 153, .2), transparent 42%),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, .12) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, .12) 0 1px, transparent 1px 22px);
    opacity: .95;
}

.section-title {
    text-align: center;
    margin-top: 56px;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-top: 10px;
    font-size: 23px;
}

.compare {
    margin-top: 34px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.compare-vs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
    pointer-events: none;
}

.compare-pane {
    position: relative;
    border: 5px solid var(--compare-frame);
    border-radius: 14px;
    overflow: visible;
}

.compare-pane+.compare-pane {
    box-shadow: inset 1px 0 0 var(--compare-divider);
}

.compare-pane-media {
    min-height: 360px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    transform: scale(1);
    transition: transform .28s ease, box-shadow .28s ease;
    will-change: transform;
}

.compare-pane:hover .compare-pane-media {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
}

.compare-pane-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .68));
}

.compare-pane-media>* {
    position: relative;
    z-index: 1;
}

.pane-left .compare-pane-media {
    background: url(../images/old.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.pane-right .compare-pane-media {
    background: url(../images/new.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.tag {
    align-self: flex-start;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 14px;
    letter-spacing: .04em;
}

.tag-before {
    background: #ef4444;
}

.tag-after {
    background: #22c55e;
    color: #052e16;
}

.compare h3 {
    margin: 0;
    font-size: 42px;
}

.compare p {
    margin: 10px 0 0;
    font-size: 22px;
    color: #e2e8f0;
}

.features {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-bottom: 68px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.i1 {
    background: #dbeafe;
}

.i2 {
    background: #f3e8ff;
}

.i3 {
    background: #dcfce7;
}

.card h4 {
    margin: 0 0 10px;
    font-size: 26px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 18px;
}

footer {
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    padding: 24px 0 42px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.quick-links a:hover {
    text-decoration: underline;
}

body[data-theme="dark"] .quick-links a {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .compare {
        grid-template-columns: 1fr;
    }

    .compare-vs {
        display: none;
    }

    .compare-pane+.compare-pane {
        box-shadow: inset 0 1px 0 var(--compare-divider);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .nav .hide-sm {
        display: none;
    }

    .topbar {
        height: 72px;
    }

    .brand {
        font-size: 24px;
    }

    .hero p {
        font-size: 20px;
    }

    .compare h3 {
        font-size: 34px;
    }

    .compare p {
        font-size: 18px;
    }

    .card h4 {
        font-size: 24px;
    }

    .card p {
        font-size: 16px;
    }
}

@media (hover: none) {
    .compare-pane:hover .compare-pane-media {
        transform: none;
        box-shadow: none;
    }
}