/* ================================================
   CIANBOX B2B LANDING - Shopify/Flexxus Inspired
   ================================================ */

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

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --accent: #22c55e;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: #f0f0f0; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all 0.3s;
}
.nav-scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-mobile-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.2s; }

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 6px 14px; background: var(--primary-light); color: var(--primary);
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px; border-radius: 20px; margin-bottom: 20px;
}
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px; }
.hero-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 24px; }
.hero-proof { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.hero-proof-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Mockup */
.hero-mockup { position: relative; }
.mockup-browser {
    background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden; border: 1px solid var(--border);
}
.mockup-bar {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: #f8fafc; border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0e0e0; }
.mockup-url { font-size: 11px; color: var(--text-muted); background: #fff; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border); margin-left: 8px; }
.mockup-screen { padding: 12px; min-height: 280px; }
.mockup-header {
    height: 36px; background: var(--dark); border-radius: 6px; margin-bottom: 12px;
    display: flex; align-items: center; padding: 0 12px; gap: 12px;
}
.mh-logo { width: 40px; height: 14px; background: rgba(255,255,255,0.25); border-radius: 3px; }
.mh-nav { display: flex; gap: 8px; }
.mh-nav span { width: 32px; height: 8px; background: rgba(255,255,255,0.15); border-radius: 3px; }
.mh-search { flex: 1; height: 18px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-left: 8px; }
.mh-cart { width: 18px; height: 18px; background: rgba(255,255,255,0.2); border-radius: 50%; }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mockup-card {
    background: #fff; border-radius: 8px; border: 1px solid var(--border);
    overflow: hidden; position: relative;
}
.mc-img { height: 80px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.mc-badge {
    position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff;
    font-size: 7px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.mc-cat { width: 60%; height: 6px; background: #e2e8f0; border-radius: 3px; margin: 8px 8px 4px; }
.mc-name { width: 85%; height: 7px; background: #cbd5e1; border-radius: 3px; margin: 0 8px 6px; }
.mc-price { font-size: 11px; font-weight: 800; color: var(--text); padding: 0 8px; }
.mc-btn {
    margin: 6px 8px 8px; background: var(--dark); color: #fff; text-align: center;
    padding: 4px; border-radius: 5px; font-size: 8px; font-weight: 600;
}
.mockup-notification {
    position: absolute; background: #fff; border-radius: 12px; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 10px;
    font-size: 12px; border: 1px solid var(--border); animation: float 3s ease-in-out infinite;
}
.mockup-notification strong { display: block; font-size: 13px; color: var(--text); }
.mockup-notification small { color: var(--text-muted); }
.notif-icon { font-size: 20px; }
.n1 { bottom: 40px; left: -30px; animation-delay: 0s; }
.n2 { top: 60px; right: -20px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== STATS ===== */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 48px; }
.stat { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== SECTIONS ===== */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-badge {
    display: inline-block; padding: 4px 12px; background: var(--primary-light); color: var(--primary);
    font-size: 11px; font-weight: 700; letter-spacing: 2px; border-radius: 16px; margin-bottom: 16px;
}
.section-title { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
.section-desc { font-size: 16px; color: var(--text-secondary); margin-top: 12px; line-height: 1.5; }
.text-accent { color: var(--primary); }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== PAIN ===== */
.pain { padding: 100px 0; background: var(--bg-alt); }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.pain-card {
    background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border);
    transition: all 0.2s;
}
.pain-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(79,70,229,0.08); }
.pain-icon { font-size: 28px; margin-bottom: 12px; }
.pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pain-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== SOLUTION ===== */
.solution { padding: 80px 0; }
.solution-box {
    background: var(--dark); color: #fff; border-radius: 20px; padding: 60px;
    text-align: center; position: relative; overflow: hidden;
}
.solution-box::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%); border-radius: 50%;
}
.solution-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; }
.solution-title { font-size: 32px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.solution-desc { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 28px; position: relative; z-index: 1; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
    transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== HOW ===== */
.how { padding: 100px 0; background: var(--bg-alt); }
.how-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.how-step { text-align: center; max-width: 280px; padding: 0 24px; }
.how-step-num {
    width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
    margin: 0 auto 16px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.how-connector { width: 60px; height: 2px; background: var(--border); margin-top: 28px; flex-shrink: 0; }

/* ===== TEMPLATES ===== */
.templates { padding: 100px 0; }
.templates-carousel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.tpl-card { flex: 0 0 160px; scroll-snap-align: start; text-align: center; }
.tpl-preview {
    height: 110px; border-radius: 10px; margin-bottom: 10px; overflow: hidden;
    position: relative; padding: 0;
}
.tp-bar { height: 14px; width: 100%; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.tp-c { height: 34px; border-radius: 3px; }
.tp-accent {
    position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 10px; border-radius: 3px; opacity: 0.9;
}
.tpl-name { font-size: 14px; font-weight: 700; }
.tpl-desc { font-size: 11px; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 100px 0; background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.testimonial-card {
    background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border);
}
.testimonial-quote { font-size: 15px; color: var(--text); line-height: 1.6; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
    background: #fff; border-radius: 16px; padding: 36px; border: 1px solid var(--border);
    position: relative;
}
.pricing-card-featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(79,70,229,0.12); }
.pricing-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 12px;
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
}
.pricing-plan { font-size: 16px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pricing-currency { font-size: 20px; font-weight: 600; vertical-align: top; margin-right: 2px; }
.pricing-period { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-custom { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-note { font-size: 12px; color: var(--text-muted); margin-top: 32px; text-align: center; font-style: italic; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid #f5f5f5; }
.pricing-features li:last-child { border-bottom: none; }

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 100px 0; background: var(--dark); color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.cta-final::before {
    content: ''; position: absolute; top: -100px; left: -100px; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%); border-radius: 50%;
}
.cta-final::after {
    content: ''; position: absolute; bottom: -80px; right: -80px; width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%); border-radius: 50%;
}
.cta-title { font-size: 36px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-desc { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 32px; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; }

/* ===== DEMO FORM ===== */
.demo-form-wrapper { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.demo-form {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 32px; backdrop-filter: blur(10px);
}
.demo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.demo-form-field-full { grid-column: 1 / -1; }
.demo-form input, .demo-form select, .demo-form textarea {
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-family: inherit;
    transition: border-color 0.2s;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.demo-form select { color: rgba(255,255,255,0.4); }
.demo-form select option { background: #1a1a2e; color: #fff; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}
.demo-form select:valid { color: #fff; }
.demo-form textarea { resize: vertical; min-height: 60px; }
.demo-form-submit { width: 100%; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.demo-form-status {
    margin-top: 12px; text-align: center; font-size: 14px; min-height: 20px;
}
.demo-form-status.success { color: var(--accent); }
.demo-form-status.error { color: #ef4444; }
.demo-form-divider {
    display: flex; align-items: center; gap: 16px; margin: 24px 0;
    color: rgba(255,255,255,0.3); font-size: 13px;
}
.demo-form-divider::before, .demo-form-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.btn-outline-white {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; color: #fff;
    text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
@media (max-width: 768px) {
    .demo-form-grid { grid-template-columns: 1fr; }
    .demo-form { padding: 20px; }
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: #fff; padding: 60px 0 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 12px; line-height: 1.5; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.4); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); margin: 0; }
.footer-bottom p strong { color: rgba(255,255,255,0.55); font-weight: 600; }
.footer-afip { display: inline-block; line-height: 0; flex-shrink: 0; }
.footer-afip img { display: block; height: 48px; width: auto; }
@media (max-width: 600px) { .footer-bottom { justify-content: flex-start; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 36px; }
    .hero-ctas { justify-content: center; }
    .hero-proof { justify-content: center; }
    .hero-mockup { max-width: 500px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 28px; }
    .stats-grid { flex-direction: column; gap: 24px; }
    .stat-divider { width: 40px; height: 1px; }
    .pain-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .how-steps { flex-direction: column; align-items: center; gap: 24px; }
    .how-connector { width: 2px; height: 30px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .solution-box { padding: 40px 24px; }
    .cta-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .btn-lg { padding: 14px 24px; }
}
