/* ═══════════════════════════════════════════════════════════════════
   Varydn Marketing Website - Main Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Base Styles ─────────────────────────────────────────────────── */
body {
  background-color: #0b0f14;
  color: #e2e8f0;
}

/* Ensure text-white is truly white */
.text-white {
  color: #ffffff !important;
}

.text-muted {
  color: #64748b !important;
}

.text-subtle {
  color: #94a3b8 !important;
}

/* Ensure accent colors work */
.text-accent {
  color: #3b82f6 !important;
}

.border-accent {
  border-color: #3b82f6 !important;
}

.bg-accent {
  background-color: #3b82f6 !important;
}

.bg-card {
  background-color: #151d27 !important;
}

.bg-surface {
  background-color: #111820 !important;
}

.bg-base {
  background-color: #0b0f14 !important;
}

.shadow-accent\/20 {
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 0 4px 6px -4px rgba(59, 130, 246, 0.2) !important;
}

/* ─── Reveal Animations ───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="left"] {
  transform: translateX(-24px);
}

[data-reveal="right"] {
  transform: translateX(24px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0);
}

/* ─── Navigation ──────────────────────────────────────────────────── */
#main-nav {
  transition: background 0.3s, box-shadow 0.3s;
}

#main-nav.nav-scrolled {
  background: rgba(11, 15, 20, 0.97);
  box-shadow: 0 1px 0 #1e2d3d;
  backdrop-filter: blur(12px);
}

/* ─── Dropdown Menu ───────────────────────────────────────────────── */
#products-dropdown {
  background: rgba(17, 24, 32, 0.98) !important;
  backdrop-filter: blur(12px);
}

#products-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#products-dropdown a:hover {
  background: rgba(21, 29, 39, 0.9);
}

#products-dropdown a .text-white {
  color: #ffffff !important;
  font-weight: 500;
}

/* ─── Mobile Menu ─────────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* ─── Hero Glow Effect ────────────────────────────────────────────── */
.hero-glow {
  background: radial-gradient(
    ellipse 80% 60% at 60% 40%,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
}

/* ─── Product Cards ───────────────────────────────────────────────── */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ─── Terminal Animation ──────────────────────────────────────────── */
[data-terminal] [data-line] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ─── Step Connector ──────────────────────────────────────────────── */
.step-connector {
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

/* Workflow step gradient line */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-accent\/10 {
  --tw-gradient-from: rgba(59, 130, 246, 0.1);
  --tw-gradient-to: rgba(59, 130, 246, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-accent {
  --tw-gradient-to: rgba(59, 130, 246, 0);
  --tw-gradient-stops: var(--tw-gradient-from), #3b82f6, var(--tw-gradient-to);
}

.to-accent\/10 {
  --tw-gradient-to: rgba(59, 130, 246, 0.1);
}

/* Border colors */
.border-border {
  border-color: #1e2d3d !important;
}

/* ─── Button Styles ───────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

/* ─── Gradient Text ───────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Animated Background Gradient ────────────────────────────────── */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(270deg, #0b0f14, #0d1520, #0b1525, #0b0f14);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

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

.faq-answer.open {
  max-height: 300px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(45deg);
}

/* ─── Code Block Styling ──────────────────────────────────────────── */
.code-block {
  background: rgba(17, 24, 32, 0.6);
  border: 1px solid rgba(30, 45, 61, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.code-block-header {
  background: rgba(21, 29, 39, 0.8);
  border-bottom: 1px solid rgba(30, 45, 61, 0.5);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block-content {
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

/* ─── Feature Grid ────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-item {
  padding: 24px;
  background: #151d27;
  border: 1px solid #1e2d3d;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.feature-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(21, 29, 39, 0.8);
}

/* ─── Stats Counter ───────────────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 8px;
}

/* ─── Timeline ────────────────────────────────────────────────────── */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6, transparent);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border: 3px solid #0b0f14;
  border-radius: 50%;
}

/* ─── Utility Classes ─────────────────────────────────────────────── */
.text-balance {
  text-wrap: balance;
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #1e2d3d 20%,
    #1e2d3d 80%,
    transparent
  );
}

/* ─── Pricing Page Carousel ───────────────────────────────────────── */
#carousel-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 820px;
}

#carousel-stage .product-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 360px;
  box-sizing: border-box;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.5s ease, box-shadow 0.5s ease;
}

#carousel-next, #carousel-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(2,6,23,0.55);
}

@media (min-width: 768px) {
  #carousel-next, #carousel-prev {
    display: flex;
  }
}

#carousel-next {
  right: 16px;
}

#carousel-prev {
  left: 16px;
}

/* ─── Responsive Utilities ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-glow {
    background: radial-gradient(
      ellipse 100% 80% at 50% 40%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 70%
    );
  }
}
