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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    background: #020617;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* === Background === */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 500px; height: 500px;
    top: -180px; left: -140px;
    background: rgba(59, 130, 246, 0.25);
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-2 {
    width: 380px; height: 380px;
    bottom: -120px; right: -80px;
    background: rgba(34, 211, 238, 0.2);
    animation: orbFloat 14s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px; height: 300px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(167, 139, 250, 0.15);
    animation: orbFloat 16s ease-in-out infinite 2s;
}

.particles {
    position: absolute;
    inset: 0;
}

.particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.55);
    box-shadow: 0 0 5px rgba(147, 197, 253, 0.5);
    animation: particleRise 5s linear infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.06); }
}

@keyframes particleRise {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    20% { opacity: 1; }
    80% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-140px) scale(1.3); }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 40px;
    height: 32px;
    border-radius: 8px;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.25s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta-item {
    margin-left: 12px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

/* === Sections === */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-desc {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 20%, #22d3ee 50%, #a78bfa 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    margin-top: 20px;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hero-desc {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.icon-arrow {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.icon-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === Intro === */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.intro-card {
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.intro-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.intro-icon {
    width: 44px;
    height: 44px;
    color: #3b82f6;
    margin-bottom: 20px;
}

.intro-icon svg {
    width: 100%;
    height: 100%;
}

.intro-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.intro-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* === Steps === */
.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 28px;
    padding: 32px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}

.step-number {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* === Flow === */
.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.flow-node {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.flow-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    margin-top: 22px;
    position: relative;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.flow-card {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s;
}

.flow-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}

.flow-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    color: #3b82f6;
}

.flow-icon svg {
    width: 100%;
    height: 100%;
}

.flow-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.flow-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.flow-connector {
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, #3b82f6, rgba(34, 211, 238, 0.3));
    margin-left: 7px;
}

/* === Settlement Types === */
.settlement-types {
    margin-top: 64px;
    text-align: center;
}

.settlement-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
}

.settlement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.settlement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s;
}

.settlement-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.settlement-badge {
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* === Roles === */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.role-card {
    text-align: center;
    padding: 36px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
}

.role-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--role-color);
}

.role-icon svg {
    width: 100%;
    height: 100%;
}

.role-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.role-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.feature-number {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* === CTA === */
.cta-section {
    padding-bottom: 100px;
}

.cta-box {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
}

.cta-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
}

.cta-desc {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 240px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-icon {
    width: 32px;
    height: 28px;
    border-radius: 6px;
}

.footer-desc {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #3b82f6;
}

.footer-bottom {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 16px 24px;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

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

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-cta-item {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .step {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }

    .flow-card {
        flex-direction: column;
    }

    .hide-mobile {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
