/* 
=========================================================================
CORE THEME VARIABLES - DATA GRADIENT LAB
=========================================================================
*/
:root {
  /* Color Palette */
  --bg-base: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-card: #ffffff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0ea5e9, #14b8a6, #22c55e);
  --grad-secondary: linear-gradient(135deg, #38bdf8, #10b981);
  --grad-dark: linear-gradient(135deg, #0f172a, #1e293b);
  --grad-light: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 1)
  );

  /* Solid Brand Colors extracted from gradient */
  --brand-blue: #0ea5e9;
  --brand-teal: #14b8a6;
  --brand-green: #22c55e;

  /* UI Elements */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.15);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --container-width: 1280px;
  --section-padding: 100px;

  /* Grid Background Pattern */
  --grid-pattern:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
=========================================================================
RESET & NORMALIZE
=========================================================================
*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Apply subtle grid background globally */
  background-image: var(--grid-pattern);
  background-size: 40px 40px;
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Selection */
::selection {
  background: var(--brand-blue);
  color: #fff;
}

/* 
=========================================================================
TYPOGRAPHY
=========================================================================
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--trans-fast);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-center {
  text-align: center;
}
.subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 0.5rem;
}

/* 
=========================================================================
LAYOUT UTILITIES
=========================================================================
*/
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.grid {
  display: grid;
  gap: 30px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.flex-col {
  flex-direction: column;
}
.gap-1 {
  gap: 1rem;
}
.gap-2 {
  gap: 2rem;
}
.gap-3 {
  gap: 3rem;
}

/* 
=========================================================================
COMPONENTS
=========================================================================
*/

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary {
  background: var(--text-main);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  background: var(--grad-primary);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(14, 165, 233, 0.05);
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-base);
  color: var(--text-main);
  transition: var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
  background: var(--bg-card);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* 
=========================================================================
ANIMATIONS & KEYFRAMES
=========================================================================
*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes growBar {
  from {
    height: 0;
  }
}

.reveal {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.reveal.active {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

.reveal-left.active {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

.reveal-right.active {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

.reveal-scale.active {
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

/* Stagger delays */
.delay-100 {
  animation-delay: 0.1s !important;
}
.delay-200 {
  animation-delay: 0.2s !important;
}
.delay-300 {
  animation-delay: 0.3s !important;
}
.delay-400 {
  animation-delay: 0.4s !important;
}
.delay-500 {
  animation-delay: 0.5s !important;
}

/* 
=========================================================================
HEADER (STRICT ACROSS ALL PAGES)
=========================================================================
*/
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  height: 80px;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  /* Assuming logo is white, adding brightness filter if needed, 
       but keeping raw for actual logo.png */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 0;
}
.hamburger-line:nth-child(2) {
  top: 9px;
}
.hamburger-line:nth-child(3) {
  top: 18px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-card);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
  transform: translateX(0);
}

.mobile-link {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.mobile-link:hover {
  color: var(--brand-blue);
}

/* 
=========================================================================
HERO SECTION
=========================================================================
*/
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* Decorative background blur */
.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.15) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}
.hero-bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.chart-composition {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 30px;
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.chart-title {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-main);
}

.chart-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* Animated SVG Line Chart */
.svg-chart-container {
  width: 100%;
  height: 200px;
  position: relative;
}

.svg-grid-line {
  stroke: var(--border-light);
  stroke-width: 1;
}

.svg-data-path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgba(14, 165, 233, 0.2));
  /* Animation handled in JS */
}

.svg-data-point {
  fill: var(--bg-card);
  stroke: var(--brand-teal);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.chart-composition:hover .svg-data-point {
  opacity: 1;
}

/* Floating Stats Box */
.float-stat {
  position: absolute;
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateZ(50px);
}

.float-stat.top-right {
  top: -20px;
  right: -30px;
}

.float-stat.bottom-left {
  bottom: -30px;
  left: -20px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.icon-blue {
  background: var(--grad-primary);
}
.icon-green {
  background: var(--grad-secondary);
}

.stat-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-info h4 {
  margin: 0;
  font-size: 1.2rem;
}

/* 
=========================================================================
KPI ROW
=========================================================================
*/
.kpi-section {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.kpi-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-medium);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value span.prefix,
.kpi-value span.suffix {
  font-size: 1.5rem;
  color: var(--brand-blue);
}

.kpi-label {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* 
=========================================================================
SERVICES SECTION
=========================================================================
*/
.services-section {
  background: var(--bg-base);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card h3 {
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.service-card p {
  transition: color 0.3s ease;
}

.service-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.service-features li i {
  color: var(--brand-green);
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-features li {
  color: #fff;
}

.service-card:hover .service-icon {
  background: #fff;
  color: var(--brand-blue);
}

.service-card:hover .service-features {
  border-color: rgba(255, 255, 255, 0.2);
}

/* 
=========================================================================
DASHBOARD SHOWCASE (UI MOCKUP)
=========================================================================
*/
.dashboard-section {
  background: #0f172a;
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.dashboard-section .subtitle {
  color: var(--brand-teal);
}
.dashboard-section h2 {
  color: #fff;
}
.dashboard-section p {
  color: #94a3b8;
}

.dashboard-wrapper {
  margin-top: 60px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  height: 600px;
}

/* Fake Sidebar */
.dash-sidebar {
  width: 250px;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #fff;
}

.dash-logo i {
  color: var(--brand-blue);
}

.dash-menu {
  list-style: none;
}

.dash-menu li {
  padding: 12px 15px;
  border-radius: 8px;
  color: #94a3b8;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.dash-menu li:hover,
.dash-menu li.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-blue);
}

/* Fake Main Area */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow-y: auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dash-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.dash-controls {
  display: flex;
  gap: 10px;
}

.dash-btn {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.dash-widget {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.widget-title {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.widget-val {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 5px;
}

.widget-trend {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.trend-up {
  color: var(--brand-green);
}
.trend-down {
  color: #ef4444;
}

.dash-chart-area {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* CSS Bar Chart */
.css-bar-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding-top: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 40px;
  background: var(--grad-primary);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  /* Animation inline style via JS for height */
}

.bar-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* 
=========================================================================
ROI CALCULATOR SECTION
=========================================================================
*/
.roi-section {
  background: #fff;
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.calc-inputs label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.calc-val-display {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin-bottom: 30px;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: var(--border-medium);
  border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  background: var(--text-main);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-results::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.2) 0%,
    transparent 60%
  );
  animation: rotate 10s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.result-box {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 30px;
}

.result-box:last-child {
  margin-bottom: 0;
}

.result-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 
=========================================================================
CASE STUDIES & INDUSTRY
=========================================================================
*/
.case-section {
  background: var(--bg-base);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--trans-med);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.case-visual {
  height: 250px;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding: 30px;
}

.case-visual svg {
  width: 100%;
  height: 100%;
}

.case-content {
  padding: 30px;
}

.case-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-blue);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 
=========================================================================
FAQ & ACCORDION
=========================================================================
*/
.faq-section {
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--brand-blue);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.accordion-icon::after {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

.accordion-item.active .accordion-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding-bottom: 24px;
  margin: 0;
}

/* 
=========================================================================
CTA SECTION
=========================================================================
*/
.cta-section {
  background: #0f172a;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--grad-primary);
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: #94a3b8;
  font-size: 1.25rem;
  margin-bottom: 40px;
}

/* 
=========================================================================
FOOTER (STRICT ACROSS ALL PAGES)
=========================================================================
*/
.main-footer {
  background: #fff;
  padding: 80px 0 20px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info .logo-img {
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--brand-blue);
  padding-left: 5px;
}

.footer-col ul li i {
  color: var(--brand-blue);
  width: 20px;
  margin-right: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--text-muted);
}

.legal-links a:hover {
  color: var(--brand-blue);
}

/* 
=========================================================================
LEGAL PAGES & CONTACT STYLES
=========================================================================
*/
.page-header {
  padding: 160px 0 80px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin: 0;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.legal-body h2 {
  font-size: 1.75rem;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.legal-body p {
  margin-bottom: 20px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-box {
  background: #fff;
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 
=========================================================================
LIVE CHAT WIDGET UI
=========================================================================
*/
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-box.active {
  transform: scale(1);
  opacity: 1;
}

.chat-header {
  background: var(--text-main);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
}

.chat-close {
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-body {
  height: 300px;
  padding: 20px;
  background: var(--bg-base);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.msg-agent {
  background: #fff;
  border: 1px solid var(--border-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--brand-blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  border: none;
  background: var(--bg-base);
  padding: 10px 15px;
  border-radius: var(--radius-full);
  outline: none;
}

.chat-input button {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

/* 
=========================================================================
RESPONSIVE DESIGN
=========================================================================
*/
@media (max-width: 1024px) {
  .hero-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .services-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .kpi-grid,
  .services-grid,
  .calc-grid,
  .case-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .kpi-item:not(:last-child)::after {
    display: none;
  }

  .dashboard-wrapper {
    height: auto;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .legal-body,
  .form-box {
    padding: 30px 20px;
  }

  .chart-composition {
    padding: 15px;
  }

  .float-stat {
    display: none;
  }
}
