/* ─── Variables ─────────────────────────────────────────────── */
:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #ede9fe;
    --secondary: #ec4899;
    --secondary-light: #fdf2f8;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-soft: #f9fafb;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(124, 58, 237, .08);
    --shadow-hover: 0 8px 32px rgba(124, 58, 237, .18);
}

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: #faf5ff;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* dot grid háttérminta */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: radial-gradient(circle, rgba(107,33,168,.16) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    pointer-events: none; z-index: 0;
}

.site-footer, nav, header { position: relative; z-index: 1; }
.page-main { flex: 1; }

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.px-6 { padding-left: 3rem; padding-right: 3rem; }

.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Bootstrap overrides ────────────────────────────────────── */
.btn-primary {
    background: var(--gradient);
    border: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: var(--shadow-hover); }

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

/* ─── Nav ────────────────────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(250,245,255,.92);
    border-bottom: 1px solid #e9d8fd;
    box-shadow: 0 1px 4px rgba(107,33,168,.08);
}

.nav-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; gap: 1.5rem;
}

.nav-logo { height: 60px; width: auto; display: block; }

.nav-links {
    display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0;
    flex: 1; justify-content: center;
}
.nav-links a {
    color: #7c6a99; text-decoration: none;
    font-size: .9rem; font-weight: 700; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #6b21a8; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.btn-nav-outline {
    border: 2px solid #d6bcfa; color: #6b21a8;
    padding: .45rem 1.1rem; border-radius: 999px;
    font-size: .88rem; font-weight: 800; font-family: 'Nunito', sans-serif;
    text-decoration: none; transition: border-color .2s, background .2s, box-shadow .2s;
    white-space: nowrap;
    animation: nav-pulse 2.8s ease-in-out infinite;
}
.btn-nav-outline:hover { border-color: #6b21a8; background: rgba(107,33,168,.06); animation: none; }
@keyframes nav-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107,33,168,0); border-color: #d6bcfa; }
    50%       { box-shadow: 0 0 0 4px rgba(107,33,168,.12); border-color: #a855f7; }
}
@media (max-width: 991.98px) { .btn-nav-outline { animation: none; } }

.btn-nav {
    background: linear-gradient(135deg, #6b21a8, #e91e8c);
    color: #fff; padding: .5rem 1.25rem; border-radius: 999px;
    font-size: .88rem; font-weight: 800; font-family: 'Nunito', sans-serif;
    text-decoration: none; box-shadow: 0 3px 14px rgba(233,30,140,.3);
    transition: opacity .2s, box-shadow .2s; white-space: nowrap;
    border: none; display: inline-block;
}
.btn-nav:hover { opacity: .9; box-shadow: 0 6px 24px rgba(233,30,140,.4); color: #fff; }

/* hamburger */
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px;
    background: #6b21a8; border-radius: 2px; transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.nav-mobile {
    display: none; max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.nav-mobile.open { display: block; max-height: 500px; }
.nav-mobile ul { list-style: none; margin: 0; padding: .75rem 0 1rem; }
.nav-mobile ul li { border-bottom: 1px solid #f3eaff; }
.nav-mobile ul li a {
    display: block; padding: .65rem .5rem;
    color: #3b1278; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.nav-mobile ul li:last-child { border-bottom: none; }
.nav-mobile .btn-nav { display: inline-block; margin-top: .5rem; }

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-burger { display: flex; }
}

/* push content below fixed nav */
body { padding-top: 70px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
    overflow: hidden;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: .8rem;
    padding: .35rem .9rem;
    border-radius: 50px;
    border: 1px solid rgba(124,58,237,.2);
}

.hero-visual {
    position: relative;
    height: 360px;
}

.hero-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    font-size: .9rem;
    white-space: nowrap;
}
.hero-card-1 { top: 10%; left: 0; animation: float 3s ease-in-out infinite; }
.hero-card-2 { top: 42%; right: 5%; animation: float 3.5s ease-in-out infinite reverse; }
.hero-card-3 { bottom: 10%; left: 10%; animation: float 4s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─── Page hero ──────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--primary-dark); }

/* ─── Integration cards ──────────────────────────────────────── */
.integration-group-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .85rem;
}
.integration-item:last-child { border-bottom: none; }

.integration-logo {
    width: 24px; height: 24px;
    object-fit: contain;
    border-radius: 4px;
}
.integration-placeholder {
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 4px;
    color: var(--muted);
    font-size: .75rem;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem .75rem;
    transition: all .2s;
}
.integration-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--text);
}
.integration-card-logo {
    width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: center;
    padding: .5rem;
}
.integration-card-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.integration-card-name { color: var(--text); line-height: 1.3; }

/* ─── Feature cards ──────────────────────────────────────────── */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: 100%;
    transition: all .2s;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.feature-icon-sm {
    width: 36px; height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ─── Blog cards ─────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: contain; background: #f5f3ff; }
.blog-card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }

/* ─── KB hero ────────────────────────────────────────────────── */
.kb-hero { background: var(--gradient); }
.kb-search-form { max-width: 600px; }
.text-white-70 { color: rgba(255,255,255,.7); }

/* ─── KB categories ──────────────────────────────────────────── */
.kb-category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
}
.kb-category-card:hover { box-shadow: var(--shadow); }

.kb-category-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.kb-category-icon {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: .5rem;
}

.kb-article-list {
    padding: .75rem 1.25rem;
}
.kb-article-list li { margin-bottom: .4rem; }
.kb-article-list a {
    text-decoration: none;
    color: var(--text);
    font-size: .88rem;
    display: flex;
    align-items: center;
}
.kb-article-list a:hover { color: var(--primary); }

/* ─── CTA section ────────────────────────────────────────────── */
.cta-section { background: var(--gradient); }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-white-10 { border-color: rgba(255,255,255,.1) !important; }
.border-white-10 { border-color: rgba(255,255,255,.15) !important; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e9d8fd;
    padding: 2.5rem 0;
    position: relative; z-index: 1;
}

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

.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}

.footer-left { display: flex; flex-direction: column; gap: .6rem; }

.footer-logo { height: 45px; width: auto; display: block; }

.footer-copy {
    font-size: .82rem; color: #7c6a99; font-weight: 600;
    display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.footer-copy { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.footer-copy a { display: inline-flex; align-items: center; }
.footer-wm-logo { height: 16px; width: auto; display: block; }

.footer-links {
    display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
    list-style: none; margin: 0; padding: 0;
}
.footer-links a {
    color: var(--muted); text-decoration: none;
    font-size: .88rem; font-weight: 600; transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { gap: .5rem 1rem; }
}

/* ─── Cookie banner ──────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(26, 10, 60, .95);
    backdrop-filter: blur(8px);
    color: #fff;
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* ─── CMS content ────────────────────────────────────────────── */
.cms-content {
    line-height: 1.8;
}

.cms-content h1, .cms-content h2, .cms-content h3 {
    font-weight: 800;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
    color: var(--primary-dark);
}
.cms-content img { max-width: 100%; border-radius: var(--radius); }
.cms-content a { color: var(--primary); }
.cms-content table { width: 100%; border-collapse: collapse; }
.cms-content td, .cms-content th {
    padding: .6rem .8rem;
    border: 1px solid var(--border);
}
.cms-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: .9rem;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-visual { height: 240px; }
    .hero-card { font-size: .8rem; padding: .75rem 1rem; }
    .py-6 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

