:root {
    --bg: #0b0f1f;
    --bg-2: #11162b;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text: #f1f5fb;
    --text-dim: #9fb1d1;
    --text-faint: #64749a;
    --cyan: #38bdf8;
    --purple: #818cf8;
    --pink: #f472b6;
    --green: #34d399;
    --orange: #fbbf24;
    --glow-cyan: rgba(56, 189, 248, 0.35);
    --glow-purple: rgba(129, 140, 248, 0.35);
    --glow-pink: rgba(244, 114, 182, 0.35);
    --border: rgba(255, 255, 255, 0.1);
    --radius: 28px;
    --radius-lg: 40px;
    --radius-sm: 16px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

.nebula-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(129, 140, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(244, 114, 182, 0.08) 0%, transparent 45%);
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
    position: relative;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5vw;
    backdrop-filter: blur(16px);
    background: rgba(11, 15, 31, 0.7);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(11, 15, 31, 0.9);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.logo-text {
    background: linear-gradient(90deg, var(--text), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 5px;
    border-radius: 5px;
    background: var(--cyan);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 140px 5vw 120px;
    overflow: hidden;
}

.hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: var(--cyan);
    top: 10%;
    left: -5%;
    animation: blobFloat 10s ease-in-out infinite alternate;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: var(--purple);
    top: 40%;
    right: -5%;
    animation: blobFloat 12s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: var(--pink);
    bottom: 5%;
    left: 30%;
    animation: blobFloat 14s ease-in-out infinite alternate;
}

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, -30px) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 40px;
}

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

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(56, 189, 248, 0.4);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: rgba(56, 189, 248, 0.3);
}

.hero-card {
    position: relative;
    z-index: 2;
    width: 320px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-chip {
    font-size: 0.75rem;
    color: var(--text-faint);
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
}

.card-status {
    font-size: 0.75rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.card-body {
    margin-bottom: 20px;
}

.metric {
    margin-bottom: 20px;
}

.metric-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.mini-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px;
    background: linear-gradient(to top, var(--cyan), var(--purple));
    opacity: 0.8;
    animation: chartGrow 1.5s ease-out backwards;
}

.mini-chart span:nth-child(1) { animation-delay: 0.1s; }
.mini-chart span:nth-child(2) { animation-delay: 0.2s; }
.mini-chart span:nth-child(3) { animation-delay: 0.3s; }
.mini-chart span:nth-child(4) { animation-delay: 0.4s; }
.mini-chart span:nth-child(5) { animation-delay: 0.5s; }
.mini-chart span:nth-child(6) { animation-delay: 0.6s; }

@keyframes chartGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.card-footer {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 48px;
    border-radius: 1px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

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

.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 460px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.glass-card {
    position: relative;
    padding: 36px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
    color: #fff;
}

.icon-cyan { background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(56,189,248,0.08)); border: 1px solid rgba(56,189,248,0.25); color: var(--cyan); }
.icon-purple { background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(129,140,248,0.08)); border: 1px solid rgba(129,140,248,0.25); color: var(--purple); }
.icon-pink { background: linear-gradient(135deg, rgba(244,114,182,0.2), rgba(244,114,182,0.08)); border: 1px solid rgba(244,114,182,0.25); color: var(--pink); }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-text {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(56, 189, 248, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-body {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 480px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.98rem;
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.bullet.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--glow-cyan); }
.bullet.purple { background: var(--purple); box-shadow: 0 0 10px var(--glow-purple); }
.bullet.pink { background: var(--pink); box-shadow: 0 0 10px var(--glow-pink); }
.bullet.green { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }

.split-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.device-frame {
    position: relative;
    width: 340px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-8deg) rotateX(6deg);
    transition: transform 0.5s var(--ease-out);
}

.device-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.device-screen {
    border-radius: var(--radius);
    background: rgba(0,0,0,0.25);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.screen-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.screen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.screen-dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--glow-cyan); }
.screen-dot.purple { background: var(--purple); box-shadow: 0 0 10px var(--glow-purple); }
.screen-dot.pink { background: var(--pink); box-shadow: 0 0 10px var(--glow-pink); }

.screen-bar {
    height: 10px;
    width: var(--w);
    border-radius: 100px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    opacity: 0.85;
}

.screen-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.screen-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.screen-blocks span {
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--surface);
}

.screen-blocks span:nth-child(1) { background: rgba(56,189,248,0.15); }
.screen-blocks span:nth-child(2) { background: rgba(129,140,248,0.15); }
.screen-blocks span:nth-child(3) { background: rgba(244,114,182,0.15); }

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    padding: 36px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease-out), background 0.4s;
}

.story-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
}

.story-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
}

.story-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.story-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.cta {
    padding-bottom: 100px;
}

.cta-box {
    position: relative;
    padding: 72px 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(129,140,248,0.08));
    border: 1px solid var(--border);
    text-align: center;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,114,182,0.2), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    margin-bottom: 14px;
    position: relative;
}

.cta-text {
    color: var(--text-dim);
    margin-bottom: 34px;
    position: relative;
}

.cta-form {
    position: relative;
    display: inline-flex;
    gap: 10px;
    background: rgba(11, 15, 31, 0.6);
    padding: 8px;
    border-radius: 100px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.cta-input {
    width: 260px;
    padding: 14px 22px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.95rem;
}

.cta-input::placeholder {
    color: var(--text-faint);
}

.form-thanks {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    color: var(--green);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    white-space: nowrap;
}

.cta-form.submitted {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.cta-form.submitted + .form-thanks {
    opacity: 1;
}

.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: rgba(11, 15, 31, 0.5);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-copy {
    color: var(--text-faint);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 130px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-card {
        width: 100%;
        max-width: 360px;
    }

    .hero-blobs .blob-2 {
        top: 60%;
    }
}

@media (max-width: 960px) {
    .card-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .split-visual {
        order: -1;
    }

    .device-frame {
        transform: none;
    }
}

@media (max-width: 720px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 16px 5vw;
        background: rgba(11, 15, 31, 0.95);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(16px);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 90px 0;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-form {
        flex-direction: column;
        border-radius: var(--radius);
        width: 100%;
    }

    .cta-input {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}
