/* OverShoulder Landing Page — Aura-inspired Design System */

/* ─── Hero Beam (UnicornStudio) ─── */
.hero-beam-us {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Dissolve edges: left/right 22%, bottom heavy fade — hides watermark */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 50%, transparent 88%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 50%, transparent 88%);
  mask-composite: intersect;
}

@media (max-width: 768px) {
  .hero-beam-us {
    height: 600px;
  }
}

:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --accent-purple: #8B5CF6;
  --accent-indigo: #6366F1;
  --accent-cyan: #06b6d4;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.45);
  --text-muted: rgba(255, 255, 255, 0.2);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.12);
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
body.loading { opacity: 0; }
body.loaded { opacity: 1; transition: opacity 0.5s ease; }

/* ─── Particle Canvas ─── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

/* ─── Aurora Orbs ─── */
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}
.aurora-purple {
  background: rgba(139, 92, 246, 0.55);
  animation: floatOrb 10s ease-in-out infinite alternate;
}
.aurora-blue {
  background: rgba(99, 102, 241, 0.4);
  animation: floatOrb 13s ease-in-out infinite alternate-reverse;
}
.aurora-pink {
  background: rgba(168, 85, 247, 0.3);
  animation: floatOrb 16s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-60px) scale(1.2); }
}

/* ─── Hero Section Background ─── */
.hero-section-bg {
  background:
    radial-gradient(ellipse 800px 600px at 10% 55%, rgba(139, 92, 246, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 700px 550px at 90% 40%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 50% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 65%);
  animation: heroBgPulse 10s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
  0% {
    background:
      radial-gradient(ellipse 800px 600px at 10% 55%, rgba(139, 92, 246, 0.45) 0%, transparent 60%),
      radial-gradient(ellipse 700px 550px at 90% 40%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
      radial-gradient(ellipse 500px 400px at 50% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 65%);
  }
  100% {
    background:
      radial-gradient(ellipse 1000px 700px at 15% 60%, rgba(139, 92, 246, 0.55) 0%, transparent 60%),
      radial-gradient(ellipse 800px 650px at 85% 45%, rgba(99, 102, 241, 0.45) 0%, transparent 60%),
      radial-gradient(ellipse 600px 500px at 48% 90%, rgba(168, 85, 247, 0.28) 0%, transparent 65%);
  }
}


/* ─── Voice Wave Animation ─── */
@keyframes voiceWave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ─── Scroll Reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }

/* ─── Pro Card Glow ─── */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.15), inset 0 0 25px rgba(139, 92, 246, 0.03); }
  50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.3), inset 0 0 35px rgba(139, 92, 246, 0.06); }
}
.pro-glow {
  animation: borderGlow 4s ease-in-out infinite;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Nav ─── */
.nav-scrolled {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* ─── Comparison Table ─── */
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
.compare-table .highlight-col {
  background: rgba(139, 92, 246, 0.06);
  border-left: 1px solid rgba(139, 92, 246, 0.15);
  border-right: 1px solid rgba(139, 92, 246, 0.15);
}
.compare-table .highlight-col-header {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple) !important;
  border-left: 1px solid rgba(139, 92, 246, 0.2);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  border-top: 2px solid var(--accent-purple);
  border-radius: 8px 8px 0 0;
}

/* ─── Use Case Tabs ─── */
.tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  font-weight: 500;
}
.tab-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.tab-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.6);
}
.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* ─── Roadmap Timeline ─── */
.roadmap-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.3), transparent);
  transform: translateY(-50%);
}
@media (max-width: 768px) {
  .roadmap-line {
    top: 0; bottom: 0;
    left: 24px; right: auto;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.3), transparent);
    transform: none;
  }
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: var(--border-glass-hover); }
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}
.faq-header svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.2);
}
.faq-item.open .faq-header svg { transform: rotate(180deg); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-body {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ─── Badge ─── */
.badge-popular {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-coming {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.04em;
}

/* ─── CTA Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: white;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Check / Cross ─── */
.check { color: #34d399; }
.cross { color: rgba(255, 255, 255, 0.15); }
.partial { color: rgba(255, 200, 100, 0.5); }

/* ─── Use Cases (Nova alternating rows) ─── */
.usecase-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.usecase-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.usecase-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.usecase-screen:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 60px -15px rgba(139, 92, 246, 0.15);
}

/* Decorative glow behind visual */
.usecase-visual {
  position: relative;
}
.usecase-visual::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Mobile: visual always on top */
@media (max-width: 767px) {
  .usecase-row .usecase-visual { order: -1; }
  .usecase-row .usecase-text { order: 1; }
}

/* ─── Architecture Pipeline Cards — Nova integration style ─── */
@keyframes moveDot {
  0%, 100% { top: 10%; right: 10%; }
  25% { top: 10%; right: calc(100% - 35px); }
  50% { top: calc(100% - 30px); right: calc(100% - 35px); }
  75% { top: calc(100% - 30px); right: 10%; }
}
.integration-card:hover .animated-dot {
  animation-play-state: running !important;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #particle-canvas { display: none; }
  .hero-beam-us { display: none; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ─── Language Toggle ─── */
.lang-toggle {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

/* ─── Knowledge Pack Cards ─── */
.kp-card {
  transition: all 0.3s ease;
}
.kp-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 8px 30px -8px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

/* ─── Feedback Form ─── */
.feedback-cat-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.feedback-cat-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.feedback-cat-btn.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}
#feedback-status.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}
#feedback-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
