:root {
    --bg: #070912;
    --bg-soft: #101522;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f7fbff;
    --muted: #aab7ca;
    --blue: #2dd4ff;
    --purple: #8b5cf6;
    --green: #47f0a4;
    --orange: #ffb45c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 8%, rgba(45, 212, 255, 0.26), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.26), transparent 28%),
        linear-gradient(180deg, #070912 0%, #0b1020 42%, #090b13 100%);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

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

button {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 9, 18, 0.78);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(45, 212, 255, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(247, 251, 255, 0.82);
    font-size: 14px;
}

.nav-links a:hover,
.consult-link:hover {
    color: var(--blue);
}

.consult-link {
    padding: 0;
    color: rgba(247, 251, 255, 0.82);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
    gap: clamp(34px, 6vw, 82px);
    min-height: 100vh;
    padding: 132px clamp(20px, 6vw, 88px) 76px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 86px clamp(16px, 4vw, 62px) 36px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.55;
}

.hero-glow-a {
    left: -120px;
    bottom: 10%;
    background: rgba(45, 212, 255, 0.24);
}

.hero-glow-b {
    right: -100px;
    top: 18%;
    background: rgba(139, 92, 246, 0.28);
}

.hero-content,
.hero-phone {
    position: relative;
    z-index: 1;
}

.hero-content {
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.hero-desc,
.section-head p,
.mod-copy p,
.cta-section p,
.qr-dialog p,
.feature-card p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-desc {
    max-width: 650px;
    margin-bottom: 34px;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    color: #041018;
    border: 0;
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 18px 46px rgba(45, 212, 255, 0.26);
}

.secondary-btn {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn:hover {
    border-color: rgba(45, 212, 255, 0.65);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
}

.hero-stats div,
.feature-card,
.mod-panel,
.qr-dialog {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-strong), rgba(255, 255, 255, 0.045));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-stats div {
    padding: 18px;
    border-radius: 20px;
}

.hero-stats strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 580px;
}

.phone-frame {
    position: relative;
    width: min(74vw, 328px);
    aspect-ratio: 1284 / 2778;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.56), 0 0 80px rgba(45, 212, 255, 0.16);
}

.phone-frame::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 50%;
    width: 92px;
    height: 24px;
    border-radius: 0 0 18px 18px;
    background: #070912;
    transform: translateX(-50%);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.floating-card {
    position: absolute;
    min-width: 168px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(7, 9, 18, 0.72);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.floating-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.floating-card strong {
    color: var(--text);
}

.card-top {
    top: 20%;
    left: 3%;
}

.card-bottom {
    right: 2%;
    bottom: 18%;
}

.section,
.mod-section,
.cta-section {
    position: relative;
    z-index: 1;
    padding: 82px clamp(20px, 6vw, 88px);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

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

.feature-card {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 148px;
    height: 148px;
    border-radius: 999px;
    background: rgba(45, 212, 255, 0.12);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: #06101a;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-weight: 900;
}

.mod-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
    gap: 34px;
    align-items: center;
}

.mod-copy {
    max-width: 700px;
}

.mod-copy .primary-btn {
    margin-top: 12px;
}

.mod-panel {
    padding: 16px;
    border-radius: 30px;
}

.mod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mod-row:last-child {
    border-bottom: 0;
}

.mod-row span {
    color: var(--muted);
}

.mod-row strong {
    color: var(--orange);
    white-space: nowrap;
}

.screenshots-section {
    overflow: visible;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    gap: 18px;
    overflow-x: auto;
    align-items: start;
    padding: 14px 4px 46px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 255, 0.55) rgba(255, 255, 255, 0.08);
}

.screenshot-grid figure {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-grid figure:hover {
    border-color: rgba(45, 212, 255, 0.5);
    transform: translateY(-4px);
}

.screenshot-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1284 / 2778;
    border-radius: 22px;
    object-fit: cover;
}

.screenshot-grid figcaption {
    min-height: 96px;
    padding: 16px 8px 10px;
}

.screenshot-grid figcaption strong,
.screenshot-grid figcaption span {
    display: block;
}

.screenshot-grid figcaption strong {
    margin-bottom: 6px;
    font-size: 16px;
}

.screenshot-grid figcaption span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.cta-section {
    max-width: min(1040px, calc(100% - 40px));
    margin: 42px auto 88px;
    padding: clamp(36px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: 38px;
    text-align: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(71, 240, 164, 0.18), transparent 36%),
        radial-gradient(circle at 82% 10%, rgba(45, 212, 255, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 26px 18px;
    color: rgba(247, 251, 255, 0.68);
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
}

.site-footer p {
    margin: 0;
    line-height: 2;
    font-size: 13px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.site-footer a:hover {
    color: var(--blue);
}

.site-footer img {
    width: 18px;
    height: 18px;
}

.qr-modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qr-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.78);
    backdrop-filter: blur(10px);
}

.qr-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 34px;
    border-radius: 30px;
    text-align: center;
}

.qr-dialog h2 {
    font-size: 30px;
}

.qr-dialog img {
    display: block;
    width: min(100%, 268px);
    height: auto;
    margin: 24px auto 0;
    padding: 12px;
    border-radius: 24px;
    background: #fff;
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

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

    .hero,
    .mod-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 116px;
    }

    .hero-content {
        text-align: center;
        justify-self: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats,
    .hero-desc {
        margin-right: auto;
        margin-left: auto;
    }

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

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

    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
        padding: 8px 0 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand span {
        font-size: 15px;
    }

    .consult-link {
        padding: 8px 12px;
        color: #041018;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--green), var(--blue));
        font-weight: 800;
    }

    .hero {
        padding: 104px 18px 54px;
    }

    .hero::before {
        inset: 76px 10px 20px;
        border-radius: 28px;
    }

    .hero-stats,
    .feature-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        padding: 16px;
    }

    .phone-frame {
        width: min(78vw, 292px);
        border-radius: 36px;
    }

    .floating-card {
        display: none;
    }

    .section,
    .mod-section {
        padding: 62px 18px;
    }

    .feature-card {
        min-height: auto;
        padding: 24px;
    }

    .mod-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .cta-section {
        max-width: calc(100% - 28px);
        margin-bottom: 58px;
        border-radius: 28px;
    }

    .qr-dialog {
        padding: 30px 22px;
    }
}
