/* New visual system: warm gradients + glass cards */
:root {
    --bg: #f5f7ff;
    --bg-soft: #eef1ff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #1f2551;
    --muted: #59608a;
    --primary: #5b4bff;
    --secondary: #ff4d8d;
    --accent: #17c6d6;
    --border: rgba(91, 75, 255, 0.14);
    --shadow: 0 20px 45px rgba(38, 51, 135, 0.13);
    --radius: 18px;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dark-theme {
    background: radial-gradient(circle at 10% 20%, #fff 0%, var(--bg) 42%, var(--bg-soft) 100%);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.65;
    overflow-x: hidden;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: .25s ease; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 92px 0; }
.text-center { text-align: center; }

.cursor-dot, .cursor-outline { display: none; }

h1, h2, h3, h4, h5 { line-height: 1.2; margin-bottom: 16px; }
h1 span, h2 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-heading p { max-width: 650px; margin: 0 auto 36px; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .96rem;
}
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; box-shadow: 0 12px 25px rgba(91, 75, 255, .28);
}
.btn-glow:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); }
.btn-large { padding: 14px 34px; }
.btn-text { color: var(--primary); font-weight: 600; }

.preloader { position: fixed; inset: 0; background: #fff; z-index: 10000; display: grid; place-items: center; transition: .4s; }
.preloader-logo { width: 120px; margin-bottom: 14px; }
.cyber-progress { width: 190px; height: 5px; border-radius: 50px; background: #e8ebff; overflow: hidden; }
.cyber-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); animation: loadBar 2s forwards; }
@keyframes loadBar { to { width: 100%; } }

.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header.scrolled { box-shadow: 0 8px 30px rgba(46, 61, 152, .13); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 78px; }
.logo img { height: 42px; filter: drop-shadow(0 6px 12px rgba(91, 75, 255, .2)); }
.nav-list { display: flex; gap: 24px; }
.nav-link { color: #2d356f; font-weight: 500; }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle, .nav-close { display: none; border: 0; background: transparent; font-size: 1.35rem; color: var(--text); cursor: pointer; }

.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 115px 0 30px; position: relative; overflow: hidden; }
.hero-bg-elements { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.orb-1 { width: 350px; height: 350px; background: var(--secondary); top: -120px; left: -70px; }
.orb-2 { width: 380px; height: 380px; background: var(--accent); right: -90px; bottom: -130px; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(90, 110, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 110, 255, .06) 1px, transparent 1px); background-size: 38px 38px; }
.hero-container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; }
.badge { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(91, 75, 255, .12); color: var(--primary); font-weight: 600; margin-bottom: 18px; }
.hero-content h1 { font-size: clamp(2.1rem, 4vw, 3.8rem); }
.hero-content p { color: var(--muted); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.floating-dashboard, .calc-wrapper, .report-dashboard, .testi-card, .cyber-form, .info-card, .legal-layout .legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.floating-dashboard { padding: 24px; transform: rotate(2deg); }
.dash-header { display: flex; gap: 8px; margin-bottom: 15px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff7e88; }.dot.yellow { background: #ffce6b; }.dot.green { background: #56d477; }
.chart-mockup { height: 130px; display: flex; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.bar { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(to top, #cfd7ff, #8b9dff); }
.bar.primary { background: linear-gradient(to top, var(--secondary), var(--primary)); }
.h-40 { height: 40%; }.h-50 { height: 50%; }.h-70 { height: 70%; }.h-90 { height: 90%; }.h-100 { height: 100%; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: #fff; border: 1px solid #edf0ff; border-radius: 10px; font-size: .9rem; padding: 10px 12px; color: var(--primary); }

.marquee-section { padding: 24px 0; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .55); }
.marquee-content { display: flex; gap: 56px; white-space: nowrap; animation: marquee 16s linear infinite; }
.marquee-content span { color: var(--muted); font-weight: 600; }
.marquee-content i { color: var(--primary); margin-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services-grid, .testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card-3d { perspective: 1000px; min-height: 320px; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: .8s; }
.service-card-3d:hover .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
    position: absolute; inset: 0; backface-visibility: hidden;
    border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); background: #fff;
}
.card-front { text-align: center; display: grid; place-content: center; }
.icon-wrapper { width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.card-front p, .card-back ul li, .testi-author span, .footer-about-text, .legal-card p { color: var(--muted); }
.card-back { transform: rotateY(180deg); display: flex; flex-direction: column; gap: 10px; }

.industry-flex { display: flex; align-items: center; gap: 34px; }
.industry-accordion { margin-top: 20px; }
.accordion-item { background: #fff; border: 1px solid #e6eaff; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.accordion-header { padding: 16px; font-weight: 600; cursor: pointer; }
.accordion-body { display: none; padding: 0 16px 16px; color: var(--muted); }
.accordion-item.active .accordion-body { display: block; }
.accordion-item.active .accordion-header { color: var(--primary); }
.industry-visual { display: grid; place-items: center; }
.hologram-cube { width: 180px; height: 180px; position: relative; transform-style: preserve-3d; animation: rotateCube 18s linear infinite; }
.face { position: absolute; width: 180px; height: 180px; display: grid; place-items: center; color: var(--primary); background: rgba(255, 255, 255, .6); border: 1px solid var(--border); }
.face.front { transform: translateZ(90px); }.face.back { transform: rotateY(180deg) translateZ(90px); }.face.right { transform: rotateY(90deg) translateZ(90px); }.face.left { transform: rotateY(-90deg) translateZ(90px); }.face.top { transform: rotateX(90deg) translateZ(90px); }.face.bottom { transform: rotateX(-90deg) translateZ(90px); }
@keyframes rotateCube { to { transform: rotateX(360deg) rotateY(360deg); } }

.calc-wrapper { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.range-group { margin-bottom: 18px; }
.range-group label { font-weight: 500; font-size: .95rem; }
.range-group span { color: var(--primary); font-weight: 700; }
input[type=range] { width: 100%; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-box { background: #fff; border: 1px solid #e9edff; border-radius: 12px; padding: 16px; text-align: center; }
.result-value { font-size: 1.7rem; font-weight: 700; }
.result-box.highlight .result-value { color: var(--secondary); }
.result-box.highlight-glow .result-value { color: var(--primary); }

.report-dashboard { display: flex; overflow: hidden; }
.report-sidebar { width: 240px; background: rgba(91, 75, 255, .06); border-right: 1px solid var(--border); }
.report-sidebar li { padding: 16px 18px; cursor: pointer; border-bottom: 1px solid rgba(91, 75, 255, .09); }
.report-sidebar li.active, .report-sidebar li:hover { background: rgba(91, 75, 255, .12); color: var(--primary); }
.report-content { flex: 1; padding: 26px; }
.report-panel { display: none; }
.report-panel.active { display: block; }
.report-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.badge.success { background: rgba(52, 199, 89, .15); color: #0f8c41; border: 1px solid rgba(52, 199, 89, .3); }
.line-chart { width: 100%; height: 280px; }

.testi-card { padding: 26px; }
.quote-icon { color: var(--secondary); opacity: .35; font-size: 1.4rem; margin-bottom: 12px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-author .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }

.cta-section { position: relative; }
.cta-bg { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(91, 75, 255, .18), transparent 70%); z-index: -1; }
.cta-container h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.cta-container p { color: var(--muted); margin-bottom: 24px; }

.inner-page { padding-top: 78px; }
.page-header { padding: 96px 0 36px; background: linear-gradient(180deg, rgba(91, 75, 255, .12), transparent); }
.slim-header { padding: 72px 0 26px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.page-header p { color: var(--muted); max-width: 700px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 24px; }
.info-card { padding: 18px; display: flex; gap: 14px; margin-bottom: 14px; }
.info-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cyber-form { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid #dce1ff; background: #fff; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.legal-layout .legal-card { padding: 30px; }
.legal-card h2 { color: var(--primary); font-size: 1.35rem; margin-top: 24px; }

.live-chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 999; }
.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: var(--shadow);
}
.chat-window { position: absolute; right: 0; bottom: 74px; width: 335px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; display: none; box-shadow: var(--shadow); }
.chat-window.active { display: flex; flex-direction: column; }
.chat-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-header button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.chat-body { padding: 14px; height: 220px; overflow-y: auto; background: #f8f9ff; }
.chat-msg { max-width: 85%; font-size: .9rem; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; background: #e8ecff; }
.chat-msg.bot { color: var(--primary); }
.chat-input { display: flex; align-items: center; padding: 10px; border-top: 1px solid #ecf0ff; }
.chat-input input { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); }
.chat-input button { border: 0; background: transparent; color: var(--primary); cursor: pointer; }

.footer { background: #1b1f46; color: #d4d9ff; margin-top: 60px; padding-top: 70px; }
.footer-top-border { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 24px; margin-bottom: 40px; }
.footer-about .logo img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-title { color: #fff; margin-bottom: 16px; font-size: 1.08rem; }
.footer-links a, .footer-services a, .contact-list li, .footer-bottom { color: #c2c8f6; }
.footer-links a:hover, .footer-services a:hover, .legal-links a:hover { color: #fff; }
.footer-links li, .footer-services li, .contact-list li { margin-bottom: 11px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.footer-socials a:hover { background: #fff; color: #24295c; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; }
.legal-links { display: flex; gap: 14px; }

[data-observe] { opacity: 0; transition: .65s ease; }
[data-observe="fade-up"] { transform: translateY(32px); }
[data-observe="fade-left"] { transform: translateX(32px); }
[data-observe="fade-right"] { transform: translateX(-32px); }
[data-observe="zoom-in"] { transform: scale(.95); }
[data-observe].is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
    .hero-container, .contact-grid, .calc-wrapper { grid-template-columns: 1fr; }
    .industry-flex { flex-direction: column; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: #fff; box-shadow: -10px 0 32px rgba(34, 44, 110, .2);
        padding: 86px 26px; transition: .35s ease;
    }
    .nav.active { right: 0; }
    .nav-list { flex-direction: column; }
    .menu-toggle, .nav-close { display: block; }
    .header-actions .btn { display: none; }
    .report-dashboard, .footer-main, .footer-bottom { flex-direction: column; grid-template-columns: 1fr; text-align: center; }
    .report-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
    .report-sidebar ul { display: flex; overflow-x: auto; }
    .form-row, .calc-results { grid-template-columns: 1fr; }
}