/* 
 * BADBIT SITE — SaaS Premium VIP Light Design v4.0
 * Aesthetic: Minimalist, High-end, VIP Light-White (#fcfcfc)
 * Author: Antigravity AI
 */

:root {
    /* Colors */
    --bg-main: #fcfcfc;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-soft: rgba(37, 99, 235, 0.05);
    
    --text-main: #0f172a;
    --text-dim: #475569;
    --text-muted: #94a3b8;
    
    --border: #eef2f6;
    --border-dark: #e2e8f0;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 20px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.08);
    
    /* Typography */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 18px; /* Mobile-first priority */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.serif-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ── Components ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: none;
    outline: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background: var(--bg-soft);
}

.post-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: 0.4s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ── Site Header ── */
.site-header {
    background: rgba(252, 252, 252, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wordmark {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* ── Hero Section ── */
.blog-hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.hero-stat strong {
    display: block;
    font-size: 2.2rem;
    color: var(--text-main);
}

.hero-stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Tool Section ── */
.tool-section {
    padding: 80px 0;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dim);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .currency {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 500;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    background: var(--bg-soft);
    font-size: 1rem;
    transition: 0.3s;
}

.search-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
}

.results-column .post-card {
    background: #0f172a;
    color: white;
    border: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.metric-card span:first-child {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.val-success { color: #4ade80; }

/* ── How It Works ── */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    padding: 40px;
    background: var(--bg-main);
    border-radius: 24px;
    position: relative;
    border: 1px solid var(--border);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-soft);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ── FAQ Section ── */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-main);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-dim);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ── AdSense Containers ── */
.ad-zone {
    background: var(--bg-soft);
    border: 1px dashed var(--border-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 250px;
}

/* ── Footer ── */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── PWA Install Bar ── */
.pwa-install-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-install-bar.show {
    transform: translateY(0);
}

.pwa-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-info img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.pwa-text strong { display: block; font-size: 1rem; }
.pwa-text span { font-size: 0.8rem; color: var(--text-dim); }

.pwa-actions {
    display: flex;
    gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tool-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    html { font-size: 17px; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .nav-list { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        text-align: center;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 10px;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    .pwa-install-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px;
    }
    
    .pwa-info { flex-direction: column; }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}
