@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === PimConnect Marketing Theme v3.0 === */

:root {
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --brand: #2563eb;
    --brand-light: #dbeafe;
    --brand-dark: #1d4ed8;
    --accent: #7c3aed;
    --green: #059669;
    --radius: 12px;
    --max-w: 1200px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gray-900); }
.logo img { height: 52px; border-radius: 14px; }
.logo-wordmark { font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; }
.logo-wordmark span { font-weight: 300; color: var(--gray-500); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--gray-700); font-weight: 500; font-size: 0.92rem; transition: color 0.15s; }
.nav-link:hover { color: var(--brand); }
.nav-cta {
    background: var(--brand); color: #fff; padding: 0.6rem 1.5rem;
    border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown > .nav-link::after { content: '▾'; font-size: 0.65rem; opacity: 0.5; }

.megamenu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
    background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px;
    box-shadow: var(--shadow-lg); width: 780px; padding: 1.5rem 2rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    opacity: 0; visibility: hidden; transition: all 0.2s ease; text-align: left;
}
.nav-dropdown:hover .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.mm-group-title {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--gray-400); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-100);
}
.mm-item { display: block; padding: 0.5rem 0; text-decoration: none; transition: padding-left 0.15s; }
.mm-item:hover { padding-left: 5px; }
.mm-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gray-900); }
.mm-item span { font-size: 0.78rem; color: var(--gray-500); }

/* ===== HERO ===== */
.hero {
    padding: 6rem 2rem 4rem; text-align: center;
    max-width: 820px; margin: 0 auto;
}
.hero-kicker {
    display: inline-block; background: var(--brand-light); color: var(--brand);
    font-size: 0.85rem; font-weight: 600; padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: 1.2rem; color: var(--gray-500); max-width: 620px; margin: 0 auto 2.5rem; }
.hero-cta {
    display: inline-block; background: var(--brand); color: #fff; padding: 0.9rem 2.5rem;
    border-radius: 10px; font-weight: 700; font-size: 1.05rem; transition: all 0.2s;
}
.hero-cta:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }

/* ===== VALUE PROPS (Alternating sections) ===== */
.value-section { padding: 5rem 2rem; }
.value-section:nth-child(even) { background: var(--off-white); }
.value-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.value-section:nth-child(even) .value-inner { direction: rtl; }
.value-section:nth-child(even) .value-inner > * { direction: ltr; }
.value-text .v-kicker {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--brand); margin-bottom: 0.75rem;
}
.value-text h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.value-text p { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 1.5rem; }
.value-text .v-link { font-weight: 600; font-size: 0.95rem; }
.value-img img {
    border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
}

/* ===== NUMBERS BAR ===== */
.numbers {
    background: var(--gray-900); color: var(--white); padding: 3rem 2rem; text-align: center;
}
.numbers-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
}
.num-item .num-big { font-size: 2.5rem; font-weight: 800; color: var(--brand); display: block; }
.num-item .num-label { font-size: 0.85rem; color: var(--gray-400); }

/* ===== MODULE DETAIL PAGE ===== */
.page-with-sidebar {
    max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem;
    display: grid; grid-template-columns: 260px 1fr; gap: 3rem;
}

/* Sidebar (where am I?) */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 1rem; }
.sidebar-nav a {
    display: block; padding: 0.5rem 0.75rem; margin-bottom: 0.25rem;
    font-size: 0.88rem; color: var(--gray-700); border-radius: 6px; transition: all 0.15s;
    border-left: 3px solid transparent; text-decoration: none;
}
.sidebar-nav a:hover { background: var(--gray-50); color: var(--brand); }
.sidebar-nav a.active {
    background: var(--brand-light); color: var(--brand); font-weight: 600;
    border-left-color: var(--brand);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem; color: var(--gray-400); margin-bottom: 2rem;
}
.breadcrumb a { color: var(--brand); }

/* Detail Content */
.detail-content h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.03em; }
.detail-content .lead { font-size: 1.15rem; color: var(--gray-500); margin-bottom: 3rem; max-width: 650px; }

.detail-screenshot {
    margin: 2rem 0 3rem; border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
}

/* Feature blocks on module pages */
.feature-block { padding: 2rem 0; border-bottom: 1px solid var(--gray-100); }
.feature-block:last-child { border-bottom: none; }
.feature-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-block h3 a { color: var(--gray-900); }
.feature-block h3 a:hover { color: var(--brand); }
.feature-block p { color: var(--gray-500); font-size: 0.95rem; }

/* ===== FAQ (Accordion) ===== */
.faq-section { padding: 4rem 2rem; background: var(--off-white); }
.faq-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }
.faq-wrap { max-width: 750px; margin: 0 auto; }
.faq-item {
    background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
    margin-bottom: 0.75rem; overflow: hidden;
}
.faq-q {
    padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center;
    user-select: none; transition: background 0.15s;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gray-400); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--brand); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    padding: 0 1.5rem; color: var(--gray-500); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.25rem; }

/* ===== CONTACT ===== */
.contact-section { padding: 5rem 2rem; text-align: center; }
.contact-section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-section .sub { color: var(--gray-500); margin-bottom: 2rem; }
.contact-box {
    max-width: 460px; margin: 0 auto; text-align: left;
    background: var(--off-white); padding: 2.5rem; border-radius: 16px;
}
.fg { margin-bottom: 1.25rem; }
.fg label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 0.4rem; }
.fg input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--gray-100); border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
.fg input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.btn-send {
    width: 100%; background: var(--brand); color: #fff; border: none; padding: 0.9rem;
    border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.15s;
}
.btn-send:hover { background: var(--brand-dark); }

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--gray-100); padding: 2rem; text-align: center;
    font-size: 0.82rem; color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.4rem; }
    .value-inner { grid-template-columns: 1fr; gap: 2rem; }
    .value-section:nth-child(even) .value-inner { direction: ltr; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .megamenu { width: 95vw; grid-template-columns: 1fr; }
    .numbers-inner { flex-direction: column; }
}

/* === FAQ Toggle JS inline === */

/* === v3.0 === */
