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

:root {
    --bg: #080810;
    --surface: #12121c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --accent: #00d4aa;
    --accent-2: #6366f1;
    --gradient: linear-gradient(135deg, #00d4aa 0%, #6366f1 100%);
    --glow: rgba(0, 212, 170, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

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

.wave-1 {
    width: 600px;
    height: 600px;
    background: #00d4aa;
    top: -200px;
    left: -100px;
    animation: drift 12s ease-in-out infinite;
}

.wave-2 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: 20%;
    right: -150px;
    animation: drift 15s ease-in-out infinite reverse;
}

.wave-3 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: 30%;
    animation: drift 10s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

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

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text);
}

.header-nav a.active {
    position: relative;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

/* Hero */
.hero {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--glow); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 32px;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
}

.feature-chip svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 32px var(--glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-icon {
    font-size: 20px;
}

.cta-arrow {
    width: 18px;
    height: 18px;
}

/* Waveform */
.waveform-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 60px;
    margin-top: 48px;
    opacity: 0.6;
}

.waveform-bar {
    width: 4px;
    height: var(--h);
    background: var(--gradient);
    border-radius: 2px;
    animation: waveAnim 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(odd) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3n) { animation-delay: 0.25s; }
.waveform-bar:nth-child(4n) { animation-delay: 0.4s; }

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

/* Stats */
.stats {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 24px 60px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Verify Overlay */
.verify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.verify-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.verify-modal {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px 24px;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.verify-overlay.show .verify-modal {
    transform: scale(1) translateY(0);
}

.verify-modal.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.verify-header {
    text-align: center;
    margin-bottom: 20px;
}

.verify-shield {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--accent);
}

.verify-shield svg {
    width: 100%;
    height: 100%;
}

.verify-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.verify-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.verify-prompt {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.verify-prompt strong {
    color: var(--accent);
    font-weight: 600;
}

/* Captcha Grid */
.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.captcha-tile {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #1a1a28;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    user-select: none;
}

.captcha-tile:hover {
    transform: scale(1.03);
    border-color: rgba(0, 212, 170, 0.3);
}

.captcha-tile.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.captcha-tile.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-tile svg {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.captcha-tile .tile-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

/* Footer */
.verify-footer {
    display: flex;
    gap: 10px;
}

.verify-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.verify-refresh svg {
    width: 16px;
    height: 16px;
}

.verify-refresh:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.verify-submit {
    flex: 1;
    padding: 12px 20px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.verify-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.verify-submit:not(:disabled):hover {
    transform: translateY(-1px);
}

.verify-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.verify-hint span {
    color: var(--accent);
    font-weight: 600;
}

.verify-error {
    text-align: center;
    font-size: 13px;
    color: #ff6b6b;
    margin-top: 8px;
}

/* Success */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    text-align: center;
    padding: 40px;
}

.success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--accent);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check svg {
    width: 100%;
    height: 100%;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.success-loader {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        padding: 16px 20px;
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding-top: 40px;
    }

    .stats {
        gap: 24px;
    }

    .stat-item strong {
        font-size: 20px;
    }
}
