/* DataDyne Technologies - Custom Styles */
/* Matches Pulse F&B color palette: teal accent on black */

:root {
  --dd-primary: #000000;
  --dd-accent: #00b7c8;
  --dd-accent-hover: #009dab;
  --dd-green: #10b981;
  --dd-dark: #000000;
  --dd-card: #0f0f0f;
  --dd-card-border: #212121;
  --dd-gray: #757575;
  --dd-light: #f1f5f9;
  --dd-dark-teal: #112a2c;
  --dd-dark-teal-alt: #0c4247;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero gradient - animated */
.hero-gradient {
  background: linear-gradient(135deg, #000000 0%, #112a2c 30%, #0c4247 60%, #0a2e30 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 183, 200, 0.07) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Accent gradient for buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--dd-accent) 0%, #0c4247 100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 183, 200, 0.35), 0 0 60px rgba(0, 183, 200, 0.1);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  border: 2px solid var(--dd-accent);
  color: var(--dd-accent);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--dd-accent);
  color: white;
  transform: translateY(-2px);
}

/* Card hover effect - with glow border */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.card-hover::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 183, 200, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 183, 200, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 183, 200, 0.08);
}
.card-hover:hover::after {
  opacity: 1;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 40px rgba(0, 183, 200, 0.15);
}

/* Subtle dot grid background for sections */
.dot-grid {
  position: relative;
}
.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Typewriter line - prevent layout shift on mobile */
.typewriter-line {
  display: block;
  min-height: 4.5em;
}
@media (min-width: 768px) {
  .typewriter-line {
    min-height: auto;
  }
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--dd-accent);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Glow pulse for icons */
.icon-glow {
  transition: all 0.4s ease;
}
.card-hover:hover .icon-glow {
  box-shadow: 0 0 20px rgba(0, 183, 200, 0.3);
  background: rgba(0, 183, 200, 0.15);
}

/* Section divider glow line */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 183, 200, 0.3) 50%, transparent 100%);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Nav blur */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

/* Calculator input styles */
.calc-input {
  background: #151515;
  border: 1px solid #212121;
  color: white;
  transition: border-color 0.2s ease;
}
.calc-input:focus {
  border-color: var(--dd-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 183, 200, 0.2);
}

.calc-result {
  background: linear-gradient(135deg, #0f0f0f 0%, #112a2c 100%);
  border: 1px solid #212121;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Trusted shops logo strip */
.logo-strip img {
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.logo-strip img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.from-left {
  transform: translateX(-60px);
}
.scroll-reveal.from-right {
  transform: translateX(60px);
}
.scroll-reveal.from-scale {
  transform: scale(0.92);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered children */
.stagger-children .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* Parallax float effect */
.parallax-float {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Integration badge */
.integration-badge {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid #333;
  width: 200px;
  height: 80px;
  padding: 10px 16px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.integration-badge img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  filter: brightness(1.1);
  transition: filter 0.4s ease;
}
.integration-badge:hover {
  border-color: var(--dd-accent);
  box-shadow: 0 0 25px rgba(0, 183, 200, 0.12);
  transform: translateY(-3px);
}
.integration-badge:hover img {
  filter: brightness(1.3);
}

/* Infinite marquee scroll */
.marquee {
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Shop card in marquee */
.shop-marquee-card {
  flex-shrink: 0;
  width: 160px;
  height: 140px;
}
