
/* ============ Premium Micro Cursor ============ */
.micro-cursor-dot {
  display: none;
}

.micro-cursor-ring {
  display: none;
}

.micro-cursor-ring.snapped {
  display: none;
}
.micro-cursor-dot.snapped {
  display: none;
}

/* 3D Parallax Hover Tilt & Glass Glare Overlay */
.story-card, .feature-card, .job-item, .video-demo-card {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.story-card:hover, .feature-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.1);
}

.story-card::after, .feature-card::after, .job-item::after, .video-demo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-card:hover::after, .feature-card:hover::after, .job-item:hover::after, .video-demo-card:hover::after {
  opacity: 1;
}

/* Typing Reactive Glows & Sparks */
.form-group {
  position: relative;
  --type-glow: 0;
}

.textarea-glow-bg {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  box-shadow: 0 0 calc(12px * var(--type-glow)) rgba(0, 240, 255, calc(0.15 * var(--type-glow)));
  border: 1px solid rgba(0, 240, 255, calc(0.3 * var(--type-glow)));
  opacity: 0.8;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
  z-index: 0;
}

.form textarea, .form input[type="text"] {
  position: relative;
  z-index: 1;
}

.type-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

/* Engine Readout status indicators */
.engine-readout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 24px;
}

.engine-readout div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.engine-readout div:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.2);
}

.engine-readout div span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.engine-readout div strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cyan);
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ============ Readout Widget Rolling Animation ============ */
.readout-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.readout-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.06), transparent);
  transition: left 0s;
  pointer-events: none;
}

.readout-widget:hover::before {
  left: 110%;
  transition: left 0.5s ease;
}

.readout-widget:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

.readout-widget span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.readout-value {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cyan);
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  display: block;
  height: 1.4em;
  overflow: hidden;
  position: relative;
}

.readout-value.rolling {
  animation: readoutRoll 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes readoutRoll {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(-1.4em); opacity: 0; }
  46% { transform: translateY(1.4em); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ============ Stage Index Buttons (Redesigned) ============ */
.stage-index {
  display: flex;
  gap: 20px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-end;
}

.stage-index button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  min-width: 110px;
  overflow: hidden;
}

.stage-index button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,240,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stage-index button:hover::before,
.stage-index button.active::before {
  opacity: 1;
}

.stage-index button:hover, .stage-index button.active {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.08), 0 0 0 1px rgba(0,240,255,0.06);
  transform: translateX(-4px);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.7;
}

.stage-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Glow ring that expands on click/hover */
.stage-ring {
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  border: 1.5px solid rgba(0, 240, 255, 0);
  pointer-events: none;
  transition: border-color 0.3s;
}

.stage-index button.active .stage-ring {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

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

.stage-index button.pulse-ring .stage-ring {
  animation: stageRingPulse 0.55s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}

/* Stage status badge */
.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.stage-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.75); }
}

/* ============ Hero CTA Button Ripple ============ */
.btn-hero-primary, .btn-nav-cta {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleOut 0.6s linear forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ============ Feature Canvas Scanline ============ */
.lab-screen {
  position: relative;
}

.lab-scanline {
  position: absolute;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.7), transparent);
  box-shadow: 0 0 8px rgba(0,240,255,0.4);
  pointer-events: none;
  opacity: 0;
  top: 32px;
  transition: opacity 0.2s;
  z-index: 5;
}

.lab-screen:hover .lab-scanline {
  opacity: 1;
  animation: scanLine 2.4s linear infinite;
}

@keyframes scanLine {
  0% { top: 32px; }
  100% { top: calc(100% - 32px); }
}

/* ============ Floating orbs behind workspace ============ */
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -3%) scale(1.05); }
  66% { transform: translate(-1%, 2%) scale(0.97); }
}

/* ============ Corein Spin ============ */
@keyframes coreSpin {
  to { transform: rotateX(60deg) rotateZ(390deg); }
}

/* @media responsive adjustments for stage-index */
@media (max-width: 900px) {
  .stage-index {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 32px;
  }

  .stage-index button {
    min-width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }
}

/* ============ Feature Lab: Liquid Glass Cards ============ */
.liquid-glass-card {
  position: relative;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.liquid-glass-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(160, 66, 255, 0.2), rgba(0, 240, 255, 0.1), transparent 60%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

.liquid-glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.liquid-glass-card:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: liquidAuraRotate 8s linear infinite;
}

@keyframes liquidAuraRotate {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

/* ============ Workflow: Ethereal Aurora Bloom ============ */
.ethereal-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.ethereal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.ethereal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 240, 255, 0.08);
}

.ethereal-card:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

.ethereal-card * {
  position: relative;
  z-index: 1;
}

/* ============ Workflow: Breathing Ribbon ============ */
.story-steps {
  position: relative;
}
.laser-path {
  position: absolute;
  top: 0;
  left: 20px;
  width: 200px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#laserLine {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  will-change: stroke-dashoffset;
}
.breathing-ribbon {
  animation: ribbonBreathe 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

@keyframes ribbonBreathe {
  0% { transform: translateX(0px); filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.2)); }
  100% { transform: translateX(8px); filter: drop-shadow(0 0 12px rgba(160, 66, 255, 0.5)); }
}

/* ============ Video Lab: Iris Reveal & Lens Distortion ============ */
.video-demo-card {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: filter 0.4s, transform 0.4s;
  will-change: clip-path, filter;
  position: relative;
}

.video-demo-card:hover {
  filter: contrast(1.15) saturate(1.2) hue-rotate(15deg) drop-shadow(0 0 40px rgba(160, 66, 255, 0.5));
}

.video-demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  background: linear-gradient(45deg, var(--cyan), var(--violet), var(--acid)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 10;
}
.video-demo-card:hover::before {
  opacity: 1;
}

/* Specific Media Queries for Laser Path */
@media (max-width: 860px) {
  .laser-path { left: 16px; width: 50px; }
}
