/* ============================================================
   4LABS — MAIN STYLES (page-specific layouts)
   ============================================================ */

/* === IMAGE BLUR-UP LOADING === */
img[loading="lazy"] {
  filter: blur(8px);
  transition: filter 0.5s ease;
}
img[loading="lazy"].loaded {
  filter: blur(0);
}

/* === NAVBAR === */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-default);
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 2);
  padding: var(--space-sm) 0;
  transition: background var(--duration-base) var(--ease-default),
              backdrop-filter var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.navbar.scrolled {
  background: var(--lg-bg-3);
  backdrop-filter: blur(var(--lg-blur-3)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(var(--lg-blur-3)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  border-bottom: 1px solid var(--lg-border-luminous);
  box-shadow: var(--lg-inset-highlight), var(--lg-edge-glow), var(--shadow-md);
}


.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  position: absolute;
  left: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  position: absolute;
  right: 0;
}

.navbar-logo { display: none; }
.logo-img { height: 72px; width: auto; object-fit: contain; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  position: relative;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
  transition: var(--transition-colors);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-xs);
  right: var(--space-xs);
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-default);
}
.nav-link:hover { color: var(--color-text-primary); background: var(--color-accent-subtle); }
.nav-link:hover::after { transform: scaleX(1); }

/* navbar-actions removed — split into .navbar-left and .navbar-right */

.lang-picker {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: var(--space-3xs);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  transition: var(--transition-colors);
}
.lang-btn.active { color: var(--color-accent); }
.lang-btn:hover { color: var(--color-text-primary); }
.lang-sep { color: var(--color-text-tertiary); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2xs);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: var(--transition-all);
}

/* Mobile slide-out nav (lives outside navbar to avoid backdrop-filter containing block) */
#nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-3xl) var(--space-md) var(--space-md);
  background: var(--color-surface-1);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-default);
  z-index: calc(var(--z-overlay) + 1);
  gap: var(--space-3xs);
}
#nav-menu.open { transform: translateX(0); }
#nav-menu .nav-link {
  font-size: var(--text-body);
  padding: var(--space-xs) var(--space-sm);
  width: 100%;
}

/* Hide mobile menu on desktop, hide desktop nav on mobile */
@media (min-width: 1024px) {
  #nav-menu { display: none; }
}
@media (max-width: 1023px) {
  .navbar-menu--desktop { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-auth-btn { display: none; }
  .navbar-logo { display: flex; }
  .navbar-inner { justify-content: space-between; }
  .navbar-left { position: static; }
  .navbar-right { position: static; }
  .navbar-left .lang-picker { display: none; }
  .navbar-left .theme-toggle { display: none; }
}

@media (max-width: 767px) {
  .logo-img { height: 52px; }
}


/* === HERO === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--section-pad-y));
  position: relative;
  overflow: hidden;
}

/* Canvas grid background */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* When canvas is active, reduce orb prominence */
.hero-canvas-active .hero-orb { opacity: 0.15 !important; }
.hero-canvas-active .hero-gradient-sphere { opacity: 0.35 !important; }

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  animation: float 25s ease-in-out infinite;
}
.hero-orb--1 {
  width: clamp(300px, 45vw, 900px);
  height: clamp(300px, 45vw, 900px);
  background: var(--color-accent);
  top: -200px;
  right: -100px;
  opacity: 0.35;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: clamp(200px, 32vw, 600px);
  height: clamp(200px, 32vw, 600px);
  background: var(--color-info);
  bottom: -100px;
  left: -50px;
  opacity: 0.25;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -15px) scale(1.03); }
  50% { transform: translate(-15px, 20px) scale(0.97); }
  75% { transform: translate(15px, 15px) scale(1.01); }
}

/* CSS gradient sphere — dramatic 3D-feel with multi-layer glow */
.hero-gradient-sphere {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 550px);
  height: clamp(280px, 30vw, 550px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 35% 35%,
      rgba(255, 59, 48, 0.6),
      rgba(255, 59, 48, 0.2) 45%,
      rgba(160, 100, 255, 0.1) 60%,
      transparent 70%
    );
  filter: blur(16px);
  opacity: 0.65;
  will-change: transform, opacity;
  animation: spherePulse 6s ease-in-out infinite, sphereFloat 20s ease-in-out infinite;
  pointer-events: none;
}

/* Sphere inner highlight ring */
.hero-gradient-sphere::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(255, 59, 48, 0.4),
    transparent 60%
  );
  filter: blur(10px);
  animation: sphereInnerPulse 4s ease-in-out infinite;
}

/* Sphere outer glow ring */
.hero-gradient-sphere::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 59, 48, 0.08),
    rgba(90, 200, 250, 0.04) 50%,
    transparent 70%
  );
  filter: blur(25px);
  animation: sphereOuterGlow 8s ease-in-out infinite;
}

@keyframes spherePulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.45; }
}

@keyframes sphereFloat {
  0%, 100% { transform: translateY(-50%) translate(0, 0) scale(1); }
  33% { transform: translateY(-50%) translate(15px, -20px) scale(1.02); }
  66% { transform: translateY(-50%) translate(-12px, 15px) scale(0.98); }
}

@keyframes sphereInnerPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes sphereOuterGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.08); }
}

@media (max-width: 767px) {
  .hero-gradient-sphere { display: none; }
  .hero-orb--1 { opacity: 0.2; }
  .hero-orb--2 { opacity: 0.15; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  max-width: 800px;
}

.hero-tagline {
  color: var(--color-text-primary);
  font-size: clamp(4rem, 8vw + 1rem, 8rem);
}

.brand-asterisk {
  color: #FF3B30;
  -webkit-text-fill-color: #FF3B30;
}

@keyframes taglineGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  max-width: 700px;
  margin-top: var(--space-md);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-h3);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-goals {
  margin-top: var(--space-3xl);
}
.hero-tagline-sub {
  margin-top: var(--space-md);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  letter-spacing: -0.02em;
  text-align: center;
}

.goals-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-left: auto;
  margin-right: auto;
}

.goal-option {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  text-align: left;
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  padding: var(--space-sm) var(--space-md);
  white-space: nowrap;
}
.goal-option:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.goal-option.active {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.goal-option.active .goal-label { color: var(--color-accent); }
.goal-icon { font-size: 1.75rem; flex-shrink: 0; }
.goal-label { font-size: var(--text-body); font-weight: var(--weight-medium); }

@media (max-width: 1023px) {
  .goals-grid { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .hero { min-height: auto; padding-top: calc(80px + var(--space-2xl)); padding-bottom: var(--space-2xl); }
  .goal-option {
    white-space: normal;
    padding: var(--space-xs) var(--space-sm);
  }
  .goal-icon { font-size: 1.4rem; }
  .goal-label { font-size: var(--text-body-sm); }
  .goals-grid { gap: var(--space-2xs); }
}

/* Goal highlighted section */
.goal-highlighted {
  position: relative;
}
.goal-highlighted::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-sm));
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}


/* === TRUST SECTION === */
.trust-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(var(--color-accent-rgb), 0.02);
  overflow: hidden;
}

.section--compact {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section--compact .metric-value {
  font-size: var(--text-h3);
}

.section--compact .metric-label {
  font-size: var(--text-body-sm);
}


/* === SECTION HEADER === */
.section-header {
  margin-bottom: var(--space-2xl);
}
.section-header .overline { display: inline-block; margin-bottom: var(--space-xs); }
.section-header h2 { margin-bottom: var(--space-xs); }
.section-header p { max-width: 600px; margin-left: auto; margin-right: auto; }

@media (max-width: 767px) {
  .section-header h2 {
    font-size: clamp(1.4rem, 5.8vw, 2rem) !important;
  }
}


/* === SERVICE CARDS === */
.service-cards .card {
  padding: var(--space-lg);
  cursor: default;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}
.service-cards h3 { margin-bottom: var(--space-2xs); }


/* === TIMELINE === */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-subtle, rgba(255, 59, 48, 0.35));
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  z-index: 1;
}

.timeline-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-body-lg);
  box-shadow: var(--shadow-glow);
}

.timeline-card {
  flex: 1;
}
.timeline-card h3 { margin-bottom: var(--space-2xs); }

.timeline-badge {
  position: absolute;
  top: calc(var(--space-xs) * -1);
  right: var(--space-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: var(--space-4xs) var(--space-xs);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
  z-index: 1;
}

@media (max-width: 767px) {
  .timeline-line { left: 16px; }
}


/* === CALCULATOR === */
.calc-container {
  padding: var(--space-lg);
}

.calc-section {
  margin-bottom: var(--space-md);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-2xs);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  margin-top: var(--space-3xs);
}

.calc-results {
  margin-top: var(--space-lg);
}

.result-card {
  padding: var(--space-md);
  transition: var(--transition-all);
}
.result-card.pulse {
  animation: pulse-glow 0.4s ease-out;
}
@keyframes pulse-glow {
  0% { box-shadow: var(--shadow-card); }
  50% { box-shadow: var(--shadow-glow-strong); }
  100% { box-shadow: var(--shadow-card); }
}


/* === WORKFLOW BUILDER === */
#workflow-builder {
  padding: var(--space-lg);
}

.wf-diagram-container {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  min-height: 100px;
  overflow-x: auto;
}

.wf-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.wf-node {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wf-node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.wf-node-label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-3xs) var(--space-2xs);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-left: var(--space-2xs);
  white-space: nowrap;
}

.wf-node-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-border));
  margin: 0 var(--space-2xs);
  flex-shrink: 0;
}

.wf-summary {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}


/* === BEFORE / AFTER === */
.ba-container { text-align: center; }

.ba-panels {
  margin-top: var(--space-md);
}

.ba-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.ba-metric-row:last-of-type { border-bottom: none; }

.ba-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}
.ba-list li {
  padding: var(--space-2xs) 0;
  padding-left: var(--space-md);
  position: relative;
  color: var(--color-text-secondary);
}
.ba-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.hidden { display: none !important; }

/* === SHAKE FEEDBACK (validation hint) === */
.shake {
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}


/* === CASE STUDY CARDS === */
#cases .card {
  border-top: 3px solid var(--color-accent);
}

#cases .ba-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

#cases .metric-badge {
  background: var(--color-accent-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-4xs) 10px;
  display: inline-block;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}




/* === BOOKING === */
.booking-wizard {
  padding: var(--space-xl);
}
.booking-step {
  min-height: 180px;
}
.booking-step-title {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

/* Type selection cards */
.booking-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 520px;
}
.booking-type-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-surface-2);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: border-color var(--duration-base) var(--ease-default),
              background var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}
.booking-type-btn:hover {
  border-color: var(--color-text-tertiary);
  background: var(--color-surface-3);
}
.booking-type-btn.active {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.06);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
}
.booking-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface-3);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: background var(--duration-base) var(--ease-default),
              color var(--duration-base) var(--ease-default);
}
.booking-type-btn.active .booking-type-icon {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}
.booking-type-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xs);
}
.booking-type-text strong {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
.booking-type-desc {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}

/* Date & time grids */
.date-grid { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.date-slot { flex-direction: column; height: auto; padding: var(--space-2xs) var(--space-xs); min-width: 64px; }
.date-day { font-size: var(--text-caption); opacity: 0.7; }
.date-num { font-size: var(--text-body-sm); font-weight: var(--weight-semibold); }
.time-grid { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

/* Form layout */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Confirmation */
.booking-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
  gap: var(--space-md);
}
.booking-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-success-subtle);
  color: var(--color-success);
}
.booking-confirm-details {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* Navigation */
.booking-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.booking-nav-btn {
  min-width: 140px;
}
.booking-nav .btn--primary:only-child,
.booking-nav .btn--primary:last-child {
  margin-left: auto;
}

/* Mobile booking */
@media (max-width: 767px) {
  .booking-wizard {
    padding: var(--space-lg) var(--space-md);
  }
  .booking-type-grid {
    grid-template-columns: 1fr;
  }
  .booking-form-row {
    grid-template-columns: 1fr;
  }
  .booking-nav-btn {
    min-width: 110px;
  }
  .stepper-label {
    font-size: 0.8rem;
  }
  .stepper-circle {
    width: 34px;
    height: 34px;
  }
  .stepper-line {
    margin-top: var(--space-sm);
  }
}


/* === TRUSTED BY / LOGO MARQUEE === (dead CSS removed — .trusted-by/.marquee-inner not used) */
.marquee-logo {
  flex-shrink: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-tertiary);
  opacity: 0.45;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
  transition: opacity var(--duration-fast) var(--ease-default);
}
.marquee-logo:hover { opacity: 0.8; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}
.footer-links, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.footer-link {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
}
.footer-link:hover { color: var(--color-accent); }
.footer-logo-text {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}
.footer-social-link {
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) var(--ease-default);
  display: flex;
  align-items: center;
}
.footer-social-link:hover { color: var(--color-accent); }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

/* === FOOTER NEWSLETTER === */
.footer-newsletter {
  margin-top: var(--space-lg);
  max-width: 420px;
}
.newsletter-form { position: relative; }
.newsletter-input-wrap {
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
}
.newsletter-input {
  flex: 1;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-body-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-default);
}
.newsletter-input:focus {
  border-color: var(--color-accent);
}
.newsletter-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.newsletter-msg {
  margin-top: var(--space-3xs);
  font-size: var(--text-caption);
}
.newsletter-msg--success { color: var(--color-success, #34C759); }
.newsletter-msg--error { color: var(--color-accent); }

/* === CHAT WIDGET === */
/* === SCROLL TO TOP === */
.scroll-top-btn {
  position: fixed;
  bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px) + 68px);
  right: var(--space-md);
  z-index: calc(var(--z-chat) - 1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lg-border);
  border-radius: var(--radius-full);
  background: var(--lg-bg-2);
  backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate));
  color: var(--color-text-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default),
              background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-color: var(--color-accent);
}

/* === CHAT WIDGET === */
.chat-widget {
  position: fixed;
  bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  right: var(--space-md);
  z-index: var(--z-chat);
}

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-glow-cta);
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}
.chat-fab:hover { transform: scale(1.05); box-shadow: var(--shadow-glow-strong); }

.chat-panel {
  position: absolute;
  bottom: calc(100% + var(--space-xs));
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(600px, calc(100vh - 120px));
  background: var(--lg-bg-3);
  backdrop-filter: blur(var(--lg-blur-3)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(var(--lg-blur-3)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  border: 1px solid var(--lg-border-luminous);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-spring),
              transform var(--duration-base) var(--ease-spring);
  box-shadow: var(--lg-inset-highlight), var(--lg-edge-glow), var(--shadow-xl);
}
.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-widget.open .chat-fab { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--lg-border);
  background: var(--lg-bg-1);
  backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--color-bg);
  min-height: 150px;
}

.chat-message {
  display: flex;
  max-width: 85%;
}
.chat-message--user { align-self: flex-end; }
.chat-message--assistant { align-self: flex-start; }

.chat-bubble {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-lg);
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
}
.chat-bubble--user {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-bottom-right-radius: var(--radius-xs);
}
.chat-bubble--assistant {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border-bottom-left-radius: var(--radius-xs);
}

.chat-consent {
  text-align: center;
  padding: var(--space-2xs);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border-top: 1px solid var(--lg-border);
  background: var(--lg-bg-1);
  backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
}
.chat-quick-btn {
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--text-caption);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}
.chat-quick-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-color: var(--color-accent);
}
.chat-cta-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body-sm);
}
.chat-cta-link:hover { text-decoration: underline; }

/* Chat input bar */
.chat-input-bar {
  display: flex;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border-top: 1px solid var(--lg-border);
  background: var(--lg-bg-1);
  backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
  -webkit-backdrop-filter: blur(var(--lg-blur-1)) saturate(var(--lg-saturate)) brightness(var(--lg-brightness));
}
.chat-text-input {
  flex: 1;
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--text-caption);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-default);
}
.chat-text-input:focus {
  border-color: var(--color-accent);
}
.chat-text-input::placeholder {
  color: var(--color-text-tertiary);
}
.chat-send-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

/* Typing dots */
.typing-dots { display: flex; gap: var(--space-3xs); padding: var(--space-3xs) 0; }
.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--color-text-tertiary);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1023px) {
  /* Push chat widget + scroll-top above mobile CTA bar (~60px) */
  .chat-widget { bottom: 68px; right: var(--space-xs); }
  .scroll-top-btn { bottom: calc(68px + 60px); }
}
@media (max-width: 767px) {
  .chat-panel { width: calc(100vw - 24px); max-height: 70vh; right: auto; }
}
@media (max-width: 390px) {
  .chat-widget.open { right: 0; left: 0; }
  .chat-panel { width: 100%; max-width: 100vw; border-radius: var(--radius-lg) var(--radius-lg) 0 0; right: auto; left: 0; }
}


/* === RESPONSIVE OVERRIDES === */
@media (max-width: 767px) {
  .grid-3 .calc-results { grid-template-columns: 1fr; }
}

/* Wide screens */
@media (min-width: 1440px) {
  .hero-tagline { font-size: 5rem; }
}

/* Large screens / TV */
@media (min-width: 1920px) {
  .hero { min-height: 70vh; }
  .container { max-width: 1440px; }
}

/* Focus states for TV / keyboard */
@media (any-hover: none) {
  .card--interactive:focus-visible {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
  }
  .btn:focus-visible {
    transform: scale(1.02);
  }
}


/* === CONTACT SECTION === */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 200px));
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-alpha-10, rgba(255, 59, 48, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}
.contact-card__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.contact-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}
.contact-social-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-alpha-10, rgba(255, 59, 48, 0.1));
}

@media (max-width: 767px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }
  .contact-card {
    padding: var(--space-md) var(--space-sm);
  }
  .contact-card__icon {
    width: 44px;
    height: 44px;
  }
  .contact-card h3 {
    font-size: var(--text-body-sm);
    word-break: break-word;
  }
  .contact-card .body-sm {
    font-size: 0.7rem;
    word-break: break-all;
  }
}


/* === AMBIENT LIGHT POOLS === */
/* Colored radial gradient washes behind sections.
   Imperceptible alone, but glass surfaces blur & refract them,
   making the liquid glass look alive with color. */

#services::before,
#how-it-works::before,
#calculator::before,
#before-after::before,
#cases::before,
#pricing::before,
#faq::before,
#booking::before,
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#services::before {
  background:
    radial-gradient(ellipse 700px 500px at 80% 20%,
      rgba(255, 59, 48, 0.18), transparent),
    radial-gradient(ellipse 600px 500px at 15% 80%,
      rgba(90, 200, 250, 0.12), transparent);
}

#how-it-works::before {
  background:
    radial-gradient(ellipse 600px 500px at 30% 50%,
      rgba(255, 59, 48, 0.15), transparent),
    radial-gradient(ellipse 400px 400px at 80% 70%,
      rgba(160, 100, 255, 0.08), transparent);
}

#calculator::before {
  background:
    radial-gradient(ellipse 700px 500px at 50% 40%,
      rgba(90, 200, 250, 0.14), transparent),
    radial-gradient(ellipse 400px 400px at 20% 70%,
      rgba(255, 59, 48, 0.08), transparent);
}

#before-after::before {
  background:
    radial-gradient(ellipse 600px 500px at 50% 40%,
      rgba(255, 59, 48, 0.14), transparent),
    radial-gradient(ellipse 400px 400px at 80% 80%,
      rgba(90, 200, 250, 0.08), transparent);
}

#cases::before {
  background:
    radial-gradient(ellipse 600px 600px at 20% 50%,
      rgba(255, 59, 48, 0.16), transparent),
    radial-gradient(ellipse 500px 500px at 85% 30%,
      rgba(90, 200, 250, 0.12), transparent);
}



#pricing::before {
  background:
    radial-gradient(ellipse 900px 500px at 50% 60%,
      rgba(255, 59, 48, 0.14), transparent),
    radial-gradient(ellipse 500px 500px at 80% 20%,
      rgba(180, 130, 255, 0.12), transparent);
}

#faq::before {
  background:
    radial-gradient(ellipse 700px 500px at 40% 50%,
      rgba(90, 200, 250, 0.14), transparent),
    radial-gradient(ellipse 400px 400px at 80% 30%,
      rgba(160, 100, 255, 0.08), transparent);
}


#booking::before {
  background:
    radial-gradient(ellipse 700px 500px at 60% 50%,
      rgba(255, 59, 48, 0.15), transparent),
    radial-gradient(ellipse 400px 400px at 20% 30%,
      rgba(90, 200, 250, 0.08), transparent);
}

#contact::before {
  background:
    radial-gradient(ellipse 600px 500px at 30% 40%,
      rgba(255, 59, 48, 0.16), transparent),
    radial-gradient(ellipse 600px 500px at 70% 60%,
      rgba(90, 200, 250, 0.14), transparent);
}


/* === NOISE/GRAIN TEXTURE OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}


/* === PRICE ANCHORING === */
.price-anchor {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.price-anchor-old {
  margin-bottom: var(--space-2xs);
}

.price-anchor-strike {
  font-size: var(--text-h3);
  font-weight: 700;
  text-decoration: line-through;
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.price-anchor-label {
  font-size: var(--text-caption);
}

.price-anchor-new {
  font-size: var(--text-body-lg);
  font-weight: 600;
}

.price-anchor-highlight {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--color-accent);
}


/* === RISK REVERSAL BANNER === */
.risk-reversal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid var(--glass-border);
  font-size: var(--text-body);
  font-weight: 500;
  text-align: center;
}

.risk-reversal-icon {
  flex-shrink: 0;
  color: var(--color-success);
}


/* === STICKY MOBILE CTA BAR === */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-sm) var(--space-md);
    padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    border-top: 1px solid var(--glass-border);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
  }

  .mobile-cta-bar.visible {
    transform: translateY(0);
  }

  /* Hide mobile CTA when nav menu is open */
  body.nav-open .mobile-cta-bar {
    transform: translateY(100%) !important;
    pointer-events: none;
  }

  .mobile-cta-btn {
    width: 100%;
    max-width: 400px;
  }

}


/* === TESTIMONIAL MARQUEE === */
.testimonial-marquee-section {
  padding: var(--space-md) 0;
}
.testimonial-marquee {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.testimonial-marquee-track {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}
.testimonial-marquee-card {
  flex: 1;
  max-width: 360px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
@media (max-width: 767px) {
  .testimonial-marquee-track {
    flex-direction: column;
    align-items: center;
  }
  .testimonial-marquee-card {
    max-width: 100%;
    width: 100%;
  }
}
.tmc-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.tmc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tmc-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.tmc-info {
  display: flex;
  flex-direction: column;
}
.tmc-name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
.tmc-role {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}
.tmc-text {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-style: italic;
}
/* === CASE STUDY LOGOS === */
.case-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
}
.case-logo-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* === SOCIAL PROOF MARQUEE === */
.logo-marquee {
  overflow: hidden;
  margin-top: var(--space-xl);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

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

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

.marquee-badge {
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.marquee-badge:hover {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* === COMPARISON TABLE === */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: var(--space-md);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  font-weight: var(--weight-medium);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-highlight {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  background: rgba(255, 59, 48, 0.05);
}

@media (max-width: 767px) {
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-body-sm);
  }
}


/* === SCARCITY BADGE === */
.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #34c759;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
}

.scarcity-badge svg {
  color: currentColor;
}


/* ============================================================
   WOW-FACTOR ENHANCEMENTS v2.0
   Animated gradient borders, enhanced hovers, text effects,
   parallax polish, micro-interactions.
   ============================================================ */

/* === ANIMATED GRADIENT BORDER ON CARDS === */
.card--accent-glow {
  position: relative;
  overflow: hidden;
}

.card--accent-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--gradient-angle, 0deg),
    var(--color-accent),
    rgba(90, 200, 250, 0.5),
    rgba(160, 100, 255, 0.5),
    var(--color-accent)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotateBorder 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.card--accent-glow:hover::before {
  opacity: 1;
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --gradient-angle: 360deg; }
}

/* === ENHANCED CARD HOVER — lift + glow === */
.card--interactive {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.card--interactive:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover),
    0 0 30px rgba(var(--color-accent-rgb), 0.08);
}

/* === OVERLINE SHIMMER ANIMATION === */
.overline-shimmer {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.overline-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--color-accent-rgb), 0.2),
    transparent
  );
  animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* === TEXT GRADIENT ANIMATE (for «τυπώνει» span) === */
.text-gradient-animate {
  background: linear-gradient(90deg, var(--color-accent), #5AC8FA, var(--color-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3s ease-in-out infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* === METRIC VALUES: glow pulse on visible === */
.metric-value {
  transition: text-shadow 0.5s ease;
}

.metric.visible .metric-value,
.metric-value[data-counter] {
  text-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.15);
}

/* === SECTION BORDERS: gradient fade instead of flat === */
.section + .section {
  border-top: none;
  position: relative;
}

.section + .section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border) 20%,
    rgba(var(--color-accent-rgb), 0.2) 50%,
    var(--color-border) 80%,
    transparent
  );
  pointer-events: none;
}

/* === TRUST METRICS: subtle float === */
.metric {
  will-change: transform;
}

.metric:nth-child(odd) {
  animation: metricFloat 6s ease-in-out infinite;
}

.metric:nth-child(even) {
  animation: metricFloat 6s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes metricFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* === TIMELINE GLOW LINE === */
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-accent), rgba(90, 200, 250, 0.6));
  box-shadow: 0 0 16px var(--color-accent-subtle, rgba(255, 59, 48, 0.4)),
              0 0 32px var(--color-accent-subtle, rgba(255, 59, 48, 0.2));
  border-radius: 2px;
}

/* === ENHANCED CTA BUTTON GLOW === */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.15), transparent 30%);
  animation: btnShineRotate 4s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes btnShineRotate {
  to { transform: rotate(360deg); }
}

/* === HERO GRADIENT SPHERE: third orb for color richness === */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(160, 100, 255, 0.15);
  border-radius: 50%;
  filter: blur(50px);
  top: 20%;
  left: 30%;
  animation: float 30s ease-in-out infinite;
  animation-delay: -12s;
  pointer-events: none;
  opacity: 0.3;
}

/* === CURSOR GLOW (appended via JS, but styled here) === */
.cursor-glow {
  position: fixed;
  left: -150px;
  top: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* === WORD REVEAL ANIMATION (used by split text) === */
.word {
  overflow: hidden;
  display: inline-block;
}

.word-inner {
  display: inline-block;
}

/* === MARQUEE BADGES: enhanced glass === */
.marquee-badge {
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.marquee-badge:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.1);
}

/* === FAQ ACCORDION: smooth border highlight === */
.accordion-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover,
.accordion-item.active {
  border-color: rgba(var(--color-accent-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.05);
}

/* === BOOKING SECTION: warm glow background === */
#booking {
  position: relative;
}

#booking::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

/* scroll-behavior: smooth removed — Lenis handles smooth scroll programmatically.
   Native scroll-behavior conflicts with Lenis's rAF-driven position updates. */

/* === SECTION BACKGROUND COLOR MORPH LAYER === */
.bg-morph-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .bg-morph-layer { display: none; }
}

/* === PINNED TIMELINE MOBILE FALLBACK === */
@media (max-width: 1023px) {
  #how-it-works .timeline-step {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* === SCROLL-TILT PARENT PERSPECTIVE (desktop only) === */
@media (hover: hover) and (pointer: fine) {
  .service-cards,
  #cases .grid,
  .pricing-cards {
    perspective: 1200px;
  }

  .service-cards .card,
  #cases .grid .card,
  .pricing-cards .card {
    transform-style: preserve-3d;
  }
}

/* === GOAL CARDS: stagger animation ready === */
.goal-option {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
}

@media (hover: hover) {
  .goal-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.08);
  }
}

.goal-option.active {
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.12);
}

/* === MOBILE TOUCH & INTERACTION FIXES === */
@media (max-width: 767px) {
  /* Improve touch responsiveness on all interactive elements */
  button, a, .chip, .calc-industry, .calc-people, .calc-cost,
  .goal-option, .pricing-toggle, .faq-toggle, .accordion-trigger,
  .booking-type-card, .tab-btn, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* ROI slider needs pan-x to allow horizontal dragging */
  input[type="range"] {
    touch-action: pan-x;
  }

  /* Disable card tilt/hover transforms on touch devices */
  .service-cards .card,
  #cases .grid .card,
  .pricing-cards .card {
    transform: none !important;
    transform-style: flat;
  }
}

/* ============================================================
   RESPONSIVE SCALING FIXES — All Device Sizes
   ============================================================ */

/* --- Very Small Phones (320px - 390px) --- */
@media (max-width: 390px) {
  /* Navbar drawer fits small screens */
  .navbar-menu {
    width: 260px;
    padding: var(--space-2xl) var(--space-sm) var(--space-sm);
  }

  /* Hero text scales down */
  .hero-tagline {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  .hero-subtitle {
    font-size: var(--text-body-lg);
  }
  .hero-tagline-sub {
    font-size: var(--text-h3);
  }

  /* Goal buttons smaller */
  .goal-option {
    padding: var(--space-2xs) var(--space-xs);
  }
  .goal-icon { font-size: 1.2rem; }
  .goal-label { font-size: var(--text-caption); }

  /* Section headers */
  .section-header h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.6rem) !important;
  }
  .section-header p {
    font-size: var(--text-body-sm);
  }

  /* Timeline adjusts */
  .timeline-line { left: 14px; }
  .timeline-number {
    width: 32px;
    height: 32px;
    font-size: var(--text-body-sm);
  }
  .timeline-content {
    margin-left: 48px;
  }

  /* Date slots fit */
  .date-slot { min-width: 56px; }
  .time-grid .chip { min-width: 60px; padding: var(--space-2xs) var(--space-xs); }

  /* Contact cards single column */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* Booking nav buttons */
  .booking-nav-btn { min-width: 90px; font-size: var(--text-body-sm); }

  /* Pricing cards padding */
  .pricing-cards .card { padding: var(--space-md); }

  /* Footer */
  .footer-grid { gap: var(--space-md); }
}

/* --- Tablet refinements (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero sphere visible but smaller on tablet */
  .hero-gradient-sphere {
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    opacity: 0.4;
  }

  /* Workflow diagram wraps on tablet */
  .wf-diagram {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }
  .wf-node-line {
    width: 24px;
  }

  /* Contact cards 2-column on tablet */
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comparison table more compact */
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* --- Workflow diagram stacks on mobile --- */
@media (max-width: 767px) {
  .wf-diagram {
    flex-direction: column;
    align-items: stretch;
  }
  .wf-node {
    flex-direction: row;
    width: 100%;
  }
  .wf-node-line {
    width: 2px;
    height: 20px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--color-accent), var(--color-border));
  }
  .wf-node-label {
    white-space: normal;
    flex: 1;
  }
  .wf-diagram-container {
    overflow-x: visible;
  }
}

/* --- Wide Desktop refinements (1440px - 1919px) --- */
@media (min-width: 1440px) and (max-width: 1919px) {
  .hero-tagline {
    font-size: clamp(4.5rem, 5vw, 5.5rem);
  }
}

/* --- Ultrawide (2560px+) --- */
@media (min-width: 2560px) {
  :root {
    --grid-margin: 200px;
  }
  .container { max-width: 1600px; }
  .hero { min-height: 60vh; }
  .hero-tagline { font-size: 6rem; }
  .hero-subtitle { font-size: var(--text-h2); }

  /* Ambient light pools scale to larger screens */
  #services::before,
  #how-it-works::before,
  #calculator::before,
  #before-after::before,
  #cases::before,
  #pricing::before,
  #faq::before,
  #booking::before,
  #contact::before {
    transform: scale(1.3);
  }
}

/* --- Landscape mobile (short viewport) --- */
@media (max-width: 1023px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(70px + var(--space-lg));
    padding-bottom: var(--space-lg);
  }
  .hero-goals {
    margin-top: var(--space-lg);
  }
  /* Booking date grid horizontal on landscape */
  .date-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2xs);
  }
}

/* Sections are always full-width; .container handles content max-width */


/* === PRINT STYLES === */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  a, a:visited { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
  .navbar, .mobile-cta-bar, .cookie-banner, .chat-widget, .scroll-top-btn, .cursor-glow, .cursor-ring, .cursor-dot, .hero-canvas, .hero-background, .section-dots, .nav-overlay, footer .social-links { display: none !important; }
  .section { page-break-inside: avoid; padding: 1rem 0; }
  .card { border: 1px solid #ccc; page-break-inside: avoid; }
  img { max-width: 100% !important; }
  h1, h2, h3 { page-break-after: avoid; }
  .pricing-card, .case-card, .service-card { break-inside: avoid; }
}
