/* ==========================================================================
   CSS VARIABLES & CORE THEME (Luminous Corporate - Light Theme)
   ========================================================================== */
:root {
   --bg-main: #ffffff;
   --bg-secondary: #f8fafc;
   /* Very light slate */
   --bg-tertiary: #f1f5f9;
   --bg-dark-contrast: #0b1120;
   --bg-glass-light: rgba(255, 255, 255, 0.85);

   --text-heading: #0f172a;
   /* Slate 900 */
   --text-body: #475569;
   /* Slate 600 */
   --text-light: #f8fafc;

   --color-primary: #4f46e5;
   /* Indigo */
   --color-secondary: #0ea5e9;
   /* Light Blue */
   --color-accent: #f43f5e;
   /* Rose/Coral */

   --border-light: #e2e8f0;
   --border-dark: rgba(255, 255, 255, 0.1);

   --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
   --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.2);
   --shadow-3d: 0 30px 60px rgba(15, 23, 42, 0.1);

   --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));

   --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
   --font-body: 'Inter', system-ui, sans-serif;

   --nav-height: 90px;
   --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
   --transition-fast: 0.2s ease-in-out;
}

/* ==========================================================================
   RESET & GLOBAL TYPOGRAPHY
   ========================================================================== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: var(--font-body);
   background-color: var(--bg-main);
   color: var(--text-body);
   line-height: 1.7;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition-fast);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

button,
input,
textarea,
select {
   font-family: inherit;
   border: none;
   outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   color: var(--text-heading);
   font-weight: 700;
   line-height: 1.2;
   letter-spacing: -0.03em;
   margin-bottom: 1rem;
}

h1 {
   font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
   font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
   font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
   font-size: 1.125rem;
   margin-bottom: 1.5rem;
}

.container {
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 5%;
}

.section-pad {
   padding: 8rem 0;
}

.text-center {
   text-align: center;
}

.text-gradient {
   background: var(--gradient-brand);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   display: inline-block;
}

.subtitle {
   display: inline-block;
   font-family: var(--font-heading);
   font-weight: 700;
   color: var(--color-primary);
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 0.875rem;
   margin-bottom: 1rem;
   padding: 0.5rem 1.2rem;
   background: rgba(79, 70, 229, 0.1);
   border-radius: 50px;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1.1rem 2.5rem;
   font-size: 1rem;
   font-weight: 600;
   font-family: var(--font-heading);
   border-radius: 50px;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   z-index: 1;
   transition: var(--transition-smooth);
}

.btn-primary {
   background: var(--gradient-brand);
   color: #fff;
   box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
   z-index: -1;
   opacity: 0;
   transition: var(--transition-smooth);
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 25px rgba(79, 70, 229, 0.4);
   color: #fff;
}

.btn-primary:hover::before {
   opacity: 1;
}

.btn-outline {
   background: transparent;
   color: var(--text-heading);
   border: 2px solid var(--border-light);
}

.btn-outline:hover {
   border-color: var(--color-primary);
   color: var(--color-primary);
   transform: translateY(-3px);
}

/* ==========================================================================
   HEADER & NAVIGATION (Strictly Identical Site-wide, Dark for Contrast)
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   background: var(--bg-dark-contrast);
   z-index: 1000;
   transition: var(--transition-smooth);
   display: flex;
   align-items: center;
   border-bottom: 1px solid var(--border-dark);
}

.site-header.scrolled {
   height: 80px;
   background: rgba(11, 17, 32, 0.95);
   backdrop-filter: blur(15px);
   -webkit-backdrop-filter: blur(15px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
}

.site-logo {
   max-height: 50px;
   transition: var(--transition-smooth);
}

.main-nav {
   display: flex;
   gap: 2.5rem;
   align-items: center;
}

.nav-link {
   font-family: var(--font-heading);
   font-size: 0.95rem;
   font-weight: 600;
   color: #cbd5e1;
   position: relative;
   padding: 0.5rem 0;
}

.nav-link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--color-secondary);
   transition: var(--transition-smooth);
}

.nav-link:hover {
   color: #fff;
}

.nav-link:hover::after {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   width: 35px;
   height: 24px;
   position: relative;
   cursor: pointer;
   background: transparent;
   z-index: 1001;
}

.mobile-menu-btn span {
   display: block;
   position: absolute;
   height: 2px;
   width: 100%;
   background: #fff;
   border-radius: 2px;
   transition: 0.3s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
   top: 0;
}

.mobile-menu-btn span:nth-child(2) {
   top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
   top: 22px;
}

.mobile-menu-btn.active span:nth-child(1) {
   top: 11px;
   transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
   opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
   top: 11px;
   transform: rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (Light, Airy, 3D Layers)
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   padding-top: var(--nav-height);
   position: relative;
   overflow: hidden;
   background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 40%);
}

.hero-layout {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.hero-content h1 {
   margin-bottom: 1.5rem;
}

.hero-content p {
   font-size: 1.25rem;
   margin-bottom: 2.5rem;
   max-width: 90%;
}

.hero-actions {
   display: flex;
   gap: 1rem;
}

/* 3D Floating Layers (Pure CSS) */
.hero-visual {
   perspective: 1000px;
   position: relative;
   height: 500px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.layer-stack {
   position: relative;
   width: 350px;
   height: 350px;
   transform-style: preserve-3d;
   transform: rotateX(60deg) rotateZ(-45deg);
   animation: floatStack 8s ease-in-out infinite;
}

.layer {
   position: absolute;
   width: 100%;
   height: 100%;
   border-radius: 24px;
   background: rgba(255, 255, 255, 0.6);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.8);
   box-shadow: var(--shadow-3d);
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: var(--font-heading);
   font-size: 2rem;
   font-weight: bold;
   color: var(--color-primary);
}

.layer:nth-child(1) {
   transform: translateZ(0px);
   background: #fff;
}

.layer:nth-child(2) {
   transform: translateZ(60px);
   background: rgba(241, 245, 249, 0.9);
   font-size: 1.5rem;
   color: var(--text-heading);
}

.layer:nth-child(3) {
   transform: translateZ(120px);
   background: var(--gradient-brand);
   color: #fff;
   box-shadow: 0 20px 50px rgba(79, 70, 229, 0.4);
}

@keyframes floatStack {

   0%,
   100% {
      transform: rotateX(60deg) rotateZ(-45deg) translateZ(0);
   }

   50% {
      transform: rotateX(60deg) rotateZ(-45deg) translateZ(30px);
   }
}

/* ==========================================================================
   METRICS 
   ========================================================================== */
.metrics-wrap {
   display: flex;
   justify-content: space-between;
   padding: 4rem;
   background: #fff;
   border-radius: 24px;
   box-shadow: var(--shadow-soft);
   margin-top: -50px;
   position: relative;
   z-index: 10;
   border: 1px solid var(--border-light);
}

.metric-item {
   text-align: center;
}

.metric-num {
   font-family: var(--font-heading);
   font-size: 3rem;
   font-weight: 700;
   color: var(--text-heading);
   margin-bottom: 0.5rem;
}

.metric-label {
   font-weight: 600;
   color: var(--color-primary);
   text-transform: uppercase;
   letter-spacing: 1px;
   font-size: 0.85rem;
}

/* ==========================================================================
   SERVICES (Sleek Clean Cards)
   ========================================================================== */
.services-section {
   background: var(--bg-secondary);
}

.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 2rem;
   margin-top: 4rem;
}

.service-card {
   background: #fff;
   border: 1px solid var(--border-light);
   border-radius: 24px;
   padding: 3rem 2.5rem;
   transition: var(--transition-smooth);
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.service-card::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: var(--gradient-brand);
   transform: scaleX(0);
   transform-origin: left;
   transition: var(--transition-smooth);
}

.service-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-hover);
   border-color: transparent;
}

.service-card:hover::after {
   transform: scaleX(1);
}

.service-icon {
   width: 70px;
   height: 70px;
   border-radius: 20px;
   background: var(--bg-tertiary);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   color: var(--color-primary);
   margin-bottom: 2rem;
   transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
   background: var(--color-primary);
   color: #fff;
   transform: rotateY(180deg);
}

.service-card h3 {
   font-size: 1.5rem;
   margin-bottom: 1rem;
}

/* ==========================================================================
   ROI CALCULATOR (Clean Light UI)
   ========================================================================== */
.calc-wrapper {
   background: #fff;
   border-radius: 32px;
   border: 1px solid var(--border-light);
   box-shadow: var(--shadow-soft);
   display: grid;
   grid-template-columns: 1fr 1fr;
   overflow: hidden;
}

.calc-input-side {
   padding: 5rem;
}

.calc-result-side {
   background: var(--gradient-brand);
   padding: 5rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   color: #fff;
   text-align: center;
   position: relative;
}

.calc-result-side::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="none" stroke="%23fff" stroke-width="2"/></svg>') repeat;
   opacity: 0.3;
}

.range-group {
   margin-bottom: 3rem;
}

.range-header {
   display: flex;
   justify-content: space-between;
   font-weight: 600;
   margin-bottom: 1rem;
   color: var(--text-heading);
}

.val-display {
   color: var(--color-primary);
   font-size: 1.25rem;
   font-weight: 700;
   font-family: var(--font-heading);
}

/* Light Theme Slider */
.clean-slider {
   -webkit-appearance: none;
   width: 100%;
   height: 6px;
   border-radius: 3px;
   background: var(--bg-tertiary);
   outline: none;
}

.clean-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--color-primary);
   cursor: pointer;
   box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
   border: 3px solid #fff;
   transition: 0.2s;
}

.clean-slider::-webkit-slider-thumb:hover {
   transform: scale(1.2);
}

.checkbox-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1rem;
}

.custom-chk {
   display: block;
   position: relative;
   cursor: pointer;
}

.custom-chk input {
   display: none;
}

.chk-box {
   border: 2px solid var(--border-light);
   border-radius: 12px;
   padding: 1rem;
   text-align: center;
   font-weight: 600;
   color: var(--text-body);
   transition: var(--transition-fast);
}

.custom-chk input:checked+.chk-box {
   border-color: var(--color-primary);
   background: rgba(79, 70, 229, 0.05);
   color: var(--color-primary);
}

.result-title {
   font-size: 1.2rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   margin-bottom: 1rem;
   position: relative;
   z-index: 1;
}

.result-val {
   font-size: 4.5rem;
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1;
   margin-bottom: 1rem;
   text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
   position: relative;
   z-index: 1;
}

.result-desc {
   font-size: 1rem;
   opacity: 0.9;
   position: relative;
   z-index: 1;
}

/* ==========================================================================
   INTERACTIVE REPORTS (Dashboard Simulation)
   ========================================================================== */
.reports-section {
   background: var(--bg-secondary);
}

.dashboard-ui {
   background: #fff;
   border: 1px solid var(--border-light);
   border-radius: 24px;
   box-shadow: var(--shadow-soft);
   padding: 2rem;
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.dash-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-bottom: 1px solid var(--border-light);
   padding-bottom: 1.5rem;
}

.dash-tabs {
   display: flex;
   gap: 1rem;
}

.dash-tab {
   padding: 0.8rem 1.5rem;
   border-radius: 50px;
   font-weight: 600;
   color: var(--text-body);
   cursor: pointer;
   background: transparent;
   transition: var(--transition-fast);
   border: 1px solid transparent;
}

.dash-tab.active {
   background: var(--bg-secondary);
   color: var(--text-heading);
   border-color: var(--border-light);
}

.dash-content {
   display: none;
   animation: fadeIn 0.5s ease;
}

.dash-content.active {
   display: grid;
   grid-template-columns: 2fr 1fr;
   gap: 2rem;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.chart-mockup {
   height: 300px;
   display: flex;
   align-items: flex-end;
   gap: 2%;
   padding: 2rem 0 0;
   border-bottom: 2px solid var(--border-light);
   position: relative;
}

.chart-bar {
   flex: 1;
   background: var(--gradient-brand);
   border-radius: 6px 6px 0 0;
   transform-origin: bottom;
   animation: growBar 1s ease-out forwards;
   opacity: 0;
}

.chart-bar:nth-child(even) {
   background: var(--bg-tertiary);
}

@keyframes growBar {
   to {
      opacity: 1;
   }
}

.dash-stats {
   display: grid;
   gap: 1rem;
}

.mini-stat {
   padding: 1.5rem;
   background: var(--bg-secondary);
   border-radius: 16px;
   border: 1px solid var(--border-light);
}

.mini-stat p {
   margin: 0;
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--text-body);
   text-transform: uppercase;
}

.mini-stat h4 {
   margin: 0.5rem 0 0;
   font-size: 2rem;
   color: var(--color-primary);
}

/* ==========================================================================
   INDUSTRY FOCUS
   ========================================================================== */
.industry-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-top: 4rem;
}

.ind-card {
   position: relative;
   height: 350px;
   border-radius: 24px;
   overflow: hidden;
   box-shadow: var(--shadow-soft);
   cursor: pointer;
   background: #fff;
}

.ind-img-placeholder {
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
   transition: transform 0.6s ease;
}

.ind-card:hover .ind-img-placeholder {
   transform: scale(1.05);
}

.ind-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.1));
   padding: 2.5rem;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   transition: var(--transition-smooth);
}

.ind-card:hover .ind-overlay {
   background: linear-gradient(to top, rgba(79, 70, 229, 0.95), rgba(79, 70, 229, 0.4));
}

.ind-overlay h3 {
   color: #fff;
   margin-bottom: 0.5rem;
}

.ind-overlay p {
   color: rgba(255, 255, 255, 0.8);
   font-size: 1rem;
   margin: 0;
   opacity: 0;
   transform: translateY(20px);
   transition: var(--transition-smooth);
}

.ind-card:hover .ind-overlay p {
   opacity: 1;
   transform: translateY(0);
   transition-delay: 0.1s;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

.testi-item {
   background: #fff;
   border: 1px solid var(--border-light);
   border-radius: 24px;
   padding: 3rem 2rem;
   box-shadow: var(--shadow-soft);
   position: relative;
}

.testi-quote {
   font-family: var(--font-heading);
   font-size: 4rem;
   color: var(--bg-tertiary);
   position: absolute;
   top: 1.5rem;
   right: 2rem;
   line-height: 1;
}

.testi-text {
   font-size: 1.1rem;
   color: var(--text-heading);
   font-weight: 500;
   margin-bottom: 2rem;
   position: relative;
   z-index: 1;
}

.testi-client {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.client-ava {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--color-primary);
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 1.2rem;
}

.client-info h4 {
   margin: 0;
   font-size: 1rem;
}

.client-info span {
   font-size: 0.85rem;
   color: var(--text-body);
}

/* ==========================================================================
   CONTACT CTA (Light Form)
   ========================================================================== */
.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1.5fr;
   gap: 4rem;
   background: var(--bg-secondary);
   border-radius: 32px;
   padding: 5rem;
   border: 1px solid var(--border-light);
}

.contact-info ul {
   margin-top: 2rem;
}

.contact-info li {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1.5rem;
   font-weight: 500;
   color: var(--text-heading);
}

.icon-circle {
   width: 45px;
   height: 45px;
   border-radius: 50%;
   background: #fff;
   border: 1px solid var(--border-light);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--color-primary);
   box-shadow: var(--shadow-soft);
}

.light-form {
   display: grid;
   gap: 1.5rem;
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
}

.input-fld {
   width: 100%;
   padding: 1.25rem 1.5rem;
   background: #fff;
   border: 1px solid var(--border-light);
   border-radius: 12px;
   font-size: 1rem;
   color: var(--text-heading);
   transition: var(--transition-fast);
}

.input-fld:focus {
   border-color: var(--color-primary);
   box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.input-fld {
   height: 150px;
   resize: vertical;
}

/* ==========================================================================
   FOOTER (Strictly Identical, Deep Navy)
   ========================================================================== */
.site-footer {
   background: var(--bg-dark-contrast);
   color: #94a3b8;
   padding: 6rem 0 2rem;
   border-top: 1px solid var(--border-dark);
}

.footer-wrap {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 4rem;
}

.footer-logo {
   max-height: 50px;
   margin-bottom: 1.5rem;
}

.footer-desc {
   line-height: 1.8;
   margin-bottom: 2rem;
   max-width: 320px;
}

.social-flex {
   display: flex;
   gap: 1rem;
}

.social-flex a {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid var(--border-dark);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   transition: var(--transition-fast);
}

.social-flex a:hover {
   background: var(--color-primary);
   border-color: var(--color-primary);
   transform: translateY(-3px);
}

.foot-title {
   color: #fff;
   font-size: 1.25rem;
   margin-bottom: 1.5rem;
   font-family: var(--font-heading);
}

.foot-links li {
   margin-bottom: 1rem;
}

.foot-links a {
   color: #94a3b8;
   transition: var(--transition-fast);
}

.foot-links a:hover {
   color: var(--color-secondary);
   padding-left: 5px;
}

.foot-contact p {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 1rem;
   color: #cbd5e1;
}

.footer-bottom {
   border-top: 1px solid var(--border-dark);
   padding-top: 2rem;
   text-align: center;
   font-size: 0.9rem;
}

/* ==========================================================================
   LEGAL PAGES (Clean Document Style)
   ========================================================================== */
.page-hero {
   padding: 12rem 0 6rem;
   text-align: center;
   background: var(--bg-secondary);
   border-bottom: 1px solid var(--border-light);
}

.doc-content {
   max-width: 850px;
   margin: 0 auto;
   padding: 6rem 5%;
}

.doc-content h2 {
   margin: 3rem 0 1.5rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid var(--border-light);
}

.doc-content p {
   color: var(--text-body);
   font-size: 1.1rem;
   line-height: 1.8;
   margin-bottom: 1.5rem;
}

.doc-content ul {
   padding-left: 1.5rem;
   margin-bottom: 2rem;
}

.doc-content li {
   margin-bottom: 0.5rem;
   list-style-type: disc;
   color: var(--text-body);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-float {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 2000;
}

.chat-btn {
   width: 65px;
   height: 65px;
   border-radius: 50%;
   background: var(--color-primary);
   color: #fff;
   font-size: 1.8rem;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
   cursor: pointer;
   transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-btn:hover {
   transform: scale(1.1);
}

.chat-panel {
   position: absolute;
   bottom: 85px;
   right: 0;
   width: 360px;
   background: #fff;
   border: 1px solid var(--border-light);
   border-radius: 20px;
   box-shadow: var(--shadow-3d);
   overflow: hidden;
   transform: scale(0.9) translateY(20px);
   opacity: 0;
   pointer-events: none;
   transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   transform-origin: bottom right;
}

.chat-panel.active {
   transform: scale(1) translateY(0);
   opacity: 1;
   pointer-events: all;
}

.chat-top {
   background: var(--color-primary);
   padding: 1.5rem;
   color: #fff;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.chat-top h4 {
   margin: 0;
   font-size: 1.1rem;
   color: #fff;
}

.chat-close {
   background: transparent;
   color: #fff;
   font-size: 1.5rem;
   cursor: pointer;
}

.chat-body {
   height: 320px;
   padding: 1.5rem;
   background: var(--bg-tertiary);
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.chat-bubble {
   padding: 1rem;
   border-radius: 16px;
   font-size: 0.95rem;
   max-width: 85%;
   line-height: 1.4;
}

.chat-bubble.bot {
   background: #fff;
   border: 1px solid var(--border-light);
   border-bottom-left-radius: 4px;
   align-self: flex-start;
   color: var(--text-body);
}

.chat-bubble.user {
   background: var(--color-primary);
   color: #fff;
   align-self: flex-end;
   border-bottom-right-radius: 4px;
}

.chat-form {
   display: flex;
   padding: 1rem;
   background: #fff;
   border-top: 1px solid var(--border-light);
}

.chat-input {
   flex: 1;
   padding: 0.8rem 1rem;
   border: 1px solid var(--border-light);
   border-radius: 50px;
   outline: none;
   background: var(--bg-tertiary);
}

.chat-input:focus {
   border-color: var(--color-primary);
}

.chat-send {
   background: var(--color-primary);
   color: #fff;
   border-radius: 50%;
   width: 45px;
   height: 45px;
   margin-left: 0.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================================== */
.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
   h1 {
      font-size: 3.5rem;
   }

   .hero-layout,
   .calc-wrapper,
   .contact-grid,
   .footer-wrap {
      grid-template-columns: 1fr;
   }

   .hero-visual {
      height: 400px;
   }

   .calc-input-side,
   .calc-result-side,
   .contact-grid {
      padding: 3rem;
   }

   .industry-grid,
   .testi-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .metrics-wrap {
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
   }
}

@media (max-width: 768px) {
   .main-nav {
      position: fixed;
      top: var(--nav-height);
      left: -100%;
      width: 100%;
      height: calc(100vh - var(--nav-height));
      background: var(--bg-dark-contrast);
      flex-direction: column;
      justify-content: center;
      transition: 0.4s ease-in-out;
   }

   .main-nav.active {
      left: 0;
   }

   .mobile-menu-btn {
      display: block;
   }

   .industry-grid,
   .testi-grid,
   .dash-content.active {
      grid-template-columns: 1fr;
   }

   .form-row,
   .checkbox-grid {
      grid-template-columns: 1fr;
   }

   .dash-tabs {
      flex-wrap: wrap;
   }

   .metrics-wrap {
      padding: 2rem;
   }
}