/* style.css */

/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --primary-sky: #0ea5e9;
    --primary-dark: #0284c7;
    --navy-deep: #1e293b;
    --navy-light: #475569;
    --bg-body: #ffffff;
    --bg-panel: rgba(255, 255, 255, 0.75);
    --text-main: #334155;
    --text-muted: #64748b;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    overflow-x: hidden; 
    cursor: default; 
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
button { font-family: inherit; }

/* --- 2. ANIMATED BACKGROUND --- */
.background-fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.ring-shape { position: absolute; border-radius: 50%; border: 40px solid; opacity: 0.15; filter: blur(5px); animation: rotate-ring 60s linear infinite; }
.ring-1 { top: -10%; left: -10%; width: 600px; height: 600px; border-color: #c4b5fd; border-bottom-color: transparent; border-left-color: transparent; }
.ring-2 { bottom: 10%; right: -5%; width: 500px; height: 500px; border-color: #67e8f9; border-top-color: transparent; border-right-color: transparent; animation-direction: reverse; animation-duration: 45s; }
.blob-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; animation: float 10s ease-in-out infinite; }
.blob-1 { top: 20%; right: 20%; width: 200px; height: 200px; background: #fcd34d; }

@keyframes rotate-ring { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- 3. FOMO TICKER --- */
.ticker-wrap { background: #1e293b; color: #cbd5e1; font-size: 0.8rem; padding: 8px 0; overflow: hidden; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.ticker { display: inline-block; animation: marquee 40s linear infinite; }
.ticker-item { display: inline-block; padding: 0 2rem; }
.ticker-item span { color: var(--success); font-weight:700; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 4. NAVIGATION --- */
.navbar { 
    position: sticky; top: 0; width: 100%; height: 80px; 
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000; 
    display: flex; align-items: center; justify-content: space-between; padding: 0 5%; 
}
.nav-brand { font-size: 1.5rem; font-weight: 900; color: var(--navy-deep); display: flex; align-items: center; gap: 10px; }
.nav-brand i { color: var(--primary-sky); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { font-weight: 600; color: var(--navy-light); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-sky); }
.nav-cta { background: var(--navy-deep); color: white !important; padding: 12px 24px; border-radius: 99px; font-weight: 700; transition: 0.3s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--navy-deep); }

/* --- 5. LAYOUT & HERO --- */
.container { max-width: 900px; margin: 0 auto; padding: 20px; position: relative; z-index: 2; }
.hero { text-align: center; padding: 50px 0 30px; }
.hero h1 { font-size: 3.5rem; color: #1e293b; margin-bottom: 15px; letter-spacing: -0.05em; font-weight: 900; text-transform: uppercase; }
.metallic-text { 
    background: linear-gradient(to right, #94a3b8 0%, #475569 20%, #1e293b 40%, #475569 60%, #94a3b8 100%); 
    background-size: 200% auto; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    animation: shine-metal 4s linear infinite; 
}
@keyframes shine-metal { to { background-position: 200% center; } }
.hero p { color: #64748b; font-size: 1rem; max-width: 550px; margin: 0 auto; line-height: 1.6; }

/* --- 6. CONFIG PANEL --- */
.config-panel { 
    background: var(--bg-panel); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 24px; padding: 35px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1); margin-bottom: 50px; 
}
.scarcity-label { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.text-red { color: var(--danger); font-weight: 700; }
.progress-track { background: #f1f5f9; height: 14px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.progress-fill { background: linear-gradient(90deg, #f87171, #ef4444); height: 100%; width: 28%; transition: width 1s linear; border-radius: 99px; animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--navy-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.custom-select { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 0.9rem; color: var(--navy-deep); background: #fff; outline: none; cursor: pointer; transition: 0.3s; }
.custom-select:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.stock-status { font-size: 0.7rem; margin-top: 8px; font-weight: 700; display: inline-block; padding: 2px 10px; border-radius: 99px; background: #f1f5f9; }

.btn-deploy { 
    width: 100%; background: var(--navy-deep); color: #fff; padding: 18px; font-size: 1.1rem; font-weight: 800; 
    border: 2px solid var(--navy-deep); border-radius: 12px; cursor: pointer; transition: 0.2s; 
    display: flex; justify-content: center; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 0.5px; 
}
.btn-deploy:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px rgba(37, 99, 235, 0.3); background: #0f172a; }
.btn-check-stock { background: var(--warning); border-color: var(--warning); }

.console-box { background: #1e293b; color: #4ade80; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; padding: 20px; border-radius: 8px; margin-top: 25px; height: 160px; overflow-y: auto; display: none; border: 1px solid #334155; }

/* --- 7. CARDS & SECTIONS --- */
.section-header { text-align: center; margin-bottom: 30px; margin-top: 60px; }
.section-header h2 { font-size: 2rem; color: var(--navy-deep); font-weight: 800; }
.section-header p { color: var(--text-muted); margin-top: 8px; }

.social-grid, .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 50px; }

.social-card { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 10px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #cbd5e1, #94a3b8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.stars { color: #fbbf24; font-size: 0.8rem; }
.verified-badge { font-size: 0.7rem; color: var(--success); font-weight: 700; display: flex; align-items: center; gap: 4px; }

.blog-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #f1f5f9; transition: transform 0.2s; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.blog-thumb { height: 160px; background: linear-gradient(45deg, var(--navy-deep), var(--primary-dark)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-tag { font-size: 0.7rem; font-weight: 700; color: var(--primary-sky); text-transform: uppercase; margin-bottom: 8px; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; flex-grow: 1; }
.blog-btn { border: none; background: none; padding: 0; font-family: inherit; font-size: 0.85rem; font-weight: 700; color: var(--navy-deep); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.blog-btn:hover { color: var(--primary-sky); }

/* --- 8. FAQ --- */
.faq-container { max-width: 700px; margin: 0 auto 50px auto; }
.faq-item { background: rgba(255,255,255,0.9); border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--text-muted); }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; border-top: 1px solid transparent; }
.faq-item[open] .faq-content { border-top-color: #f1f5f9; padding-top: 15px; }

/* --- 9. FOOTER --- */
footer { background: var(--navy-deep); color: #e2e8f0; padding: 80px 0 30px; margin-top: 50px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--primary-sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: #64748b; font-size: 0.8rem; }

/* --- 10. MODALS & TOASTS --- */
.modal-backdrop, .article-modal-backdrop { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(241, 245, 249, 0.8); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; 
}
.modal-content { background: #fff; width: 90%; max-width: 450px; padding: 40px; border-radius: 24px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); border: 1px solid #f1f5f9; animation: popIn 0.4s; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-timer { font-size: 2.5rem; font-weight: 800; color: var(--danger); font-family: 'JetBrains Mono', monospace; }
.error-icon { font-size: 3rem; color: var(--danger); margin-bottom: 15px; }

.article-reader { background: #fff; width: 95%; max-width: 800px; height: 90vh; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.article-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.article-close-btn { background: #e2e8f0; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--navy-deep); display: flex; align-items: center; justify-content: center; }
.article-body { padding: 40px; overflow-y: auto; color: var(--text-main); line-height: 1.8; font-size: 1.05rem; }
.article-body h2 { font-size: 1.8rem; color: var(--navy-deep); margin-bottom: 15px; margin-top: 30px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.article-img { width: 100%; height: auto; border-radius: 12px; margin: 30px 0; border: 1px solid #e2e8f0; }

.toast { position: fixed; bottom: 20px; left: 20px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1); border-left: 5px solid var(--primary-sky); font-size: 0.85rem; transform: translateX(-150%); transition: transform 0.4s; z-index: 999; }
.toast.show { transform: translateX(0); }

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 80px; left: 0; width: 100%; background: white; flex-direction: column; padding: 30px; transform: translateY(-150%); transition: 0.3s; border-bottom: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-links.active { transform: translateY(0); }
    .mobile-toggle { display: block; }
    .config-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}