/* ==========================================================================
   Full Redesign Theme
   ========================================================================== */
:root {
    --color-bg-main: #f4f6fb;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #eef2ff;
    --color-primary: #5b3df5;
    --color-primary-glow: rgba(91, 61, 245, 0.35);
    --color-secondary: #00a6a6;
    --color-secondary-glow: rgba(0, 166, 166, 0.25);
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    --color-border: rgba(15, 23, 42, 0.12);
    --color-border-focus: rgba(91, 61, 245, 0.45);

    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.8s ease;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --shadow-card: 0 15px 35px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 10px 30px var(--color-primary-glow);
    --shadow-glow-secondary: 0 10px 30px var(--color-secondary-glow);

    --container-width: 1280px;
    --header-height: 88px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 10%, #dbe8ff 0%, transparent 38%),
        radial-gradient(circle at 92% 12%, #d8fff5 0%, transparent 35%),
        linear-gradient(180deg, #f9fbff 0%, #f2f5fb 100%);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c8d3ee;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9aafe6;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
    font-size: clamp(1.35rem, 3vw, 2rem);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #2f1b98;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5b3df5, #00a6a6);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(91, 61, 245, 0.35);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(91, 61, 245, 0.25);
    color: #1e293b;
}

.btn-secondary:hover {
    background: #fff;
    border-color: rgba(91, 61, 245, 0.45);
    color: #1e293b;
}

.bg-gradient-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(91, 61, 245, 0.09), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(0, 166, 166, 0.08), transparent 25%);
    z-index: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    transition: var(--transition-medium);
}

.site-header.scrolled {
    height: 74px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    height: 44px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    color: #334155;
    font-weight: 600;
    padding: 0.3rem 0;
    position: relative;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 2rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    color: #1e293b;
    background: transparent;
    border: 0;
}

.hero {
    position: relative;
    padding: 175px 0 110px;
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.hero-content {
    max-width: 690px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(91, 61, 245, 0.1);
    color: #4128cf;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    margin-bottom: 1.3rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #5b3df5, #00a6a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.16rem;
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visuals {
    position: absolute;
    right: 6%;
    top: 48%;
    transform: translateY(-50%);
    width: 460px;
    height: 420px;
}

.cube-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.glass-panel {
    position: absolute;
    width: 280px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow-card);
}

.glass-panel h4 {
    margin-bottom: 0.3rem;
}

.panel-1 {
    left: 0;
    top: 0;
}

.panel-2 {
    right: 0;
    top: 110px;
}

.panel-3 {
    left: 45px;
    bottom: 0;
}

.stat-bar {
    background: #dbe4f8;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.6rem;
}

.stat-fill {
    height: 100%;
    width: 82%;
    background: linear-gradient(90deg, #5b3df5, #00a6a6);
}

.partner-ticker {
    background: rgba(255, 255, 255, 0.68);
    border-block: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.2rem 0;
    overflow: hidden;
}

.ticker-track {
    width: max-content;
    display: flex;
    animation: ticker 28s linear infinite;
}

.ticker-item {
    margin: 0 1.8rem;
    color: #475569;
    font-weight: 700;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #5b3df5;
    font-family: var(--font-secondary);
    margin-bottom: 0.7rem;
    display: block;
}

.services-grid,
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card,
.testi-card,
.dashboard-mockup,
.calc-grid,
.custom-form,
.industry-feature {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow-card);
}

.service-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.service-list li {
    padding-left: 1.15rem;
    position: relative;
    margin: 0.35rem 0;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

.service-link {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.industries-section,
.testimonials-section {
    background: rgba(255, 255, 255, 0.38);
}

.industries-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.industry-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tab-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.75);
    color: #334155;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(91, 61, 245, 0.12), rgba(0, 166, 166, 0.12));
    border-color: rgba(91, 61, 245, 0.45);
    color: #2f1b98;
}

.industry-content-area {
    min-height: 360px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.industry-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.industry-feature {
    padding: 1.2rem;
    border-radius: 14px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    border-radius: 22px;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.input-value {
    font-family: var(--font-secondary);
    color: var(--color-primary);
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: #dce4f9;
    border-radius: 999px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: #5b3df5;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.18);
}

.calc-results {
    background: linear-gradient(160deg, #5b3df5, #00a6a6);
    color: #fff;
    border-radius: 18px;
    padding: 2rem;
}

.result-box {
    text-align: center;
    margin-bottom: 1.1rem;
}

.result-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.result-value {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
}

.result-value.highlight {
    color: #fff;
}

.dashboard-mockup {
    border-radius: 22px;
    padding: 1.7rem;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.dash-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(244, 247, 255, 0.86);
}

.dash-stat-number {
    font-size: 1.65rem;
}

.chart-container {
    height: 230px;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    border-left: 1px solid rgba(148, 163, 184, 0.3);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding-left: 0.65rem;
}

.chart-bar-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
}

.chart-bar {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(to top, #5b3df5, #00a6a6);
    height: 0;
    transition: 0.8s ease;
}

.chart-tooltip {
    opacity: 0;
}

.chart-bar-wrapper:hover .chart-tooltip {
    opacity: 1;
}

.testi-card {
    border-radius: 18px;
    padding: 2rem;
}

.quote-icon {
    color: rgba(91, 61, 245, 0.15);
    font-size: 2.4rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b3df5, #00a6a6);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 2rem;
}

.contact-details {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(91, 61, 245, 0.1);
    color: #5b3df5;
    display: grid;
    place-items: center;
}

.custom-form {
    border-radius: 22px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.14);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #5b3df5, #00a6a6);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 12px 26px rgba(91, 61, 245, 0.35);
}

.chat-box {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-medium);
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
}

.chat-title {
    color: #1e293b;
    font-weight: 700;
}

.status-dot {
    background: #0ea86d;
    box-shadow: 0 0 8px rgba(14, 168, 109, 0.45);
}

.close-chat {
    border: 0;
    background: transparent;
    color: #64748b;
}

.chat-body {
    padding: 1rem;
    height: 280px;
    overflow-y: auto;
}

.chat-msg {
    max-width: 82%;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
}

.msg-agent {
    background: #eef3ff;
    color: #243b7a;
}

.msg-user {
    margin-left: auto;
    background: #ecfeff;
    color: #0f766e;
}

.chat-input-area {
    display: flex;
    gap: 0.55rem;
    padding: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.chat-input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.6rem 0.7rem;
}

.chat-send {
    width: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b3df5, #00a6a6);
    color: #fff;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 78px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-brand .brand-logo img {
    height: 48px;
    filter: brightness(0) invert(1);
}

.footer-desc,
.footer-links a,
.footer-contact li {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 0.7rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    display: grid;
    place-items: center;
}

.footer-col h4 {
    color: #f8fafc;
}

.footer-bottom {
    margin-top: 2.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1.2rem;
    text-align: center;
    color: #94a3b8;
}

.page-hero {
    padding: 170px 0 85px;
    text-align: center;
    background: linear-gradient(160deg, rgba(91, 61, 245, 0.08), rgba(0, 166, 166, 0.08));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.breadcrumb {
    color: #64748b;
}

.breadcrumb span {
    color: var(--color-primary);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 0 90px;
}

.prose h2 {
    margin-top: 2rem;
    color: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    padding-bottom: 0.4rem;
}

.prose ul {
    list-style: square;
    margin-left: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    .hero-visuals {
        display: none;
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .industries-container,
    .calc-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .industry-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-medium);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 145px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .industry-features {
        grid-template-columns: 1fr;
    }
}