/* custom.css — Only styles Tailwind can't handle inline */

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

/* ======================== */
/* Hero word cycle            */
/* ======================== */
.hero-word-cycle {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-word-cycle.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.hero-word-cycle.fade-word-in {
  opacity: 1;
  transform: translateY(0);
}


/* ======================== */
/* Hero CTA button           */
/* ======================== */
.hero-cta {
  background: linear-gradient(135deg, #f97316, #ea580c, #f59e0b, #f97316);
  background-size: 300% 300%;
  animation: ctaGradient 6s ease-in-out infinite;
  box-shadow:
    0 4px 20px rgba(249, 115, 22, 0.3),
    0 0 40px rgba(249, 115, 22, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 6px 28px rgba(249, 115, 22, 0.45),
    0 0 60px rgba(249, 115, 22, 0.15);
}

.hero-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 60%
  );
  animation: ctaShimmer 4s ease-in-out infinite;
}

@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ctaShimmer {
  0%, 70% { left: -60%; }
  100% { left: 120%; }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
details summary:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ======================== */
/* Keyframe Animations       */
/* ======================== */

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ======================== */
/* Comparison table          */
/* ======================== */
.comparison-table tbody tr {
  transition: background-color 0.15s ease;
}

.comparison-table tbody tr:hover {
  background-color: #f9fafb;
}


.comparison-question {
  background: rgba(245, 158, 11, 0.1);
  animation: questionPulse 2s ease-in-out infinite;
}

@keyframes questionPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.15), 0 0 8px rgba(245, 158, 11, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.08), 0 0 20px rgba(245, 158, 11, 0.15);
  }
}

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

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 2px #f59e0b, 0 0 12px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 4px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.2); }
}

@keyframes lineFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ======================== */
/* Gradient highlight text   */
/* ======================== */
.highlight {
  background: linear-gradient(90deg, #f97316, #fb923c, #f59e0b, #f97316);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

/* ======================== */
/* JS-toggled states         */
/* ======================== */

/* Header scroll shadow */
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Active nav link */
.nav-links a.active {
  color: #f97316;
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f97316;
  border-radius: 1px;
}

/* Mobile menu toggle */
.mobile-menu.active {
  display: flex;
}

/* Form success */
.form-success.visible {
  display: block;
}

/* ======================== */
/* Scroll animations         */
/* ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== */
/* Block height animation    */
/* ======================== */
.block-height {
  animation: blockPulse 3s ease-in-out infinite;
}

/* ======================== */
/* Animated rainbow border   */
/* ======================== */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.hero-badge {
  position: relative;
  z-index: 0;
  background: transparent;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: 9999px;
  background: conic-gradient(
    from var(--border-angle),
    #f97316, #ef4444, #ec4899, #8b5cf6,
    #3b82f6, #06b6d4, #10b981, #f59e0b, #f97316
  );
  animation: rotateBorder 4s linear infinite;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

/* ======================== */
/* Badge dot animation       */
/* ======================== */
.badge-dot {
  position: relative;
  animation: badgeDotGlow 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4), 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: badgeRipple 2s ease-out infinite;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  animation: badgeRipple 2s ease-out infinite 0.4s;
}

@keyframes badgeDotGlow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.4), 0 0 8px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), 0 0 16px rgba(34, 197, 94, 0.3);
  }
}

@keyframes badgeRipple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ======================== */
/* Roadmap animations        */
/* ======================== */
.roadmap-dot-now {
  animation: roadmapNowPulse 2.5s ease-in-out infinite;
  box-shadow:
    0 0 0 4px white,
    0 0 0 8px rgba(245, 158, 11, 0.2),
    0 0 20px rgba(245, 158, 11, 0.3);
}

.roadmap-dot-now::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.3);
  animation: roadmapRipple 2.5s ease-out infinite;
}

.roadmap-dot-now::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.15);
  animation: roadmapRipple 2.5s ease-out infinite 0.5s;
}

@keyframes roadmapNowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px white,
      0 0 0 8px rgba(245, 158, 11, 0.15),
      0 0 16px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 4px white,
      0 0 0 10px rgba(245, 158, 11, 0.25),
      0 0 28px rgba(245, 158, 11, 0.35);
  }
}

@keyframes roadmapRipple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ======================== */
/* Timeline animations       */
/* ======================== */
.timeline-node-now .timeline-node-dot {
  animation: dotPulse 2s ease-in-out infinite;
}

.timeline-line-fill {
  animation: lineFill 2s ease-out forwards;
  transform-origin: left;
}

/* ======================== */
/* Subscribe divider lines   */
/* ======================== */
.subscribe-divider::before,
.subscribe-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* ======================== */
/* FAQ summary markers       */
/* ======================== */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: #606060;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '-';
}

/* ======================== */
/* Share button hover states */
/* ======================== */
.share-btn-x:hover {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.share-btn-telegram:hover {
  background: #229ED9;
  color: #fff;
  border-color: #229ED9;
}

.share-btn-reddit:hover {
  background: #FF4500;
  color: #fff;
  border-color: #FF4500;
}

.share-btn-facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

/* ======================== */
/* Form input focus          */
/* ======================== */
.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* ======================== */
/* Responsive timeline       */
/* ======================== */
@media (max-width: 640px) {
  .timeline-track {
    flex-direction: column;
    gap: 0;
  }
  .timeline-line {
    width: 3px;
    height: 3rem;
    flex: 0 0 3rem;
    margin: 0;
    align-self: center;
    margin-top: 0;
  }
  .timeline-line-fill {
    background: linear-gradient(180deg, #e5e5e5, #f59e0b);
  }
  .timeline-node-dot {
    margin-top: 0.5rem;
  }
  .timeline-you-badge {
    top: auto;
    bottom: -1.8rem;
    left: 50%;
  }
}

/* ======================== */
/* Responsive form/actions   */
/* ======================== */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
  .action-cards-grid {
    grid-template-columns: 1fr !important;
    max-width: 16rem;
  }
}

/* Responsive hero stat */
@media (max-width: 640px) {
  .hero-stat {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
  .stat-divider {
    width: 3rem;
    height: 1px;
  }
}

/* ======================== */
/* Dark mode overrides       */
/* ======================== */

/* Theme toggle transition */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hero badge inner fill */
html.dark .hero-badge::after {
  background: rgba(3, 7, 18, 0.92);
}

/* Header scroll shadow */
html.dark .header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* Comparison table row hover */
html.dark .comparison-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Subscribe divider lines */
html.dark .subscribe-divider::before,
html.dark .subscribe-divider::after {
  background: #374151;
}

/* FAQ summary marker */
html.dark .faq-item summary::after {
  color: #9ca3af;
}

/* Roadmap "now" dot — dark ring */
html.dark .roadmap-dot-now {
  box-shadow:
    0 0 0 4px #030712,
    0 0 0 8px rgba(245, 158, 11, 0.2),
    0 0 20px rgba(245, 158, 11, 0.3);
}

@keyframes roadmapNowPulseDark {
  0%, 100% {
    box-shadow:
      0 0 0 4px #030712,
      0 0 0 8px rgba(245, 158, 11, 0.15),
      0 0 16px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 4px #030712,
      0 0 0 10px rgba(245, 158, 11, 0.25),
      0 0 28px rgba(245, 158, 11, 0.35);
  }
}

html.dark .roadmap-dot-now {
  animation: roadmapNowPulseDark 2.5s ease-in-out infinite;
}

/* Share button X hover — invert for dark bg */
html.dark .share-btn-x:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
