@import url('typography.css');

:root {
  --layout-max-width: 90rem;
  --dcube-cyan: #06b6d4;
  --dcube-blue: #2563eb;
  --dcube-purple: #9333ea;
  --dcube-slate-950: #020617;
  --navbar-height: 72px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight-normal);
  color: #111827;
  padding-top: var(--navbar-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-gradient {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-brand {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  /* box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35); */
}

.btn-brand-outline {
  border: 2px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
}

.btn-brand-outline:hover {
  border-color: var(--dcube-cyan);
  color: var(--dcube-cyan);
}

.navbar-dcube {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-dcube > .container,
.navbar-dcube > .container-xl {
  max-width: 90rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Section width parity with dcube-services index (--layout-max-width: 90rem) */
.research-page main .container,
.research-page .footer-dcube > .container,
.research-page .footer-dcube > .container-xl.footer-inner,
.research-page .footer-dcube > .container.footer-inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1024px) {
  .research-page main .container,
  .research-page .footer-dcube > .container,
  .research-page .footer-dcube > .container-xl.footer-inner,
  .research-page .footer-dcube > .container.footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.research-page .res-hero-inner,
.research-page .max-w-6xl,
.research-page .max-w-7xl,
.research-page .dia-expand-inner,
.research-page .dmon-expand-inner,
.research-page #rd-products-scope .max-w-7xl {
  max-width: var(--layout-max-width) !important;
}

.navbar-desktop-wrap {
  flex: 1 1 auto;
  min-width: 0;
  gap: 1rem;
}

.navbar-dcube .navbar-brand img {
  height: 60px;
  width: auto;
}

.navbar-nav-dcube {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.navbar-dcube .nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #374151 !important;
  padding: 0.5rem 0.25rem !important;
  position: relative;
  white-space: nowrap;
  display: inline-block;
  border: none;
  background: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease, background 0.25s ease;
}

/* Nav underline removed — hover uses gradient text only */
.navbar-dcube .nav-link::after {
  display: none;
}

.navbar-dcube .nav-link:hover {
  color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* transform: translateY(-2px); */
  box-shadow: none;
}

.navbar-dcube .nav-link.active {
  color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
}

.navbar-dcube .nav-link.highlight {
  color: #0e7490 !important;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.navbar-dcube .nav-link.highlight::before {
  content: '';
  position: absolute;
  inset: -0.5rem -0.75rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 9999px;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.navbar-dcube .nav-link.highlight:hover::before,
.navbar-dcube .nav-link.highlight:focus-visible::before {
  background: transparent;
  border-color: transparent;
  opacity: 0;
  box-shadow: none;
}

.navbar-dcube .nav-link:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.45);
  outline-offset: 3px;
}

.navbar-dcube .nav-link.highlight:hover {
  color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Mobile: hide desktop row inside collapse (prevents duplicate menu) */
@media (max-width: 991.98px) {
  .navbar-dcube .navbar-nav.navbar-nav-dcube,
  .navbar-dcube .navbar-actions {
    display: none !important;
  }

  .navbar-dcube .navbar-collapse.show,
  .navbar-dcube .navbar-collapse.collapsing {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(229, 231, 235, 0.85);
    margin-top: 0.35rem;
  }

  .navbar-dcube .navbar-collapse:not(.show):not(.collapsing) .navbar-mobile-menu {
    display: none !important;
  }

  .navbar-dcube .navbar-collapse.show .navbar-mobile-menu,
  .navbar-dcube .navbar-collapse.collapsing .navbar-mobile-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Legacy Bootstrap mobile buttons — flat text style like React */
  .navbar-dcube .navbar-collapse .btn-light {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #374151;
    padding: 0.25rem 0;
  }

  .navbar-dcube .navbar-collapse .btn-light:hover {
    color: #06b6d4;
    transform: translateX(0.625rem);
  }
}

/* Mobile menu — React Header.tsx flex-col gap-4 */
.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0 1.25rem 1rem;
}

.navbar-mobile-menu:has(.navbar-mobile-link) {
  padding-bottom: 2rem;
}

.navbar-mobile-menu:not(:has(.navbar-mobile-link)) {
  padding-bottom: 0.75rem;
  gap: 0;
}

.navbar-mobile-link {
  display: block;
  width: 100%;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.navbar-mobile-link:hover,
.navbar-mobile-link:focus-visible {
  color: #06b6d4;
  transform: translateX(0.625rem);
}

.navbar-mobile-link.active {
  color: #06b6d4;
}

.navbar-mobile-link.highlight {
  color: #0e7490;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.navbar-mobile-link.highlight:hover,
.navbar-mobile-link.highlight:focus-visible {
  color: transparent;
  background: transparent;
  border-color: transparent;
  background-image: linear-gradient(90deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(0.625rem);
  box-shadow: none;
}

.navbar-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  padding: 0.25rem 0 0.5rem;
  margin-top: 0;
}

.navbar-mobile-actions .phone-pill,
.navbar-mobile-actions .navbar-mobile-phone {
  display: inline-flex !important;
  flex: 0 1 auto;
  margin: 0;
}

.navbar-mobile-actions .btn-connect {
  flex: 0 1 auto;
  width: auto !important;
  max-width: 100%;
  margin: 0;
  padding: 0.5625rem 1.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .navbar-mobile-menu {
    display: none !important;
  }
}

.navbar-dcube .navbar-toggler {
  color: #0891b2;
  padding: 0.35rem;
  transition: transform 0.2s ease;
}

.navbar-dcube .navbar-toggler:hover {
  transform: scale(1.08);
}

.navbar-dcube .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-actions {
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar-dcube .btn-brand.btn-connect {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.navbar-dcube .btn-brand.btn-connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: navBtnShimmer 2s linear infinite;
  pointer-events: none;
}

@keyframes navBtnShimmer {
  to { transform: translateX(100%); }
}

.navbar-dcube .btn-brand.btn-connect:hover,
.navbar-dcube .btn-brand.btn-connect:focus-visible {
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  /* box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35), 0 20px 40px rgba(6, 182, 212, 0.2) !important; */
}

.navbar-dcube .btn-brand.btn-connect > * {
  position: relative;
  z-index: 1;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(90deg, #f9fafb, #f3f4f6);
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-pill:hover,
.phone-pill:focus-visible {
  border-color: #22d3ee;
  transform: scale(1.05);
  color: #374151;
}

.phone-pill .icon-lucide {
  width: 1rem;
  height: 1rem;
  color: #0891b2;
  flex-shrink: 0;
}

/* Lucide icons (match React lucide-react) */
.icon-lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-box .icon-lucide {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-inline-sm {
  width: 1rem;
  height: 1rem;
}

.icon-contact {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-btn.icon-lucide,
.icon-btn .icon-lucide {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-social {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-btn-inline {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-play {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 2px;
}

.icon-fab-close {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-check-inline {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-pin-inline {
  width: 1rem;
  height: 1rem;
  color: var(--dcube-cyan);
}

.footer-contact-icon .icon-lucide {
  color: #fff;
}

.social-link .icon-lucide {
  color: inherit;
}

.phone-pill {
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.phone-pill:hover {
  color: var(--dcube-cyan);
  border-color: var(--dcube-cyan);
  transform: scale(1.05);
}

.navbar-dcube .navbar-brand {
  transition: transform 0.2s ease;
}

/* .navbar-dcube .navbar-brand:hover {
  transform: scale(1.05);
} */

/* hero-section base moved to home.css */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  border: 1px solid #a5f3fc;
  border-radius: 9999px;
  color: #0891b2;
  font-size: 0.875rem;
}

.icon-sparkles {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #0891b2;
  display: block;
}

.icon-box-sm .icon-sparkles {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1rem;
  background: #0891b2;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* hero carousel — see home.css */

.hero-carousel .hero-deco {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
}

.card-split {
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-split:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  color: inherit;
}

.card-split.cyan {
  border-color: #a5f3fc;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.5), #fff);
}

.card-split.purple {
  border-color: #e9d5ff;
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.5), #fff);
}

.section-vision {
  background: linear-gradient(135deg, #f8fafc, rgba(236, 254, 255, 0.3));
}

.section-dark {
  background: linear-gradient(135deg, #020617, #0f172a, #020617);
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.65));
}

.page-hero .content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: #fff;
}

.badge-hero {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 9999px;
  color: #67e8f9;
  margin-bottom: 1.5rem;
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--dcube-cyan), var(--dcube-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card {
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  height: 100%;
}

.service-card:hover {
  border-color: #67e8f9;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
}

.process-step .num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dcube-cyan), var(--dcube-blue));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.location-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Scroll reveal (matches React motion whileInView) */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade,
.reveal-on-load {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.7s;
  transition-property: opacity, transform;
  will-change: opacity, transform;
}

.reveal,
.reveal-on-load.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left,
.reveal-on-load.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right,
.reveal-on-load.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}

.reveal-fade {
  opacity: 0;
  transform: none;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-fade.visible,
.reveal-on-load.visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > [class*='col-'] {
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade,
  .reveal-on-load {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Footer (matches React Footer.tsx) ── */
.footer-dcube {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 50%, #fff 100%);
}

.footer-dcube .footer-gradient-bar {
  height: 1px;
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue), var(--dcube-purple));
}

.footer-dcube .footer-gradient-bar-bottom {
  height: 1px;
}

.footer-dcube .footer-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-dcube .logo-footer {
  max-height: 10rem;
  width: auto;
}

.footer-dcube .footer-tagline {
  color: #4b5563;
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.footer-newsletter {
  display: none !important;
}

.footer-newsletter.is-visible {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  border: 1px solid #a5f3fc;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
  .footer-dcube .footer-social-wrap {
    display: none !important;
  }
}

/* Resources footer column — hidden for now; remove this rule to restore */
.footer-col-resources {
  display: none !important;
}

.footer-dcube .footer-contact-row {
  display: none !important;
}

.footer-newsletter-title {
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer-newsletter-desc {
  color: #4b5563;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.footer-newsletter-form {
  position: relative;
}

.footer-email-input {
  width: 100%;
  padding: 0.75rem 3.25rem 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
}

.footer-email-input:focus {
  border-color: var(--dcube-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.footer-newsletter-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.footer-newsletter-btn:hover {
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.footer-social-title {
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-dcube .social-link {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #374151;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-dcube .social-link:hover {
  background: var(--dcube-blue);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer-col-title {
  position: relative;
  display: inline-block;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-col-title a {
  color: inherit;
  text-decoration: none;
}

.footer-col-title a:hover {
  color: var(--dcube-cyan);
}

.footer-col-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links-grid .visible .footer-col-underline {
  width: 100%;
}

@media (min-width: 992px) {
  .footer-links-grid-4 > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Footer responsiveness */
@media (max-width: 991.98px) {
  .footer-dcube .footer-inner {
    padding-top: 3rem;
    padding-bottom: 1.75rem;
  }
}

/* 768–991: enough room for 4 columns */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer-links-grid-4 > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* <768: show 2 columns per row */
@media (max-width: 767.98px) {
  .footer-links-grid-4 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .footer-links-grid-4 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #4b5563;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--dcube-cyan);
}

.footer-news-events,
.footer-dcube .footer-links li:has(a[href*="news-events"]) {
  display: none !important;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.footer-contact-card:hover {
  border-color: var(--dcube-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
  color: inherit;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.footer-contact-icon-cyan {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.footer-contact-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
}

.footer-contact-icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-contact-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-contact-value {
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.footer-contact-card:hover .footer-contact-value {
  color: var(--dcube-cyan);
}

/* Contact cards + copyright bar: always visible (scroll-reveal misses page bottom) */
.footer-dcube .footer-contact-row > [class*='col-'],
.footer-dcube .footer-bottom {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  border-top: 2px solid #e5e7eb;
  text-align: center;
}

.footer-copyright {
  color: #4b5563;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

.footer-legal-nav {
  display: none !important;
}

@media (min-width: 768px) {
  .footer-legal-nav {
    justify-content: flex-end;
  }
}

.footer-legal-nav a {
  color: #4b5563;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-nav a:hover {
  color: var(--dcube-cyan);
}

.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
}

#chatbot-toggle {
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0;
  transition: transform 0.2s, background 0.25s;
  position: relative;
  background: transparent;
}

.chatbot-fab-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.chatbot-fab-icon--open img {
  animation: chatbotImgFloat 3s ease-in-out infinite;
}

.chatbot-eye-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0f2fe, #22d3ee 55%, #0891b2);
  box-shadow: 0 0 5px rgba(34, 211, 238, 0.9);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, 0);
}

/* Bubbles originate at robot eye level, rise only inside the circle */
.chatbot-eye-bubble-1 {
  width: 5px;
  height: 5px;
  left: 38%;
  top: 36%;
  animation: chatbotEyeBubble 2.2s ease-out infinite;
}

.chatbot-eye-bubble-2 {
  width: 9px;
  height: 9px;
  left: 58%;
  top: 32%;
  animation: chatbotEyeBubble 2.6s ease-out infinite;
  animation-delay: 0.5s;
}

.chatbot-eye-bubble-3 {
  width: 4px;
  height: 4px;
  left: 48%;
  top: 34%;
  animation: chatbotEyeBubble 2s ease-out infinite;
  animation-delay: 1s;
}

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

@keyframes chatbotEyeBubble {
  0% {
    transform: translate(-50%, 0) scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -2px) scale(0.7);
  }
  70% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -14px) scale(1);
    opacity: 0;
  }
}

#chatbot-toggle.is-open .chatbot-eye-bubble {
  animation: none;
  opacity: 0;
}

#chatbot-toggle.is-open .chatbot-fab-icon--open img {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-fab-icon--open img,
  .chatbot-eye-bubble {
    animation: none !important;
  }
}

#chatbot-toggle:hover {
  transform: scale(1.05);
}

#chatbot-toggle.is-open {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.45);
}

.chatbot-fab-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

.chatbot-fab-icon--close {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

#chatbot-toggle.is-open .chatbot-fab-icon--open {
  opacity: 0;
  transform: scale(0.8);
}

#chatbot-toggle.is-open .chatbot-fab-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

#chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#chatbot-window {
  position: absolute;
  bottom: 5.5rem;
  right: 0;
  width: 24rem;
  max-width: calc(100vw - 2rem);
  height: 37.5rem;
  max-height: calc(100vh - 9rem);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  background: #fff;
}

#chatbot-window .chat-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  color: #fff;
  padding: 1.5rem;
}

.chat-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
  animation: chatPatternSlide 8s linear infinite;
  pointer-events: none;
}

@keyframes chatPatternSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

.chat-header-inner {
  position: relative;
  z-index: 1;
}

.chat-header-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: chatHeaderAvatarPulse 2s ease-in-out infinite;
}

.chat-header-avatar .icon-bot {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  animation: chatHeaderIconWiggle 3s ease-in-out infinite;
}

@keyframes chatHeaderAvatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes chatHeaderIconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
  font-size: 0.875rem;
}

.chat-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  animation: chatStatusPulse 1.5s ease-in-out infinite;
}

@keyframes chatStatusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #f9fafb;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-bubble.bot {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.chat-bubble.user {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  color: #fff;
  margin-left: auto;
}

.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar-bot {
  background: linear-gradient(135deg, var(--dcube-cyan), var(--dcube-blue));
}

.chat-avatar-user {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.chat-avatar .icon-bot,
.chat-avatar .icon-user {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

/* Chat footer — match React (separate rounded input + send button) */
.chat-footer {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.chat-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.chat-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  background: #fff;
}

.chat-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-footer-note {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.research-ticker-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.research-ticker {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

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

.product-card-dia {
  background: linear-gradient(135deg, var(--dcube-cyan), var(--dcube-blue));
  border-radius: 1.5rem;
  padding: 2rem;
  color: #fff;
  height: 100%;
}

.product-card-dmon {
  background: linear-gradient(135deg, #6366f1, var(--dcube-purple));
  border-radius: 1.5rem;
  padding: 2rem;
  color: #fff;
  height: 100%;
}

.industry-card,
.tech-card,
.value-card,
.innovation-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.industry-card:hover,
.tech-card:hover {
  border-color: #67e8f9;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.1);
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin: 0.15rem;
}

.tech-card {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  border-color: #a5f3fc;
}

.blog-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-filter.active {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.leader-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow 0.2s;
}

.leader-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.leader-card .photo {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.leader-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.innovation-card {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(6, 182, 212, 0.2);
  color: #e2e8f0;
}

.innovation-card .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(6, 182, 212, 0.35);
  line-height: 1;
}

.cta-banner {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue));
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: #fff;
  text-align: center;
}

.services-tab.active {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.careers-tab.active {
  background: linear-gradient(90deg, var(--dcube-cyan), var(--dcube-blue)) !important;
  color: #fff !important;
}

.fade-page {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive: buttons, nav, heroes, shared layout ─── */

@media (max-width: 767.98px) {
  :root {
    --navbar-height: 64px;
  }

  .btn-brand,
  .btn-brand-outline {
    font-size: 0.875rem;
    padding: 0.5625rem 1.25rem;
  }

  .navbar-dcube .btn-brand.btn-connect,
  .navbar-mobile-menu .btn-connect {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .phone-pill {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  .navbar-dcube .navbar-brand img {
    height: 44px;
  }

  .page-hero {
    min-height: 22rem;
  }

  .page-hero .content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .display-5 {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
  }

  .btn-lg {
    font-size: 0.9375rem !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 9999px !important;
  }

  .cta-banner {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .cta-banner h2,
  .cta-banner h3,
  .cta-banner .fw-bold {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem) !important;
    line-height: 1.3;
  }

  .cta-banner p {
    font-size: 0.9375rem;
  }

  .cta-banner .btn,
  .cta-banner .btn-lg {
    font-size: 0.875rem !important;
    padding: 0.5625rem 1.25rem !important;
  }

  .service-card {
    padding: 1.25rem;
  }

  .process-step .num {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9375rem;
  }

  .icon-box {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }

  .footer-contact-card {
    padding: 1rem;
  }

  .footer-contact-value {
    font-size: 0.9375rem;
  }

  .footer-newsletter-form .footer-email-input {
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .btn-brand,
  .btn-brand-outline {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .navbar-dcube .btn-brand.btn-connect,
  .navbar-mobile-menu .btn-connect {
    font-size: 0.8125rem;
    padding: 0.5625rem 1rem;
  }

  .page-hero {
    min-height: 18rem;
  }
}
