/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    --bg-base: #070b14;
    --bg-surface: #111827;
    --bg-surface-hover: #1f2937;
    --text-primary: #f8fafc;
    --text-secondary: #9ca3af;

    /* Branding Colors */
    --primary: #06b6d4;
    /* Tech Blue */
    --primary-glow: rgba(6, 182, 212, 0.45);
    --secondary: #7c3aed;
    /* Vibrant Purple */
    --secondary-glow: rgba(124, 58, 237, 0.45);
    --accent: #f59e0b;
    /* Neon Pink */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --container-w: 1280px;
    --section-padding: 6rem;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    background-image: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.12), transparent 30%), radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.14), transparent 35%);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-pad {
    padding: var(--section-padding) 0;
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.3);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-brand);
    z-index: -1;
    transition: opacity var(--transition-base);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Typography */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* SVG Gradients definitions */
svg {
    overflow: visible;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    filter: brightness(1) invert(1);
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--primary);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.loader-progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--primary);
    animation: loadBar 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loadBar {
    0% {
        width: 0;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.site-header.scrolled {
    background: rgba(7, 11, 20, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 40px;
    filter: brightness(1) invert(1);

}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}


.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: var(--transition-base);
}

/* ==========================================================================
   Hero Section & 3D Effect
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: -100px;
    animation: floatSlow 10s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: -50px;
    animation: floatSlow 12s ease-in-out infinite reverse;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 3D Scene */
.scene-3d {
    perspective: 1000px;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-wrapper {
    position: relative;
    width: 250px;
    height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: autoSpin 15s linear infinite;
}

.scene-3d:hover .cube-wrapper {
    animation-play-state: paused;
}

@keyframes autoSpin {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.floating-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
}

.card-front {
    transform: translateZ(125px);
    border-top: 2px solid var(--primary);
}

.card-back {
    transform: rotateY(180deg) translateZ(125px);
    border-top: 2px solid var(--accent);
}

.floating-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.floating-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.card-back p {
    color: var(--accent);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.feature-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.image-stack {
    position: relative;
    height: 400px;
    perspective: 800px;
}

.img-box {
    position: absolute;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-1 {
    width: 250px;
    top: 0;
    left: 0;
    z-index: 1;
    border-left: 3px solid var(--primary);
    animation: float1 4s infinite ease-in-out;
}

.box-2 {
    width: 280px;
    top: 30%;
    right: 0;
    z-index: 2;
    border-left: 3px solid var(--secondary);
    background: rgba(139, 92, 246, 0.1);
    animation: float2 5s infinite ease-in-out;
}

.box-3 {
    width: 220px;
    bottom: 0;
    left: 10%;
    z-index: 3;
    border-left: 3px solid var(--accent);
    animation: float1 4.5s infinite ease-in-out reverse;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    perspective: 1000px;
}

.service-card {
    box-shadow: 0 16px 35px rgba(2, 6, 23, 0.35);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.35);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Industry Tabs
   ========================================================================== */
.tabs-container {
    margin-top: 4rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    background: var(--gradient-glass);
    border-radius: var(--border-radius-md);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.tab-stats {
    text-align: center;
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--percent) * 1%), rgba(255, 255, 255, 0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.stat-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--bg-surface);
    border-radius: 50%;
}

.stat-circle span {
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Interactive Calculator
   ========================================================================== */
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.calc-group {
    margin-bottom: 2rem;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.highlight-text {
    color: var(--accent);
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* Custom Range Slider */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    padding: 0;
    margin: 0;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Custom Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    font-size: 0.95rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.custom-checkbox:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

/* Calculator Results */
.calc-results {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.result-item:last-child {
    border: none;
    padding-bottom: 0;
}

.result-item h4 {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.res-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.highlight-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-result h4 {
    color: #fff;
    font-size: 1.1rem;
}

.highlight-result .res-value {
    font-size: 1.8rem;
}

/* ==========================================================================
   Mock Analytics Dashboard
   ========================================================================== */
.dashboard-mockup {
    margin-top: 4rem;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-header {
    background: #0f0f16;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dash-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dash-dots .red {
    background: #ff5f56;
}

.dash-dots .yellow {
    background: #ffbd2e;
}

.dash-dots .green {
    background: #27c93f;
}

.dash-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}

.dash-body {
    display: flex;
    height: 400px;
}

.dash-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-nav-item {
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: 0.2s;
}

.dash-nav-item.active {
    border-color: var(--primary);
    color: #fff;
    background: rgba(59, 130, 246, 0.05);
}

.dash-main {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.d-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.d-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.d-val {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trend-up {
    font-size: 0.8rem;
    color: #27c93f;
    font-style: normal;
}

.trend-down {
    font-size: 0.8rem;
    color: #ff5f56;
    font-style: normal;
}

.d-chart-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.d-chart-area h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bar-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    position: relative;
}

.bar-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.chart-bar {
    width: 40px;
    background: var(--gradient-brand);
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: growBar 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards 0.5s;
    position: relative;
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes growBar {
    to {
        height: var(--h);
    }
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.process-step p {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Connectors for desktop */
@media(min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -2rem;
        width: 2rem;
        height: 2px;
        background: dashed 2px rgba(255, 255, 255, 0.1);
        z-index: 0;
    }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testi-card {
    position: relative;
    padding: 3rem 2rem 2rem;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    font-size: 5rem;
    color: var(--primary-glow);
    line-height: 1;
}

.testi-text {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.author-info h4 {
    color: #fff;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acc-item {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.acc-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
}

.acc-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.acc-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.acc-item.open .acc-body {
    padding-bottom: 1.5rem;
}

.acc-item.open .acc-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box {
    padding: 4rem 2rem;
    border: 1px solid rgba(6, 182, 212, 0.45);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    z-index: 0;
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 64px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--gradient-brand);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
}

.chat-header button {
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #0a0a0f;
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-msg {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    background: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-area input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.chat-input-area button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #050508;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(1) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legal-links a:hover {
    color: var(--primary);
}

.legal-links .sep {
    margin: 0 0.5rem;
    opacity: 0.3;
}

/* ==========================================================================
   Other Pages Specific Styles (Contact & Legal)
   ========================================================================== */
.pt-header {
    padding-top: 120px;
}

.page-header {
    padding: 4rem 0;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: 0.3s ease;
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-surface);
    padding: 0 0.4rem;
    color: var(--primary);
}

.input-group select {
    color: var(--text-secondary);
}

.input-group select:focus {
    color: #fff;
}

/* Legal Pages Content */
.legal-content-section .text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin: 2.5rem 0 1rem;
}

.text-content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.text-content ul {
    margin: 1rem 0 2rem 2rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.text-content li {
    margin-bottom: 0.5rem;
}

.text-content strong {
    color: #fff;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up,
.reveal-left,
.reveal-right,
.fade-in-up,
.fade-in-left {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right,
.loaded .fade-in-up,
.loaded .fade-in-left {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .grid-2-col,
    .grid-4-col,
    .contact-grid,
    .tab-inner,
    .dashboard-mockup .dash-body,
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.5rem 0;
    }

    .dash-nav-item {
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .dash-nav-item.active {
        border-color: var(--primary);
    }

    .dash-main {
        padding: 1rem;
    }

    .dash-cards-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .about-visual {
        order: 2;
        margin-top: 2rem;
    }

    .about-text {
        order: 1;
    }

    .image-stack {
        height: 300px;
    }

    .box-2 {
        right: auto;
        left: 10%;
        top: 40%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .section-pad {
        padding: 4rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        padding: 80px 2rem 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-actions .nav-btn {
        display: none;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .custom-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .image-stack {
        height: 250px;
    }

    .box-1,
    .box-2,
    .box-3 {
        width: 90%;
        font-size: 0.9rem;
        padding: 1rem;
    }

    .tabs-nav {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}