:root {
    --ink: #07111f;
    --ink-2: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, .28);
    --paper: #ffffff;
    --soft: #f7fafc;
    --cyan: #67e8f9;
    --teal: #2dd4bf;
    --pink: #f472b6;
    --violet: #818cf8;
    --warm: #f7d8a8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    height: 72px;
    padding: 0 32px;
    color: #ecfeff;
    background: rgba(6, 11, 31, .74);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: rgba(6, 11, 31, .92);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(244, 114, 182, .18);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    color: rgba(236, 254, 255, .76);
}

.site-nav a {
    transition: color .2s ease;
}

.site-nav a:hover {
    color: #fff;
}

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

.header-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #082f49;
    background: #e0fbff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.header-login {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero-section {
    position: relative;
    min-height: 760px;
    padding: 122px 28px 72px;
    color: #edf7ff;
    background:
        linear-gradient(116deg, rgba(244, 114, 182, .00) 0%, rgba(244, 114, 182, .18) 36%, rgba(129, 140, 248, .10) 54%, rgba(45, 212, 191, .08) 72%, rgba(45, 212, 191, .00) 100%),
        linear-gradient(180deg, #080b20 0%, #0a1024 52%, #111827 100%);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 88%);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 56%;
    height: 220px;
    background:
        linear-gradient(100deg, transparent 0%, rgba(103, 232, 249, .00) 12%, rgba(103, 232, 249, .20) 34%, rgba(244, 114, 182, .14) 58%, rgba(129, 140, 248, .00) 82%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 26px);
    transform: skewY(-7deg);
    opacity: .82;
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
    gap: 32px;
    align-items: center;
}

.hero-copy {
    padding-top: 22px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    color: #0f766e;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ccfbf1;
    background: rgba(20, 184, 166, .10);
    border: 1px solid rgba(94, 234, 212, .22);
    border-radius: 999px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 20px var(--teal);
}

.hero-copy h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.03;
    letter-spacing: 0;
    font-weight: 950;
}

.hero-lede {
    max-width: 520px;
    margin: 24px 0 30px;
    color: rgba(237, 247, 255, .74);
    font-size: 18px;
}

.hero-actions,
.download-card {
    display: flex;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.disabled-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.primary-button {
    color: #082f49;
    background: #e0fbff;
    box-shadow: 0 18px 44px rgba(103, 232, 249, .18);
}

.secondary-button {
    color: inherit;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}

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

.disabled-button {
    color: #94a3b8;
    background: #e2e8f0;
    cursor: not-allowed;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 500px;
    margin-top: 42px;
}

.hero-metrics div {
    padding: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.hero-metrics strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.hero-metrics span {
    color: rgba(237, 247, 255, .64);
    font-size: 12px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    isolation: isolate;
}

.real-device-layer {
    position: absolute;
    inset: 0;
}

.real-photo-frame {
    position: absolute;
    top: 54px;
    right: 6px;
    width: min(560px, calc(100% - 24px));
    height: 382px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 13, 35, .04), rgba(244, 114, 182, .10)),
        url("../images/real-device-workspace.jpg") center / cover no-repeat;
    border: 1px solid rgba(216, 180, 254, .22);
    box-shadow: 0 34px 88px rgba(15, 23, 42, .38);
    overflow: hidden;
}

.real-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 13, 35, .00) 46%, rgba(8, 13, 35, .52) 100%),
        radial-gradient(circle at 16% 12%, rgba(103, 232, 249, .28), transparent 34%);
}

.real-photo-caption {
    position: absolute;
    left: 8px;
    bottom: 42px;
    z-index: 2;
    width: min(296px, 48%);
    padding: 18px;
    color: #edf7ff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(8, 13, 35, .70);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.real-photo-caption small {
    display: block;
    color: rgba(237, 247, 255, .58);
    font-size: 11px;
    font-weight: 900;
}

.real-photo-caption strong {
    display: block;
    margin-top: 8px;
    font-size: 25px;
    line-height: 1.15;
}

.real-photo-caption p {
    margin: 10px 0 0;
    color: rgba(237, 247, 255, .68);
    font-size: 13px;
}

.section {
    padding: 96px 28px;
}

.light-section {
    background: #ffffff;
}

.download-section {
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.dark-band {
    color: #edf7ff;
    background:
        linear-gradient(125deg, rgba(45, 212, 191, .10), transparent 38%),
        linear-gradient(180deg, #0f172a, #111827);
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.subscription-panel h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: 0;
}

.section-heading p:last-child {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.dark-band .section-heading p:last-child {
    color: rgba(237, 247, 255, .70);
}

.feature-grid,
.download-grid,
.timeline {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

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

.feature-card,
.download-card,
.timeline-step,
.subscription-panel {
    border-radius: 8px;
}

.feature-card {
    min-height: 254px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
}

.feature-number {
    display: inline-flex;
    margin-bottom: 26px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.feature-card h3,
.download-card h3,
.timeline-step h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
}

.feature-card p,
.download-card p,
.timeline-step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.timeline {
    grid-template-columns: repeat(3, 1fr);
    counter-reset: flow;
}

.timeline-step {
    position: relative;
    min-height: 230px;
    padding: 26px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.timeline-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 42px;
    border-radius: 999px;
    color: #082f49;
    background: #e0fbff;
    font-weight: 950;
}

.timeline-step p {
    color: rgba(237, 247, 255, .70);
}

.download-grid {
    grid-template-columns: 1.12fr .94fr .94fr;
}

.download-card {
    min-height: 336px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.download-card.featured {
    color: #edf7ff;
    background:
        linear-gradient(135deg, rgba(244, 114, 182, .22), rgba(103, 232, 249, .14)),
        #0f172a;
    border-color: rgba(103, 232, 249, .18);
}

.download-card.featured p,
.download-card.featured small {
    color: rgba(237, 247, 255, .72);
}

.download-card .primary-button,
.download-card .secondary-button,
.download-card .disabled-button {
    margin-top: auto;
}

.download-card .secondary-button {
    color: #0f172a;
    background: #f8fafc;
    border-color: var(--line);
}

.platform-label {
    color: #0f766e;
    font-size: 16px;
    font-weight: 950;
}

.featured .platform-label {
    color: #ccfbf1;
}

.download-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.subscription-section {
    padding-top: 0;
    background: #f8fafc;
}

.subscription-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .10), rgba(244, 114, 182, .08)),
        #ffffff;
    border: 1px solid var(--line);
}

.subscription-copy {
    display: grid;
    align-content: center;
}

.subscription-copy p:last-child {
    max-width: 520px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 16px;
}

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

.subscription-points div {
    min-height: 148px;
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(148, 163, 184, .24);
}

.subscription-points strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.25;
}

.subscription-points span {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.site-footer {
    padding: 42px 28px;
    color: rgba(237, 247, 255, .74);
    background: #070918;
    text-align: center;
}

.site-footer .footer-brand {
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    margin: 14px 0 18px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 470px;
    }

    .real-photo-frame {
        left: 0;
        right: auto;
        width: 100%;
    }

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

    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        padding: 0 18px;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        display: none;
        grid-column: 1 / -1;
        padding: 16px;
        border-radius: 8px;
        background: rgba(6, 11, 31, .96);
        border: 1px solid rgba(255, 255, 255, .12);
    }

    .site-nav.is-open {
        display: grid;
        gap: 12px;
    }

    .menu-button {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 110px 18px 54px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-lede {
        font-size: 16px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .real-photo-frame {
        top: 0;
        height: 280px;
    }

    .real-photo-caption {
        left: 14px;
        right: 14px;
        bottom: 24px;
        width: auto;
        padding: 15px;
    }

    .real-photo-caption strong {
        font-size: 20px;
    }

    .hero-visual {
        min-height: 310px;
    }

    .feature-grid,
    .timeline,
    .subscription-panel,
    .subscription-points {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 18px;
    }

    .section-heading h2,
    .subscription-panel h2 {
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand,
    .footer-brand {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-button,
    .secondary-button,
    .disabled-button {
        width: 100%;
    }

    .section-heading h2,
    .subscription-panel h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .primary-button,
    .secondary-button {
        transition: none;
    }
}
