/* Landing page styles - optimized for GIF-like animations */
:root {
  --primary: #ffdd00;
  --dark: #0b0b0c;
  --dark-light: #1f2937;
  --text: #e6e6e6;
  --text-muted: #9ca3af;
  --success: #16a34a;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --title-gradient: linear-gradient(135deg, #e6e6e6 0%, #ffdd00 100%);
  /* --title-gradient: linear-gradient(
    90deg,
    #ffdd00 0%,
    #f7d700 40%,
    #fff3a0 100%
  ); */
  --animation-speed: 0.8s; /* Control animation speed globally */
}

body {
  background-color: #1f2937;
  color: var(--text);
}

/* GIF-style elements */
.hero-section {
  position: relative;
  overflow: hidden;
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.5rem;
  position: relative;
}

/* .hero-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
} */

.dashboard-preview {
  position: relative;
  background: rgba(31, 41, 55, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatSlow 6s ease-in-out infinite;
  overflow: hidden;
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 221, 0, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  border-radius: 4px;
}

.chart-container {
  margin-top: 1.5rem;
  height: 60px;
  position: relative;
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: chartLine 2s ease-in-out forwards;
}

.chart-line-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.stat-box {
  display: flex;
  flex-direction: column;
  margin-right: 2rem;
}

.stat-box-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  animation: countUp 0.8s ease-out forwards;
}

.stat-box-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  margin-top: 4rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  text-align: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  align-items: center;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  text-align: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  align-items: center;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--dark);
}

.beta-form-input {
  border-color: rgba(255, 221, 0, 0.3);
  background: var(--dark);
  color: var(--text);
  /* placeholder-color: var(--text-muted);
  focus-ring: var(--primary); */
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: auto auto 2.5rem auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  line-height: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-5px) translateX(2px);
  }
  50% {
    transform: translateY(-8px) translateX(-2px);
  }
  75% {
    transform: translateY(-3px) translateX(-1px);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes shimmerEffect {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes chartLine {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0.3;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 221, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 221, 0, 0.5));
  }
}

@keyframes chartAnimation {
  0% {
    stroke-dashoffset: 1000;
  }
  40% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Custom styles that complement Tailwind */
.logo-icon {
  animation: float 3s ease-in-out infinite;
}

.dashboard-preview {
  animation: float 6s ease-in-out infinite;
}

.link-item {
  animation: pulse 2s ease-in-out infinite;
}

.hero-content h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideInLeft 1s ease;
}

.hero-content p {
  animation: slideInLeft 1s ease 0.2s both;
}

.hero-buttons {
  animation: slideInLeft 1s ease 0.4s both;
}

.hero-stats {
  animation: slideInLeft 1s ease 0.6s both;
}

.hero-visual {
  animation: slideInRight 1s ease 0.4s both;
}

/* Feature card animations */
.feature-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Custom gradients for feature cards */
.feature-card:nth-child(1)::before {
  background: var(--gradient-1);
}
.feature-card:nth-child(2)::before {
  background: var(--gradient-2);
}
.feature-card:nth-child(3)::before {
  background: var(--gradient-3);
}
.feature-card:nth-child(4)::before {
  background: var(--gradient-1);
}
.feature-card:nth-child(5)::before {
  background: var(--gradient-2);
}
.feature-card:nth-child(6)::before {
  background: var(--gradient-3);
}

.feature-card:nth-child(1) .feature-icon {
  background: var(--gradient-1);
}
.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-2);
}
.feature-card:nth-child(3) .feature-icon {
  background: var(--gradient-3);
}
.feature-card:nth-child(4) .feature-icon {
  background: var(--gradient-1);
}
.feature-card:nth-child(5) .feature-icon {
  background: var(--gradient-2);
}
.feature-card:nth-child(6) .feature-icon {
  background: var(--gradient-3);
}

/* Section animations */
.section-label {
  animation: fadeIn 1s ease;
}

.section-title {
  animation: slideInUp 1s ease 0.2s both;
}

.section-description {
  animation: slideInUp 1s ease 0.4s both;
}

.testimonial-card {
  animation: scaleIn 0.6s ease both;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}
.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.pricing-card {
  animation: scaleIn 0.6s ease both;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}
.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}
.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* GIF-style hero title gradient */
.title-gradient {
  background: linear-gradient(90deg, #ffdd00 0%, #f7d700 40%, #fff3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 221, 0, 0.15));
}

/* Dashboard card look-and-feel */
.dashboard-preview {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

/* Link item shimmer */
.link-item {
  position: relative;
  overflow: hidden;
}
.link-item.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerMove 2.4s ease-in-out infinite;
}
@keyframes shimmerMove {
  0% {
    left: -40%;
  }
  60% {
    left: 110%;
  }
  100% {
    left: 110%;
  }
}

/* Chart container */
.chart-svg {
  filter: drop-shadow(0 6px 16px rgba(255, 221, 0, 0.2));
}
.chart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: dash 6s ease-in-out infinite;
}
@keyframes dash {
  0% {
    stroke-dashoffset: 500;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -500;
  }
}

/* Hero subtle noise overlay */
.hero-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.25;
}

/* Strengthen section headers to feel like GIF */
.section-title {
  letter-spacing: -0.02em;
}
