@tailwind base;
@tailwind components;
@tailwind utilities;

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  padding: 0;
  margin: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Terminal cursor blink */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-cursor {
  animation: cursor-blink 1s step-end infinite;
}

/* UseCases card hover effect */
@property --sweep-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

.usecase-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 8px;
  background: transparent;
  transition: border-color 0.4s ease;
}

.usecase-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  padding: 1px;
  background: conic-gradient(
    from var(--sweep-angle),
    transparent 0%,
    #31FF75 8%,
    #33DDF7 16%,
    rgba(55,252,170,0.79) 24%,
    transparent 40%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.usecase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.14) 0%, #141313 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.usecase-card:hover {
  border-color: transparent;
}

.usecase-card:hover::before {
  opacity: 1;
}

.usecase-card:hover::after {
  opacity: 1;
}

/* Install badge text shimmer */
@keyframes text-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.install-text-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.6) 40%,
    #ffffff 50%,
    rgba(255,255,255,0.6) 60%,
    rgba(255,255,255,0.6) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .install-text-shimmer {
    animation: none;
    background: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }
}
