/* ============================================================
   THE FUNNEL UP — Component Styles
   Buttons, cards, forms, navbar, footer, testimonials, etc.
   ============================================================ */

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all var(--duration-base) var(--ease-out);
  /* 10x Improved Glassmorphism */
  background: rgba(254, 243, 199, 0.08);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Premium Dark Glass */
.navbar--dark {
  background: rgba(15, 11, 26, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.3),
    inset 0 0 1px 1px rgba(255, 255, 255, 0.05);
}


.navbar--dark .navbar__logo { color: var(--text-inverse); }
.navbar--dark .navbar__links a { color: rgba(254,252,232,0.7); }
.navbar--dark .navbar__links a:hover { color: white; }
.navbar--dark .navbar__hamburger span { background: var(--text-inverse); }

/* Scrolled state — more opaque glass */
.navbar.scrolled {
  background: rgba(254, 243, 199, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) 0;
  border-bottom-color: rgba(31, 41, 55, 0.08);
}
.navbar.scrolled .navbar__logo { color: var(--text); }
.navbar.scrolled .navbar__links a { color: var(--text); }
.navbar.scrolled .navbar__links .btn-primary { color: white !important; }
.navbar.scrolled .navbar__links a:hover { color: var(--primary); }
.navbar.scrolled .navbar__hamburger span { background: var(--text); }


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

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  text-decoration: none;
  letter-spacing: var(--ls-tight);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__symbol {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar__logo:hover .navbar__symbol {
  filter: drop-shadow(0 0 8px rgba(255, 16, 122, 0.6));
  transform: translateY(-1px);
}

.navbar__logo span {
  color: var(--primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--duration-base) var(--ease-out);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__links a:hover {
  color: var(--primary);
}

/* Dropdown Styles */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__dropdown-trigger::after {
  content: '▼';
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.navbar__dropdown:hover .navbar__dropdown-trigger::after {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.navbar--dark .navbar__dropdown-menu {
  background: var(--surface-darker);
  border: 1px solid rgba(255,255,255,0.1);
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text) !important;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
}

.navbar--dark .navbar__dropdown-item {
  color: rgba(255,255,255,0.8) !important;
}

.navbar__dropdown-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary) !important;
}

.navbar--dark .navbar__dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: white !important;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  z-index: calc(var(--z-modal) + 1);
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition-base);
  border-radius: 2px;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(254, 243, 199, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.navbar__mobile.open {
  display: flex;
  opacity: 1;
}

.navbar__mobile a {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-decoration: none;
}

.navbar__mobile a:hover {
  color: var(--primary);
}

.navbar__mobile .btn-primary,
.navbar__mobile .btn-primary:hover {
  color: white !important;
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--cta));
  color: white;
  border-color: transparent;
  background-size: 200% auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-neon);
  color: white;
  background-position: right center;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--surface-white);
  color: var(--text);
  border-color: rgba(var(--text-rgb), 0.15);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* Button on dark backgrounds */
.section--dark .btn-secondary,
.section--gradient .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.2);
}

.section--dark .btn-secondary:hover,
.section--gradient .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--surface-white);
  border: 1px solid rgba(var(--text-rgb), 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
  position: relative;
}

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

.card-glass {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
}

.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* 3D Tilt Card Base */
.tilt-card {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: var(--shadow-neon);
}
.tilt-card > * {
  transform: translateZ(30px);
}

/* Dark card variant */
.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Card icon */
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--cta-rgb), 0.1));
  color: var(--primary);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.card__stat {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.card__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-fast);
}

.card__link:hover {
  gap: var(--space-2);
  color: var(--primary-dark);
}

/* ================================================================
   STAT COUNTER
   ================================================================ */
.stat-item {
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
}

.stat-item__value {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.stat-item__label {
  font-size: var(--fs-xs);
  color: rgba(254, 252, 232, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--fw-semibold);
}

.floating-logos {
  position: relative;
  height: 300px;
  width: 100%;
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}

.floating-logos__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

/* Floating animation */
.floating-logos__item-wrapper {
  animation: floatDrift 6s ease-in-out infinite alternate;
}

@keyframes floatDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -12px) rotate(2deg); }
  66% { transform: translate(-6px, 10px) rotate(-1deg); }
  100% { transform: translate(4px, -4px) rotate(1deg); }
}

/* Staggered animation delays for items */
.floating-logos__item:nth-child(1) .floating-logos__item-wrapper { animation-delay: 0s; }
.floating-logos__item:nth-child(2) .floating-logos__item-wrapper { animation-delay: -1.5s; }
.floating-logos__item:nth-child(3) .floating-logos__item-wrapper { animation-delay: -3s; }
.floating-logos__item:nth-child(4) .floating-logos__item-wrapper { animation-delay: -4.5s; }

.floating-logos__item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.15);
  color: var(--primary-light);
  z-index: 10;
}

.section--accent-strip {
  background: linear-gradient(180deg, var(--surface-darker), #1A1625);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================================================
   TESTIMONIAL CAROUSEL
   ================================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4);
  background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.03), transparent 70%);
}

.carousel__track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
}

.home-services .card-glass {
  border: 1px solid rgba(var(--primary-rgb),0.06);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  text-align: center; padding: var(--space-8) var(--space-5);
}

.carousel__slide {
  min-width: 100%;
  padding: 0 var(--space-4);
}

.testimonial {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  margin: var(--space-4) auto;
  max-width: 760px;
  position: relative;
  overflow: hidden;
}

.testimonial__quote {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-relaxed);
  color: var(--text);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial__quote::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: rgba(var(--primary-rgb), 0.08);
  position: absolute;
  top: -4rem;
  left: -2rem;
  line-height: 1;
  z-index: -1;
}

.testimonial__author {
  font-weight: var(--fw-bold);
  color: var(--text);
}

.testimonial__role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--text-rgb), 0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.carousel__dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--text);
  transition: var(--transition-fast);
  z-index: 2;
}

.carousel__arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
  position: relative;
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface-white);
  border: 2px solid rgba(var(--text-rgb), 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  outline: none;
  min-height: 48px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: var(--space-4) var(--space-5);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-weight: var(--fw-medium);
  display: none;
}

.form-success.visible {
  display: block;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-item {
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-align: left;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question__icon {
  font-size: var(--fs-xl);
  transition: transform var(--duration-base) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}

.faq-answer p {
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-base);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.footer__brand-name span { color: var(--primary); }

.footer__tagline {
  font-size: var(--fs-sm);
  color: rgba(254, 252, 232, 0.5);
  line-height: var(--lh-relaxed);
  max-width: 30ch;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: rgba(254, 252, 232, 0.4);
  margin-bottom: var(--space-4);
}

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

.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(254, 252, 232, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--primary-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  color: rgba(254, 252, 232, 0.35);
  text-align: center;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ================================================================
   PROCESS / TIMELINE STEPS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.step {
  position: relative;
}

.step__number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: rgba(var(--primary-rgb), 0.15);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.step__body {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* ================================================================
   COMPARISON TABLE
   ================================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--text);
}

.comparison-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(var(--text-rgb), 0.06);
  vertical-align: top;
}

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

.comparison-table td:first-child {
  color: var(--text-muted);
}

.comparison-table td:last-child {
  color: var(--text);
  font-weight: var(--fw-medium);
}

/* ================================================================
   CLIENT LOGOS
   ================================================================ */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.logo-strip__item {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: rgba(var(--text-rgb), 0.25);
  transition: var(--transition-base);
  white-space: nowrap;
}

.logo-strip__item:hover {
  color: var(--text);
}

.section--dark .logo-strip__item {
  color: rgba(254, 252, 232, 0.2);
}

.section--dark .logo-strip__item:hover {
  color: rgba(254, 252, 232, 0.7);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* navbar clearance */
}

.text-center {
  text-align: center;
}

.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 640px;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-5);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.hero--centered .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero--centered .hero__actions {
  justify-content: center;
}

/* Hero with gradient bg */
.hero--gradient {
  background: linear-gradient(135deg,
    var(--background) 0%,
    rgba(var(--primary-rgb), 0.08) 50%,
    rgba(var(--cta-rgb), 0.06) 100%
  );
}

/* Hero with dark bg */
.hero--dark {
  background: var(--surface-dark);
}

.hero--dark h1,
.hero--dark .hero__subtitle { color: var(--text-inverse); }
.hero--dark .hero__subtitle { color: rgba(254, 252, 232, 0.65); }

/* ================================================================
   CASE STUDY CARD (INLINE)
   ================================================================ */
.case-study {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.case-study__meta {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--accent-light);
  margin-bottom: var(--space-3);
}

.case-study__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-5);
}

.case-study__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.case-study__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.case-study__metric {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.case-study__metric-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--accent-light);
  margin-bottom: var(--space-1);
}

.case-study__metric-label {
  font-size: var(--fs-xs);
  color: rgba(254, 252, 232, 0.5);
}

.case-study__source {
  font-size: var(--fs-xs);
  color: rgba(254, 252, 232, 0.35);
  font-style: italic;
  margin-top: var(--space-4);
}

/* ================================================================
   BADGE / TAG
   ================================================================ */
.badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.badge--accent {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
}

/* ================================================================
   PULL QUOTE
   ================================================================ */
.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS (Directional & Staggered)
   ================================================================ */
.reveal, .reveal-up, .reveal-left, .reveal-right {
  transition: all var(--duration-reveal) var(--ease-out);
  will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

/* When element gets .revealed class via JS */
.js .reveal.revealed, 
.js .reveal-up.revealed, 
.js .reveal-left.revealed, 
.js .reveal-right.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Stagger wrapper - child elements get animated */
.reveal-stagger > * {
  transform: translateY(30px);
  transition: all var(--duration-reveal) var(--ease-out);
}
.js .reveal-stagger > *.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Fallback: Ensure content is visible if JS fails or reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
.no-js .reveal, .no-js .reveal-up, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ================================================================
   INNOVATION UNIVERSE
   ================================================================ */
.innovation-universe {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--surface-white);
  padding: var(--space-20) 0;
}

.innovation-universe__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.innovation-universe .floating-logos__item {
  position: absolute;
  pointer-events: auto;
  padding: var(--space-4);
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.innovation-universe .floating-logos__item img {
  width: 36px;
  height: 36px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.innovation-universe .floating-logos__item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.innovation-universe .floating-logos__item:hover {
  background: white;
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.1);
}

/* ================================================================
   THE BLUEPRINT
   ================================================================ */
.blueprint-step {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--text-rgb), 0.05);
  transition: var(--transition-base);
}
.blueprint-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.blueprint-step__num {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.05);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  line-height: 1;
}

/* ================================================================
   3D CASE STUDIES CAROUSEL
   ================================================================ */
.cs-carousel-wrapper {
  padding: var(--space-2) 0 var(--space-8);
  background: var(--surface-cream);
  overflow: hidden;
}

.cs-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cs-carousel__track {
  position: relative;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin-bottom: var(--space-6);
}

.cs-slide {
  position: absolute;
  width: 80%;
  max-width: 900px;
  height: 420px;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, opacity, z-index;
}

/* Base Card Styles */
.cs-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: visible; /* To allow quote to overlap */
  background: var(--surface-dark);
  box-shadow: var(--shadow-xl);
}

.cs-card__bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cs-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(to right, rgba(10, 15, 25, 0.9) 0%, rgba(10, 15, 25, 0.4) 60%, rgba(10, 15, 25, 0.1) 100%);
}

.cs-card__content {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--space-10);
  width: 60%;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.cs-card__content h3 {
  font-size: var(--fs-xl);
  color: white;
  margin-bottom: var(--space-4);
  font-weight: var(--fw-bold);
}

.cs-card__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* Quote Overlap Card */
.cs-quote {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 10;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.cs-quote:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.cs-quote p {
  font-size: var(--fs-sm);
  color: var(--text-light);
  font-style: italic;
  font-weight: var(--fw-medium);
  position: relative;
  z-index: 2;
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-4) 0;
}

.cs-quote__link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.cs-quote:hover .cs-quote__link {
  color: var(--cta);
}

.cs-quote__link span {
  transition: transform 0.3s ease;
}

.cs-quote:hover .cs-quote__link span {
  transform: translateX(5px);
}

.quote-mark {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 80px;
  color: rgba(var(--primary-rgb), 0.1);
  line-height: 1;
  z-index: 1;
}

.quote-mark.left { top: -10px; left: 10px; }
.quote-mark.right { bottom: -40px; right: 10px; }

/* Slide States */
.cs-slide.active {
  transform: translateX(0) scale(1) translateZ(0);
  z-index: 10;
  opacity: 1;
}

.cs-slide.prev {
  transform: translateX(-45%) scale(0.85) translateZ(-100px);
  z-index: 5;
  opacity: 0.6;
  cursor: pointer;
}

.cs-slide.next {
  transform: translateX(45%) scale(0.85) translateZ(-100px);
  z-index: 5;
  opacity: 0.6;
  cursor: pointer;
}

.cs-slide.hidden {
  transform: translateX(0) scale(0.6) translateZ(-200px);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Dim non-active cards */
.cs-slide:not(.active) .cs-card__overlay {
  background: rgba(10, 15, 25, 0.7);
}
.cs-slide:not(.active) .cs-card__content,
.cs-slide:not(.active) .cs-quote {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.cs-slide:hover:not(.active) .cs-card__content,
.cs-slide:hover:not(.active) .cs-quote {
  opacity: 0.6;
}

/* Dots */
.cs-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.cs-carousel__dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--text-rgb), 0.1);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cs-carousel__dots .dot:hover {
  background: rgba(var(--primary-rgb), 0.4);
}

.cs-carousel__dots .dot.active {
  background: linear-gradient(135deg, var(--primary), var(--cta));
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .cs-slide {
    width: 90%;
    height: 380px;
  }
  .cs-slide.prev { transform: translateX(-15%) scale(0.9) translateZ(-100px); opacity: 0.4; }
  .cs-slide.next { transform: translateX(15%) scale(0.9) translateZ(-100px); opacity: 0.4; }
  
  .cs-card__content { width: 100%; padding: var(--space-6); }
  .cs-card__overlay { background: linear-gradient(to bottom, rgba(10, 15, 25, 0.8) 0%, rgba(10, 15, 25, 0.6) 100%); }
  
  .cs-quote { left: 5%; right: 5%; padding: var(--space-4); bottom: -30px; }
  .cs-carousel__track { height: 500px; }
}

/* ================================================================
   FOUNDER'S EDGE / BIO
   ================================================================ */
.founders-edge {
  background: var(--surface-white);
}

.tech-item {
  padding: var(--space-4) var(--space-8);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  opacity: 1 !important;
}

/* ================================================================
   PARALLAX DEPTH (Subtle)
   ================================================================ */
.parallax-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(var(--cta-rgb), 0.05) 0%, transparent 40%);
  will-change: transform;
}
/* ── Tech Stack Upgraded UI ── */
.tech-marquee {
  width: 100%;
  padding: var(--space-4) 0;
  position: relative;
  background: transparent;
}


.tech-marquee__track {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

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

.tech-marquee .tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.tech-marquee .tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tech-marquee .tech-item img,
.tech-marquee .tech-item svg {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.tech-marquee .tech-item:hover img,
.tech-marquee .tech-item:hover svg {
  filter: grayscale(0);
  opacity: 1;
  color: var(--primary);
}
/* ── PLAYBOOK STEPS (CASE STUDIES) ── */
.playbook-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: var(--space-10) 0;
}

.playbook-item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--surface-cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  transition: var(--transition-base);
}

.playbook-item:hover {
  transform: translateX(10px);
  background: white;
  box-shadow: var(--shadow-md);
}

.playbook-item__num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.2);
  line-height: 1;
}

.playbook-item__content h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
  color: var(--text-dark);
}

.playbook-item__content p {
  font-size: var(--fs-sm) !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.tech-marquee .tech-item span {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Magnet Effect Class ── */
.magnet-target {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* ── FLIP CARDS (The Four Pillars) ── */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 480px;
  perspective: 2000px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front, .flip-card__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(var(--text-rgb), 0.05);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.flip-card__front {
  background: var(--surface-white);
  color: var(--text);
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}

.flip-card__back {
  background: var(--surface-white);
  color: var(--text);
  transform: rotateY(180deg);
  text-align: left;
  justify-content: flex-start;
  box-shadow: var(--shadow-xl);
}

/* Front Decorations */
.flip-card__animation {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-10);
  pointer-events: none;
}

.code-line {
  height: 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  background-size: 200% 100%;
  opacity: 0;
  animation: codeSlide 2s ease-in-out infinite;
}

@keyframes codeSlide {
  0% { transform: translateX(-50px); opacity: 0; }
  50% { transform: translateX(0); opacity: 0.4; }
  100% { transform: translateX(50px); opacity: 0; }
}

.flip-card__icon-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card__main-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow-primary);
  transition: transform 0.5s var(--ease-spring);
}

.flip-card__main-icon svg {
  width: 36px;
  height: 36px;
}

.flip-card:hover .flip-card__main-icon {
  transform: scale(1.1) rotate(12deg);
}

/* Back Details */
.flip-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.flip-card__small-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
}

.flip-card__small-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.flip-card__features {
  list-style: none;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.flip-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.5s var(--ease-out);
}

.flip-card:hover .flip-card__feature {
  opacity: 1;
  transform: translateX(0);
}

.flip-card__feature-icon {
  width: 20px;
  height: 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.75rem;
}

.flip-card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--primary);
}

.flip-card:hover .flip-card__footer {
  color: var(--cta);
}

/* ================================================================
   BENTO GRID & BOUNCY CARDS (The Engine)
   ================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.bento-col-4 { grid-column: span 12; }
.bento-col-8 { grid-column: span 12; }

@media (min-width: 768px) {
  .bento-col-4 { grid-column: span 4; }
  .bento-col-8 { grid-column: span 8; }
}

.bouncy-card {
  position: relative;
  min-height: 225px;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 0; /* Let inner handle padding */
}

.bouncy-card__inner {
  padding: var(--space-8);
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.bouncy-card:hover .bouncy-card__inner {
  transform: scale(0.95) rotate(-1deg);
}

.bouncy-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #000;
}

.bouncy-card__subtitle {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

.bouncy-card__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.bouncy-card__logos .logo-text {
  background: rgba(var(--text-rgb), 0.05);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.bouncy-card__reveal {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  top: 96px;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transform: translateY(150%) rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  pointer-events: none; /* Let clicks pass through if needed */
  z-index: 20;
}

.bouncy-card:hover .bouncy-card__reveal {
  transform: translateY(-8px) rotate(1deg);
}
/* ================================================================
   PAGE TRANSITIONS
   ================================================================ */
/* ================================================================
   PAGE TRANSITIONS — Brand Spelling Loader
   ================================================================ */
.brand-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 11, 26, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pixel-loader__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.pixel-loader__item {
  background: linear-gradient(135deg, var(--surface-darker), var(--primary), var(--cta), white);
  background-attachment: fixed;
  border: 0.5px solid rgba(255,255,255,0.05);
  opacity: 0; /* Animated in JS */
}

.brand-loader__content {
  position: relative;
  z-index: 1;
}

.brand-loader__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  overflow: hidden;
  position: relative;
  color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.brand-loader__char {
  display: inline-block;
  transform: translateY(0%);
}

.brand-loader__char.is-active {
  color: var(--primary);
}

/* ================================================================
   PINNED CAROUSEL (Capabilities)
/* ================================================================
   STACK CARDS (Premium Light UI)
   ================================================================ */
.stack-card {
  background: var(--surface-white, #ffffff);
  border-radius: var(--radius-2xl, 24px);
  padding: var(--space-10) var(--space-8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  overflow: hidden; /* For pseudo elements */
}

/* Subtle decorative glow in the top-right corner */
.stack-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stack-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.stack-card__badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-card__icon {
  width: 56px;
  height: 56px;
  background: #FFF5D1; /* Subtle warm yellow to match screenshot */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  color: var(--primary);
}

.stack-card__icon svg {
  width: 28px;
  height: 28px;
}

.stack-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark, #1a1a2e);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.stack-card__body {
  font-size: 1.05rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.stack-card__stats {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: var(--space-8);
}

.stack-stat {
  display: flex;
  flex-direction: column;
}

.stack-stat__val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stack-stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================
   PINNED CAROUSEL (Capabilities - Split Layout)
   ================================================================ */
.carousel-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.carousel__sidebar {
  /* position: sticky removed because the parent container is pinned by GSAP */
  padding-top: var(--space-8);
}

.carousel__main {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 550px; /* Slider height + nav */
}

.carousel__slider {
  flex-grow: 1;
  position: relative;
  width: 100%;
}

.carousel__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel__item .stack-card {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: var(--shadow-xl);
}

.carousel__nav {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  z-index: 10;
}

.carousel__nav__item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel__nav__item:hover {
  background: rgba(var(--primary-rgb), 0.5);
}

.carousel__nav__item.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  border-color: rgba(255,255,255,0.8);
}

@media (max-width: 992px) {
  .carousel-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .carousel__sidebar {
    position: static;
  }
  .carousel__main {
    height: 450px;
  }
}


/* ================================================================
   CASE STUDY (DARK PREMIUM)
   ================================================================ */
.case-study-dark {
  background: #08080a;
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.big-metric {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-left: 4px solid var(--primary-light);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.big-metric:hover {
  transform: translateX(10px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow-primary);
  border-left-width: 8px;
}

.big-metric__val {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--primary-light);
  line-height: 1;
}

.big-metric__label {
  font-size: var(--fs-sm);
  opacity: 0.5;
  margin-top: 8px;
  display: block;
}

@media (max-width: 992px) {
  .case-study-dark {
    grid-template-columns: 1fr;
    padding: var(--space-8) var(--space-6);
  }
}

/* ================================================================
   HOW WE WORK - STEP BOXES (Blueprint Inspired)
   ================================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
  padding-top: var(--space-12); /* Increased for original spacing feel */
  padding-bottom: var(--space-4);
}

@media (max-width: 992px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

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

.timeline-step {
  background: var(--surface-white, #ffffff);
  border: 1px solid rgba(var(--text-rgb), 0.05);
  border-radius: var(--radius-xl, 24px);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: var(--transition-base, all 0.4s ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* For large background number */
}

.timeline-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.timeline-step__num {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl, 5rem);
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.06);
  position: absolute;
  top: var(--space-2);
  right: var(--space-4);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.timeline-step__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-dark, #1a1a2e);
  position: relative;
  z-index: 1;
}

.timeline-step__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── CTA GRADIENT & BUTTONS ── */
.cta-gradient {
  background: linear-gradient(135deg, var(--primary), var(--cta), var(--primary-dark));
  background-size: 300% 300%; 
  animation: gradientRotate 8s ease infinite;
  position: relative; 
  overflow: hidden;
}

.cta-gradient::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.cta-glow-btn {
  background: white; 
  color: var(--cta-dark); 
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full); 
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-md); 
  border: none; 
  cursor: pointer;
  transition: var(--transition-base); 
  display: inline-flex;
  align-items: center; 
  gap: var(--space-2); 
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.cta-glow-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,255,255,0.25);
  color: var(--primary-dark);
}
