@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  /* Colors */
  --color-primary: #5B6478;       /* Sleek slate blue-gray */
  --color-secondary: #04081A;     /* Deep navy */
  --color-accent: #07091A;        /* Ultra dark navy/black */
  --color-bg: #F6F7FA;            /* Light gray background */
  --color-text: #0A1128;          /* Deep ink text */
  --color-text-muted: #5B6478;    /* Muted slate text */
  
  --color-white: #FFFFFF;
  --color-dark-surface: #0B0F2B;
  --color-border-light: rgba(0, 0, 0, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.08);
  
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-glow: rgba(91, 100, 120, 0.3);

  /* Fonts */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Typography */
  --fs-h1: clamp(44px, 7vw, 72px);
  --fs-h2: clamp(34px, 5vw, 60px);
  --fs-h3: clamp(24px, 3.5vw, 32px);
  --fs-body: 18px;
  --fs-small: 14px;

  /* Spacing (Base 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px; /* Standard Border Radius requested */
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- BUTTON & CTA COMPONENT --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: var(--space-2);
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(4, 8, 26, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(4, 8, 26, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* Dark mode buttons */
.theme-dark .btn-primary {
  background-color: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.theme-dark .btn-primary:hover {
  background-color: #E2E8F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.theme-dark .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-border-dark);
  background-color: rgba(255, 255, 255, 0.03);
}

.theme-dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* --- THEME WRAPPERS --- */
.theme-dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4 {
  color: var(--color-white);
}

.theme-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- STRUCTURE / LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  width: 100%;
}

.section {
  padding: var(--space-32) 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(246, 247, 250, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  padding: var(--space-2) 0;
}

.navbar.navbar-dark {
  background-color: rgba(4, 8, 26, 0.75);
  border-bottom: 1px solid var(--color-border-dark);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: 0 0 10px var(--color-primary);
}

.navbar-dark .logo {
  color: var(--color-white);
}

.navbar-dark .logo-dot {
  background-color: var(--color-white);
  box-shadow: 0 0 10px var(--color-white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.6);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: var(--color-white);
}

.navbar-dark .nav-link::after {
  background-color: var(--color-white);
}

.navbar-dark .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.navbar-dark .mobile-nav-toggle span {
  background-color: var(--color-white);
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    gap: var(--space-6);
  }

  .navbar-dark .nav-links {
    background-color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border-dark);
  }

  .nav-links.open {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .nav-actions {
    display: none;
  }
}

/* --- GLASSMORPHISM & PREMIUM CARDS --- */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(10, 17, 40, 0.03);
  transition: var(--transition-smooth);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px 0 rgba(10, 17, 40, 0.06);
  border-color: rgba(91, 100, 128, 0.2);
}

.card-dark-glass {
  background: rgba(11, 15, 43, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.card-dark-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.35);
  background: rgba(11, 15, 43, 0.8);
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(91, 100, 120, 0.15) 0%, transparent 60%), var(--color-accent);
}

.hero-grid {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-cols: 1fr;
    gap: var(--space-16);
    text-align: center;
  }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-tagline::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-title {
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero-desc {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

@media (max-width: 992px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (max-width: 992px) {
  .hero-buttons {
    justify-content: center;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

@media (max-width: 992px) {
  .hero-badges {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

.hero-badge svg {
  color: var(--color-primary);
}

/* --- HERO INTERACTIVE DASHBOARD --- */
.hero-dashboard {
  width: 100%;
  position: relative;
}

.dashboard-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.dashboard-header {
  background-color: rgba(4, 8, 26, 0.9);
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-dots {
  display: flex;
  gap: var(--space-2);
}

.header-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.header-dot.red { background-color: #FF5F56; }
.header-dot.yellow { background-color: #FFBD2E; }
.header-dot.green { background-color: #27C93F; }

.header-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.dashboard-content {
  padding: var(--space-6);
  background-color: rgba(7, 9, 26, 0.95);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dashboard-stats {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: var(--space-4);
}

.dashboard-stat-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  background-color: rgba(255, 255, 255, 0.02);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-1);
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
}

.stat-val.green-text {
  color: var(--color-success);
}

/* Waveform Pulse animation */
.dashboard-voice-interface {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(91, 100, 120, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  position: relative;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-white);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  animation: pulse-ring 1.5s infinite;
}

.voice-waveform {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 40px;
}

.waveform-bar {
  width: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  height: 10px;
  animation: bounce-wave 1.2s infinite ease-in-out;
}

.waveform-bar:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 32px; animation-delay: 0.2s; background-color: var(--color-white); }
.waveform-bar:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 40px; animation-delay: 0.4s; background-color: var(--color-white); }
.waveform-bar:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 15px; animation-delay: 0.6s; }

.dashboard-console {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  height: 110px;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.console-log {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-2);
  display: flex;
  gap: var(--space-2);
}

.console-log.active {
  color: var(--color-white);
}

.console-log span.time {
  color: var(--color-primary);
}

.console-log span.action {
  color: var(--color-success);
}

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes bounce-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* --- THE PROBLEM --- */
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
  display: block;
}

.section-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.grid-3 {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-cols: 1fr;
    gap: var(--space-6);
  }
}

.problem-card {
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(91, 100, 120, 0.08);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-3);
}

/* --- HOW WE SOLVE IT (TIMELINE) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-12) auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-border-light) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: var(--space-16);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  border: 2px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  z-index: 1;
}

.timeline-content {
  background-color: var(--color-white);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.timeline-content h3 {
  font-size: 22px;
  margin-bottom: var(--space-2);
}

/* --- SERVICES OVERVIEW SECTION --- */
.services-highlight-grid {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .services-highlight-grid {
    grid-template-cols: 1fr;
  }
}

.service-highlight-card {
  padding: var(--space-12);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
}

.service-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 100, 120, 0.3);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background-color: rgba(91, 100, 120, 0.1);
  color: var(--color-text);
  display: inline-block;
  margin-bottom: var(--space-6);
}

.service-highlight-card h3 {
  font-size: 28px;
  margin-bottom: var(--space-4);
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--color-text-muted);
}

.service-list-item svg {
  color: var(--color-text);
  flex-shrink: 0;
}

/* --- CASE STUDIES & METRICS --- */
.metrics-grid {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-cols: 1fr;
  }
}

.metric-card {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.metric-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-showcase {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

@media (max-width: 992px) {
  .case-study-showcase {
    grid-template-cols: 1fr;
  }
}

.case-study-content {
  padding: var(--space-12);
}

@media (max-width: 768px) {
  .case-study-content {
    padding: var(--space-8);
  }
}

.case-study-comparison {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.comparison-box {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.comparison-box.before {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.comparison-box.after {
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.comparison-label {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.comparison-box.before .comparison-label { color: #EF4444; }
.comparison-box.after .comparison-label { color: #10B981; }

.comparison-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.case-study-visual {
  background-color: var(--color-accent);
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Logos slider */
.logos-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-top: var(--space-16);
}

.logo-item {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: rgba(10, 17, 40, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- TESTIMONIAL CAROUSEL --- */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: var(--space-8);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #FBBF24;
  margin-bottom: var(--space-4);
  display: flex;
  gap: 2px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.author-meta h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.author-meta p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-text);
}

.carousel-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* --- ROI BANNER / CTA --- */
.roi-banner {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.roi-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(91, 100, 120, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.roi-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.roi-banner h2 {
  color: var(--color-white);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: var(--space-4);
}

.roi-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  margin-bottom: var(--space-8);
}

.roi-banner-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 576px) {
  .roi-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- SERVICES DETAIL PAGE --- */
.services-hero {
  padding: 140px 0 60px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.services-detail-section {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-24) 0;
}

.services-detail-section:last-of-type {
  border-bottom: none;
}

.services-detail-section.reverse {
  direction: rtl;
}
.services-detail-section.reverse > * {
  direction: ltr;
}

@media (max-width: 992px) {
  .services-detail-section,
  .services-detail-section.reverse {
    grid-template-cols: 1fr;
    gap: var(--space-12);
  }
}

.features-bullets {
  list-style: none;
  margin: var(--space-6) 0;
}

.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.feature-bullet svg {
  color: var(--color-success);
  margin-top: 4px;
  flex-shrink: 0;
}

.feature-bullet h4 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.faq-accordion {
  max-width: 800px;
  margin: var(--space-12) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-4) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-4) 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.faq-question svg {
  transition: var(--transition-fast);
  color: var(--color-text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-answer p {
  padding-bottom: var(--space-4);
  margin: 0;
  font-size: 16px;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* --- TOOLS / CALCULATOR PAGE --- */
.calculators-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin-top: var(--space-12);
}

.calculator-card {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .calculator-card {
    grid-template-cols: 1fr;
  }
}

.calc-panel-left {
  padding: var(--space-12);
}

.calc-panel-right {
  padding: var(--space-12);
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-left: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .calc-panel-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .calc-panel-left,
  .calc-panel-right {
    padding: var(--space-6);
  }
}

.calc-header {
  margin-bottom: var(--space-8);
}

.calc-header h3 {
  font-size: 28px;
  margin-bottom: var(--space-2);
}

.calc-panel-right h3 {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group label span.val-bubble {
  font-family: var(--font-mono);
  color: var(--color-primary);
  background-color: rgba(91, 100, 120, 0.08);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.input-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  outline: none;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

.input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
}

.results-grid {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.result-box {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-box.highlight {
  grid-column: span 2;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.result-box .res-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  margin-bottom: var(--space-1);
}

.result-box .res-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}

.result-box.highlight .res-value {
  font-size: 28px;
  color: var(--color-white);
}

.calc-recommendation {
  background-color: rgba(91, 100, 120, 0.1);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-6);
}

.calc-recommendation h5 {
  color: var(--color-white);
  font-size: 14px;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.calc-recommendation p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc-actions .btn {
  width: 100%;
}

.btn-reset {
  margin-top: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-reset:hover {
  color: var(--color-text);
}

/* Modal Popup Form */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 8, 26, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  position: relative;
}

.modal-overlay.open .modal-window {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.modal-window h3 {
  margin-bottom: var(--space-2);
}

.modal-window p {
  font-size: 14px;
  margin-bottom: var(--space-6);
}


/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-cols: 1fr;
    gap: var(--space-12);
  }
}

.contact-form-panel {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .contact-form-panel {
    padding: var(--space-6);
  }
}

.input-text, .textarea-text {
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  background-color: var(--color-bg);
  transition: var(--transition-fast);
  color: var(--color-text);
}

.input-text:focus, .textarea-text:focus {
  border-color: var(--color-text);
  background-color: var(--color-white);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(91, 100, 120, 0.05);
  color: var(--color-text);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.calendar-widget {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-4);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.calendar-days {
  display: grid;
  grid-template-cols: repeat(7, 1fr);
  text-align: center;
  gap: var(--space-2);
}

.calendar-day-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-cols: repeat(7, 1fr);
  gap: var(--space-2);
}

.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-cell.muted {
  color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

.calendar-cell.active:hover {
  background-color: var(--color-border-light);
}

.calendar-cell.selected {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.time-slots {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.time-slot {
  border: 1px solid var(--color-border-light);
  padding: var(--space-2);
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.time-slot:hover {
  border-color: var(--color-text);
  background-color: var(--color-bg);
}

.time-slot.selected {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* Styled Map Placeholder */
.map-placeholder {
  height: 200px;
  border-radius: var(--radius-md);
  background-color: #E2E8F0;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.map-placeholder svg {
  margin-right: var(--space-2);
}

/* --- BLOG PAGE --- */
.blog-layout {
  display: grid;
  grid-template-cols: 2.7fr 1.3fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-cols: 1fr;
    gap: var(--space-12);
  }
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.category-tab {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.category-tab.active,
.category-tab:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.blog-grid {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-cols: 1fr;
  }
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.blog-card-img {
  height: 200px;
  background-color: var(--color-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.blog-card-title {
  font-size: 18px;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.blog-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Sidebar Widgets */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-widget {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.sidebar-widget h4 {
  font-size: 18px;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--space-2);
}

.search-bar {
  display: flex;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
}

.search-input {
  border: none;
  background: none;
  padding: var(--space-3) var(--space-4);
  flex-grow: 1;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background: none;
  border: none;
  padding: 0 var(--space-4);
  color: var(--color-text-muted);
  cursor: pointer;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-list-item a {
  font-size: 15px;
  color: var(--color-text-muted);
}

.sidebar-list-item a:hover {
  color: var(--color-text);
}

.newsletter-form .input-text {
  margin-bottom: var(--space-3);
  font-size: 14px;
}

.newsletter-form .btn {
  width: 100%;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-accent);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-24) 0 var(--space-12);
  border-top: 1px solid var(--color-border-dark);
}

.footer h4 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-cols: 1fr;
    gap: var(--space-8);
  }
}

.footer-logo-col p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-top: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-family: var(--font-mono);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateX(-120%);
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateX(0);
}

.toast-success-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
}

/* --- PREMIUM SaaS CALCULATOR DESIGN (SCREENSHOT REPLICA) --- */
.calculator-premium-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: var(--space-8);
  background-color: #F8FAFC;
  padding: var(--space-8);
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
  margin-bottom: var(--space-16);
}

@media (max-width: 680px) {
  .calculator-premium-container {
    padding: var(--space-4);
  }
}

.calc-input-panel {
  flex: 1 1 450px !important;
  background-color: var(--color-white);
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0; /* Prevents overflow inside flex container */
}

.calc-output-panel {
  flex: 1 1 450px !important;
  background-color: var(--color-white);
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0; /* Prevents overflow inside flex container */
}

.calc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.calc-panel-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.reset-icon-btn {
  background: none;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.reset-icon-btn:hover {
  background-color: #F1F5F9;
  color: var(--color-text);
  transform: rotate(-45deg);
}

/* Form Styles */
.premium-select-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.premium-select-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.premium-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.premium-select:focus {
  border-color: #3B82F6;
  background-color: var(--color-white);
}

.premium-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.slider-val-bubble {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  background-color: #EFF6FF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.premium-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background-color: #E2E8F0;
  outline: none;
  margin: var(--space-2) 0;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3B82F6;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: transform 0.1s;
}

.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94A3B8;
  font-family: var(--font-mono);
}

/* Outputs & Cost Comparison Styles */
.output-card-compare {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.output-card-compare-title {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.compare-values-row {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: var(--space-4);
}

.compare-val-box {
  display: flex;
  flex-direction: column;
}

.compare-val-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94A3B8;
  font-weight: 600;
}

.compare-val-num {
  font-size: 32px;
  font-weight: 800;
}

.compare-val-num.red-text { color: #EF4444; }
.compare-val-num.green-text { color: #10B981; }

/* Savings Banner */
.savings-premium-banner {
  background-color: #EFF6FF;
  border: 1px dashed #BFDBFE;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.savings-banner-label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #3B82F6;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  letter-spacing: 0.05em;
}

.savings-banner-num {
  font-size: 40px;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.1;
}

.savings-banner-sub {
  font-size: 13px;
  color: #64748B;
}

/* Progress bar group */
.progress-comparison-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.progress-bar-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.progress-label-container {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.progress-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

.progress-track-bg {
  width: 100%;
  height: 8px;
  background-color: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-fill.red { background-color: #EF4444; }
.progress-fill.blue { background-color: #06B6D4; }

/* KPI Grid */
.kpi-row-grid {
  display: grid;
  grid-template-cols: 0.8fr 1.2fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .kpi-row-grid {
    grid-template-cols: 1fr;
  }
}

.kpi-circle-box {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}

.circle-chart-svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.circle-chart-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 8px;
}

.circle-chart-fill {
  fill: none;
  stroke: #3B82F6;
  stroke-width: 8px;
  stroke-dasharray: 201; /* Circumference of circle with r=32 is 2*pi*32 = 201 */
  stroke-dashoffset: 60; /* Will be updated via inline style or JS */
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.circle-chart-percent {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  fill: var(--color-text);
  transform: rotate(90deg);
  transform-origin: center;
}

.circle-chart-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-details-box {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.kpi-detail-item {
  display: flex;
  flex-direction: column;
}

.kpi-detail-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.kpi-detail-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.kpi-detail-val.blue-text {
  color: #2563EB;
}

/* Recommended Service Card */
.rec-service-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  border: 1px solid #E2E8F0;
}

.rec-service-premium:hover {
  border-color: #3B82F6;
  background-color: #FFF;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

.rec-service-premium h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.rec-service-premium p {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

/* Actions */
.premium-calc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.premium-discuss-btn {
  width: 100%;
  background-color: #07091A;
  color: var(--color-white);
  padding: 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: var(--transition-smooth);
}

.premium-discuss-btn:hover {
  background-color: #1E293B;
  transform: translateY(-2px);
}

.premium-share-link {
  background: none;
  border: none;
  color: #64748B;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-fast);
}

.premium-share-link:hover {
  color: var(--color-text);
}

/* --- VIDEO TESTIMONIALS INFINITE MARQUEE --- */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  padding: var(--space-8) 0;
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.video-testimonial-card {
  width: 320px;
  flex-shrink: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.video-testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
  filter: brightness(0.85);
}

.video-testimonial-card:hover .video-thumbnail {
  transform: scale(1.05);
  filter: brightness(0.95);
}

.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(59, 130, 246, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition-smooth), background var(--transition-fast);
  z-index: 2;
}

.play-icon {
  color: var(--color-white);
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  margin-left: 2px;
}

.video-testimonial-card:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgb(59, 130, 246);
}

.video-card-meta {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.video-card-meta h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.video-card-meta p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- PORTRAIT VIDEO LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-iframe-wrapper {
  position: relative;
  width: 90vw;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .lightbox-close {
    right: 15px;
    top: -45px;
  }
}
