/* ============================================
   NOVELER - Landing Page Styles
   ============================================ */

/* Particles canvas */
#particles-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ============ NAV ============ */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: var(--sp-4) 0;
    background: transparent;
    transition: all var(--t-normal) var(--ease-out);
}
.landing-nav.scrolled {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-brand {
    font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
    display: flex; align-items: center; gap: var(--sp-2);
}
.nav-brand span { background: linear-gradient(135deg, var(--accent), #F0BC5E); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: var(--sp-4); }
.nav-links a { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; transition: color var(--t-fast); }
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 640px) {
    .nav-links a:not(.btn) { display: none; }
}

/* ============ HERO ============ */
.hero {
    min-height: 100dvh; display: flex; flex-direction: column;
    justify-content: center; position: relative; overflow: hidden;
    padding: var(--sp-20) var(--sp-4) var(--sp-8);
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(232,168,56,0.12) 0%, transparent 70%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255,107,138,0.06) 0%, transparent 60%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
    display: inline-block; padding: var(--sp-2) var(--sp-4);
    background: var(--accent-soft); border: 1px solid rgba(232,168,56,0.2);
    border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600;
    color: var(--accent); margin-bottom: var(--sp-6);
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1.05; margin-bottom: var(--sp-6);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}
.typed-wrapper {
    display: inline-block; color: var(--accent);
    min-width: 200px; min-height: 1.1em;
}
.typed-cursor {
    font-weight: 200; animation: blink 0.8s infinite;
    color: var(--accent);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
    font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 460px; margin-bottom: var(--sp-8);
    animation: fadeInUp 0.6s var(--ease-out) 0.6s both;
}
.hero-cta {
    display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start;
    animation: fadeInUp 0.6s var(--ease-out) 0.8s both;
}
.hero-note { font-size: 0.75rem; color: var(--text-muted); }
.btn-glow {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(232,168,56,0.1);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px var(--accent-glow); }
    50% { box-shadow: 0 0 50px var(--accent-glow), 0 0 80px rgba(232,168,56,0.15); }
}

/* Hero preview cards */
.hero-previews {
    position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
    display: none;
}
@media (min-width: 900px) {
    .hero-previews { display: block; }
    .hero-content { max-width: 50%; }
}
.preview-card {
    position: absolute; width: 260px; padding: var(--sp-5);
    background: var(--bg-glass); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg);
    font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6;
    font-style: italic;
}
.preview-1 { right: 0; top: -120px; animation: float1 6s ease-in-out infinite; }
.preview-2 { right: 60px; top: 20px; animation: float2 7s ease-in-out infinite 1s; }
.preview-3 { right: 10px; top: 160px; animation: float3 8s ease-in-out infinite 2s; }
.preview-genre {
    display: inline-block; font-style: normal; font-weight: 600; font-size: 0.6875rem;
    margin-bottom: var(--sp-2); color: var(--accent);
}
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-15px) rotate(1deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-20px) rotate(-1deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

.hero-scroll-indicator {
    position: absolute; bottom: var(--sp-8); left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
    color: var(--text-muted); font-size: 0.75rem; z-index: 2;
    animation: fadeInUp 0.6s var(--ease-out) 1.2s both;
}
.scroll-arrow {
    width: 20px; height: 20px; border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(5px,5px); } }

/* ============ SOCIAL PROOF ============ */
.social-proof {
    padding: var(--sp-6) 0; border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-secondary); position: relative; z-index: 2;
    overflow: hidden;
}
.proof-ticker {
    display: flex; gap: var(--sp-8); animation: tickerScroll 20s linear infinite;
    white-space: nowrap;
}
.proof-item { font-size: 0.875rem; color: var(--text-secondary); flex-shrink: 0; }
.proof-item strong { color: var(--text-primary); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ SECTIONS COMMON ============ */
.section-header { text-align: center; margin-bottom: var(--sp-10); position: relative; z-index: 2; }
.section-tag {
    display: inline-block; font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
    background: var(--accent-soft); padding: var(--sp-1) var(--sp-4);
    border-radius: var(--r-full); margin-bottom: var(--sp-4);
}
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; }
.section-desc { color: var(--text-secondary); margin-top: var(--sp-3); font-size: 1.0625rem; }

/* ============ CATEGORIES ============ */
.categories-section { padding: var(--sp-16) 0; position: relative; z-index: 2; overflow: hidden; }
.categories-carousel {
    display: flex; gap: var(--sp-4); overflow-x: auto;
    padding: var(--sp-4) var(--sp-2); scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.categories-carousel::-webkit-scrollbar { display: none; }

.category-card {
    flex: 0 0 260px; scroll-snap-align: start;
    padding: var(--sp-6); border-radius: var(--r-xl);
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
    transition: all var(--t-normal) var(--ease-out); cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--card-color, var(--accent)); }
.cat-glow {
    position: absolute; top: -50%; right: -50%; width: 150%; height: 150%;
    background: radial-gradient(circle, var(--card-color, var(--accent)) 0%, transparent 70%);
    opacity: 0.04; transition: opacity var(--t-normal);
}
.category-card:hover .cat-glow { opacity: 0.08; }
.cat-emoji { font-size: 2.5rem; margin-bottom: var(--sp-3); }
.category-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-2); }
.category-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: var(--sp-4); }
.cat-excerpt {
    font-size: 0.8125rem; color: var(--text-muted); font-style: italic;
    padding: var(--sp-3); background: rgba(255,255,255,0.03); border-radius: var(--r-md);
    margin-bottom: var(--sp-3); line-height: 1.5;
}
.cat-stats { font-size: 0.6875rem; color: var(--text-muted); }

/* ============ EXPERIENCE / PHONE ============ */
.experience-section { padding: var(--sp-16) 0; background: var(--bg-secondary); position: relative; z-index: 2; }
.phone-mockup { display: flex; justify-content: center; margin-top: var(--sp-8); }
.phone-frame {
    width: 320px; background: #1A1A1F; border-radius: 40px;
    padding: 12px; border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-notch {
    width: 120px; height: 24px; background: #0D0D0F; border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}
.phone-screen {
    background: var(--bg-primary); border-radius: 28px;
    padding: var(--sp-5); min-height: 440px; overflow: hidden;
}
.demo-reader {}
.demo-header { text-align: center; margin-bottom: var(--sp-5); }
.demo-chapter-num { font-size: 0.625rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.demo-chapter-title { font-family: var(--font-display); font-size: 1.375rem; margin-top: var(--sp-1); }
.demo-time { font-size: 0.625rem; color: var(--text-muted); }
.demo-body { font-size: 0.8125rem; line-height: 1.75; color: var(--text-secondary); }
.demo-body p { margin-bottom: var(--sp-3); }
.demo-dropcap { font-family: var(--font-display); font-size: 2rem; float: left; line-height: 0.8; padding-right: var(--sp-2); color: var(--accent); }
.demo-body em { color: var(--accent); font-style: italic; }
.demo-cliffhanger {
    text-align: center; padding: var(--sp-4) 0;
    font-size: 0.75rem; font-weight: 600; color: var(--text-primary);
}
.cliff-line { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: var(--sp-2) 0; }
.demo-streak-popup {
    display: flex; align-items: center; gap: var(--sp-2); justify-content: center;
    padding: var(--sp-3); background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(232,168,56,0.15));
    border-radius: var(--r-md); font-size: 0.75rem; margin-top: var(--sp-3);
    border: 1px solid rgba(255,107,53,0.2);
    animation: popIn 0.5s var(--ease-spring) 2s both;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* ============ HOW IT WORKS ============ */
.how-section { padding: var(--sp-16) 0; position: relative; z-index: 2; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.step-card {
    text-align: center; padding: var(--sp-8) var(--sp-5);
    background: var(--bg-card); border-radius: var(--r-xl);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--t-normal) var(--ease-out);
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.step-number { font-size: 0.6875rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: var(--sp-3); }
.step-visual { font-size: 3rem; margin-bottom: var(--sp-4); }
.step-card h3 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); }

/* ============ FEATURES BENTO ============ */
.features-section { padding: var(--sp-16) 0; background: var(--bg-secondary); position: relative; z-index: 2; }
.features-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.bento-item {
    padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-xl);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--t-normal) var(--ease-out);
}
.bento-item:hover { border-color: rgba(255,255,255,0.1); }
.bento-item.bento-large { grid-column: span 2; }
.bento-icon { font-size: 2rem; margin-bottom: var(--sp-3); }
.bento-item h3 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.bento-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.bento-demo-streak { margin-top: var(--sp-4); }
.mini-streak {
    display: inline-block; padding: var(--sp-2) var(--sp-4);
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(232,168,56,0.15));
    border-radius: var(--r-full); font-weight: 700; font-size: 0.875rem;
    border: 1px solid rgba(255,107,53,0.2);
}
@media (max-width: 480px) {
    .features-bento { grid-template-columns: 1fr; }
    .bento-item.bento-large { grid-column: span 1; }
}

/* ============ PRICING ============ */
.pricing-section { padding: var(--sp-16) 0; position: relative; z-index: 2; }
.pricing-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); max-width: 640px; margin: 0 auto; }
.price-card {
    padding: var(--sp-8) var(--sp-6); border-radius: var(--r-xl);
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-2); }
.price-amount { font-size: 2.5rem; font-weight: 900; margin-bottom: var(--sp-5); }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.price-card ul { margin-bottom: var(--sp-6); }
.price-card li {
    padding: var(--sp-2) 0; font-size: 0.875rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: var(--sp-2);
}
.price-card li::before { content: '✓'; color: var(--success); font-weight: 700; }
.price-featured {
    border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-card) 30%);
}
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: var(--sp-1) var(--sp-4); background: var(--accent); color: #0D0D0F;
    font-size: 0.6875rem; font-weight: 800; border-radius: var(--r-full); letter-spacing: 0.05em;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section { padding: var(--sp-16) 0; background: var(--bg-secondary); position: relative; z-index: 2; overflow: hidden; }
.testimonials-scroll {
    display: flex; gap: var(--sp-4); overflow-x: auto;
    padding: var(--sp-2); scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.test-card {
    flex: 0 0 280px; scroll-snap-align: start;
    padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,0.05);
}
.test-stars { color: var(--accent); margin-bottom: var(--sp-3); letter-spacing: 2px; }
.test-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); font-style: italic; }
.test-author { display: block; margin-top: var(--sp-3); font-size: 0.75rem; color: var(--text-muted); font-style: normal; }

/* ============ FAQ ============ */
.faq-section { padding: var(--sp-16) 0; position: relative; z-index: 2; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-item summary {
    padding: var(--sp-5) 0; font-weight: 600; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9375rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon::after { content: '+'; font-size: 1.25rem; color: var(--accent); }
.faq-item[open] .faq-icon::after { content: '−'; }
.faq-item p { padding: 0 0 var(--sp-5); color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* ============ FINAL CTA ============ */
.final-cta {
    padding: var(--sp-20) var(--sp-4); position: relative; z-index: 2;
    background: radial-gradient(ellipse 80% 50% at 50% 80%, rgba(232,168,56,0.08) 0%, transparent 70%);
}
.cta-emoji { font-size: 4rem; margin-bottom: var(--sp-4); animation: float1 4s ease-in-out infinite; }

/* ============ FOOTER ============ */
.landing-footer {
    padding: var(--sp-8) var(--sp-4);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; z-index: 2;
}

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

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
