/* ============================================
   Pulsar - 游戏辅助平台
   暗黑 · 精炼 · 高级感
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #030406;
    color: #cbd5e1;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

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

.site-header, .hero, .products, .features, .features-inner, .cta, .site-footer {
    position: relative;
    z-index: 1;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; outline: none; }

/* === Subtle Ambient Grain === */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ============================================
   HEADER - 浮空感
   ============================================ */
.site-header {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 1300px;
    background: rgba(3, 4, 6, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.header-inner {
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* === Nav === */
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 20px;
    margin-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 2s infinite;
}

.status-text {
    font-size: 11px;
    color: #22c55e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.header-nav > a {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}
.header-nav > a:hover { color: #e2e8f0; }

/* === Auth === */
.header-auth { display: flex; align-items: center; gap: 8px; }

.btn-login {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s;
}
.btn-login:hover { color: #fff; }

.btn-register {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    transition: all 0.3s;
}
.btn-register:hover {
    background: #2563eb;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}
.btn-user:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ============================================
   HERO - 大字极简
   ============================================ */
.hero {
    padding: 200px 32px 120px;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    margin-bottom: 32px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease both;
}
.hero-status .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
    letter-spacing: -1px;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: #475569;
    max-width: 520px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 38px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    padding: 14px 38px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.btn-outline:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.btn-qq {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #12B7F5;
    transition: all 0.3s;
}
.btn-qq:hover {
    background: #0ea0db;
    box-shadow: 0 4px 20px rgba(18, 183, 245, 0.35);
}

/* ============================================
   PRODUCTS - 双产品聚焦
   ============================================ */
.products {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-badge {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #475569;
    margin-bottom: 60px;
}

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

.product-card {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
}

.product-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 80px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.05);
}

.product-card.featured {
    border-color: rgba(59, 130, 246, 0.2);
}

.product-card.featured:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 80px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.featured::after {
    content: '推荐';
    position: absolute;
    top: 0; right: 0;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 0 16px 0 12px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.product-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.product-status.undetected {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.product-status.undetected .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
}

.product-status.dev {
    background: rgba(251, 191, 36, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.product-status.dev .dot-dev {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 5px #f59e0b;
}

.product-info {
    position: relative;
    z-index: 2;
    padding: 28px 24px 24px;
    width: 100%;
}
.product-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.product-info .game-name {
    font-size: 11px;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.product-info .desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.7;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.product-price small {
    font-size: 12px;
    color: #475569;
    font-weight: 400;
}

.btn-buy {
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    transition: all 0.3s;
}
.btn-buy:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn-paused {
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: rgba(71, 85, 105, 0.15);
    border: 1px solid rgba(71, 85, 105, 0.2);
    cursor: not-allowed;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 100px 32px;
}

.features-box {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 56px 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 56px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    font-size: 26px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 72px 32px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.footer-brand p {
    font-size: 12px;
    color: #475569;
    line-height: 1.7;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 12px;
    color: #475569;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-col a:hover { color: #94a3b8; }

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #334155;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .header-nav { display: none; }
    .product-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 40px; }
    .site-header { width: calc(100% - 24px); }
}
@media (max-width: 600px) {
    .hero-title { font-size: 30px; }
    .hero { padding: 160px 20px 80px; }
    .features-grid { grid-template-columns: 1fr; }
    .features-box { padding: 32px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .section-title { font-size: 26px; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* ============================================
   GRADIENT TEXT - by SORA
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    transition: all 0.3s ease;
    background-size: 200% auto;
}

.gradient-text:hover {
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
