/* ============================================
   FEEDCOMMERCE V2 — Design System
   Refined Editorial. Clean. Fast. No GPU crashes.
   ============================================ */

/* --- Tokens --- */
:root {
    --brand: #2563eb;
    --brand-dark: #1e40af;
    --brand-light: #dbeafe;
    --brand-50: #eff6ff;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --surface: #ffffff;
    --bg: #f8fafc;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.08);
    --transition: .2s ease;
    --section-py: 96px;
    --section-py-sm: 64px;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

/* --- Navigation --- */
.v2-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    transition: box-shadow var(--transition);
}
.v2-nav.scrolled { box-shadow: var(--shadow); }
.v2-nav .navbar-brand img { height: 32px; }
.v2-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-secondary);
    padding: .5rem .875rem !important;
    border-radius: 6px;
    transition: all var(--transition);
}
.v2-nav .nav-link:hover,
.v2-nav .nav-link.active { color: var(--brand); background: var(--brand-50); }

/* --- Buttons --- */
.v2-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    padding: .625rem 1.25rem;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.v2-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.v2-btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.v2-btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.v2-btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.v2-btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.v2-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.v2-btn-white { background: #fff; color: var(--brand-dark); border-color: rgba(255,255,255,.3); }
.v2-btn-white:hover { background: var(--brand-50); color: var(--brand-dark); transform: translateY(-1px); }
.v2-btn-ghost { background: transparent; color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.3); }
.v2-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.v2-btn-lg { padding: .875rem 1.75rem; font-size: 1rem; border-radius: 10px; }
.v2-btn-sm { padding: .375rem .875rem; font-size: .8rem; }

/* --- Sections --- */
.v2-section { padding: var(--section-py) 0; }
.v2-section-alt { background: var(--surface); }
.v2-section-title { text-align: center; margin-bottom: .75rem; }
.v2-section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; margin: 0 auto 3rem; }

/* --- Hero --- */
.v2-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}
.v2-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.v2-hero h1 { color: #fff; margin-bottom: 1.25rem; }
.v2-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 540px; }
.v2-hero-compact { padding: 56px 0 64px; }
.v2-hero-compact h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.v2-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .875rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--font-display);
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 1.25rem;
}
.v2-badge-surface {
    background: var(--brand-50);
    color: var(--brand);
    border-color: var(--brand-light);
}
.v2-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
}
.v2-trust-badges i { color: #34d399; }

/* --- Cards --- */
.v2-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.v2-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.v2-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.v2-card-icon-blue { background: var(--brand-50); color: var(--brand); }
.v2-card-icon-green { background: var(--success-light); color: var(--success); }
.v2-card-icon-orange { background: var(--warning-light); color: var(--warning); }
.v2-card-icon-red { background: var(--error-light); color: var(--error); }
.v2-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.v2-card p { color: var(--text-secondary); font-size: .925rem; margin: 0; }

/* --- Logo Grid --- */
.v2-logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    opacity: .6;
    filter: grayscale(1);
    transition: all .3s;
}
.v2-logo-grid:hover { opacity: .9; filter: grayscale(0); }
.v2-logo-grid img { height: 36px; width: auto; }

/* --- Stats --- */
.v2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.v2-stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--brand); }
.v2-stat-label { color: var(--text-secondary); font-size: .9rem; margin-top: .25rem; }

/* --- Steps --- */
.v2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.v2-step { text-align: center; padding: 2rem 1.5rem; }
.v2-step-number {
    width: 48px; height: 48px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.v2-step h3 { margin-bottom: .5rem; }
.v2-step p { color: var(--text-secondary); font-size: .925rem; }

/* --- Testimonials --- */
.v2-testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.v2-testimonial-text { font-size: 1rem; font-style: italic; color: var(--text); margin-bottom: 1rem; line-height: 1.7; }
.v2-testimonial-author { display: flex; align-items: center; gap: .75rem; }
.v2-testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
}
.v2-testimonial-name { font-weight: 600; font-size: .9rem; }
.v2-testimonial-role { font-size: .8rem; color: var(--text-muted); }
.v2-stars { color: #fbbf24; font-size: .875rem; margin-bottom: .75rem; }

/* --- Pricing --- */
.v2-pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.v2-pricing-card:hover { box-shadow: var(--shadow-lg); }
.v2-pricing-featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
}
.v2-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: .25rem 1rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.v2-pricing-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--text); margin: 1rem 0 .25rem; }
.v2-pricing-period { font-size: .9rem; color: var(--text-muted); }
.v2-pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.v2-pricing-features li { padding: .5rem 0; font-size: .9rem; color: var(--text-secondary); display: flex; align-items: center; gap: .5rem; }
.v2-pricing-features li i { color: var(--success); font-size: 1rem; }

/* --- CTA Section --- */
.v2-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.v2-cta h2 { color: #fff; margin-bottom: .75rem; }
.v2-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }

/* --- Accordion / FAQ --- */
.v2-accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.v2-accordion-item + .v2-accordion-item { border-top: 1px solid var(--border); }
.v2-accordion-btn {
    width: 100%;
    background: var(--surface);
    border: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}
.v2-accordion-btn:hover { background: var(--bg); }
.v2-accordion-btn i { transition: transform var(--transition); color: var(--text-muted); }
.v2-accordion-btn:not(.collapsed) i { transform: rotate(180deg); }
.v2-accordion-body { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); line-height: 1.7; }

/* --- Contact Form --- */
.v2-form-group { margin-bottom: 1.25rem; }
.v2-form-label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: .375rem; color: var(--text); }
.v2-form-control {
    width: 100%;
    padding: .625rem .875rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface);
}
.v2-form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.v2-form-control::placeholder { color: var(--text-muted); }
textarea.v2-form-control { min-height: 120px; resize: vertical; }

/* --- Info Cards --- */
.v2-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.v2-info-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--brand-50);
    color: var(--brand);
}

/* --- Legal Pages --- */
.v2-legal { max-width: 800px; margin: 0 auto; }
.v2-legal h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.v2-legal h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.v2-legal p, .v2-legal li { color: var(--text-secondary); line-height: 1.8; }
.v2-legal ul { padding-left: 1.25rem; }
.v2-legal li { margin-bottom: .5rem; }

/* --- TOC Sidebar --- */
.v2-toc {
    position: sticky;
    top: 80px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--surface);
}
.v2-toc-title { font-family: var(--font-display); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .75rem; }
.v2-toc a {
    display: block;
    padding: .375rem 0;
    font-size: .875rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: .75rem;
    transition: all var(--transition);
}
.v2-toc a:hover, .v2-toc a.active { color: var(--brand); border-color: var(--brand); }

/* --- Guide Steps --- */
.v2-guide-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
}
.v2-guide-step + .v2-guide-step { border-top: 1px solid var(--border); }
.v2-guide-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
}
.v2-guide-step h3 { margin-bottom: .5rem; }
.v2-guide-step p { color: var(--text-secondary); margin: 0; }
.v2-tip {
    background: var(--brand-50);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--brand-dark);
}

/* --- Toast --- */
.v2-toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.v2-toast {
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
}
.v2-toast-success { background: var(--success); color: #fff; }
.v2-toast-error { background: var(--error); color: #fff; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* --- Footer --- */
.v2-footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    padding: 64px 0 32px;
    font-size: .9rem;
}
.v2-footer h6 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.v2-footer a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.v2-footer a:hover { color: #fff; }
.v2-footer ul { list-style: none; padding: 0; margin: 0; }
.v2-footer li { margin-bottom: .5rem; }
.v2-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.v2-footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.4); }

/* --- Language Dropdown --- */
.v2-lang-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .375rem .625rem;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .375rem;
}
.v2-lang-btn img { width: 18px; height: 13px; }

/* --- Alerts --- */
.v2-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.v2-alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }
.v2-alert-error { background: var(--error-light); color: var(--error); border: 1px solid #fca5a5; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .v2-section { padding: var(--section-py-sm) 0; }
    .v2-hero { padding: 56px 0 64px; }
    .v2-stats { grid-template-columns: repeat(2, 1fr); }
    .v2-steps { grid-template-columns: 1fr; }
    .v2-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 575px) {
    .v2-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .v2-stat-number { font-size: 2rem; }
    .v2-logo-grid img { height: 28px; }
    .v2-hero { padding: 40px 0 48px; }
}
