/* Shared styles for all Cytos website pages. */

/* Base styles */
body {
  font-feature-settings: "ss01", "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
}

/* Subtle Grain texture */
.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Gradient Text */
.text-gradient-primary {
  background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(79, 70, 229, 0.3);
}

/* Nav Link Animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #4f46e5;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Current-page link: bold, coloured, and underlined immediately — the
   underline is static (no slide-in animation). */
.nav-link.nav-active {
  color: #4f46e5; /* primary-600 */
  font-weight: 700;
}
.nav-link.nav-active::after {
  width: 100%;
  transition: none;
}

/* Client-side route transitions (View Transitions API) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.28s;
  }
}

/* Legal / long-form content (privacy, terms) */
.prose h2 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #0f172a;
}
.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #475569;
}
