/* ==========================================================================
   Simulated Research Landing Page — Cyan Theme
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

.font-mono {
  font-family: 'Fira Code', 'SF Mono', Menlo, Consolas, monospace;
}

/* Headlines — Space Grotesk */
.sim-page h1,
.sim-page h2 {
  font-family:
    'Space Grotesk',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Deep black background */
.sim-env,
.sim-page {
  background: #050505 !important;
}

/* ==========================================================================
   Status dot — cyan-400
   ========================================================================== */
.sim-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.5),
    0 0 20px rgba(34, 211, 238, 0.2);
  animation: status-pulse 2s ease-in-out infinite;
}

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

/* ==========================================================================
   Hero section
   ========================================================================== */
.sim-hero-section {
  overflow: hidden;
}

/* ==========================================================================
   Aurora animation — 3 white blurred blobs drifting behind hero
   ========================================================================== */
.sim-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sim-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: aurora-drift 12s ease-in-out infinite;
}

.sim-aurora-blob:nth-child(1) {
  width: 600px;
  height: 400px;
  top: -10%;
  left: 20%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.045),
    transparent 70%
  );
  animation-delay: 0s;
  animation-duration: 14s;
}

.sim-aurora-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  top: 10%;
  right: 10%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.035),
    transparent 70%
  );
  animation-delay: -4s;
  animation-duration: 18s;
}

.sim-aurora-blob:nth-child(3) {
  width: 700px;
  height: 350px;
  bottom: -5%;
  left: 35%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes aurora-drift {
  0% {
    opacity: 0.3;
    transform: translate(0, 0) scale(1);
  }
  25% {
    opacity: 0.7;
    transform: translate(30px, -20px) scale(1.05);
  }
  50% {
    opacity: 1;
    transform: translate(-20px, 15px) scale(1.1);
  }
  75% {
    opacity: 0.6;
    transform: translate(15px, 25px) scale(1.03);
  }
  100% {
    opacity: 0.3;
    transform: translate(0, 0) scale(1);
  }
}

/* ==========================================================================
   Hero badge
   ========================================================================== */
.sim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.sim-hero-badge strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Animated gradient border (comparison table column)
   ========================================================================== */
@property --sim-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.sim-animated-border {
  position: relative;
  overflow: hidden;
}
.sim-animated-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--sim-border-angle),
    #22d3ee,
    #06b6d4,
    #22d3ee,
    transparent,
    #22d3ee
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sim-border-rotate 4s linear infinite;
  opacity: 0.5;
}
@keyframes sim-border-rotate {
  to {
    --sim-border-angle: 360deg;
  }
}

/* ==========================================================================
   Comparison table
   ========================================================================== */
.comparison-table-dark {
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

/* ==========================================================================
   Pipeline steps
   ========================================================================== */
.pipeline-step {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reveal cards — no cursor/typewriter
   ========================================================================== */
.sim-reveal-cursor {
  display: none;
}
.sim-reveal-attr {
  opacity: 1;
}
.sim-reveal-line {
  opacity: 1;
  transform: none;
}
.sim-reveal-stats {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */
.scroll-animate {
  opacity: 0.15;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate:nth-child(1) {
  transition-delay: 0ms;
}
.scroll-animate:nth-child(2) {
  transition-delay: 100ms;
}
.scroll-animate:nth-child(3) {
  transition-delay: 200ms;
}
.scroll-animate:nth-child(4) {
  transition-delay: 300ms;
}

[data-sim-anim='fade-up'],
[data-sim-anim='stagger-children'] > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
[data-sim-anim='fade-up'].sim-visible,
[data-sim-anim='stagger-children'] > *.sim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Question showcase — infinite scrolling rows
   ========================================================================== */
.q-showcase {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
}

.q-track {
  display: flex;
  gap: 16px;
  animation: scroll-left 40s linear infinite;
  width: max-content;
}

.q-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.q-track-reverse {
  display: flex;
  gap: 16px;
  animation: scroll-right 44s linear infinite;
  width: max-content;
  margin-top: 12px;
}

.q-track-reverse:hover {
  animation-play-state: paused;
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.q-item {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.q-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* Fade edges */
.q-showcase-fade-l,
.q-showcase-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.q-showcase-fade-l {
  left: 0;
  background: linear-gradient(90deg, #050505, transparent);
}

.q-showcase-fade-r {
  right: 0;
  background: linear-gradient(270deg, #050505, transparent);
}

/* ==========================================================================
   Blind test divider
   ========================================================================== */
.blind-test-divider {
  margin: 64px 0 48px;
  text-align: center;
  position: relative;
}

.blind-test-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.blind-test-divider span {
  position: relative;
  background: #050505;
  padding: 0 20px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Reveal answer animation
   ========================================================================== */
.reveal-answer {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.reveal-answer.shown {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  padding-top: 24px;
}

/* ==========================================================================
   Proof / Validation stats
   ========================================================================== */
.sim-proof-stat {
  text-align: center;
  padding: 48px 24px;
  position: relative;
}

.sim-proof-stat + .sim-proof-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sim-proof-stat-num {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Glow line divider
   ========================================================================== */
.sim-glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent
  );
  border: none;
  margin: 0;
}

/* ==========================================================================
   Card spotlight hover (cursor-tracking glow)
   ========================================================================== */
.sim-spotlight {
  position: relative;
  overflow: hidden;
}

.sim-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
}

.sim-spotlight:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Footer dark override
   ========================================================================== */
.sim-page footer {
  background: #050505 !important;
  border-color: rgba(34, 211, 238, 0.08) !important;
}

.sim-page footer .text-stone-900 {
  color: #f1f5f9 !important;
}
.sim-page footer .text-stone-600,
.sim-page footer .text-stone-500,
.sim-page footer .text-stone-400 {
  color: #64748b !important;
}
.sim-page footer a.text-stone-600:hover,
.sim-page footer .hover\:text-stone-900:hover,
.sim-page footer .hover\:text-stone-700:hover,
.sim-page footer .hover\:text-stone-600:hover {
  color: #f1f5f9 !important;
}
.sim-page footer .border-stone-200 {
  border-color: rgba(34, 211, 238, 0.08) !important;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .pipeline-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sim-status-dot {
    animation: none;
  }
  .sim-animated-border::before {
    animation: none;
  }
  .sim-aurora-blob {
    animation: none;
    opacity: 0.5;
  }
  .q-track,
  .q-track-reverse {
    animation: none;
  }
  [data-sim-anim='fade-up'],
  [data-sim-anim='stagger-children'] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive — Tablet (max 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .sim-aurora-blob {
    filter: blur(60px);
  }

  .q-item {
    font-size: 13px;
    padding: 16px 20px;
  }

  /* Proof stats stack */
  .sim-proof-stat + .sim-proof-stat::before {
    width: auto;
    height: 1px;
    top: 0;
    left: 20%;
    right: 20%;
    bottom: auto;
  }
}

/* ==========================================================================
   Responsive — Phone (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .sim-hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .q-item {
    font-size: 12px;
    padding: 14px 16px;
  }
}
