/**
 * DigiCompany Futuristic UI Layer
 * Professional enterprise aesthetic with subtle motion & glass effects
 */

:root {
  --dc-future-navy: #061428;
  --dc-future-deep: #0a1f3d;
  --dc-future-glow: rgba(32, 157, 92, 0.45);
  --dc-future-blue-glow: rgba(79, 172, 254, 0.35);
  --dc-glass: rgba(255, 255, 255, 0.06);
  --dc-glass-border: rgba(255, 255, 255, 0.12);
}

.dc-future-site {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.dc-future-site h1,
.dc-future-site h2,
.dc-future-site h3,
.dc-future-site .dc-section-title {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

/* ─── Page load fade ─── */
.dc-future-site .site-main {
  animation: dc-page-in 0.6s ease-out;
}

@keyframes dc-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Futuristic hero ─── */
.dc-hero--future {
  position: relative;
  background: linear-gradient(135deg, var(--dc-future-navy) 0%, var(--dc-future-deep) 45%, #0c418e 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.dc-hero--future::before,
.dc-hero--future::after {
  display: none;
}

.dc-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dc-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.dc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: dc-orb-float 12s ease-in-out infinite;
}

.dc-orb--1 {
  width: 420px;
  height: 420px;
  background: var(--dc-green);
  top: -10%;
  right: 5%;
  animation-delay: 0s;
}

.dc-orb--2 {
  width: 320px;
  height: 320px;
  background: #4facfe;
  bottom: -5%;
  left: -5%;
  animation-delay: -4s;
}

.dc-orb--3 {
  width: 200px;
  height: 200px;
  background: #209d5c;
  top: 40%;
  left: 35%;
  opacity: 0.25;
  animation-delay: -7s;
}

@keyframes dc-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.dc-hero--future .dc-hero-content {
  position: relative;
  z-index: 2;
}

.dc-hero--future .dc-eyebrow {
  color: #7dffb0;
  background: rgba(32, 157, 92, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(32, 157, 92, 0.3);
}

.dc-hero--future h1 {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

.dc-hero--future .dc-hero-lead {
  color: rgba(255, 255, 255, 0.78);
}

.dc-hero--future .dc-hero-benefits li {
  color: rgba(255, 255, 255, 0.9);
}

.dc-gradient-text {
  background: linear-gradient(90deg, #7dffb0, #4facfe, #209d5c, #7dffb0);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dc-shimmer 5s linear infinite;
}

@keyframes dc-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.dc-hero--future .dc-btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff !important;
}

.dc-hero--future .dc-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff !important;
}

.dc-hero--future .dc-btn-primary {
  box-shadow: 0 0 30px var(--dc-future-glow);
  position: relative;
  overflow: hidden;
}

.dc-hero--future .dc-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: dc-btn-shine 3s ease-in-out infinite;
}

@keyframes dc-btn-shine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* Dashboard showcase */
.dc-hero-showcase {
  position: relative;
  z-index: 2;
}

.dc-showcase-ring {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(32, 157, 92, 0.3);
  border-radius: 24px;
  animation: dc-ring-pulse 3s ease-in-out infinite;
}

.dc-showcase-ring--2 {
  inset: -4%;
  border-color: rgba(79, 172, 254, 0.2);
  animation-delay: -1.5s;
}

@keyframes dc-ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.dc-showcase-frame {
  position: relative;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dc-glass-border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow:
    0 0 60px rgba(32, 157, 92, 0.15),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

.dc-showcase-frame img {
  width: 100%;
  border-radius: 12px;
  display: block;
  animation: dc-float 6s ease-in-out infinite;
}

.dc-showcase-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.dc-mini-stat {
  flex: 1;
  min-width: 100px;
  background: var(--dc-glass);
  border: 1px solid var(--dc-glass-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.dc-mini-stat strong {
  display: block;
  font-size: 1.25rem;
  color: #7dffb0;
  font-weight: 700;
}

.dc-mini-stat span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dc-hero-badge {
  background: rgba(6, 20, 40, 0.85) !important;
  border: 1px solid var(--dc-glass-border);
  backdrop-filter: blur(10px);
  color: #fff !important;
}

.dc-hero-badge i {
  color: #7dffb0 !important;
}

/* Trust ticker under hero */
.dc-trust-ticker {
  background: rgba(6, 20, 40, 0.95);
  border-top: 1px solid var(--dc-glass-border);
  border-bottom: 1px solid var(--dc-glass-border);
  padding: 0.85rem 0;
  overflow: hidden;
}

.dc-trust-ticker-track {
  display: flex;
  gap: 3rem;
  animation: dc-ticker 30s linear infinite;
  width: max-content;
}

.dc-trust-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.dc-trust-ticker-track i {
  color: var(--dc-green);
}

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

/* Glass navbar on scroll */
.dc-navbar.dc-navbar--glass {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 65, 142, 0.08);
}

.dc-navbar.dc-navbar--glass.scrolled {
  box-shadow: 0 4px 30px rgba(12, 65, 142, 0.12);
}

/* Glass cards upgrade */
.dc-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-glass-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(12, 65, 142, 0.12),
    0 0 0 1px rgba(32, 157, 92, 0.2);
}

.dc-product-card.dc-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(32,157,92,0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.dc-product-card {
  position: relative;
  overflow: hidden;
}

.dc-product-card:hover::before {
  opacity: 1;
}

/* Compliance section glow cards */
.dc-compliance-card {
  transition: all 0.4s ease;
}

.dc-compliance-card:hover {
  box-shadow: 0 0 40px rgba(32, 157, 92, 0.2);
}

.dc-compliance-card-icon {
  box-shadow: 0 0 20px var(--dc-future-glow);
}

/* Stats bar futuristic */
.dc-stats-bar {
  position: relative;
  overflow: hidden;
}

.dc-stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: dc-stats-shine 4s ease-in-out infinite;
}

@keyframes dc-stats-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.dc-stat-number {
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

/* Client marquee */
.dc-client-marquee {
  padding: 2.5rem 0;
  background: #fff;
  border-top: 1px solid var(--dc-gray-200);
  border-bottom: 1px solid var(--dc-gray-200);
  overflow: hidden;
}

.dc-marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dc-gray-400);
  margin-bottom: 1.5rem;
}

.dc-marquee-track {
  display: flex;
  width: max-content;
  animation: dc-marquee 40s linear infinite;
}

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

.dc-marquee-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}

.dc-marquee-group img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.dc-marquee-group img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

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

/* Pre-footer CTA */
.dc-cta-banner {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dc-future-navy), var(--dc-blue));
  overflow: hidden;
  text-align: center;
}

.dc-cta-banner .dc-orb--1 {
  width: 300px;
  height: 300px;
  top: -20%;
  right: 10%;
}

.dc-cta-banner .dc-orb--2 {
  width: 250px;
  height: 250px;
  bottom: -30%;
  left: 5%;
}

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

.dc-cta-banner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.dc-cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.dc-cta-banner .dc-btn-primary {
  box-shadow: 0 0 40px var(--dc-future-glow);
}

/* AI panel upgrade */
.dc-ai-panel {
  position: relative;
  overflow: hidden;
}

.dc-ai-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.08), transparent 30%);
  animation: dc-ai-rotate 8s linear infinite;
}

@keyframes dc-ai-rotate {
  100% { transform: rotate(360deg); }
}

.dc-ai-panel > * {
  position: relative;
  z-index: 1;
}

/* Comparison cards hover glow */
.dc-comparison-card--after {
  transition: box-shadow 0.4s ease;
}

.dc-comparison-card--after:hover {
  box-shadow: 0 0 30px rgba(32, 157, 92, 0.2);
}

/* Mobile popup — less intrusive */
.mobile-app-popup {
  background: rgba(6, 20, 40, 0.95) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--dc-glass-border) !important;
  border-radius: 16px !important;
  max-width: 340px;
  animation: dc-popup-in 0.5s ease-out;
}

@keyframes dc-popup-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-app-popup .promo-text h4 {
  color: #fff;
}

.mobile-app-popup .promo-text p {
  color: rgba(255,255,255,0.7);
}

.mobile-app-popup .promo-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-app-popup .promo-image img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  mix-blend-mode: screen;
}

/* Inner page heroes get subtle grid */
.dc-hero:not(.dc-hero--future) {
  position: relative;
  overflow: hidden;
}

.dc-hero:not(.dc-hero--future)::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12,65,142,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,65,142,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Stagger animation helper */
.dc-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dc-stagger.dc-stagger-visible > *:nth-child(1) { transition-delay: 0.05s; }
.dc-stagger.dc-stagger-visible > *:nth-child(2) { transition-delay: 0.1s; }
.dc-stagger.dc-stagger-visible > *:nth-child(3) { transition-delay: 0.15s; }
.dc-stagger.dc-stagger-visible > *:nth-child(4) { transition-delay: 0.2s; }
.dc-stagger.dc-stagger-visible > *:nth-child(5) { transition-delay: 0.25s; }
.dc-stagger.dc-stagger-visible > *:nth-child(6) { transition-delay: 0.3s; }
.dc-stagger.dc-stagger-visible > *:nth-child(7) { transition-delay: 0.35s; }
.dc-stagger.dc-stagger-visible > *:nth-child(8) { transition-delay: 0.4s; }
.dc-stagger.dc-stagger-visible > *:nth-child(9) { transition-delay: 0.45s; }

.dc-stagger.dc-stagger-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Footer glow accent */
.dc-footer {
  position: relative;
}

.dc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dc-green), #4facfe, var(--dc-blue), var(--dc-green));
  background-size: 200% auto;
  animation: dc-shimmer 6s linear infinite;
}

/* Inner page compact hero */
.dc-hero--future.dc-hero--compact {
  min-height: auto;
  padding: 3.5rem 0 4rem;
}

.dc-hero--future.dc-hero--compact .dc-orb--1 {
  width: 280px;
  height: 280px;
}

.dc-hero--future.dc-hero--compact .dc-orb--2 {
  width: 200px;
  height: 200px;
}

.dc-hero--future.dc-hero--compact .dc-showcase-frame {
  max-width: 480px;
  margin-left: auto;
}

/* Video section glass frame */
.dc-video-wrapper,
.intro-video-wrapper.dc-video-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(12, 65, 142, 0.1);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 20px 50px rgba(12, 65, 142, 0.12);
}

.dc-video-wrapper video,
.intro-video-wrapper.dc-video-wrapper video {
  border-radius: 12px;
  width: 100%;
  display: block;
}

/* Law cards glass hover */
.dc-law-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dc-law-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(12, 65, 142, 0.12);
}

/* Value prop icons glow */
.dc-value-prop-icon {
  box-shadow: 0 0 24px rgba(32, 157, 92, 0.25);
}

/* FAQ items subtle glass */
.dc-faq-item {
  backdrop-filter: blur(8px);
}

/* Split image polish */
.dc-split-image img {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 65, 142, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dc-trust-ticker-track,
  .dc-marquee-track {
    animation: none;
  }
}

@media (max-width: 991px) {
  .dc-hero--future {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .dc-showcase-stats {
    justify-content: center;
  }

  .dc-mini-stat {
    min-width: 90px;
  }
}

@media (max-width: 767px) {
  .dc-hero--future h1 {
    font-size: 1.85rem;
  }

  .dc-hero-showcase {
    margin-top: 2.5rem;
  }

  .dc-cta-banner {
    padding: 3.5rem 1rem;
  }
}
