:root {
    --bg: #080b12;
    --bg2: #0d1117;
    --panel: #131a27;
    --panel2: #1a2334;
    --border: #243049;
    --ink: #e7ecf5;
    --muted: #95a1b8;
    --accent: #2dd4bf;      /* teal */
    --accent-2: #8b5cf6;    /* violet */
    --cyan: #36d6e7;
    --green: #56d364;
    --amber: #e3b341;
    --rose: #f472b6;
    --red: #ff7b72;
    --radius: 16px;
    --maxw: 1180px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .5);
    --glow: 0 0 40px rgba(45, 212, 191, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
section { position: relative; padding: 96px 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700;
    color: var(--accent); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grad-text {
    background: linear-gradient(110deg, var(--accent), var(--cyan) 45%, var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* language toggle: html[data-lang] hides the other language */
html[data-lang="hu"] .en { display: none !important; }
html[data-lang="en"] .hu { display: none !important; }

/* ---- background decoration ---- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.orb.o1 { width: 520px; height: 520px; background: #0d9488; top: -160px; left: -120px; animation: float1 18s ease-in-out infinite; }
.orb.o2 { width: 460px; height: 460px; background: #6b2fd6; top: 30%; right: -160px; animation: float2 22s ease-in-out infinite; }
.orb.o3 { width: 420px; height: 420px; background: #0e7490; bottom: -180px; left: 25%; animation: float1 26s ease-in-out infinite; }
.grid-overlay {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
    background-image: linear-gradient(rgba(45,212,191,.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(45,212,191,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,50px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,40px)} }

/* ---- nav ---- */
header.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(8, 11, 18, .72);
    border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
header.nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 11, 18, .9); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; gap: 1px; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.brand-tagline { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }

/* 3D CSS logo: three rotating glass bars */
.logo3d {
    display: block; width: 36px; height: 36px; perspective: 300px; flex-shrink: 0;
}
.logo3d .spinner {
    display: block; width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
    animation: logoSpin 9s linear infinite;
}
.logo3d .bar {
    position: absolute; bottom: 3px; width: 8px; border-radius: 3px;
    box-shadow: 0 0 14px rgba(45,212,191,.45);
}
.logo3d .bar.b1 { left: 3px;  height: 16px; background: linear-gradient(180deg, var(--cyan), #0d9488); transform: translateZ(6px); }
.logo3d .bar.b2 { left: 14px; height: 26px; background: linear-gradient(180deg, var(--accent), #0f766e); transform: translateZ(0); }
.logo3d .bar.b3 { left: 25px; height: 21px; background: linear-gradient(180deg, var(--accent-2), #5b21b6); transform: translateZ(-6px); box-shadow: 0 0 14px rgba(139,92,246,.45); }
@keyframes logoSpin { from { transform: rotateY(0) rotateX(8deg); } to { transform: rotateY(360deg) rotateX(8deg); } }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, transform .2s; display: inline-block; }
.nav-links a:hover { color: var(--ink); transform: translateY(-2px); }
.btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
    padding: 11px 20px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, border-color .25s;
    white-space: nowrap; font-family: inherit;
}
.btn-primary { background: linear-gradient(110deg, var(--accent), var(--accent-2)); color: #06241f; color: #fff; box-shadow: 0 8px 26px rgba(45,212,191,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(45,212,191,.5); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow); }
.nav .btn { padding: 9px 16px; }
.lang-btn { min-width: 42px; justify-content: center; padding: 9px 12px; font-size: 13px; letter-spacing: .5px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 24px; cursor: pointer; }
.mobile-menu {
    display: none; flex-direction: column; gap: 4px; padding: 10px 24px 18px;
    border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 10px 0; color: var(--muted); font-weight: 600; }
.mobile-menu.open { display: flex; }

/* ---- hero (split: text left, 3D right) ---- */
.hero { padding: 0; text-align: left; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-canvas-wrap {
    position: absolute; top: 0; bottom: 0; right: 0; left: 42%; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
}
#hero3d { width: 100%; height: 100%; display: block; }
.hero-fade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(8,11,18,.22) 0%, transparent 16%, transparent 66%, rgba(8,11,18,.55) 88%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 80px; }
.hero-inner { max-width: 600px; }
.hero .eyebrow { font-size: 13px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 60px); margin-bottom: 22px; text-shadow: 0 4px 40px rgba(8,11,18,.8); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.badge-row { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; margin-top: 42px; }
.pill {
    font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(8,11,18,.55); backdrop-filter: blur(6px);
    display: inline-flex; align-items: center; gap: 7px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---- pain cards ---- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card {
    background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 26px; transition: transform .3s, border-color .3s;
}
.pain-card:hover { transform: translateY(-6px); border-color: var(--rose); }
.pain-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
    margin-bottom: 16px; background: linear-gradient(135deg, rgba(244,114,182,.16), rgba(227,179,65,.16));
    border: 1px solid var(--border);
}
.pain-card h3 { font-size: 19px; margin-bottom: 8px; }
.pain-card p { color: var(--muted); font-size: 15px; }
.pain-bridge {
    margin-top: 34px; text-align: center; font-size: 19px; font-weight: 700;
}
.pain-bridge .grad-text { font-weight: 800; }

/* ---- packages ---- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; perspective: 1600px; }
.pkg {
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--panel), var(--bg2));
    border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px;
    transition: transform .25s ease-out, box-shadow .3s, border-color .3s;
    transform-style: preserve-3d; will-change: transform;
}
.pkg:hover { box-shadow: var(--shadow); }
.pkg.flagship { border-color: rgba(45,212,191,.55); box-shadow: 0 0 50px rgba(45,212,191,.12); }
.pkg .flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px; white-space: nowrap;
    background: linear-gradient(110deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 6px 20px rgba(45,212,191,.4);
}
.pkg .tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.pkg.p-excel .tag { color: var(--amber); }
.pkg.p-report .tag { color: var(--accent); }
.pkg.p-ai .tag { color: var(--accent-2); }
.pkg h3 { font-size: 23px; margin-bottom: 6px; }
.pkg .who { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; min-height: 44px; }
.pkg .price { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.pkg .price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pkg .price-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pkg .timeline { color: var(--muted); font-size: 13.5px; margin: 4px 0 20px; display: flex; align-items: center; gap: 7px; }
.pkg .timeline::before { content: "⏱"; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.feat-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); }
.feat-list li::before { content: "▸"; color: var(--accent); flex-shrink: 0; }
.pkg.p-excel .feat-list li::before { color: var(--amber); }
.pkg.p-ai .feat-list li::before { color: var(--accent-2); }
.pkg .upsell {
    font-size: 13px; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px;
    padding: 9px 12px; margin-bottom: 22px;
}
.pkg .actions { margin-top: auto; }
.pkg .actions .btn { width: 100%; justify-content: center; }
.pkg-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 30px; max-width: 720px; margin-left: auto; margin-right: auto; }
.pkg-note strong { color: var(--ink); }

/* ---- demos ---- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; perspective: 1600px; }
.demo-card {
    background: linear-gradient(180deg, var(--panel), var(--bg2));
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    transition: transform .25s ease-out, box-shadow .3s, border-color .3s;
    transform-style: preserve-3d; will-change: transform;
}
.demo-card:hover { box-shadow: var(--shadow); border-color: rgba(45,212,191,.4); }
.demo-thumb { aspect-ratio: 16/9; border-bottom: 1px solid var(--border); background: #0a0e16; position: relative; overflow: hidden; }
.demo-thumb svg { width: 100%; height: 100%; }
.demo-badge {
    position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
    background: rgba(8,11,18,.8); border: 1px solid var(--border); color: var(--amber);
}
.demo-body { padding: 24px; }
.demo-body .tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.demo-card.d-sales .tag { color: var(--accent); }
.demo-card.d-fin .tag { color: var(--amber); }
.demo-body h3 { font-size: 22px; margin: 8px 0 10px; }
.demo-body p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.demo-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 14.5px; }

/* ---- live embed (Power BI publish-to-web) ---- */
.embed-blokk { margin-top: 38px; }
.embed-head { text-align: center; margin-bottom: 16px; }
.embed-head h3 { font-size: 22px; margin-bottom: 6px; }
.embed-head p { color: var(--muted); font-size: 14.5px; max-width: 680px; margin: 0 auto; }
.embed-frame {
    position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg2); box-shadow: var(--shadow);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.embed-mobile {
    display: none; text-align: center; border: 1px solid var(--border); border-radius: 14px;
    padding: 30px 22px; color: var(--muted); background: var(--panel); font-size: 14.5px;
}
@media (max-width: 768px) {
    .embed-frame, .embed-note { display: none; }
    .embed-mobile { display: block; }
}

/* ---- process ---- */
.setup-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.step-card {
    position: relative; background: rgba(255,255,255,.025); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px; overflow: hidden;
    transition: transform .3s, border-color .3s;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.step-num {
    font-size: 54px; font-weight: 900; line-height: 1; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 15px; }
.step-card .step-arrow { position: absolute; top: 30px; right: -12px; color: var(--border); font-size: 30px; }

/* ---- security band ---- */
.security-band {
    margin-top: 12px; border-radius: 20px; padding: 36px 34px; position: relative; overflow: hidden;
    background: linear-gradient(120deg, rgba(86,211,100,.10), rgba(45,212,191,.10));
    border: 1px solid var(--border);
}
.security-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.security-shield {
    width: 76px; height: 76px; border-radius: 20px; flex-shrink: 0; display: grid; place-items: center;
    font-size: 38px; background: linear-gradient(135deg, rgba(86,211,100,.2), rgba(45,212,191,.2));
    border: 1px solid var(--border); box-shadow: 0 0 40px rgba(86,211,100,.2);
}
.security-text { flex: 1; min-width: 260px; }
.security-text h3 { font-size: 22px; margin-bottom: 6px; }
.security-text p { color: var(--muted); }
.sec-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sec-points span {
    font-size: 13px; color: var(--ink); padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(0,0,0,.2); display: inline-flex; gap: 7px; align-items: center;
}
.sec-points span::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---- why us ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
    background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: transform .3s, border-color .3s, background .3s;
}
.feat-card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(45,212,191,.06); }
.feat-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
    margin-bottom: 16px; background: linear-gradient(135deg, rgba(45,212,191,.18), rgba(139,92,246,.18));
    border: 1px solid var(--border);
}
.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(45,212,191,.45); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; gap: 12px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq-item .faq-body a { color: var(--accent); }

/* ---- contact ---- */
.contact-card {
    background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; max-width: 720px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-full { margin-bottom: 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input, textarea, select {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: var(--glow); }
textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; text-align: center; font-size: 14.5px; min-height: 20px; }
.form-status.ok { color: var(--green); }
.contact-meta { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 26px; color: var(--muted); font-size: 14px; }
.contact-meta a { color: var(--accent); }

/* ---- footer ---- */
footer.site {
    border-top: 1px solid var(--border); padding: 50px 0 34px; margin-top: 40px;
    background: rgba(5,8,14,.5);
}
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 980px) {
    .pkg-grid, .pain-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
    .setup-steps { grid-template-columns: 1fr 1fr; }
    .step-card .step-arrow { display: none; }
}
@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .brand-tagline { display: none; }
    .nav-inner > .btn-primary { display: none; }
    .nav-inner { gap: 12px; }
    .wrap { padding: 0 16px; }
    .demo-grid, .form-row { grid-template-columns: 1fr; }
    section { padding: 70px 0; }
    /* hero: back to centered overlay, canvas full width, 3D pushed low */
    .hero { text-align: center; }
    .hero-canvas-wrap { left: 0; -webkit-mask-image: none; mask-image: none; }
    .hero-inner { max-width: none; }
    .hero p.lead { margin: 0 auto 36px; }
    .hero-cta, .badge-row { justify-content: center; }
}
@media (max-width: 640px) {
    .pkg-grid, .pain-grid, .feat-grid, .setup-steps { grid-template-columns: 1fr; }
    .hero { min-height: 86vh; }
}
