/* ============================================================
   Landing Page — 天机
   Dark, mystical aesthetic inspired by fortune-telling culture
   ============================================================ */

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

body {
    font-family: 'Noto Serif SC', serif;
    background: #0a0908;
    color: #d6d3d1;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-serif-sc { font-family: 'Noto Serif SC', serif; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #44403c; border-radius: 4px; }

/* ===== Navigation ===== */
#nav {
    background: transparent;
}
#nav.scrolled {
    background: rgba(10, 9, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo { color: #fbbf24; }
.nav-links a { color: #a8a29e; text-decoration: none; }
.nav-cta {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.nav-cta:hover {
    background: rgba(251, 191, 36, 0.2);
}

/* ===== Hero ===== */
.hero-section {
    background: #0a0908;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(120, 53, 15, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(10, 9, 8, 1) 0%, transparent 50%);
}

.star-field {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #d6d3d1;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--max-opacity); }
}

.hero-badge {
    color: #a8a29e;
    border: 1px solid rgba(168, 162, 158, 0.2);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 9999px;
}

.hero-title-main {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle { color: #d6d3d1; }
.hero-desc { color: #78716c; }

.hero-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a0908;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}
.hero-btn-primary:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.35);
    transform: translateY(-1px);
}

.hero-btn-secondary {
    background: transparent;
    color: #a8a29e;
    border: 1px solid rgba(168, 162, 158, 0.25);
}
.hero-btn-secondary:hover {
    border-color: rgba(168, 162, 158, 0.5);
    color: #d6d3d1;
}

/* Scroll indicator */
.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(168, 162, 158, 0.3);
    border-radius: 10px;
    position: relative;
}
.scroll-dot {
    width: 3px;
    height: 6px;
    background: #a8a29e;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

/* ===== Quote Section ===== */
.quote-section {
    background: #0a0908;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.quote-text { color: #d6d3d1; }
.quote-author { color: #78716c; }
.quote-explain { color: #57534e; }

/* ===== Methods Section ===== */
#methods {
    background: #0c0a09;
}
.section-title { color: #e7e5e4; }
.section-desc { color: #78716c; }

.method-card {
    position: relative;
}

.method-card-inner {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}

.method-card-inner:hover {
    border-color: rgba(251, 191, 36, 0.15);
    background: rgba(251, 191, 36, 0.03);
    transform: translateY(-2px);
}

.method-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: rgba(251, 191, 36, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.method-content { flex: 1; }
.method-content h3 { color: #e7e5e4; }
.method-desc { color: #78716c; }

.method-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.method-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(251, 191, 36, 0.06);
    color: #a8a29e;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

/* ===== How Section ===== */
.how-section {
    background: #0a0908;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 1rem;
    font-weight: 600;
}

.step-content h3 { color: #d6d3d1; }
.step-desc { color: #78716c; }

.step-connector {
    display: flex;
    justify-content: flex-start;
    padding-left: 21px; /* center of step-number (44/2 - 0.5) */
    width: 100%;
    height: 32px;
}

.step-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
}

/* ===== Features Section ===== */
#features {
    background: #0c0a09;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    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 {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(251, 191, 36, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.feature-card h3 { color: #d6d3d1; }
.feature-desc { color: #78716c; }

/* ===== CTA Section ===== */
.cta-section {
    background: #0a0908;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(120, 53, 15, 0.1) 0%, transparent 70%);
}

.cta-title { color: #e7e5e4; position: relative; z-index: 1; }
.cta-desc { color: #78716c; position: relative; z-index: 1; }

.cta-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a0908;
    font-weight: 600;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
    position: relative;
    z-index: 1;
}
.cta-btn:hover {
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer-section {
    background: #0a0908;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo { color: #fbbf24; }
.footer-tagline { color: #57534e; }
.footer-copy { color: #44403c; }

/* ===== Animations ===== */
[data-animate] {
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-up"] {
    transform: translateY(24px);
}
[data-animate].visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== Accessibility: Focus indicators ===== */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section { min-height: 90vh; }

    .method-card-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .method-icon {
        width: 48px;
        height: 48px;
    }
    .method-icon iconify-icon {
        width: 24px;
        height: 24px;
    }
}
