/* SPDX-License-Identifier: Apache-2.0 */
/* ===========================================================
   Veirox — Marketing Site Styles
   Complements Tailwind with custom gradients, animations, and
   effects that are tedious to express as utility classes.
   =========================================================== */

:root {
  --bg-0: #0a0b10;
  --bg-1: #14161f;
  --bg-2: #1a1d27;
  --border-0: #1c1f2a;
  --border-1: #252836;
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --brand-1: #c9a961;
  --brand-2: #e8c547;
  --brand-3: #b8902f;
  --accent: #06b6d4;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Prevent horizontal scroll from decorative absolute elements */
body { overflow-x: hidden; }

/* ---------- Gradient text ---------- */
.grad-text {
  background: linear-gradient(135deg, #e8c547 0%, #f5d75b 45%, #b8902f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animated hero background ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(99, 102, 241, 0.12) 30%,
    transparent 60%);
  filter: blur(40px);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Section wash ---------- */
.section-wash {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(20, 22, 31, 0.4) 100%);
}

/* ---------- Card hover ---------- */
.card {
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.7) 0%, rgba(20, 22, 31, 0.7) 100%);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 60px -20px rgba(139, 92, 246, 0.25);
}

/* ---------- Glow button ---------- */
.btn-primary {
  background: linear-gradient(135deg, #c9a961 0%, #e8c547 50%, #b8902f 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -12px rgba(139, 92, 246, 0.65), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
  border: 1px solid var(--border-1);
  background: rgba(26, 29, 39, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.08);
}

/* ---------- Terminal mockup ---------- */
.terminal {
  background: linear-gradient(180deg, #14161f 0%, #0f1117 100%);
  border: 1px solid #252836;
  border-radius: 14px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(139, 92, 246, 0.15),
    0 0 60px -10px rgba(139, 92, 246, 0.2);
  overflow: hidden;
}
.terminal-header {
  background: #0c0e15;
  border-bottom: 1px solid #252836;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
}
.log-line { opacity: 0; animation: fadeLine 0.4s ease forwards; }
.log-line.l1 { animation-delay: 0.2s; }
.log-line.l2 { animation-delay: 0.9s; }
.log-line.l3 { animation-delay: 1.6s; }
.log-line.l4 { animation-delay: 2.3s; }
.log-line.l5 { animation-delay: 3.0s; }
.log-line.l6 { animation-delay: 3.7s; }
.log-line.l7 { animation-delay: 4.4s; }
.log-line.l8 { animation-delay: 5.1s; }
.log-line.l9 { animation-delay: 5.8s; }

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

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #e8c547;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Pulse dot (for "live" indicators) ---------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Marquee (integrations strip) ---------- */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Solution card icon bg ---------- */
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(217, 70, 239, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fdfaf2;
}

/* ---------- Tab styling for feature catalog ---------- */
.feature-tab {
  padding: 10px 16px;
  border-radius: 10px;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.feature-tab:hover { color: #e2e8f0; background: rgba(26, 29, 39, 0.5); }
.feature-tab[aria-selected="true"] {
  color: #f1f5f9;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.14));
  border-color: rgba(139, 92, 246, 0.45);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer gradient divider ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45), transparent);
}

/* ---------- Mobile menu ---------- */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobileMenu.open { max-height: 500px; }

/* ---------- Selection color ---------- */
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0b10; }
::-webkit-scrollbar-thumb { background: #252836; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #363a4a; }
