/* ==========================================================================
   Base & Variables (Glass Narrative Theme)
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-base: #f1f5f9;
  --bg-dark: #0f172a;
  --text-main: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;

  /* Accents & Gradients */
  --accent-blue: #60a5fa;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-pink)
  );

  /* Glassmorphism Variables */
  --glass-bg-light: rgba(255, 255, 255, 0.65);
  --glass-bg-light-fade: rgba(255, 255, 255, 0.28);
  --glass-bg-dark: rgba(15, 23, 42, 0.65);
  --glass-bg-dark-fade: rgba(15, 23, 42, 0.28);

  --glass-border: 1px solid rgba(255, 255, 255, 0.45);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.1);

  --glass-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
  --glass-shadow-dark: 0 25px 70px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-family: "Plus Jakarta Sans", sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1280px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(96, 165, 250, 0.08),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(167, 139, 250, 0.08),
      transparent 25%
    );
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-center {
  text-align: center;
}
.text-white {
  color: var(--text-light);
}
.text-muted {
  color: var(--text-muted);
}
.mt-4 {
  margin-top: 32px;
}

/* Glass Panel Base Class */
.glass-panel {
  background: linear-gradient(
    135deg,
    var(--glass-bg-light),
    var(--glass-bg-light-fade)
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

.section-dark .glass-panel {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.7),
    rgba(15, 23, 42, 0.4)
  );
  border: var(--glass-border-dark);
  box-shadow: var(--glass-shadow-dark);
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 10px 20px rgba(167, 139, 250, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(167, 139, 250, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
}

.btn-outline:hover {
  background: var(--accent-purple);
  color: white;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.badge-purple {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent-purple);
}

/* ==========================================================================
   Shared Header (Identical across pages)
   ========================================================================== */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 24px 0;
}

.glass-header.scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.site-logo {
  height: 40px;
  width: auto;
}

/* Ensure contrast if logo is white, based on prompt instructions.
   Since background is light, we assume logo is dark. If user uploads white logo, 
   we add a subtle glow/bg to the link to ensure visibility. */
.logo-link {
  background: rgba(15, 23, 42, 0.05);
  padding: 4px 8px;
  border-radius: 8px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.6;
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(96, 165, 250, 0.3);
  top: -10%;
  left: -10%;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(167, 139, 250, 0.2);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}
.blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(244, 114, 182, 0.2);
  top: 40%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.hero-text {
  flex: 0 0 60%;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.floating-panel {
  position: absolute;
  padding: 24px;
  width: 250px;
  z-index: 1;
  animation: panelDrift 8s infinite alternate ease-in-out;
}

.panel-left {
  left: 0;
  top: 20%;
  transform: rotate(-5deg);
}

.panel-right {
  right: 0;
  bottom: 20%;
  transform: rotate(5deg);
}

.floating-panel p {
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes panelDrift {
  0% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  100% {
    transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 2deg));
  }
}
.panel-left {
  --rot: -5deg;
}
.panel-right {
  --rot: 5deg;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.story-section {
  padding: var(--section-padding);
}

.story-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-glass {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
}

.abstract-shape {
  width: 70%;
  height: 70%;
  background: var(--gradient-accent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s infinite alternate ease-in-out;
  opacity: 0.8;
  filter: blur(10px);
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.glass-overlay-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  border: var(--glass-border);
}

.stat-mini .stat-val {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-mini .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.manifesto-text {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.feature-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list svg {
  color: var(--accent-blue);
}

/* ==========================================================================
   Stats Strip Section
   ========================================================================== */
.stats-section {
  padding: 0 0 120px 0;
}

.stats-glass-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 48px;
  text-align: center;
  gap: 24px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.service-card {
  padding: 48px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-purple);
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-link:hover svg {
  transform: translateX(5px);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.section-dark {
  background-color: var(--bg-dark);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(167, 139, 250, 0.15),
    transparent 40%
  );
  pointer-events: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.calc-features {
  margin-top: 32px;
}

.calc-features li {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.calc-panel {
  padding: 40px;
}

.calc-control {
  margin-bottom: 24px;
}

.calc-control label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.val-display {
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  color: var(--accent-blue);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 8px;
}

.result-box h4 {
  font-size: 2rem;
  font-weight: 800;
}

.result-box.highlighted {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-section {
  padding: var(--section-padding);
}

.industry-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.industry-pill {
  padding: 16px 32px;
  background: linear-gradient(
    135deg,
    var(--glass-bg-light),
    var(--glass-bg-light-fade)
  );
  border: var(--glass-border);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  cursor: default;
}

.industry-pill:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-purple);
}

/* ==========================================================================
   Work / Case Studies Section
   ========================================================================== */
.work-section {
  padding: var(--section-padding);
}

.work-cards-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 64px;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
}

.work-content {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.work-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.work-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.work-metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.work-metrics .metric {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.work-metrics .metric strong {
  font-size: 2rem;
  color: var(--text-main);
  line-height: 1.2;
}

.work-visual {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1),
    rgba(167, 139, 250, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}

/* Pure CSS Abstract Mock Visuals */
.mock-chart-line {
  width: 70%;
  height: 150px;
  border-bottom: 2px solid var(--accent-blue);
  border-left: 2px solid var(--accent-blue);
  position: relative;
}
.mock-chart-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top right,
    transparent 40%,
    var(--accent-blue) 41%,
    transparent 42%,
    transparent 60%,
    var(--accent-purple) 61%,
    transparent 62%,
    transparent 80%,
    var(--accent-pink) 81%
  );
  clip-path: polygon(0 100%, 20% 80%, 40% 90%, 60% 40%, 80% 50%, 100% 10%);
  background: var(--gradient-accent);
}

.mock-chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 200px;
  border-bottom: 2px solid var(--accent-purple);
}
.mock-chart-bar div {
  width: 40px;
  background: var(--gradient-accent);
  border-radius: 4px 4px 0 0;
}
.bar-1 {
  height: 30%;
}
.bar-2 {
  height: 50%;
}
.bar-3 {
  height: 40%;
}
.bar-4 {
  height: 90%;
}

/* ==========================================================================
   Dashboard Visual Section
   ========================================================================== */
.dashboard-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 64px;
  align-items: center;
}

.mock-dashboard {
  padding: 32px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.dash-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
}

.dash-card span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.dash-card h4 {
  font-size: 1.5rem;
  margin: 8px 0;
}

.trend {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend.positive {
  color: #34d399;
}
.trend.negative {
  color: #f87171;
}

.dash-chart-area {
  height: 200px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 16px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  padding: var(--section-padding);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.testimonial-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.rating {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 32px;
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.client-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.client-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Pre-Footer CTA
   ========================================================================== */
.cta-section {
  padding: 0 0 120px 0;
}

.cta-panel {
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-panel h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-panel p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Dummy Live Chat
   ========================================================================== */
.live-chat-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
}

.chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  border: none;
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.chat-btn:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
  transform: scale(1);
  opacity: 1;
}

.chat-header {
  background: var(--bg-dark);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  height: 250px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  overflow-y: auto;
}

.msg {
  padding: 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  max-width: 80%;
}

.msg.bot {
  background: white;
  border-bottom-left-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-input {
  display: flex;
  padding: 12px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
  background: transparent;
}

.chat-input button {
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
  padding: 0 8px;
}

/* ==========================================================================
   Shared Footer (Identical across pages)
   ========================================================================== */
.glass-footer {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.5)
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: var(--glass-border);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 24px;
  background: rgba(15, 23, 42, 0.05);
  padding: 4px 8px;
  border-radius: 8px;
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.social-links a:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-purple);
  padding-left: 5px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.footer-contact svg {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-links a:hover {
  color: var(--text-main);
}

.separator {
  opacity: 0.3;
}

/* ==========================================================================
   Internal Pages Base (Contact, Legal)
   ========================================================================== */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.content-section {
  padding-bottom: 120px;
}

.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px;
}

.legal-wrapper h2 {
  font-size: 1.75rem;
  margin: 40px 0 16px;
  color: var(--text-main);
}

.legal-wrapper p,
.legal-wrapper ul {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.legal-wrapper ul {
  padding-left: 24px;
  list-style-type: disc;
}

/* Contact Page specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-info-card {
  padding: 40px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  margin-bottom: 4px;
}

.info-text p,
.info-text a {
  color: var(--text-muted);
}

.contact-form-panel {
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .story-container,
  .calc-grid,
  .work-card,
  .dashboard-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-glass-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .floating-panel {
    display: none;
  }

  .hero-text {
    flex: 0 0 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
